groff
[Top][All Lists]
Advanced

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

Re: [Groff] TOC with links in mom


From: Petr Man
Subject: Re: [Groff] TOC with links in mom
Date: Fri, 25 Feb 2011 09:41:06 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Feb 23, 2011 at 12:39:39PM -0500, Peter Schaffter wrote:
> On Tue, Feb 22, 2011, Keith Marshall wrote:
> > On 22 February 2011 10:45, Petr Man wrote:
> > > I am unable to figure out how to make groff/pdfroff with pdfmark to
> > > produce clickable TOC
> > 
> > Well, I wrote the pdfmark macros, and I have yet to figure it out
> > myself; I use the bookmarks pane of the pdf reader as my clickable
> > TOC, and populate it using the -O option to .pdfhref
> 
> This is the same strategy I use.  I either embed .pdfbookmark calls at
> appropriate places in my source files, or .am them to the
> appropriate mom macros (HEAD, SUBHEAD, etc).  Mom takes care of the
> printed TOC, and pdfmark takes care of the clickable TOC.
> 
> > 
> > > out of a mom document.
> > 
> > I've never used mom, so I cannot offer advice specific to it; I don't
> > believe anyone has contributed mom bindings for pdfmark, as I have done
> > for ms.
> 
> Integrating pdfmark with mom is a project for which I can never find
> the time.  Patches welcome, if anyone decides to take it on.

Thank you both for help, I have integrated pdfmark into my mom.tmac. It is
however very crude way and I will have to think about it a little more before
it can be published. The outline is now always generated, I will have to wrap
it in a few if-blocks.
One question for Keith. How do I prevent pdfmark from changing the color of
the link text? I want to keep it to default, this bothers me especially in the
clickable TOC, I have everything blue there.
Another question for Peter. I noticed, that there was no way to change the
color of the "Table of Contents" text, so I have added that option. After
printing the colored headline, I wanted to reset the color back to the default
text color for the rest of the TOC. How do I do that? I have hardcoded black
for now, but that is not the way to go. Which variable holds the default color?

Petr

-- 
My GnuPG key is at http://petr.madnetwork.org/home/contact/pubkey.asc
Key fingerprint = 0F04 503F EF79 2B8D B63C  00B4 AD2F 0594 FAA5 0053

Attachment: pgpHgRwMzJbFx.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]