remove bibliography from TOC

2013-09-19 Thread Patrick Dupre
Hello,

I am using the article class.
Putting the bibliography in the appendix, it is also shown in the TOC.
I have done as recommanded:

The following code will remove the phrase Appendix.  in front of 
Bibliography in the table of contents when using the LaTeX amsbook class or 
the LyX document class book (AMS).

\usepackage{xstring}
\renewcommand{\tocappendix}[3]{%
  \indentlabel{\IfStrEq{#3}{Bibliography}{}{#1}\@ifnotempty{#2}{ #2.\quad}}#3}

But I get an error:
\tocappendix undefined, because I to not use the AMS package I guess.

Thus, what could be another option?

Thank.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: remove bibliography from TOC

2013-09-19 Thread Richard Heck

On 09/19/2013 09:33 AM, Patrick Dupre wrote:

Hello,

I am using the article class.
Putting the bibliography in the appendix, it is also shown in the TOC.
I have done as recommanded:

The following code will remove the phrase Appendix.  in front of 
Bibliography in the table of contents when using the LaTeX amsbook class or the LyX 
document class book (AMS).

\usepackage{xstring}
\renewcommand{\tocappendix}[3]{%
   \indentlabel{\IfStrEq{#3}{Bibliography}{}{#1}\@ifnotempty{#2}{ #2.\quad}}#3}

But I get an error:
\tocappendix undefined, because I to not use the AMS package I guess.

Thus, what could be another option?


Try using \appendixname, which is what article.cls uses for this 
purpose, I think.


Richard



remove bibliography from TOC

2013-09-19 Thread Patrick Dupre
Hello,

I am using the article class.
Putting the bibliography in the appendix, it is also shown in the TOC.
I have done as recommanded:

The following code will remove the phrase Appendix.  in front of 
Bibliography in the table of contents when using the LaTeX amsbook class or 
the LyX document class book (AMS).

\usepackage{xstring}
\renewcommand{\tocappendix}[3]{%
  \indentlabel{\IfStrEq{#3}{Bibliography}{}{#1}\@ifnotempty{#2}{ #2.\quad}}#3}

But I get an error:
\tocappendix undefined, because I to not use the AMS package I guess.

Thus, what could be another option?

Thank.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: remove bibliography from TOC

2013-09-19 Thread Richard Heck

On 09/19/2013 09:33 AM, Patrick Dupre wrote:

Hello,

I am using the article class.
Putting the bibliography in the appendix, it is also shown in the TOC.
I have done as recommanded:

The following code will remove the phrase Appendix.  in front of 
Bibliography in the table of contents when using the LaTeX amsbook class or the LyX 
document class book (AMS).

\usepackage{xstring}
\renewcommand{\tocappendix}[3]{%
   \indentlabel{\IfStrEq{#3}{Bibliography}{}{#1}\@ifnotempty{#2}{ #2.\quad}}#3}

But I get an error:
\tocappendix undefined, because I to not use the AMS package I guess.

Thus, what could be another option?


Try using \appendixname, which is what article.cls uses for this 
purpose, I think.


Richard



remove bibliography from TOC

2013-09-19 Thread Patrick Dupre
Hello,

I am using the article class.
Putting the bibliography in the appendix, it is also shown in the TOC.
I have done as recommanded:

The following code will remove the phrase "Appendix. " in front of 
"Bibliography" in the table of contents when using the LaTeX amsbook class or 
the LyX document class book (AMS).

\usepackage{xstring}
\renewcommand{\tocappendix}[3]{%
  \indentlabel{\IfStrEq{#3}{Bibliography}{}{#1}\@ifnotempty{#2}{ #2.\quad}}#3}

But I get an error:
\tocappendix undefined, because I to not use the AMS package I guess.

Thus, what could be another option?

Thank.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: remove bibliography from TOC

2013-09-19 Thread Richard Heck

On 09/19/2013 09:33 AM, Patrick Dupre wrote:

Hello,

I am using the article class.
Putting the bibliography in the appendix, it is also shown in the TOC.
I have done as recommanded:

The following code will remove the phrase "Appendix. " in front of 
"Bibliography" in the table of contents when using the LaTeX amsbook class or the LyX 
document class book (AMS).

\usepackage{xstring}
\renewcommand{\tocappendix}[3]{%
   \indentlabel{\IfStrEq{#3}{Bibliography}{}{#1}\@ifnotempty{#2}{ #2.\quad}}#3}

But I get an error:
\tocappendix undefined, because I to not use the AMS package I guess.

Thus, what could be another option?


Try using \appendixname, which is what article.cls uses for this 
purpose, I think.


Richard