0

I want to add an appendix (questionnaire etc.) at the end of my thesis after the references. I use the article class and work with LyX: Document -> Start appendix here. But I am not getting it in the TOC.

\documentclass[12pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{color}
\definecolor{document_fontcolor}{rgb}{0, 0, 0}
\color{document_fontcolor}
\usepackage{babel}
\usepackage{float}
\usepackage{textcomp}
\usepackage{pdfpages}
\usepackage{tipa}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\PassOptionsToPackage{normalem}{ulem}
\usepackage{ulem}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
 {hyperref}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}

\@ifundefined{date}{}{\date{}}
\@ifundefined{showcaptionsetup}{}{%
 \PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother

\appendix
\noindent \begin{center}
\textbf{Questionnaire (Case Study 1)}
\par\end{center}
  • \appendix switches numbering to Alpha. Now you can add what you want to have in your appendix. Use chapter if you have book or report, sections otherwise. – Johannes_B Dec 20 '15 at 16:04
  • I mean how to add appendix in lyx... – faiza Dec 20 '15 at 16:07
  • 1
    tab Document -> Start appendix here – Johannes_B Dec 20 '15 at 16:14
  • Thanks, if i need to add any file (questionnaire), Do i need to add as an external material here? – faiza Dec 20 '15 at 16:16
  • 1
    You might need to use a \section{title of first appendix}, or \markboth{Appendix}{Appendix} (if it is missing in the header) or \appendixpage (if you are using the appendix package). – Stephen Dec 20 '15 at 18:46
1

In your document, after the chapters, insert the appendix

\begin{document}
    \tableofcontents

    \mainmatter
    \input{chapter1}
    \input{chapter2}
  ...


    \appendix
    \cleardoublepage  
    \input{appendix1}
    \input{appendix2}
     ...
 \end{document}

where the appendix1 is defined in a appendix1.tex file:

%\appendix
\label{ref:appendix1}
\chapter{appendix1}

text
  • 2
    Labels always come after what they are supposed to label. – Johannes_B Dec 20 '15 at 16:10
  • 1
    although \chapter{appendix1\label{ref:appendix1}} is also OK. – Stephen Dec 20 '15 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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