Re: Bibliography not in ToC [RESOLVED]
Rich Shepard via lyx-users said on Tue, 14 Dec 2021 13:23:05 -0800 (PST) >Why it did not take when I changed the bibliography style I've no >idea. But the reconfigure forced lyx to show me there were errors in >the .bib file. When troubleshooting, I always texhash;reconfigure; and then do whatever. The extra 90 seconds is well worth it, because a misleading diagnostic test can cost hours. By doing it this way, I never need to tax my brain wondering whether a texhash and/or reconfigure is necessary. My troubleshooting is usually done from a looping shellscript. SteveT Steve Litt Spring 2021 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC [RESOLVED]
On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote: no, switching to biblatex (without natbib) and deleting the option below was what I changed. Look into the status bar, what the biber runs reports. Herbert, That's what I had done, too. Yet, I ran 'Reconfigure' and when I tried to compile the document lyx pointed me to three errors in my .bib file. Somehow, the authoryear citation at the beginning of three entries disappeared. I replaced them, recompiled, and the problem is fixed: bibliography is present and shown in the ToC. Why it did not take when I changed the bibliography style I've no idea. But the reconfigure forced lyx to show me there were errors in the .bib file. Thanks for the help. Stay well, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
Am 14.12.21 um 22:11 schrieb Rich Shepard via lyx-users: On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote: not in my doc Regardless, in your version of the .lyx file cite-engine is biblatex while in mine it's biblatex-natbib, but I changed the bibliography style from the latter to the former and saved the change. Do I need to reconfigure LyX to get the change to take effect? Rich, no, switching to biblatex (without natbib) and deleting the option below was what I changed. Look into the status bar, what the biber runs reports. Herbert -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote: not in my doc Herbert, Regardless, in your version of the .lyx file cite-engine is biblatex while in mine it's biblatex-natbib, but I changed the bibliography style from the latter to the former and saved the change. Do I need to reconfigure LyX to get the change to take effect? Thanks, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
Am 14.12.21 um 21:30 schrieb Rich Shepard via lyx-users: On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote: then the biber run is missing. Try the following: you have a citation (the last one) which is not in the bib file. Delete it and run the document again. Does the TOC-entry appears? I'm not following. There are four citations in the text, each in its own chapter, and four entries in mwe.bib. The last citation is Shepard2016 and that's in the .bib file. Rich, not in my doc What is the control window The control window is under the text area. You have to enable it with the menu view->... Is that what I've known as the status bar? Ah yes, you are right. Attached your working example. HErbert<> -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote: then the biber run is missing. Try the following: you have a citation (the last one) which is not in the bib file. Delete it and run the document again. Does the TOC-entry appears? Herbert: I'm not following. There are four citations in the text, each in its own chapter, and four entries in mwe.bib. The last citation is Shepard2016 and that's in the .bib file. What is the control window The control window is under the text area. You have to enable it with the menu view->... Is that what I've known as the status bar? Regards, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
Am 14.12.21 um 21:17 schrieb Rich Shepard via lyx-users: On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote: You have a wrong option in the document->settings->bibliography: Delete the mergedate=compact. However, using the natbib mode is something from the last millenium ... you should simply use the authoryear style of biblatex. Thanks. I don't know where the mergedate=compact came from. I changed the style from biblatex(natbib mode) to biblatex. It still does not output the bibliography nor place that entry in the ToC. Rich, then the biber run is missing. Try the following: you have a citation (the last one) which is not in the bib file. Delete it and run the document again. Does the TOC-entry appears? If you open the controll window in LyX then you see the errors of the biber run, too! What is the control window? The control window is under the text area. You have to enable it with the menu view->... Btw: - your format was defined as pdf (pdftex), but it should be pdf (luatex) In Settings -> Formats I have the output format set to PDF (pdflatex). I've no idea what luatex does) - do not use the line \usepackage{luainputenc}, it is superflous There is no such line in the preamble: Ah, maybe that it was the LyX internal preamble. I'll have look at tomorrow. Herbert -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
On Tue, 14 Dec 2021, Herbert Voss via lyx-users wrote: You have a wrong option in the document->settings->bibliography: Delete the mergedate=compact. However, using the natbib mode is something from the last millenium ... you should simply use the authoryear style of biblatex. Herbert, Thanks. I don't know where the mergedate=compact came from. I changed the style from biblatex(natbib mode) to biblatex. It still does not output the bibliography nor place that entry in the ToC. If you open the controll window in LyX then you see the errors of the biber run, too! What is the control window? Btw: - your format was defined as pdf (pdftex), but it should be pdf (luatex) In Settings -> Formats I have the output format set to PDF (pdflatex). I've no idea what luatex does) - do not use the line \usepackage{luainputenc}, it is superflous There is no such line in the preamble: \date{} \usepackage{mathpazo} \usepackage{gensymb} \usepackage{graphicx,relsize} \usepackage{scrlayer-scrpage} \pagestyle{scrheadings} \usepackage{xurl} \refoot{Applied Ecosystem Services, LLC} \lofoot{Applied Ecosystem Services, LLC} \automark*{section} - do not use \usepackage[T1]{fontenc}, it is only for pdflatex and _not_ xelatex/lualatex Ditto above. I have never used xeletax nor luatex. Regards, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
Am 14.12.21 um 20:51 schrieb Herbert Voss via lyx-users: Am 14.12.21 um 19:58 schrieb Rich Shepard via lyx-users: Running LyX-2.3.6.1 on Slackware64-14.2. The bibliography settings at the end of the paper indicate the bibliography should be added to the end of the Table of Contents. It's not. Do I need to explicitly add that command to the preamble? I don't recall having this issue before and find no reference to it in my saved threads of the mail list. A MWE is attached: .lyx, .pdf, and .bib. I look forward to learning what I've done incorrectly (or neglected to do at all.) You have a wrong option in the document->settings->bibliography: the image was missing ... -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Bibliography not in ToC
Am 14.12.21 um 19:58 schrieb Rich Shepard via lyx-users: Running LyX-2.3.6.1 on Slackware64-14.2. The bibliography settings at the end of the paper indicate the bibliography should be added to the end of the Table of Contents. It's not. Do I need to explicitly add that command to the preamble? I don't recall having this issue before and find no reference to it in my saved threads of the mail list. A MWE is attached: .lyx, .pdf, and .bib. I look forward to learning what I've done incorrectly (or neglected to do at all.) You have a wrong option in the document->settings->bibliography: Delete the mergedate=compact. However, using the natbib mode is something from the last millenium ... you should simply use the authoryear style of biblatex. If you open the controll window in LyX then you see the errors of the biber run, too! Btw: - your format was defined as pdf (pdftex), but it should be pdf (luatex) - do not use the line \usepackage{luainputenc}, it is superflous - do not use \usepackage[T1]{fontenc}, it is only for pdflatex and _not_ xelatex/lualatex HErbert -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Bibliography not in ToC
Running LyX-2.3.6.1 on Slackware64-14.2. The bibliography settings at the end of the paper indicate the bibliography should be added to the end of the Table of Contents. It's not. Do I need to explicitly add that command to the preamble? I don't recall having this issue before and find no reference to it in my saved threads of the mail list. A MWE is attached: .lyx, .pdf, and .bib. I look forward to learning what I've done incorrectly (or neglected to do at all.) TIA, Rich mwe.tgz Description: GNU Zip compressed data -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Bibliography headers and TOC
Hi all! I'm using Lyx 1.6.0 to write my master thesis. It's all fine, except two points for which I dont' find solutions neither in the archives nor other forums. 1- Bibliography header. I'm using document class BOOK and fancy headers. Bilbiografy appears capitalized and both in upper-left and upper-right corners, which is annoying for me. I would like to have it not capitalized and just in one corner. 2- Bibliography and TOC. Ok, just marking the option in the Bibtex Generated Bibliography, it does the correct TOC, but when using the generated PDF and clicking there in toc, the hyperlink brings me to the chapter before. Thanks in advance Pablo
Bibliography headers and TOC
Hi all! I'm using Lyx 1.6.0 to write my master thesis. It's all fine, except two points for which I dont' find solutions neither in the archives nor other forums. 1- Bibliography header. I'm using document class BOOK and fancy headers. Bilbiografy appears capitalized and both in upper-left and upper-right corners, which is annoying for me. I would like to have it not capitalized and just in one corner. 2- Bibliography and TOC. Ok, just marking the option in the Bibtex Generated Bibliography, it does the correct TOC, but when using the generated PDF and clicking there in toc, the hyperlink brings me to the chapter before. Thanks in advance Pablo
Bibliography headers and TOC
Hi all! I'm using Lyx 1.6.0 to write my master thesis. It's all fine, except two points for which I dont' find solutions neither in the archives nor other forums. 1- Bibliography header. I'm using document class BOOK and fancy headers. Bilbiografy appears capitalized and both in upper-left and upper-right corners, which is annoying for me. I would like to have it not capitalized and just in one corner. 2- Bibliography and TOC. Ok, just marking the option in the Bibtex Generated Bibliography, it does the correct TOC, but when using the generated PDF and clicking there in toc, the hyperlink brings me to the chapter before. Thanks in advance Pablo
Preface/Bibliography missing from TOC
Can someone suggest why an un-numbered Chapter called "Preface", and my Bibliography section do not appear in the table of contents(TOC)? They don't appear in the TOC popup box, nor do they appear in the printed TOC pages. There appear as pages in the printout, just not in the TOC. Any ideas? I am starting a book using LyX 1.04. The book is on PostgreSQL, www.postgresql.org. -- Bruce Momjian| http://www.op.net/~candle [EMAIL PROTECTED]| (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026
Re: Preface/Bibliography missing from TOC
Bruce Momjian [EMAIL PROTECTED] writes: | Can someone suggest why an un-numbered Chapter called "Preface", and my | Bibliography section do not appear in the table of contents(TOC)? They | don't appear in the TOC popup box, nor do they appear in the printed TOC | pages. There appear as pages in the printout, just not in the TOC. This is a LaTeX feature. If you want these headings in the TOC anyway you have to add them manually, that is done by adding a line of tex magic right before or right after the hading in question: [and now to I remember the magic?] No...I don't remember the magic, and my LaTeX book is several meters away... I am sure somebody else will provide the needed magic. Anyway, this is not a problem and is easy solvable. Lgb
Re: Preface/Bibliography missing from TOC
To: [EMAIL PROTECTED] Subject: Re: Preface/Bibliography missing from TOC From: [EMAIL PROTECTED] (Lars Gullik Bjønnes) Date: 13 Oct 1999 15:10:43 +0200 Bruce Momjian [EMAIL PROTECTED] writes: | Can someone suggest why an un-numbered Chapter called "Preface", and my | Bibliography section do not appear in the table of contents(TOC)? They | don't appear in the TOC popup box, nor do they appear in the printed TOC | pages. There appear as pages in the printout, just not in the TOC. This is a LaTeX feature. If you want these headings in the TOC anyway you have to add them manually, that is done by adding a line of tex magic right before or right after the hading in question: [and now to I remember the magic?] No...I don't remember the magic, and my LaTeX book is several meters away... I am sure somebody else will provide the needed magic. Anyway, this is not a problem and is easy solvable. Lgb Here is one way: add \newcommand{\tocchap}[1]{\addcontentsline{toc}{chapter}{\protect\numberline{}#1}} in the preamble, and mark \tocchap{Whatever title} after the starred chapter or biblio, lof or lot reference section If you want the toc entry look like an entry section, define a similar \tocsect command. Regards -- Jean-Pierre
Re: Preface/Bibliography missing from TOC
Bruce Momjian wrote: Can someone suggest why an un-numbered Chapter called "Preface", and my Bibliography section do not appear in the table of contents(TOC)? They don't appear in the TOC popup box, nor do they appear in the printed TOC pages. There appear as pages in the printout, just not in the TOC. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye Alessandro Any ideas? I am starting a book using LyX 1.04. The book is on PostgreSQL, www.postgresql.org.
Re: Preface/Bibliography missing from TOC
Jean-Marc Lasgouttes wrote: "Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars Bruce Momjian [EMAIL PROTECTED] writes: | Can someone Lars suggest why an un-numbered Chapter called "Preface", and my | Lars Bibliography section do not appear in the table of Lars contents(TOC)? They | don't appear in the TOC popup box, nor do Lars they appear in the printed TOC | pages. There appear as pages in Lars the printout, just not in the TOC. Lars This is a LaTeX feature. If you want these headings in the TOC Lars anyway you have to add them manually, that is done by adding a Lars line of tex magic right before or right after the hading in Lars question: Lars [and now to I remember the magic?] Lars No...I don't remember the magic, and my LaTeX book is several Lars meters away... Lars I am sure somebody else will provide the needed magic. The best solution (for the preface anyway) is to add \frontmatter at the beginning of the document \mainmatter when serious things begin, and \backmatter before bibliography and such stuff. This will not give you correct result for bibliography, so you will have to find out what the magic is, after all... I think I can help with the magic... but my server today doesn't working properly... I hope this msg will go to his destination. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye Alessandro
Re: Preface/Bibliography missing from TOC
Bruce Momjian wrote: Can someone suggest why an un-numbered Chapter called "Preface", and my Bibliography section do not appear in the table of contents(TOC)? They don't appear in the TOC popup box, nor do they appear in the printed TOC pages. There appear as pages in the printout, just not in the TOC. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye [Hope it OK I am Cc'ing to the LyX list.] After looking at the latex output, I saw that this was a Latex problem, and found the extact text you describe in the Usenet archives, added it for Preface, and it works great. Nice trick. [I have Lamports book and the LaTeX Companion on order, so I should be asking fewer questions in the future. Also, I will be try to mention LyX/LaTeX in the Preface somewhere.] However, I couldn't figure out how to get put the Latex inline code in the bibliography. I can put it before the bibliography starts, but that doesn't help because it shows the wrong page number. I can put it at the end of the bibliography, but that doesn't work if the bibliography is more than one page in length. While my original problem was LaTeX-related, this may be LyX-specific. My solution was to put \addcontentsline...{} as TeX-Style just before the first bibliographic entry, so it reads: [1]\addcontentsline...{}Author, Title ^ TeX-style here Seems like that is the solution. -- Bruce Momjian| http://www.op.net/~candle [EMAIL PROTECTED]| (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026
Re: Preface/Bibliography missing from TOC
On 13 Oct, Bruce Momjian wrote: However, I couldn't figure out how to get put the Latex inline code in the bibliography. I can put it before the bibliography starts, but that doesn't help because it shows the wrong page number. I can put it at the end of the bibliography, but that doesn't work if the bibliography is more than one page in length. one way of solving this page number problem is: \addtocounter{page}{n} where n is the number of pages you wish to add to the page counter. This is useful when you have added the bibliography to the toc, but have appendecies following the bibliography and want the page numbers on them to be correct, as I found out recently. Tony
Preface/Bibliography missing from TOC
Can someone suggest why an un-numbered Chapter called "Preface", and my Bibliography section do not appear in the table of contents(TOC)? They don't appear in the TOC popup box, nor do they appear in the printed TOC pages. There appear as pages in the printout, just not in the TOC. Any ideas? I am starting a book using LyX 1.04. The book is on PostgreSQL, www.postgresql.org. -- Bruce Momjian| http://www.op.net/~candle [EMAIL PROTECTED]| (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026
Re: Preface/Bibliography missing from TOC
Bruce Momjian [EMAIL PROTECTED] writes: | Can someone suggest why an un-numbered Chapter called "Preface", and my | Bibliography section do not appear in the table of contents(TOC)? They | don't appear in the TOC popup box, nor do they appear in the printed TOC | pages. There appear as pages in the printout, just not in the TOC. This is a LaTeX feature. If you want these headings in the TOC anyway you have to add them manually, that is done by adding a line of tex magic right before or right after the hading in question: [and now to I remember the magic?] No...I don't remember the magic, and my LaTeX book is several meters away... I am sure somebody else will provide the needed magic. Anyway, this is not a problem and is easy solvable. Lgb
Re: Preface/Bibliography missing from TOC
To: [EMAIL PROTECTED] Subject: Re: Preface/Bibliography missing from TOC From: [EMAIL PROTECTED] (Lars Gullik Bjønnes) Date: 13 Oct 1999 15:10:43 +0200 Bruce Momjian [EMAIL PROTECTED] writes: | Can someone suggest why an un-numbered Chapter called "Preface", and my | Bibliography section do not appear in the table of contents(TOC)? They | don't appear in the TOC popup box, nor do they appear in the printed TOC | pages. There appear as pages in the printout, just not in the TOC. This is a LaTeX feature. If you want these headings in the TOC anyway you have to add them manually, that is done by adding a line of tex magic right before or right after the hading in question: [and now to I remember the magic?] No...I don't remember the magic, and my LaTeX book is several meters away... I am sure somebody else will provide the needed magic. Anyway, this is not a problem and is easy solvable. Lgb Here is one way: add \newcommand{\tocchap}[1]{\addcontentsline{toc}{chapter}{\protect\numberline{}#1}} in the preamble, and mark \tocchap{Whatever title} after the starred chapter or biblio, lof or lot reference section If you want the toc entry look like an entry section, define a similar \tocsect command. Regards -- Jean-Pierre
Re: Preface/Bibliography missing from TOC
Bruce Momjian wrote: Can someone suggest why an un-numbered Chapter called "Preface", and my Bibliography section do not appear in the table of contents(TOC)? They don't appear in the TOC popup box, nor do they appear in the printed TOC pages. There appear as pages in the printout, just not in the TOC. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye Alessandro Any ideas? I am starting a book using LyX 1.04. The book is on PostgreSQL, www.postgresql.org.
Re: Preface/Bibliography missing from TOC
Jean-Marc Lasgouttes wrote: "Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars Bruce Momjian [EMAIL PROTECTED] writes: | Can someone Lars suggest why an un-numbered Chapter called "Preface", and my | Lars Bibliography section do not appear in the table of Lars contents(TOC)? They | don't appear in the TOC popup box, nor do Lars they appear in the printed TOC | pages. There appear as pages in Lars the printout, just not in the TOC. Lars This is a LaTeX feature. If you want these headings in the TOC Lars anyway you have to add them manually, that is done by adding a Lars line of tex magic right before or right after the hading in Lars question: Lars [and now to I remember the magic?] Lars No...I don't remember the magic, and my LaTeX book is several Lars meters away... Lars I am sure somebody else will provide the needed magic. The best solution (for the preface anyway) is to add \frontmatter at the beginning of the document \mainmatter when serious things begin, and \backmatter before bibliography and such stuff. This will not give you correct result for bibliography, so you will have to find out what the magic is, after all... I think I can help with the magic... but my server today doesn't working properly... I hope this msg will go to his destination. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye Alessandro
Re: Preface/Bibliography missing from TOC
Bruce Momjian wrote: Can someone suggest why an un-numbered Chapter called "Preface", and my Bibliography section do not appear in the table of contents(TOC)? They don't appear in the TOC popup box, nor do they appear in the printed TOC pages. There appear as pages in the printout, just not in the TOC. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye [Hope it OK I am Cc'ing to the LyX list.] After looking at the latex output, I saw that this was a Latex problem, and found the extact text you describe in the Usenet archives, added it for Preface, and it works great. Nice trick. [I have Lamports book and the LaTeX Companion on order, so I should be asking fewer questions in the future. Also, I will be try to mention LyX/LaTeX in the Preface somewhere.] However, I couldn't figure out how to get put the Latex inline code in the bibliography. I can put it before the bibliography starts, but that doesn't help because it shows the wrong page number. I can put it at the end of the bibliography, but that doesn't work if the bibliography is more than one page in length. While my original problem was LaTeX-related, this may be LyX-specific. My solution was to put \addcontentsline...{} as TeX-Style just before the first bibliographic entry, so it reads: [1]\addcontentsline...{}Author, Title ^ TeX-style here Seems like that is the solution. -- Bruce Momjian| http://www.op.net/~candle [EMAIL PROTECTED]| (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026
Re: Preface/Bibliography missing from TOC
On 13 Oct, Bruce Momjian wrote: However, I couldn't figure out how to get put the Latex inline code in the bibliography. I can put it before the bibliography starts, but that doesn't help because it shows the wrong page number. I can put it at the end of the bibliography, but that doesn't work if the bibliography is more than one page in length. one way of solving this page number problem is: \addtocounter{page}{n} where n is the number of pages you wish to add to the page counter. This is useful when you have added the bibliography to the toc, but have appendecies following the bibliography and want the page numbers on them to be correct, as I found out recently. Tony
Preface/Bibliography missing from TOC
Can someone suggest why an un-numbered Chapter called "Preface", and my Bibliography section do not appear in the table of contents(TOC)? They don't appear in the TOC popup box, nor do they appear in the printed TOC pages. There appear as pages in the printout, just not in the TOC. Any ideas? I am starting a book using LyX 1.04. The book is on PostgreSQL, www.postgresql.org. -- Bruce Momjian| http://www.op.net/~candle [EMAIL PROTECTED]| (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026
Re: Preface/Bibliography missing from TOC
Bruce Momjian <[EMAIL PROTECTED]> writes: | Can someone suggest why an un-numbered Chapter called "Preface", and my | Bibliography section do not appear in the table of contents(TOC)? They | don't appear in the TOC popup box, nor do they appear in the printed TOC | pages. There appear as pages in the printout, just not in the TOC. This is a LaTeX feature. If you want these headings in the TOC anyway you have to add them manually, that is done by adding a line of tex magic right before or right after the hading in question: [and now to I remember the magic?] No...I don't remember the magic, and my LaTeX book is several meters away... I am sure somebody else will provide the needed magic. Anyway, this is not a problem and is easy solvable. Lgb
Re: Preface/Bibliography missing from TOC
>>To: [EMAIL PROTECTED] >>Subject: Re: Preface/Bibliography missing from TOC >>From: [EMAIL PROTECTED] (Lars Gullik Bjønnes) >>Date: 13 Oct 1999 15:10:43 +0200 >> >>Bruce Momjian <[EMAIL PROTECTED]> writes: >> >>| Can someone suggest why an un-numbered Chapter called "Preface", and my >>| Bibliography section do not appear in the table of contents(TOC)? They >>| don't appear in the TOC popup box, nor do they appear in the printed TOC >>| pages. There appear as pages in the printout, just not in the TOC. >> >>This is a LaTeX feature. If you want these headings in the TOC anyway >>you have to add them manually, that is done by adding a line of tex >>magic right before or right after the hading in question: >> >>[and now to I remember the magic?] >> >>No...I don't remember the magic, and my LaTeX book is several meters >>away... >> >>I am sure somebody else will provide the needed magic. >> >>Anyway, this is not a problem and is easy solvable. >> >> Lgb Here is one way: add \newcommand{\tocchap}[1]{\addcontentsline{toc}{chapter}{\protect\numberline{}#1}} in the preamble, and mark \tocchap{Whatever title} after the starred chapter or biblio, lof or lot reference section If you want the toc entry look like an entry section, define a similar \tocsect command. Regards -- Jean-Pierre
Re: Preface/Bibliography missing from TOC
Bruce Momjian wrote: > Can someone suggest why an un-numbered Chapter called "Preface", and my > Bibliography section do not appear in the table of contents(TOC)? They > don't appear in the TOC popup box, nor do they appear in the printed TOC > pages. There appear as pages in the printout, just not in the TOC. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye Alessandro > > > Any ideas? I am starting a book using LyX 1.04. The book is on > PostgreSQL, www.postgresql.org. >
Re: Preface/Bibliography missing from TOC
Jean-Marc Lasgouttes wrote: > > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Lars> Bruce Momjian <[EMAIL PROTECTED]> writes: | Can someone > Lars> suggest why an un-numbered Chapter called "Preface", and my | > Lars> Bibliography section do not appear in the table of > Lars> contents(TOC)? They | don't appear in the TOC popup box, nor do > Lars> they appear in the printed TOC | pages. There appear as pages in > Lars> the printout, just not in the TOC. > > Lars> This is a LaTeX feature. If you want these headings in the TOC > Lars> anyway you have to add them manually, that is done by adding a > Lars> line of tex magic right before or right after the hading in > Lars> question: > > Lars> [and now to I remember the magic?] > > Lars> No...I don't remember the magic, and my LaTeX book is several > Lars> meters away... > > Lars> I am sure somebody else will provide the needed magic. > > The best solution (for the preface anyway) is to add > \frontmatter > at the beginning of the document > \mainmatter > when serious things begin, and > \backmatter > before bibliography and such stuff. This will not give you correct > result for bibliography, so you will have to find out what the magic > is, after all... I think I can help with the magic... but my server today doesn't working properly... I hope this msg will go to his destination. Tables of contents entries are generated only by the sectioning commands. In order to add a new entry you should type in Tex mode the following command: \addcontentsline{toc}{sec_unit}{entry} where sec_unit is chapter, section... as you want the appearance in the toc and entry is Preface, Bibliography, Goofy or anything else! Put the command just after the right heading in your document (but check the page number in the toc... in the past were reported some problems of a wrong page number... so you should adjust the position of the command}. Hope this help. Bye Alessandro
Re: Preface/Bibliography missing from TOC
> Bruce Momjian wrote: > > > Can someone suggest why an un-numbered Chapter called "Preface", and my > > Bibliography section do not appear in the table of contents(TOC)? They > > don't appear in the TOC popup box, nor do they appear in the printed TOC > > pages. There appear as pages in the printout, just not in the TOC. > > Tables of contents entries are generated only by the sectioning commands. In > order to add a new entry you should type in Tex mode the following command: > \addcontentsline{toc}{sec_unit}{entry} > where sec_unit is chapter, section... as you want the appearance in the toc > and entry is Preface, Bibliography, Goofy or anything else! > Put the command just after the right heading in your document (but check the > page number in the toc... in the past were reported some problems of a wrong > page number... so you should adjust the position of the command}. > Hope this help. > Bye [Hope it OK I am Cc'ing to the LyX list.] After looking at the latex output, I saw that this was a Latex problem, and found the extact text you describe in the Usenet archives, added it for Preface, and it works great. Nice trick. [I have Lamports book and the LaTeX Companion on order, so I should be asking fewer questions in the future. Also, I will be try to mention LyX/LaTeX in the Preface somewhere.] However, I couldn't figure out how to get put the Latex inline code in the bibliography. I can put it before the bibliography starts, but that doesn't help because it shows the wrong page number. I can put it at the end of the bibliography, but that doesn't work if the bibliography is more than one page in length. While my original problem was LaTeX-related, this may be LyX-specific. My solution was to put \addcontentsline...{} as TeX-Style just before the first bibliographic entry, so it reads: [1]\addcontentsline...{}Author, Title ^ TeX-style here Seems like that is the solution. -- Bruce Momjian| http://www.op.net/~candle [EMAIL PROTECTED]| (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026
Re: Preface/Bibliography missing from TOC
On 13 Oct, Bruce Momjian wrote: > However, I couldn't figure out how to get put the Latex inline code in > the bibliography. I can put it before the bibliography starts, but that > doesn't help because it shows the wrong page number. I can put it at > the end of the bibliography, but that doesn't work if the bibliography > is more than one page in length. one way of solving this page number problem is: \addtocounter{page}{n} where n is the number of pages you wish to add to the page counter. This is useful when you have added the bibliography to the toc, but have appendecies following the bibliography and want the page numbers on them to be correct, as I found out recently. Tony