Reply to topic  [ 14 posts ] 
Strange TOC Behaviour 
Author Message

Joined: 2014-12-28 05:47:24
Posts: 31
Hello,

Nisus is doing strange, unwanted things when it inserts a Table of Contents in a document I'm working on, and I just can't figure out what's going wrong.

Nisus does the following: for certain titles in the TOC it jumps to a new line before inserting the dots and the page number, so that the dots and the page number appear on the next line and not on the same line as the title, even when the title is very short. I've included an example below.

I have a document with 5 levels of titles, and Nisus does this for all the titles on levels 1-3. The level 4 & 5 titles in the TOC appear correctly, i.e., with everything on the same line.

The titles in the document have been customised. Here is a rough example of the title layout in the document:

Introduction [Level 1 / Based On No List Style. I.e., Lists - Styles - "Use None"]

Part I: Title of Part I [Level 2 / Based On No List Style]

Chapter I: Title of Chapter I [Level 3 / Based On the "Headings" List Style]

§1 Title of Section 1 [Level 4 / [Level 3 / Based On the "Headings" List Style & Customised]

§1.1 Title of Section 1.1 [Level 5 / [Level 3 / Based On the "Headings" List Style & Customised]

[And so on]

But when Nisus inserts the TOC, I get something like this (of course, the page numbers are flush with the right margin):

Introduction
…… 1

Part I: Title
…… 3

Chapter I: Title
…… 5

§1 Title …… 5

§1.1 Title …… 7


Surely I should get something like this instead:

Introduction …… 1

Part I: Title …… 3

Chapter I: Title …… 5

§1 Title …… 5

§1.1 Title …… 7

I've been fiddling endlessly with this and have just noticed the following: I'm using the Linux Libertine font in the document, but, when preparing a working example to upload to the forum, I changed the font to a more common one (Times) and, lo and behold, the problem goes away and the TOC compiles normally. Is this a bug to do with the font? I want to avoid Times at all costs, so why is Nisus making problems with the other font used? I had a hunch that the customisation of the Title styles might be at the root of the problem, but I was far form imaging that it would be the font. Surely this shouldn't be happening?

Any help anyone might be able to offer would be greatly appreciated.

Stef


Attachments:
File comment: Example TOC Problem (PDF)
Example_TOC_Problem_PCF.pdf [95.67 KiB]
Downloaded 59 times
File comment: Example TOC Problem
Example_TOC_Problem.rtf [33.47 KiB]
Downloaded 58 times
2015-07-31 03:13:27
Profile
User avatar

Joined: 2007-01-17 03:25:42
Posts: 729
I cannot reproduce the problem.
Both the RTF and the PDF files display correctly.
The font version I tried is LinLibertineOTF_5.3.0_2012_07_02.


Attachments:
Example_TOC_Problem.pdf.zip [94.77 KiB]
Downloaded 53 times
2015-07-31 05:47:56
Profile

Joined: 2014-12-28 05:47:24
Posts: 31
Thanks, Hamid, for looking into the issue and for replying quickly.

I'm using the same version of the font as the one you indicated. So I guess it's just bad luck for me that you can't reproduce the problem. As for me, I can't do anything but reproduce it: on my system, the only way to make the problem disappear is to stop using Linux Libertine. I'd rather not do that, however, as all the parameters of the very long document have been set up using Linux Libertine. (And it's also a very nice font).

I'm thus wondering if the version of Nisus I'm using might be an issue. I'm still on version 2.0.7, but I don't want to update to 2.1.1 as I'm working closely with someone who's still on Snow Leopard (10.6), which version 2.1 no longer supports. I'd rather avoid possible problems of incompatibility between Nisus versions and keep things the same on both systems. In the meantime, this issue is causing a headache, especially since you say that you can't reproduce it.

Thanks again.

Stef


2015-07-31 13:03:46
Profile
User avatar

Joined: 2007-03-31 14:59:22
Posts: 333
Location: Frankfurt, Germany
Hi Stef -

don't know anything about Linux Libertine - but did you Validate the Font in Apple's Font Book app?
And may be it's a Font Cache problem - try to clean the Font Cache - OnyX is for free…

HE

_________________
MacBook Pro i5
SSD 840/850 Pro
macOS Sierra 10.12.6
Nisus Writer Pro 2.1.8


2015-08-01 01:16:56
Profile

Joined: 2014-12-28 05:47:24
Posts: 31
Thank you, Elbrecht, for taking the time to comment. I followed your advice, checking that the fonts were validated, and I cleaned out the font caches. Unfortunately, it didn't make any difference. This really is an odd problem which seems to occur with the "Linux Libertine O" font. In fact, in order for the TOC to display as intended in the document I'm working on, I've had to find a replacement for Linux Libertine in the TOC. It's a very strange issue, which seems to be font-related, and which I haven't been able to resolve. That's the only update I can give.
Stef.


2015-09-01 12:00:00
Profile

Joined: 2007-09-20 17:58:56
Posts: 179
I had used Linux Libertine O and B for most projects. Love the look of the font.. But in another program I discovered that there are problems with the fonts in certain situations. In that case I had to switch to a font that supported what I needed. In my case I switched to Minion Pro and have had no problems.

Not sure if this helps, but when I saw the font I thought I'd share my experience.

_________________
iMac 21.5” / MBP 13” Retina
Mac user since 1990


2015-09-01 17:25:13
Profile

Joined: 2014-12-28 05:47:24
Posts: 31
Thanks, exegete77. Your comments reassure me somewhat. Hamid couldn't reproduce the problem, and so I was wondering if it was just my machine/setup. It thus seems that there can be issues with the Linux Libertine fonts in certain situations, which is really unfortunate, because, as you say, the fonts look great, and, for the most part, they function really well. For my part, I chose a font named Crimson to get the job done where Linux Libertine was acting strangely. As for the underlying problem, I just can't figure out what it might be.


2015-09-01 22:58:34
Profile
User avatar

Joined: 2007-03-31 14:59:22
Posts: 333
Location: Frankfurt, Germany
Again –

in the net it looks like "Linux Libertine O" has known problems with Mac OS X since long – so don't wonder! BTW the "O" stands for OTF – Open Type Font – this font format is not 100% covered by Apple's text engine, you might try a TTF version if available…

HE

_________________
MacBook Pro i5
SSD 840/850 Pro
macOS Sierra 10.12.6
Nisus Writer Pro 2.1.8


2015-09-02 01:56:10
Profile

Joined: 2014-12-28 05:47:24
Posts: 31
Thanks again, Elbrecht, your comments are helpful. I followed your advice and installed the TrueType version of Linux Libertine, and it solves the problem in the TOC. In other words, when using Linux Libertine (TrueType), there are no anomalies in the formatting of the TOC, as described above, and the TOC displays correctly.

However, the same formatting problems occurring in the TOC when using Linux Libertine (OpenType) also occur in the Index, and, unfortunately, changing to the TrueType version of the font does not resolve the formatting problem in the Index. It only resolves them in the TOC. Now that is strange!

Stef.


2015-09-02 06:59:45
Profile
User avatar

Joined: 2007-03-31 14:59:22
Posts: 333
Location: Frankfurt, Germany
Stef. –

"Rebuild Index" ?

HE

_________________
MacBook Pro i5
SSD 840/850 Pro
macOS Sierra 10.12.6
Nisus Writer Pro 2.1.8


2015-09-02 07:06:49
Profile

Joined: 2014-12-28 05:47:24
Posts: 31
Yes, I tried that, thanks. I also tried deleting the Index and re-inserting it. But, unfortunately, neither of these things worked.
It's so strange that the solution you suggested works for the TOC but not for the Index.
Stef.


2015-09-02 07:26:46
Profile
User avatar

Joined: 2007-03-31 14:59:22
Posts: 333
Location: Frankfurt, Germany
Stef –

I can't check your "TOC" – and sorry no "NW 2.0.7" running anymore.

HE

_________________
MacBook Pro i5
SSD 840/850 Pro
macOS Sierra 10.12.6
Nisus Writer Pro 2.1.8


2015-09-02 08:34:01
Profile

Joined: 2007-09-20 17:58:56
Posts: 179
One other thought. Linux Libertine comes in several variants. I had used the .otf fonts, which caused the problems. I downloaded the .ttf fonts, because i wanted to check in another program. The .ttf fonts seem to work better. I have tried in Mellel and iCalamus, and both seem to work better with this.

_________________
iMac 21.5” / MBP 13” Retina
Mac user since 1990


2015-09-02 10:49:00
Profile

Joined: 2014-12-28 05:47:24
Posts: 31
Thanks, exegete77, you're right. Elbrechet pointed this out, too, and the TrueType version of the font does work better. Using the .ttf fonts actually solves the formatting problem in the TOC. However, even with the .ttf version the very same formatting problem remains in the Index. Go figure…


2015-09-02 11:32:32
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software