I wrote to Ian Hutchinson (author of tth):

> Anyway, I wanted to alert you to a potential bug.  When I use lyx's
> "hyperef" feature to make a hyperlink (as opposed to embedding a URL,
> where the text is the same as the href target), it generates a .tex
> file that contains a line like this:
>
> \usepackage[unicode=true, pdfusetitle,
> bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
> breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
> {hyperref}
>
> When I run it through tth, it creates a <title> tag of "hyperref".

He responds:

Hello. Thanks for this message. The problem is with the way Lyx is laying
out its \usepackage command. TtH knows nothing about \usepackage. It treats
it as an unknown command.

http://hutchinson.belmont.ma.us/tth/manual/sec9.html#commands+unknown93
explains that such commands ought to be laid out _without_ whitespace
between themselves and their arguments. Because Lyx is inserting whitespace
before {hyperref}, TtH scans it as if it is the start of the text.

The only way to fix this properly is for Lyx to avoid adding that extra
whitespace between ] and {. No space or newline is allowed. You could fix
it by hand in the .tex file yourself; but that's a bit annoying.

Typical results appear at top of this page:

http://www.subspacefield.org/~travis/web_generator/
-- 
A Weapon of Mass Construction
My emails do not have attachments; it's a digital signature that your mail
program doesn't understand. | http://www.subspacefield.org/~travis/ 
If you are a spammer, please email j...@subspacefield.org to get blacklisted.

Attachment: pgpodldZNhEzV.pgp
Description: PGP signature

Reply via email to