In LibreOffice Writer, I would like to cross-reference a list item number without the before and after text. By using a list with the before and after text set, any cross-refences to an item in the list (Insert > Cross-reference > Cross-references > Numbered Paragraphs) appears with the before and after text.
One workaround I found was to not use lists, but rather creating a number range (Insert > Cross-reference > Variables > Number range), and in consecutive paragraphs inserting the number range with the before and after text manually typed in each line. This will have it so I keep the brackets around each item in my “list” (not a LO list), but I am then able to cross-reference the number range number I want without the before and after text. However, since I am not using a list, there is no longer the convenience of consistent formatting with list styles since I need to format each paragraph (by typing in the before and after text, and add in tabs).
I am hoping for the best of both worlds: being able to cross-reference a number range that is associated with a list. This will allow me to use a list style with proper before and after text set, while enabling me to cross-reference the number range which should not include the before and after text.
For example, I have the list with text “[” for before and “]” for after:
[1] One
[2] Two
[3] Three
but when cross-referencing the second item, the cross-reference will appear as “[2]” where I would like to cross-reference the “2” without the brackets, but while keeping the brackets in the list itself.