Ask Your Question
0

improve style of index with long entries

asked 2017-06-10 15:14:44 +0200

tflutre gravatar image

updated 2017-06-11 11:33:01 +0200

I have an index of all illustrations in my document. However, some of them have a long entry, which requires 2 lines in the index. As a result, it is not easy to see the page number at which the illustration occurs.

Edit: here is a screenshot https://ibb.co/cZNvoF

Example (I don't have enough points to upload a screenshot):

Figure 1 : bla blabla blabla bla blabla bla blabla blabla bla blabla bla blabla blX blabla blabla blabla bla blabla.................................................................7
Figure 2: bla blabla blabla bla.........................................................12
Figure 3: bla blabla blabla bla bla blabla blabla bla...................................19

Is there a way to automatically format the index entries so that it looks like this instead? (see how the first line is cut after "blX")

Figure 1 : bla blabla blabla bla blabla bla blabla blabla bla blabla bla blabla blX
blabla blabla blabla bla blabla........................................................7
Figure 2: bla blabla blabla bla.......................................................12
Figure 3: bla blabla blabla bla bla blabla blabla bla.................................19

(Unfortunately, after saving my question, I realized that the example above may look good only when I edit it, but not after saving...)

edit retag flag offensive close merge delete

Comments

You may use a free image sharing service and post a link here

Mike Kaganski gravatar imageMike Kaganski ( 2017-06-11 11:04:54 +0200 )edit

That's what I did here (https://ibb.co/cZNvoF) but it doesn't show up, so I will simply add the link.

tflutre gravatar imagetflutre ( 2017-06-11 11:32:12 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2017-06-11 14:26:50 +0200

RGB-es gravatar image

There is no way to automate this, sorry. Alignment on TOCs is quite primitive (see for example this report).

You can manually obtain the needed effect by unchecking the box "Protect against manual changes" and then just entering the needed line or paragraph breaks directly, but be aware that as soon as you update the TOC those manual modifications will disappear.

edit flag offensive delete link more
0

answered 2017-06-10 23:05:54 +0200

Regina gravatar image

updated 2017-06-11 16:13:34 +0200

Right click index and chose item "Edit index". Go to tab "Entries". Click on the T in the structure line. Then you should see a check box "Align right". Check it.

Currently it is not possible to set the position of the tab beyond the right edge of the text. Do you have considered to emphasize the page number? You can define a character style for it with bold or color or larger font-size and set this character style to be used for the page number in the edit index dialog. As default you will see "none" there. If you use a larger font, set the text-to-text alignment in the paragraph style to "top", so that the larger line spacing is below the number.

There exists a config item "TabOverMargin". But in case of "right align tab", "right" would be infinity, because a concrete tab position is ignored for right aligned tab in an index. Only since version 5.4 it works for left aligned tab. With that you would be able to set a left aligned tab at e.g. 16.5cm and set the right edge of the paragraph to 16cm to keep the text shorter than the position of the page number. The config item "TabOverMargin" is not available in the UI, but you would need to set it directly in the file. That is possible, if you save to fodt-Format.

edit flag offensive delete link more

Comments

Thanks, but I already checked "Align right". Moreover, it's hard to properly explain without being able to upload a small screenshot...

tflutre gravatar imagetflutre ( 2017-06-11 10:53:12 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-06-10 15:14:44 +0200

Seen: 62 times

Last updated: Jun 11 '17