I'm compiling my thesis.  The middle is LaTeX code, the right panel is the PDF file and the left panel is the navigation panel seen in Adobe Reader.   The order is Chapter1-AppendixQ-Chapter2 in the TeX code and the order is preserved in the left panel. But Chapter 2 and  AppendixQ are reversed in the Table of Contents in the PDF file. (2.5 Data analysis and 2.6 Conclusion are sections in the chapter 2, A1 and A2 are sections in 'appendicex.' 'AppendixQ' is inserted using \addcontentsline command because the appendix title is not shown in the Table of Contents.  I don't understand why \include{chapter2} comes earlier than \addcontentsline{toc}{chapter}{AppendixQ}
122367
I have a table of contents in my memoir book. I want there to be one line for each chapter, in addition to headings for each set of similar chapters.  For some reason, the line for the first chapter appears before the first phantom line.  \documentclass{memoir}  \begin{document}  \frontmatter \tableofcontents*  \mainmatter  \phantomsection \addcontentsline{toc}{part}{Topic 1}  \include{intro}  \chapter{Chapter 2}  This is the second chapter.  \phantomsection \addcontentsline{toc}{part}{Topic 2}  \chapter{Chapter 3}  This is the third chapter.  \chapter{Chapter 4}  This is the fourth chapter.  \end{document}   The file intro.tex in the same directory contains the following:  \chapter{Introduction} \label{chap:intro}  \noindent This is the introductory chapter.   I've noticed that if I paste the contents of intro.tex into the main file (instead of using \include), the problem is fixed--the "Introduction" line in the table of contents appears before "Topic 1"!  However, this isn't a good solution, since I have large chapter files which I want to include separately...  What might be causing this problem?  And is there a way to fix it?
23233
I am using LaTeX for my thesis and I am getting a blank page after Appendix and the next chapter. My document class is book:  \documentclass[a4paper,oneside,12pt]{book}   I have tried inserting the following commands in my preamble but it does not seem to work:  \makeatletter\@openrightfalse\makeatother   and  {\let\cleardoublepage\clearpage  \input{appendix} }   and  \csname @openrightfalse\endcsname   could someone help me out with this?
73432
I need to make my (BibTeX) references section appear in the table of contents of my LaTeX document (documentclass: article), with section numbering too.  My approach until now has been making a new section and including the bibliography (references.bib) at that point:  \section{References} \bibliography{references}   However, the final document shows both the section title that I have written and the section title that BibTeX writes, which is quite redundant and I definitely dislike.  How can I either remove BibTeX's section title, or make the BibTeX bibliography appear in the table of contents without making a new section?  If I were to make the BibTeX bibliography appear in the table of contents without making a new section, how could I assure that the section title that BibTeX writes looks exactly like sections typeset with \section?
96890
I'm writing my thesis as a report document using TeXShop (pdflatex and bibtex) and want the bibliography to get its own section number and appear in the table of contents. Here's what I've tried so far and the problems arising:  \addcontentsline{toc}{section}{References}   Does not add the section number, not in the toc and naturally not in the section title.  \cleardoublepage \renewcommand*{\bibname}{\section{References}} \bibliographystyle{plain} \bibliography{bibliography}   Error: ! Incomplete \iffalse; all text was ignored after line 1.  \cleardoublepage \section{References} \renewcommand*{\bibname}{} \bibliographystyle{plain} \bibliography{bibliography}   The only problem this leaves is that this starts the actual bibliography on the next page after it inserts 2.5 References. Otherwise I would be happy with this solution. How can I solve this issue?
42022
I have a document divided into \part \chapter \section and \subsection. I have 3 parts and in each part I reset all the counters.  I want that, when I do a crossref to something that is in the 1st part, chapter 3 and section 5, that LaTeX prints something like I-3.5, but  I don't want that in the tableofcontents part that LaTeX prints the part number. For example, what I want is:     Part I      chapter 1 section 1.1 section 1.2      chapter 2   AND NOT     chapter I-1 section I-1.1 section I-1.2      chapter I-2   The command that I've tried   \renewcommand{\thechapter}{\thepart-\arabic{chapter}} \renewcommand{\thesection}{\thechapter.\arabic{section}}   does exactly what I've said  Can anyone help me?
105933
In a book, I have several numbered sections followed by an unnumbered section. I have placed an \addcontentsline following the \section* that introduces the unnumbered section, so that it will appear (unnumbered) in the ToC; that works fine. However, the page headers for the unnumbered section are continued from the last numbered section.  I am using fancyhdr with the following setup:  \pagestyle{fancy} \fancyheadoffset{0in} \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}  \fancyhf{} \fancyhead[LE,RO]{\thepage} \fancyhead[C]{\bfseries \draftinfo} \fancyhead[LO]{\sf\rightmark} \fancyhead[RE]{\sf\leftmark} \fancyfoot[C]{\bfseries \draftinfo} \fancypagestyle{plain}{%   \fancyhead{} % get rid of headers   \renewcommand{\headrulewidth}{0pt} % and the line }
65298
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 -&gt; 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}
10557
I wanna display A as Appendix A in TOC, as shown below.     I tried to add \backmatter before \appendix as shown in , but cref{label} will display as Section 1. I also used \renewcommand as suggested in the most posts on this site, but it doesn't make any changes. Here is the source code.  \documentclass[twoside,12pt]{article}  \usepackage{cleveref}  \usepackage[english]{babel} \usepackage[toc, title]{appendix} \renewcommand\appendixname{Anexo} %\renewcommand\appendixpagename{Anexos} \renewcommand\appendixtocname{Appendix}  \begin{document}  \tableofcontents  \section{The main body of the text} Refer to \cref{appendix} for more information.  \appendix \section{A complete table.} \label{appendix} Some text.  \end{document}
17459
How to make Table of Contents for a set of PDF files?  Here's my code!  \documentclass{book} \usepackage{pdfpages} \usepackage[pdfauthor={&lt;somename&gt;},pdftitle={&lt;sometitle&gt;},pdftex]{hyperref} \usepackage{fancyhdr} \usepackage{tocloft} \usepackage[margin=0.5in,bottom=0.75in,top=0.75in]{geometry}   \pagestyle{fancy} \renewcommand{\headrulewidth}{0.4pt} \fancyhead[L]{X Y Z} \fancyhead[R]{} \begin{document}  \tableofcontents \newpage  \clearpage \phantomsection \includepdfset{pages=-,pagecommand=\thispagestyle{fancy}} \addcontentsline{toc}{chapter}{SAMPLE PDF 1\\ \textit{description}} \includepdf[pages=-]{template1.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 2\\ \textit{description}} \includepdf[pages=-]{template2.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 3\\ \textit{description}} \includepdf[pages=-]{template3.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 4\\ \textit{description}} \includepdf[pages=-]{template4.pdf}  \clearpage \phantomsection \addcontentsline{toc}{chapter}{SAMPLE PDF 5\\ \textit{description}} \includepdf[pages=-]{template5.pdf}  \end{document}   Here's the output.    My problem is that the page number is not aligned with the title, it is aligned with the description. Also I'd like to put dots.   My desired output looks like this:
53488
I'm attempting to modify the Table of Contents in my document. Currently, chapter one in my document is listed as   1   Introduction   What I would like to see is  Chapter 1   Introduction   Seems like an easy enough thing to ask for, but can't seem to find a good way to do this. Any feedback would be most appreciative.
103776
I am adding a section with the bibliography references by using \addcontentsline in order to add a link to the table of contents. Unfortunately the link in the table of contents links to a wrong page, previous to the page with the bibliography.   How can I immediately place an anchor for a new section in table of contents?  \printbibliography[heading=offline,filter=offline] \addcontentsline{toc}{section}{\bibname} \printbibliography[heading=online,filter=online]
82997
I am using the following code in my beamer document to make the frame title's appear in the table of contents:  \documentclass{beamer} \usetheme{default} \usepackage{bookmark} \usepackage{etoolbox} \usepackage{graphicx}  \makeatletter \apptocmd{\beamer@@frametitle}{   \addtocontents{toc} {\protect\beamer@subsectionintoc{\the\c@section}{0}{#1}     {\the\c@page}{\the\c@part}     {\the\beamer@tocsectionnumber}}     \bookmark[page=\the\c@page,level=3]{#1}}   {\message{** patching of \string\beamer@@frametitle succeeded **}}%   {\message{** patching of \string\beamer@@frametitle failed **}}% \makeatother  \begin{document} \begin{frame}[label=toc]{Table of Contents}     \tableofcontents     \end{frame} \section{First Section}   \begin{frame}{One}      content \end{frame}  \section{Second Section} \begin{frame}{Two}      Content  \end{frame}      \section{Third Section}     \begin{frame}{Three}      Content      \end{frame} \end{document}   What I am trying to do is understand what the solution does because I now want to add block titles to the table of contents as well as frame titles and I imagine that would be an easy function to add if I understood the code. Please help by re-writing the code (if possible) without the \makeatletter substitution command, using other latex commands.   Here are some related posts:
16718
Possible Duplicate:          My LaTeX document is acting strangely. Here is a simplified version of it:  \documentclass{article}  \begin{document}  \tableofcontents \newpage  \addcontentsline{toc}{part}{A Part of My Document} \include{includedfile}  \end{document}   And in includedfile.tex:  \section{My Section Title} Quack.   Clearly, in the table of contents, the heading for the part should precede the one for the section, but it doesn't! What's wrong?
72415
I want all bookmarks after "Anhang" (appendix) to be a level deeper, but I need them to be \chapter{} for the right numbering.  I write a scrbook document and that's what I got:    Is it possible to change the depth of the chapter to act like a section in the bookmarks?  UPDATE  MWE:  \documentclass[12pt,a4paper,oneside]{scrbook}  \usepackage[ngerman]{babel}     % deutsche Worttrennung \usepackage[T1]{fontenc}        % Ausgabe von Sonderzeichen und Akzenten in PDF verbessert \usepackage[utf8]{inputenc}         % Eingabe von Sonderzeichen möglich \usepackage{lipsum}  \setcounter{secnumdepth}{3}     % subsubsections nummerieren \setcounter{tocdepth}{3}        % subsubsections in TOC  \usepackage[ %     pdfproducer={Texmaker},     %      pdfcreator={pdfLaTeX},      %      hidelinks,          % versteckt die Boxen um die Links in der PDF     bookmarksnumbered,      % nummereiert Lesezeichen     ]{hyperref}         % PDF Metainformationen hinzufügen   \begin{document}  \appendix \pagenumbering{alph}  \thispagestyle{empty}  \vspace*{3em} \begin{center} \begin{Huge} \textbf{\textsf{Anhang}} \pdfbookmark{Anhang}{Anhang} \end{Huge} \end{center}  \chapter{Appendix 1}  \chapter{Appendix 2}  \section{Appendix 2.1}  \section{Appendix 2.2}  \chapter{Appendix 3}  \end{document}
84222
I have the following problem illustrated by a simple example: If I cite the paper of an author T. Coven in my document, the outcome is 'Coven (2004b)'. If I cite the appendix to this paper, the outcome is 'Coven (2004a)'. Now the appendix pops up much less frequently than the original paper, therefore I would like to reverse the order (exchange 'a' and 'b' in the citations). Is this possible?  I am using Biblatex. Here is the bib-file of the above example (named: lib.bib):  @article{co:2004, author = {T. Coven}, title = {Title A}, journaltitle = {The X Journal}, date = {2004} } @article{coapp:2004, author = {T. Coven}, title = {Appendix to Title A}, journaltitle = {The X Journal}, date = {2004} }   MWE:  \documentclass[a4paper, 12pt, headsepline, headings=small,]{scrreprt} \usepackage[backend=bibtex8,     style=authoryear-icomp,     dashed=false,     autocite=footnote,     maxcitenames=3,     mincitenames=1,     maxbibnames=100,     firstinits=true,     sorting=nty     ]{biblatex} \bibliography{lib}  \begin{document} \cite{co:2004} and \cite{coapp:2004} \end{document}
53890
I'm writing a thesis which is an aggregate of separate articles. I have the source code for the articles and I'm using \include to include them in the main document of the thesis. So in my main.tex (thesis document), I have  \include{article1} some pages in between the two articles \include{article2}   The problem that I'm getting is with the Appendix sections. In article 1, I have at the end:  \appendix \numberwithin{equation}{section} \section{Coefficients}\label{sec:Coeffic} \subsection{Good coefficients} then comes the first line of appendix   This gives in article 1 (when  compiled separately with the article class):     A. Coefficients      A.1. Good coefficients   and equation numbers in the Appendix A as (A.1), (A.2)  which is ok and what is expected.  When I put article 1 within main.tex, I use \include command. Also, I removed the document class for article 1 and put \chapter instead.  But when I compile main.tex (the thesis document), I get the appendix sections as:     .1 Coefficients      .1.1 Good coefficients   and the equation numbers in the appendix A as (.1.1), (.1.2) etc  My article 1 is treated as a chapter in the main thesis document (main.tex) and the title and section numbers, equation numbers are preceded by A in main.tex. This is what I want.  Maybe it would be ok to get the appendix in my main.tex as     A.A. Coefficients      A.A.1 Good coefficients   and the equation numbers in the Appendix as (A.A.1), (A.A.2) etc  to denote that it refers to appendix A of paper A. First A is for the first article and second A is for first appendix. How to get this?
1618
I have the simple following document:  \documentclass[10pt,a4paper]{report} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{4} \usepackage{algorithm,algcompatible} \begin{document}     \tableofcontents     \listoffigures     \listoftables     \listofalgorithms  \chapter{Chapter First} This is my chapter first.  \chapter{Chapter Two}    This is my chapter two.  \section{sec 1}  \begin{table}     \centering     \caption{my table}     \label{tab1}     \begin{tabular}{|c|c|}         \hline 1 &amp; 2 \\          \hline 3 &amp; 4 \\          \hline      \end{tabular}  \end{table}  \subsection{subsec 1}  \begin{algorithm}     \caption{(\textit{The EGl-FOM})}     \label{myalg}     \begin{algorithmic}[1]         \STATE Choose          \STATE Use the          \STATE Compute $\alpha_m$         \STATE Compute $\lVert R_m\rVert_F=h_{m, m+1}|e_m^T\alpha_m|$.     \end{algorithmic} \end{algorithm}  \subsubsection{subsubsec 1}  \end{document}   I am going to hide chapter, section, subsection and subsubsection titles about chapter two from table of contents. Furthermore, I want to hide tables, figures and algorithms titles about chapter two from list of tables, figures and algorithms. Is there a proper way to do these things?