GeneralGeneral Appendix Problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sinita
Posts: 9
Joined: Fri Mar 18, 2011 12:58 am

General Appendix Problem

Post by sinita »

Hi there,
Basically I have created two appendices named "Appendix A" and "Appendix B". But in my table of contents I get "Appendix C:*". I do not want the Appendix C how do i remove this please.
Here is my latex coding:

Code: Select all

\documentclass[12pt]{article}
\setlength{\textheight}{25cm}
\setlength{\voffset}{-2cm}
\setlength{\textwidth}{15cm}
\setlength{\hoffset}{-1.0cm}
\usepackage{epsfig}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{graphicx}
\usepackage{youngtab}
\usepackage[all,web]{xypic}
\usepackage{html}
\newtheorem{lemma}{Lemma}[section]
\theoremstyle{definition}
\newtheorem{defn}[lemma]{Definition}
\newtheorem{ex}{Example}[section]
\newtheorem{thmn}{Theorem}[section]
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\setlength{\belowcaptionskip}{5pt}
\DeclareMathSizes{11.5}{19}{13}{9}
\usepackage[tight,hang]{subfigure}
\usepackage{appendix}

\makeatletter
\newcommand\appendix@section[1]{%
\refstepcounter{section}%
\orig@section*{Appendix \@Alph\c@section: #1}%
\addcontentsline{toc}{section}{Appendix \@Alph\c@section: #1}%
}
\let\orig@section\section
\g@addto@macro\appendix{\let\section\appendix@section}
\makeatother


\appendix
\section{Additional Data}
\label{c}

\subsection{Definition of an infinite geometric series}

\subsection{Proof of Jacobi's identity}

\appendix
\section{Computing}
\subsection{series}
\subsection{Computing code}



\begin{thebibliography}{99}
\bibitem{K}
\label{b}
Norman 
\end{thebibliography}
\end{document} 


Any help will be appreciated
Many Thanks
Sinita

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Re: General Appendix Problem

Post by Frits »

Your LaTeX code is incorrect. At least when I compile it, two appendices A are present and no B or C.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Post Reply