Mayuresh | 18 Oct 2011 06:43
Picon
Favicon

nameref and latex2html

I need to refer to name of a section rather than its number in latex.

I can do that with \nameref

However, I'm also interested in using latex2html to create html version of
the document. Unfortunately latex2html doesn't seem to recognize \nameref.

I checked latex2html documentation and found \hyperref. But this one
requires 4 options. It doesn't seem to be as handy as \nameref.

Any suggestions?

Is there any way to access section name by its label? If so I Can make do
with \hyperref.

Mayuresh.
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia

Mayuresh | 18 Oct 2011 09:59
Picon
Favicon

Re: nameref and latex2html

On Tue, Oct 18, 2011 at 10:13:27AM +0530, Mayuresh wrote:
> However, I'm also interested in using latex2html to create html version of

Instead of latex2html I used t4ht which is far more suitable for
non-trivial documents as it internally uses full latex capability.

It is a little tricky to get used to it. But it works and produces
reliable htmls.

I ran into a difficulty however. \nameref works fine if you produce a
single page html for your tex source. However, if you produce section-wise
split htmls (as shown here:
http://tex.stackexchange.com/questions/20218/how-to-make-htlatex-split-large-html-file-into-sub-documents)
, \nameref link is ok but its hypertext always points to Contents.

Perhaps a bug with t4ht. If anyone knows an workaround please post.

Mayuresh
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia


Gmane