Skip to content

Instantly share code, notes, and snippets.

@X4
Created December 2, 2013 21:40
Show Gist options
  • Save X4/7759575 to your computer and use it in GitHub Desktop.
Save X4/7759575 to your computer and use it in GitHub Desktop.
LaTeX: Formats the Appendix to the form of: A.1, B.1, B.2.1
\documentclass{book}
\usepackage[toc,title,page]{appendix}
\begin{document}
\tableofcontents
\appendix
\renewcommand{\thesection}{\Alph{section}.\arabic{section}}
\setcounter{section}{0}
\begin{appendices}
\section{Some title}
Some text
\section{bla title}
Some text
\subsection{foo title}
Some text
\end{appendices}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment