Page LayoutAppendix chapter as section

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
User avatar
jvm
Posts: 9
Joined: Thu Jul 15, 2010 3:22 pm

Appendix chapter as section

Post by jvm »

Dear Tex users

I'm currently working on my master thesis and I do have some layout problems with the appendices.

What I got after searching the forum

ToC
Chapter 1
- Section 1.1
...etc..
Appendices
Appendix A Title
Appendix B Title2

What I would like:
Chapter 1
- Section 1.1
...etc..
Appendices
- Appendix A Title
- Appendix B Title2

Could someone help me out? Preferably that this will also work in the PDF reader (so in short I want the appendix chapters to be shown as sections). However if I try to use sections my numbering screws up.

MWE:

Code: Select all

\documentclass[a4paper,fleqn]{book}

% Packages
\usepackage[colorlinks,linkcolor=black,urlcolor=black,citecolor=black,plainpages=false,pdfpagelabels]{hyperref}

%\usepackage{a4wide}
%\usepackage{lscape}

%\usepackage[numbers]{natbib}
%\usepackage{polynom,amssymb,amsmath}
%\usepackage{multirow}
\usepackage{fancyhdr,appendix,psfrag,layout}
%\usepackage{graphics,graphicx,subfigure,wrapfig}

\begin{document}

\frontmatter
\tableofcontents

\mainmatter

\chapter{introduction}
Text
....
\chapter{conclusion}
Text

\addappheadtotoc
\appendixpage
\appendixtitleon
\appendixtitletocon
\begin{appendices}
	\chapter{title}
	text
	\chapter{title2}
	text
\end{appendices}


\end{document}
I have not failed. I’ve just found 10,000 ways that won’t work - Thomas A. Edison

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kynan
Posts: 6
Joined: Sat Aug 21, 2010 1:20 pm

Re: Appendix chapter as section

Post by kynan »

Where's the difference between what you got and what you'd like?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Appendix chapter as section

Post by gmedina »

kynan wrote:Where's the difference between what you got and what you'd like?
As the OP mentioned, with his/her code, the appendices appear as chapters in the ToC and he/she would like them to appear as section; this can be done by using \chapter* and \addcontensline:

Code: Select all

\documentclass[a4paper,fleqn]{book}

\usepackage[colorlinks,linkcolor=black,urlcolor=black,citecolor=black,plainpages=false,pdfpagelabels]{hyperref}

\usepackage{appendix}

\begin{document}

\frontmatter
\tableofcontents

\mainmatter

\chapter{introduction}
Text
....
\chapter{conclusion}
Text

\addappheadtotoc
\appendixpage
\appendixtitleon
\appendixtitletocon
\begin{appendices}
   \chapter*{title}
    \addcontentsline{toc}{section}{title}
   text
   \chapter*{title2}
    \addcontentsline{toc}{section}{title2}
   text
\end{appendices}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply