[Solved-Partial workaround] Index format

Writing a book, Automating Document Production - Discuss your special needs here
Post Reply
BRG1942
Posts: 21
Joined: Wed Jun 20, 2012 2:40 pm
Location: Wheaton, Maryland, United States of America

[Solved-Partial workaround] Index format

Post by BRG1942 »

I have one minor problem with the index format which I will live with if I have to, but would prefer to fix if it is possible. Between the index entry and the page numbers, I usually have a line of dots, but in the case where the list of pages is long, there may be only one dot, or none at all. Is there some way of setting a minimum length for this line of dots?
Last edited by Hagar Delest on Sun Apr 19, 2015 10:43 am, edited 1 time in total.
Reason: tagged solved
Running OpenOffice.org v. 3.4.1 under Windows 7 Home Premium
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Index format

Post by acknak »

I think you're stuck with it.

Writer's index/ToC formatting depends on tab stop layout. Positioning of the tab and leading is all internal and (as far as I know) there are no settings to adjust it.
AOO4/LO5 • Linux • Fedora 23
User avatar
CannedMan
Posts: 225
Joined: Wed Aug 04, 2010 12:06 am

[Solved: Partial workaround] Re: Index format

Post by CannedMan »

I choose to post here, as it is somewhat relevant to my question, instead of making a new topic. I have a single problem with the layout of my index: Page numbers are tabbed, so when I have titles spanning more than the width of the table, the page number ends up on line two. Also, depending on where a title’s word is line-broken, it might spill into the ‘column’ for page numbers. How can this, if at all, be fixed? Is it e.g. possible to make an automated index in a table instead of in tabbed columns as I’ve done?
Screenshot provided for reference; please note the overflow in e.g. Ⅱ.1 and Ⅲ.2.1, and how the page number appears on the line below, both the places mentioned as well as e.g. Ⅱ.2 and Ⅲ.2.
Index with text overflow problems
Index with text overflow problems
Last edited by CannedMan on Mon Apr 13, 2015 4:14 pm, edited 1 time in total.
Apache OpenOffice 4.1.5 / LibreOffice 7.0.0.3 on Windows 10 (x64)
User avatar
keme
Volunteer
Posts: 3699
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Index format

Post by keme »

Workaround:
Edit the ToC field. For each ToC level, in the Entries tab you insert a few characters (in your case you need non-breaking space, see below) in the TOC structure between the Entry and the Tabulation (E marker and T marker, respectively). This works for index entries too.

Visible characters (dots, dashes, underscore) can be typed directly into the "structure" field in the dialog. For special characters like the non-breaking space, you need to type them into the document, then cut it and paste into the dialog.
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
User avatar
CannedMan
Posts: 225
Joined: Wed Aug 04, 2010 12:06 am

Re: Index format

Post by CannedMan »

It works for the lines that are just too long to push the page number to the next line, but it does not solve the problem for lines that overflow into the page number column, and then to the next line. But thank you for the tip; it is nice to know.
Apache OpenOffice 4.1.5 / LibreOffice 7.0.0.3 on Windows 10 (x64)
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Index format

Post by acknak »

I think this is due to the index layout depending on tabs alone. There are problems like this that pure text and tabs cannot handle.

The only way to fully over come it may be to manually format entries to add some line breaks, or maybe even convert the text into a full table.

The big problem (beside the amount of manual fiddling) is that updating the index will remove all the manual changes. The workaround for that is to ignore the minor problems and leave the manual changes until the very, very end.
AOO4/LO5 • Linux • Fedora 23
User avatar
CannedMan
Posts: 225
Joined: Wed Aug 04, 2010 12:06 am

Re: Index format

Post by CannedMan »

Which is the solution I’ve had to choose when dealing with smaller papers. I’ll add [Solved: Partial workaround] at the top to my post, to close this one then, but a moderator will have to do it to the original post. Were it up to me, and I had the skills, the index should’ve been made as a table instead of tabulated text, though I suppose that is a suggestion worthy of a small version increase.
Apache OpenOffice 4.1.5 / LibreOffice 7.0.0.3 on Windows 10 (x64)
Post Reply