0

I'm trying to have a appendix as

Appendix A

A.1 A.2 A.3

This is what I have do so far

\appendix
%\renewcommand\thesection{\Alph{subsection}}
\renewcommand{\thesubsection}{\arabic{subsection}}  

Can anyone please tell me what I'm doing wrong here??

Thank you

closed as unclear what you're asking by user31729, Jesse, egreg, lockstep, Svend Tveskæg Oct 4 '15 at 12:39

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    What document class are you using? – Alan Munn Sep 2 '15 at 15:59
  • For article the A.1 numbering style is the default as soon as \appendix and \subsection is used, there is no need of redefinition of the \the... macros. It requires a non-zero section counter value however, since \Alph{section} outputs nothing if section is zero – user31729 Sep 2 '15 at 16:42
4

If the article class is used, there is no need of \renewcommand{\thesubsection}{...} since \appendix redefines \thesection to use \Alph etc.

\documentclass[a4paper,10pt]{article}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\blinddocument
\appendix

\section{An appendix section}
\subsection{An appendix subsection}
\subsection{Another appendix subsection}
\section{Another appendix section}
\subsection{Just another appendix subsection}
\subsection{Yet Another appendix subsection}

This is an appendix.
\end{document}

enter image description here

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