Appendix A is coming twice in my thesis. A short file is included here for the understanding of my problem.
All the related files are attached herewith. Only run the "main.tex" file. There are no errors. Only both the appendices are repeating. Please take pain to download the RAR file and help me to solve the problem.
General ⇒ Repeated Appendix
Repeated Appendix
- Attachments
-
- New Folder (3).rar
- (67.28 KiB) Downloaded 407 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Repeated Appendix
Besides the fact that this example is very far from a
minimal working example which is why I nearly wouldn't have tested it: the output likes like I think it is supposed to. That means I get one appendix A and one appendix B.
Please clarify what the actual issue is and please make the example minimal. Both appendix files are small enough that they don't need to be included and the chapter 1 seems to be unrelated anyway. it should be easy to provide only one file who's code could be posted here. Posting code also helps you to get help: it's easier if one only has to copy and paste some code instead of having to download an archive, unpack it and then run it.

Please clarify what the actual issue is and please make the example minimal. Both appendix files are small enough that they don't need to be included and the chapter 1 seems to be unrelated anyway. it should be easy to provide only one file who's code could be posted here. Posting code also helps you to get help: it's easier if one only has to copy and paste some code instead of having to download an archive, unpack it and then run it.
site moderator & package author
Repeated Appendix
Here is the minimal working example
The content of AppendixA (file name should be AppendixA) is given hereunder
The words "Appendix A" is coming twice in the appendix page. I have uploaded the jpg file highlighting the issue.
Code: Select all
\documentclass[11pt, a4paper, oneside]{Thesis1}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[babel=true]{microtype}
\usepackage{mathpazo}
\allowdisplaybreaks[4]
\usepackage{lscape}
\usepackage[authoryear, numbers, semicolon, sort&compress]{natbib}
\hypersetup{urlcolor=blue, colorlinks=true}
\title{\ttitle}
\begin{document}
\frontmatter
\setstretch{1.3}
\fancyhead{}
\rhead{\thepage}
\lhead{}
\pagestyle{fancy}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\hypersetup{pdftitle={\ttitle}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\begin{titlepage}
\begin{center}
\textsc{\LARGE \univname}\\[1.5cm] % University name
\vspace{2em}
\textsc{\Large Doctoral Thesis}\\[0.5cm] % Thesis type
\HRule \\[0.35cm] % Horizontal line
{\huge \bfseries \ttitle}\\[0.35cm] % Thesis title
\HRule \\[1.5cm] % Horizontal line
\begin{center} \large
\emph{By}\\
\href{}{\authornames}\\
\addressnames
\end{center}
\vspace{6em}
\vfill
\end{center}
\end{titlepage}
%----------------------------------------------------------------------------------------
% THESIS CONTENT - CHAPTERS
%----------------------------------------------------------------------------------------
\mainmatter
\pagestyle{fancy}
%\include{Chapter1}
%----------------------------------------------------------------------------------
% THESIS CONTENT - APPENDICES
%----------------------------------------------------------------------------------
\addtocontents{toc}{\vspace{2em}}
\appendix
\input{AppendixA}
\addtocontents{toc}{\vspace{2em}}
\backmatter
\end{document}
Code: Select all
\chapter{Appendix A}
\label{AppendixB}
\lhead{Appendix A. \emph{Appendix A Title Here}}
%\setcounter{equation}{0}
\section{Computation of the coefficients ...}
\label{appendix_bedding_A}
\noindent Throughout the remaining part of this section,
The words "Appendix A" is coming twice in the appendix page. I have uploaded the jpg file highlighting the issue.
- Attachments
-
- 001.JPG (35.14 KiB) Viewed 9298 times
-
- vector.sty
- (2.07 KiB) Downloaded 552 times
-
- lstpatch.sty
- (13.12 KiB) Downloaded 479 times
-
- Thesis1.cls
- (16.62 KiB) Downloaded 533 times
Repeated Appendix
Ah, now I get it: the first appearance of “Appendix A” is the same as “Chapter 1” for chapters before
Regards
\appendix
. The command \appendix
changes \chapter
to use \appendixname
instead of \chaptername
(along with resetting the counter and using \Alph{chapter}
). The second is the title of the chapter. Since you used \chapter{Appendix A}
the title seems to be repeated. If you'd use \chapter{First Appendix}
you'd getRegards
site moderator & package author
Repeated Appendix
Thank you for the answer. My appendix has no title. So I replaced
\chapter{Appendix A}
by \chapter{}
. Then the appendix page is fine. But in the pdf bookmark, only A is coming. Also in the Contents page, I am not getting Appendix A (getting A only). How to change the code so that I can get Appendix A in the pdf bookmark. How to get Appendix A instead of getting A?Code: Select all
\chapter{}
\label{AppendixA}
\lhead{Appendix A. \emph{Appendix A Title Here}}
%\setcounter{equation}{0}
\section{Computation of the coefficients ...}
\label{appendix_bedding_A}
\noindent Throughout the remaining part of this section,