incompatibility between lyx, hyperref and tth
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 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. pgpodldZNhEzV.pgp Description: PGP signature
Re: lyx & hyperref error
It seems, the problem is that hyperref redefines \contentsline, because it needs additional information. So you have to provide the extra argument. If I add the extra argument as shown below everything works fine with the hyperref package. %\addtocontents{lof}{\protect\contentsline {part}% % {\protect\figurenameToC}{\protect\relax}{Figure}% %} Thanks for all your help. -Enrique >the following lines in the thesis.cls are the problem. if you could > >comment them out, all should work. hyperref can't handle such command > >structure. with these changes it worked for me and the changes are >only >for the toc, lof and lot and not important. > >Herbert > >% Adds the appropriate label to the ToC/LoF/LoT >%\addtocontents{lof}{\protect\contentsline {part}% >% {\protect\figurenameToC}{\protect\relax}% >%} >%\addtocontents{lot}{\protect\contentsline {part}% >% {\protect\tablenameToC}{\protect\relax}% >%} >%\addtocontents{toc}{\protect\contentsline {part}% >% {\protect\chapternameToC}{\protect\relax}% >%} > _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: lyx & hyperref error
Herbert, Yes, that did it! Thanks a lot. -Enrique >Date: Wed, 26 Sep 2001 20:00:32 +0200 > >E GCP wrote: > > > >Date: Tue, 25 Sep 2001 07:12:33 +0200 > > > > > >E GCP wrote: > > > > > > > > Attached are the example files. All are taken from the Thesis-Style >for > > >LyX > > > > without modifications, except in the LaTeX preamble of demo3.lyx to >add > > >the > > > > hyperref package. > > > > > > > > Install the Thesis class, open in lyx the demo3.lyx file then > > > > File->Export->PDF > > > > > > > > demo3.lyx, demobody.lyx, and demo-pre.tex have to be in the same > > >directory > > > > > >there are problems togehther with the hyperref-package. > > >comment this out in latex preamble and all works well. > > > > > Herbert, > > > > I found some more information. If I comment out the following lines at >the > > end of the thesis.cls file then hyperref works out fine, but I don't get > > ToC, LoF, or LoT. I hope this helps track out the problem. > >the following lines in the thesis.cls are the problem. if you could comment >them out, >all should work. hyperref can't handle such command structure. with these >changes >it worked for me and the changes are only for the toc, lof and lot and not >important. > >Herbert > >% Adds the appropriate label to the ToC/LoF/LoT >%\addtocontents{lof}{\protect\contentsline {part}% >% {\protect\figurenameToC}{\protect\relax}% >%} >%\addtocontents{lot}{\protect\contentsline {part}% >% {\protect\tablenameToC}{\protect\relax}% >%} >%\addtocontents{toc}{\protect\contentsline {part}% >% {\protect\chapternameToC}{\protect\relax}% >%} > > >-- >http://www.educat.hu-berlin.de/~voss/lyx/ > _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: lyx & hyperref error
E GCP wrote: > >Date: Tue, 25 Sep 2001 07:12:33 +0200 > > > >E GCP wrote: > > > > > > Attached are the example files. All are taken from the Thesis-Style for > >LyX > > > without modifications, except in the LaTeX preamble of demo3.lyx to add > >the > > > hyperref package. > > > > > > Install the Thesis class, open in lyx the demo3.lyx file then > > > File->Export->PDF > > > > > > demo3.lyx, demobody.lyx, and demo-pre.tex have to be in the same > >directory > > > >there are problems togehther with the hyperref-package. > >comment this out in latex preamble and all works well. > > > Herbert, > > I found some more information. If I comment out the following lines at the > end of the thesis.cls file then hyperref works out fine, but I don't get > ToC, LoF, or LoT. I hope this helps track out the problem. the following lines in the thesis.cls are the problem. if you could comment them out, all should work. hyperref can't handle such command structure. with these changes it worked for me and the changes are only for the toc, lof and lot and not important. Herbert % Adds the appropriate label to the ToC/LoF/LoT %\addtocontents{lof}{\protect\contentsline {part}% % {\protect\figurenameToC}{\protect\relax}% %} %\addtocontents{lot}{\protect\contentsline {part}% % {\protect\tablenameToC}{\protect\relax}% %} %\addtocontents{toc}{\protect\contentsline {part}% % {\protect\chapternameToC}{\protect\relax}% %} -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: lyx & hyperref error
On Tue, Sep 25, 2001 at 02:48:26PM +, E GCP wrote: > > I found some more information. If I comment out the following lines at the > end of the thesis.cls file then hyperref works out fine, but I don't get > ToC, LoF, or LoT. I hope this helps track out the problem. The problem is that thesis.cls uses a non-standard way of creating the table of contents, and therefore it cannot be used with hyperref. I don't think that there is a simple solution to the problem.
lyx & hyperref error
>Date: Tue, 25 Sep 2001 07:12:33 +0200 > >E GCP wrote: > > > > Attached are the example files. All are taken from the Thesis-Style for >LyX > > without modifications, except in the LaTeX preamble of demo3.lyx to add >the > > hyperref package. > > > > Install the Thesis class, open in lyx the demo3.lyx file then > > File->Export->PDF > > > > demo3.lyx, demobody.lyx, and demo-pre.tex have to be in the same >directory > >there are problems togehther with the hyperref-package. >comment this out in latex preamble and all works well. > Herbert, I found some more information. If I comment out the following lines at the end of the thesis.cls file then hyperref works out fine, but I don't get ToC, LoF, or LoT. I hope this helps track out the problem. Thanks again, Enrique --- \typeout{Making ToC Page}% \th@ToCpage% \typeout{Making LoF Page}% \th@LoFpage% \typeout{Making LoT Page}% \th@LoTpage% _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: lyx & hyperref error
>>Date: Tue, 25 Sep 2001 07:12:33 +0200 > >E GCP wrote: >> >>Attached are the example files. All are taken from the > >>Thesis-Style >>for LyX without modifications, except in the LaTeX >>preamble of demo3.lyx >>to >>add the hyperref package. >> >>Install the Thesis class, open in lyx the demo3.lyx file then >>File->Export->PDF >> >>demo3.lyx, demobody.lyx, and demo-pre.tex have to be in the same >> >>directory > >there are problems togehther with the hyperref-package. >comment this out in latex preamble and all works well. > >maybe that I have on weekend some time to look, whats >going on in the package. > >Herbert Thanks. But I knew that. The problem is that what is the point of a pdf file without all the hyperlinks? Worthless if you ask me. I would greatly appreciate if you could look at this problem more closely. My knowledge of LaTeX is nil. Also note that when you uncomment the \SuspendPrologue at the bottom of the demo-pre.tex file, hyperref works fine. However, all the preliminary pages are not printed, and I think that strangely enough then it doesn't quite follow the thesis.cls layout. Thanks again, Enrique _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: lyx & hyperref error
E GCP wrote: > > Attached are the example files. All are taken from the Thesis-Style for LyX > without modifications, except in the LaTeX preamble of demo3.lyx to add the > hyperref package. > > Install the Thesis class, open in lyx the demo3.lyx file then > File->Export->PDF > > demo3.lyx, demobody.lyx, and demo-pre.tex have to be in the same directory there are problems togehther with the hyperref-package. comment this out in latex preamble and all works well. maybe that I have on weekend some time to look, whats going on in the package. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: lyx & hyperref error
E GCP wrote: > > "You'll still need to type in your prologue [see section [sec:prologue]] by > hand and include it into the preamble. I'd recommend putting it all in a > separate text file and using the "\input{...}" command to include it in the > preamble." can you send a smal example-file which shows the behaviour? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: lyx & hyperref error
Herbert, Thanks. But yes that is what Weiss says in his document: "You'll still need to type in your prologue [see section [sec:prologue]] by hand and include it into the preamble. I'd recommend putting it all in a separate text file and using the "\input{...}" command to include it in the preamble." This is the Thesis-Style for LyX in your very helpful LyX-Tips website. -Enrique > >E GCP wrote: > > > > > > \input{dissertation_prologue.tex} > > >are you sure, that this should be in preamble? > >Herbert > > >-- _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: lyx & hyperref error
E GCP wrote: > > > \input{dissertation_prologue.tex} > are you sure, that this should be in preamble? Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
lyx & hyperref error
Hi! Could it be an unbalanced "}" in the class document? In this case I'm using the thesis.cls of John Weiss. I cannot find any unbalanced } in the LaTeX preamble. Is there a quick way to check for unbalanced "}" in a long document (i.e. thesis.cls). Thanks, egcp --- message posted before I'm a LyX newbie and I need some help. I'm writing a document and would like to use hyperref. I added "\usepackage[dvips]{hyperref}" at the end of my LaTeX preamble, but when I try to export the document to PDF I get two errors, right at the top of the document. The errors are: 1) TeX capacity exceeded, sorry [input stack size=1500]. \select@language {english} 2) Argument of \select@language has an extra }. \select@language {english} What does all these mean? What am I doing wrong? I cannot find any extra "}" Here is my LaTeX preamble: % Change for bibliography style \usepackage[square]{natbib} \renewcommand{\cite}{\citep} % for pdf T1 fonts of CM \usepackage{ae,aecompl} \usepackage[dvips]{hyperref} \input{dissertation_prologue.tex} I'm using the Thesis-Style for LyX of John Weiss Thesis.cls - LaTeX2e class for CU Theses Thanks, egcp --- end of message -- _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
lyx & hyperref error
Hi! I'm a LyX newbie and I need some help. I'm writing a document and would like to use hyperref. I added "\usepackage[dvips]{hyperref}" at the end of my LaTeX preamble, but when I try to export the document to PDF I get two errors, right at the top of the document. The errors are: 1) TeX capacity exceeded, sorry [input stack size=1500]. \select@language {english} 2) Argument of \select@language has an extra }. \select@language {english} What does all these mean? What am I doing wrong? I cannot find any extra "}" Here is my LaTeX preamble: % Change for bibliography style \usepackage[square]{natbib} \renewcommand{\cite}{\citep} % for pdf T1 fonts of CM \usepackage{ae,aecompl} \usepackage[dvips]{hyperref} \input{dissertation_prologue.tex} I'm using the Thesis-Style for LyX of John Weiss Thesis.cls - LaTeX2e class for CU Theses Thanks, egcp _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: lyx & hyperref
E GCP wrote: > I'm a LyX newbie and I need some help. > I'm writing a document and would like to use hyperref. > I added "\usepackage{hyperref}" at the end of my LaTeX preamble, but when I > try to export the document to PDF I get two errors, right at the top of the > document. > > The errors are: > 1) TeX capacity exceeded, sorry [input stack size=1500]. > \select@language > {english} I suppose you forgot an parenthesis in the preamble. send it to the list, if you doesn't find the error. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
lyx & hyperref
Hi! I'm a LyX newbie and I need some help. I'm writing a document and would like to use hyperref. I added "\usepackage{hyperref}" at the end of my LaTeX preamble, but when I try to export the document to PDF I get two errors, right at the top of the document. The errors are: 1) TeX capacity exceeded, sorry [input stack size=1500]. \select@language {english} 2) Argument of \select@language has an extra }. \select@language {english} What does all these mean? What am I doing wrong? Thanks, egcp _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp