Featured Book

LaTeX Beginners Guide

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 4 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

appendix package

Add tags Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).

appendix package

Postby spiegboy on Sun Jun 21st, 2009

Appendix package is supposed to set the counter of chapter to zero according to its documentation. However the first chapter remains 1 when I tried it

Code: Select all  •  Open in writeLaTeX
\documentclass[11pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{lipsum,appendix}

\begin{document}
\tableofcontents

\chapter{Diplomatic Memoirs}
\lipsum[1]
\chapter{Student Memoirs}
\lipsum[2-3]
\appendix
\addappheadtotoc
\chapter{published papers
} % appeared as appendix A
\lipsum[2-3]
%\chapter{Equation deduction} % appeared as appendix B
%\lipsum[2-3]
\end{document}
spiegboy
 
Posts: 120
Joined: Thu Dec 6th, 2007

Re: appendix package

Postby localghost on Mon Jun 22nd, 2009

I don't see the problem. Your example works as expected. You should describe you own expectations more clearly.


Best regards
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: appendix package

Postby spiegboy on Mon Jun 22nd, 2009

localghost wrote:I don't see the problem. Your example works as expected. You should describe you own expectations more clearly.


Best regards
Thorsten

Okay, I expect chapter starts counting from zero not from one. The appendix package documentation states it redefines the chapter counter as I expected. But it doesnt work for the codes I put on. Is there any solution?

Cheers
spiegboy
 
Posts: 120
Joined: Thu Dec 6th, 2007

Re: appendix package

Postby frabjous on Tue Jun 23rd, 2009

I believe what's going on here is that the chapter counter does start at 0, but goes up to 1 when you add the first \chapter{...} command. So if you want the first one to be chapter 0, you need to start it off with -1.

Code: Select all  •  Open in writeLaTeX
\documentclass[11pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{lipsum,appendix}

\begin{document}
\tableofcontents
\setcounter{chapter}{-1}
\chapter{Diplomatic Memoirs}
\lipsum[1]
\chapter{Student Memoirs}
\lipsum[2-3]
\appendix
\addappheadtotoc
\chapter{published papers
} % appeared as appendix A
\lipsum[2-3]
%\chapter{Equation deduction} % appeared as appendix B
%\lipsum[2-3]
\end{document}
User avatar
frabjous
 
Posts: 2065
Joined: Fri Mar 6th, 2009
Location: Amherst, MA

Re: appendix package

Postby spiegboy on Wed Jun 24th, 2009

oh, i see.
How smart!!
cheers
spiegboy
 
Posts: 120
Joined: Thu Dec 6th, 2007


Return to Page Layout

Who is online

Users browsing this forum: No registered users and 4 guests