Re: Fix pdflatex ToC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Sep 2019 21:05:55 +1000, Balbir Singh wrote:
> On Mon, Sep 16, 2019 at 7:33 PM Akira Yokosawa <akiyks@xxxxxxxxx> wrote:
>>
>> (CC to Paul's current address)
>> Hi Balbir,
>>
>> On Mon, 16 Sep 2019 08:21:54 +1000, Balbir Singh wrote:
>>> From df15e226d96614ffbdedfd517f8a6d7afc1c0fee Mon Sep 17 00:00:00 2001
>>> From: Balbir singh <bsingharora@xxxxxxxxx>
>>> Date: Sun, 15 Sep 2019 21:14:53 +1000
>>> Subject: [PATCH] Make hyperlinks colorful and a browsable pdf TOC
>>>
>>> Without these changes the the PDF does not provide
>>> a browsable TOC to choose for navigation, also add
>>> a bit of color to the links to make them screen
>>> friendly.
>>
>> Well, it may not be obvious, but hyperlinks have been there in the TOC.
>> You mean you want them colored blue?
>>
> 
> Yes, but they've been a bit hidden (largely bold text between section headings
> and references, I have to move my mouse to get know if it is a hyperlink)
> 
>> For TOC, they may be OK.
>>
>> But I'm afraid that to color all the hyperlinks in the whole textbook
>> could be too aggressive, as can be seen for example in Section 5.2.4
>> (below Listing 5.5). Frequent colored line numbers can look too
>> fancy/noisy for some people.
>>
> 
> I see what you mean, how about a gentler color like gray, but I am not 100%
> sure how that would look in print.

"DarkBlue" via svgnames option looks less fancy.
How it looks depends on the display/printer setting and individual color sense,
though.

> 
>> Does adding an experimental target to make hyperlinks colored work with
>> you (similar to -1csf, -msnt, and the like)? If so, which layout do you
>> prefer, 1c or 2c?
>>
> I prefer 1c, but I think the print will always be 2c for saving paper.
> But please
> bear in mind, adding too many targets makes it confusing when Paul tries
> to release this to the world, no?

Actually speaking, I was the one who added all those experimental targets.

As 1c is mainly for PDF viewers, I think coloring hyperlinks in 1c layout
should be acceptable. It should also help those who view on tablets (without
mice). 2c layouts won't be affected by the change.

So, I'll prepare a patch to do it. Please give me a short while.

>                                   I am OK skipping colors to keep the PDF
> uniform
> 
>>>
>>> Also add synctex=-1 to prevent pdf readers like
>>> evince from complaining to the pdflatex command
>>> line
>>
>> As for SyncTeX support, how about the approach in the patch
>> below?
>>
> 
> Yep that work!

Nice!

I'll submit a v2 of the patch with a proper change log to clarify that
you are the original author. I don't think the" Reported-by:" tag is
good enough. To be honest, I had no idea of the -synctex option before.

        Thanks, Akira

> 
> Balbir Singh.
> 
>>         Thanks, Akira
>>
>>>
>>> Signed-off-by: Balbir singh <bsingharora@xxxxxxxxx>
>>> ---

[...]



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux