8

I am using following commands for Appendix:

\appendix 
\chapter{First Appendix} 
\input{AppendixA}

and it display chapter but without chapter number.

Frist Appendix  (no appendex number A)
.1 section title
.1.1 subsection title

I browsed this forum and found some tips but they could not solve my problem. if i use these commands:

\appendix \renewcommand{\thechapter}{\arabic{chapter}}
\renewcommand{\thesection}{A.\arabic{section}}

\chapter{First Appendix} 
\input{AppendixA}
\chapter{Second Appendix} 
\input{AppendixB}

then out put is:

Frist Appendix   0 (appendex number starts from 0 not A)
A.1 section title
A.1.1 subsection title

Frist Appendix  0 (it repeat same number with all chapters)
A.1 section title
A.1.1 subsection title

Customized class file can be found here.

May be it is due to conflict with other packages, i am using following packages:

\documentclass[12pt, english, squeezeCommittee, fancyChapter, fancyPart]{these-LUNAM}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{longtable}
\usepackage{amsmath,amssymb,amsfonts,amsthm,stmaryrd}
\usepackage{mathabx}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{lscape}
\usepackage{textcomp}
\usepackage{graphics}
\usepackage{todonotes}
\usepackage{appendix}
\usepackage{paralist} % %for inline  numbering
\usepackage{makeidx}
\makeindex

% to resize tables
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{csvsimple}

% to draw graphics in latex
\usepackage{array}
\newcolumntype{C}{>{$}c<{$}}
\usepackage{tikz} 
\usetikzlibrary{positioning, shapes, arrows}
\tikzset{
    events/.style={ellipse, draw, align=center},
}
\usepackage{glossaries}
\geometry{inner=4.5cm, outer=2.5cm, top=2.5cm, bottom=2cm}
\usepackage{times}
\RequirePackage[bookmarks,%
                colorlinks,%
                urlcolor=blue,%
                citecolor=blue,%
                linkcolor=blue,%
                hyperfigures,%
                pagebackref,%
                pdfcreator=LaTeX,%
                breaklinks=true,%
                pdfpagelayout=SinglePage,%
                bookmarksopen=true,%
                bookmarksopenlevel=2]{hyperref}
\usepackage{url}
\usepackage{hyperref}
\usepackage{breakurl}

% to set 
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

\usepackage{minitoc}
  • Try \renewcommand{\thechapter}{\Alph{chapter}} – karlkoeller Jul 13 '13 at 8:00
  • What class are you actually using? – Ruben Jul 13 '13 at 8:22
  • Thanks @karlkoeller, I used \renewcommand{\thechapter}{A\Alph{chapter}} \renewcommand{\thesection}{A.\arabic{section}} for all chapters so it works. – DataMiner Jul 13 '13 at 8:25
  • 1
    It should work with \renewcommand{\thechapter}{\Alph{chapter}} \renewcommand{\thesection}{\thechapter.\arabic{section}}. Probably the last one is not even needed. – karlkoeller Jul 13 '13 at 9:27
  • 3
    I'm suspecting you have a \backmatter command before \appendix. – egreg Jul 13 '13 at 10:50
10

At the end, your numbering problem of appendices is due to a bad placement of \backmatter which appears too early : all numbering is suppressed after it. Look at this question

The proper ordering for a thesis would be :

\chapter{Perspectives ....}
<some input>
\appendix
\chapter{Comparison table for ....}
<some input>
\chapter{Implementation ....}
<some input>
%------------
\backmatter
\listoftables
\listoffigures
\listofalgorithms
\tableofcontents
%-------------
\bibliographystyle{mybibstylewithoutbst}
\bibliography{mybibfileswithoutbib}
  • Yes, you are right, it was the problem of \backmatter command. It was not at proper place. I am really thankful for your cooperation. – DataMiner Jul 13 '13 at 20:53
2

Doe's it mean that you explicitly involve de A, and B in your definition ?

\renewcommand{\thechapter}{A\Alph{chapter}}
\renewcommand{\thechapter}{B\Alph{chapter}}

It's up to you to do that, but this breaks LaTeX logic, and will likely give strange results in the TOC.

I standard classes report and book, as in Koma-script scrbook, as in memoir, the \appendix command perform the change from the name chapter to appendix and at the same time switch to Alph numbering , starting from A (counter is set to 1).

EDIT : OK I have loaded your class. It is based on the standard book class. It is rather buggy because it loads packages in random order, and also assume that some others have bean loaded by user, the option set is strange looking, and to switch it to english you need to not use the english option !(after all I'm French too !)

Any way, it compiles and with the code (using the assumed packages)

\documentclass[11pt,fancyPart]{these-LUNAM}
\usepackage[francais,english]{babel}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{lipsum} 
\begin{document}
\maketitle
\chapter{The first chapter}
Un petit chapeau pour mon chapitre
\section{a normal section}
\lipsum[1]
\appendix
\chapter{An appendix}
\section{An appendix section}
\lipsum[3]
\end{document}

I can not reproduce your problem as shown here :

enter image description here

My guess is that you use other packages that break the class...

  • Thanks, Yes i found its web link github.com/CourtneyChancellor/gsd2012/blob/master/… – DataMiner Jul 13 '13 at 10:00
  • I am using the same class in the same way. But it do not prind the Appendix numbering as described in the question. May be there is a conflict of \appendix package with other packages? – DataMiner Jul 13 '13 at 11:33
  • please check i updated my post by the list of used packages. – DataMiner Jul 13 '13 at 11:56
  • I'm surprised that it ever works. For example babel is required to make the class working, tough it isn't loaded neither by it nor by you... and same thing for geometry ! Have you tried to downgrade this complex sequence of packages? Even with this preamble i can't reproduce the problem.... – Jhor Jul 13 '13 at 12:21
  • When i use \usepackage[english, french]{babel} then it gives an error clash for package babel. I want to downgrade but when i need these packages. – DataMiner Jul 13 '13 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.