Re: Preface/Bibliography missing from TOC

1999-10-13 Thread Lars Gullik Bjønnes

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

1999-10-13 Thread Jean-Pierre.Chretien


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

1999-10-13 Thread Alex

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

1999-10-13 Thread Alex

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

1999-10-13 Thread Bruce Momjian

 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

1999-10-13 Thread Tony Dancer

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



Re: Preface/Bibliography missing from TOC

1999-10-13 Thread Lars Gullik Bjønnes

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

1999-10-13 Thread Jean-Pierre.Chretien


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

1999-10-13 Thread Alex

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

1999-10-13 Thread Alex

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

1999-10-13 Thread Bruce Momjian

 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

1999-10-13 Thread Tony Dancer

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



Re: Preface/Bibliography missing from TOC

1999-10-13 Thread Lars Gullik Bjønnes

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

1999-10-13 Thread Jean-Pierre.Chretien


>>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

1999-10-13 Thread Alex

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

1999-10-13 Thread Alex

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

1999-10-13 Thread Bruce Momjian

> 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

1999-10-13 Thread Tony Dancer

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