Ask Your Question
0

Is it possible to associate a List style with a Number range? [closed]

asked 2015-06-04 23:00:39 +0100

menturi gravatar image

updated 2020-08-05 00:17:14 +0100

Alex Kemp gravatar image

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.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-08-05 00:18:25.618458

Comments

@menturi - I see you've updated your question but have you tested my solution?

pierre-yves samyn gravatar imagepierre-yves samyn ( 2015-06-05 18:25:08 +0100 )edit

Just tested out your solution; see my response comment. It is quite neat!

menturi gravatar imagementuri ( 2015-06-05 20:13:15 +0100 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2015-06-05 17:32:50 +0100

pierre-yves samyn gravatar image

Hi

I can propose you this solution that does not use brackets but parentheses:

  1. Create a character style using the font Linux Libertine G:circ=2 (see Parenthesized in ListParenthesed.odt)
  2. Modify the Numbering 1 List Style, Options tab choose your character style
  3. To create your lists in your document select text and apply the Numbering 1 List Style (you get numbers enclosed in parentheses)

On insertion of a Cross-reference you only get the number without parentheses.

More info on Libertine fonts.

Regards

edit flag offensive delete link more

Comments

This is absolutely amazing! I did not even know fonts could do something like this. Very interesting workaround; I love it.

I should mention a few drawbacks for those reading: (1) It requires the use of a particular font, (2) It works only with parenthesis or circles (though many other features!), (3) Visually the characters look smaller and a bit strange (I think it is just a character mapping).

For my particular needs, these drawbacks are too significant of issues. Many thanks though!

menturi gravatar imagementuri ( 2015-06-05 20:11:36 +0100 )edit
0

answered 2015-06-05 00:32:58 +0100

Alex Kemp gravatar image

I've just tried & found it to be possible (though I believe you to be foolish to want it that way). I'm doing this using "Bullets and Numbering". I do not know precisely what you mean by "creating a "list"". "Bullets and Numbering" only works on paragraphs, anyway, so this will work for you:-

So, with my numbers already in place, I took these steps:-

  1. Menu: Format Bullets and Numbering... Options tab
  2. (number format is A.)
  3. Remove . at Separator | After
  4. Press OKbutton or <Enter>key
  5. (thankfully, also works in reverse, as a visual separation is required so that the viewer knows that it is not part of the paragraph)

I see no reason why, once setup, this cannot be given a named style.

edit flag offensive delete link more

Comments

Sorry for being unclear in the original question; I edited it in the hopes that it is clearer now.

Also, I just learned that my issue only occurs when there is before text (your example does not have). Consider the example with both before text "[" and after text "]"; cross-referencing this (normally by Insert > Cross-reference > Cross-references > Numbered Paragraphs) will include the "[" and "]" text. I would like to keep the before and after text in the list, but not in the cross-reference.

menturi gravatar imagementuri ( 2015-06-05 17:50:44 +0100 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-04 23:00:39 +0100

Seen: 342 times

Last updated: Jun 05 '15