I have Similar Question to  . I have following hierarchy      \part -> \section -> more than one \subsection --> the content of   subsection .   see the following code    necessary imports are here (assume it) . \begin{document} \title{THE TITLE} \author{AUTHOR} \maketitle \tableofcontents{} \part{PART1} \section{SECTION1} \subsection{SUBSECTION1.1}  fmksmnd  nsdjkn  nvkdfjnv  \subsection{SUBSECTION1.2}    dsmvndsmv   n v,mvn f   nsdv,sdn  \part{PART2}   SAME STRUCTURE TILL THE END   \end{document}   And I am getting the same warning !
122951
When compiling my LaTeX file, I received this warning message. Though I got the PDF file, I still want to know why this warning comes and how to fix it.  It occurs in this line.  \paragraph{Plane stress} Plane state of stress, a.k.a. plane stress, is a state of stress in which\[\sigma_{33}=\sigma_{31}=\sigma_{32}=0.\]     Warning: Difference (2) between bookmark levels is greater(hyperref) than one, level fixed on input line 97. Difference (2) between bookmark levels is greater(hyperref) than one, level fixed.   The question may be seemed dummy to some TeX experts, but as a newbie here, I really don't know how it comes.  I attempt to write two subsubsections, but without numbering them. So I choose the command \paragraph. Is there any work-arounds?
23288
I have a question about a Verbatim, I want to write a word inside of the subsubsection title. I got an error. How can I fix it?: \subsubsection{The \verb+@interface+ Section}
93589
I have a LaTeX document with some chapter and a list of figures and tables. Something like this:  \tableofcontents \addcontentsline{toc}{chapter}{\listfigurename} \listoffigures \addcontentsline{toc}{chapter}{\listtablename} \listoftables \chapter{Chapter 1} \chapter{Chapter 2} \chapter{Chapter 3}   So the result in the table of contents would be:  List of tables ................... i List of figures ................. ii Chapter 1 .................... 1 Chapter 2 .................... 2 Chapter 3 .................... 3  But i want to have in the document the lists at the beginning and in the table of contents i want them at the end, like this:  Chapter 1 ...................... 1 Chapter 2 ...................... 2 Chapter 3 ...................... 3 List of tables ................ i List of figures .............. ii  I tried this:  \tableofcontents \listoftables \listoffigures \chapter{section 1} \chapter{section 2} \chapter{section 3} \addcontentsline{toc}{chapter}{\listfigurename} \addcontentsline{toc}{chapter}{\listtablename}   But then the page number is wrong:  Chapter 1 .................... 1 Chapter 2 .................... 2 Chapter 3 .................... 3 List of tables ............... 4 List of figures ............. 5  Does anyone know a solution, how to change the position of the lists in the toc with the correct page number?
90815
I don't know why each section is shown in one separate page when I use \onecolumn rather that the normal (two columns) format.  \onecolumn \section{Goals}  some text
32176
I'm having a bit of trouble with section numbering. When I use \section{} it starts at 0.1 rather than 1.0.   Here's my preamble:   \documentclass[12pt]{report} \usepackage{hyperref} \usepackage[landscape]{geometry} \usepackage{wallpaper} \usepackage{fullpage}   Any thoughts?
23833
I am trying to center my chapters/sections/subsections.  I have used the following:  \newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}} \newcommand{\ssection}[1]{\section[#1]{\centering #1}} \newcommand{\ssubsection}[1]{\subsection[#1]{\centering #1}}   This seems to work for chapter, but not for section and subsection. What is wrong?
14793
How do I rid of number of a section in the way that it still would be in the table of contents.  If I use   ... \section{SN1} ...   then I see this section name in table of contents as   1 SN1  2 SN2  3 SN3  ...   If I use   \section*{SN}   I don't see it in the content:   1 SN2  2 SN3   How to get in content just   SN1  1 SN2  2 SN3   ?
90082
I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one.  \titlecontents*{subsection}[5.4em] {\small} {\thecontentslabel~ } {} {} [.~\textbullet\ ] [.]   this part does the subsection as a paragraph (with section number and without page number). I have realized that the problem is the pseudo-code used by tocloft for the entries in the TOC  {\cftXfont {\cftXpresnum SNUM\cftXaftersnum\hfil} \cftXaftersnumb TITLE}% {\cftXleader}{\cftXpagefont PAGE}\cftXafterpnum\par   I mean, the last command \par make impossible to leave two subsection entries in the same textline. Any idea? Another interesting solution is with etoolbox, some examples with that package are awesome, but it's not on my hands.  This is a MWE:  \documentclass{book}  \usepackage{titletoc} \titlecontents*{subsection}[5.4em]{\small} {\thecontentslabel~ }{}{}[.~\textbullet\ ][.]  \begin{document}  \tableofcontents  \chapter{Test Chapter 1} \section{Test Section 1.1} \subsection{First Test Subsection} \subsection{Second Test Subsection} \subsection{Third Test Subsection} \subsection{Fourth Test Subsection} \section{Test Section 1.2} \subsection{First Test Subsection} \subsection{Second Test Subsection}  \chapter{Test Chapter 2} \section{Test Section 2.1} \subsection{First Test Subsection} \subsection{Second Test Subsection} \subsection{Third Test Subsection} \subsection{Fourth Test Subsection} \section{Test Section 2.2} \subsection{First Test Subsection} \subsection{Second Test Subsection}  \end{document}
26510
In my document I am referencing a section, e.g.  \section{My Section}\label{test} Also see section\ref{test}   This gives me, e.g.     Also see section 1   but what I want is:     Also see section My Section   How can I do that?  [Edit: comment moved to question body]  Of course it makes more sense to have something like "chapter 1 My Section", therefore mentioning chapter number and title. Anyways, this is just an example and you can easily combine both.
64455
All is (typographically) fine with this MWE  \documentclass{scrbook} \begin{document}   \tableofcontents   \chapter{chapter}   \chapter{chapter} \end{document}     But as soon as I add \part to it the numbers are getting enddots:  \documentclass{scrbook} \begin{document}   \tableofcontents   \part{part}   \chapter{chapter}   \chapter{chapter} \end{document}     To get rid of the enddots one needs numbers=noenddot:  \documentclass[ numbers=noenddot ]{scrbook} \begin{document}   \tableofcontents   \part{part}   \chapter{chapter}   \chapter{chapter} \end{document}   What is the reason for putting dots to the numbers as soon as one has \part in the document?
123975
I want remove the space in my table of contents of \section, \subsection and \subsubsection.  This is my code:  \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{imakeidx} \makeindex[columns=3, title=Alphabetical Index, intoc]  \begin{document}  \tableofcontents \chapter{chapter} \section{Introduction} In this example several keywords\index{keywords} will be  used which are important and deserve to appear in the  Index\index{Index}.  \subsection{subsection} Terms like generate\index{generate} and some\index{others}  will also show up. Terms in the index can also be  nested \index{Index!nested}  \clearpage  \section{Second section} This second section\index{section} may include some special  word, and expand the ones already used\index{keywords!used}.  \printindex \end{document}
59792
In several discussions about relatives merits of LaTeX v. xml, a xml supporter complained that in LaTeX sections, subsections etc are not properly closed, so it is hard to tell where a section ends.  Of course it is typically possible to recognize an end of a section, but there is actually a number of ways how a section can end: start of another section, start of the next chapter or part, start of \endmatter, bibliograpy, index, etc, or the end of document.  That makes it hard if you want to write a script that would in some way manipulate sections (change their order, write each of them into a separate file, ...).  The same is of course true for subsections, paragraphs etc.   One answer to that is that it is actually possible in LaTeX2e to use sectioning commands as environments, and write   \begin{section}{Blah blah}    ... \end{section}   and because of the way environments are handled in LaTeX2e, it will work.  I he recently seen several comments discouraging such use of regular commands as environments, and it seems that in LaTeX3 it will no longer be possible (on the other hand, it seems that you will be able to define a section environment without causing a conflict with the \section command).   I wanted to know what people think about using sectioning commands as environments.  Is it a good idea, is it OK, or should it not be done?
48994
The below code produces    I'm wondering if it's possible to have the subsections show up as i, ii, etc, on the subsection title (because it's clear which section they're in when they show up), but as 1.i, 1.ii, etc. when I refer to them. (So that the reader can distinguish between 1.i and 2.i, for instance.)  Possibilities:   Just enter the section number manually when I refer to it. This is worst, since it isn't robust to renumbering the sections. Find a way to store the section number of Fruit Section, and use that when I make the reference. This is OK, but not robust to changing which section Apples is a part of. Inside Apples, get the current section somehow, store it, and then refer to it. This would be robust, but would have to be done every time I want to make such a reference. Better once-and-for-all solution to this problem.   .  \documentclass{article} \usepackage{hyperref} \renewcommand\thesubsection{\roman{subsection}} \begin{document} \section{Fruit Section} \subsection{Apples} \label{Apples-subsec}  \subsection{Bananas} \label{Bananas-subsec} \section{Vegetable Section} \subsection{Kale} \section{Conclusion}  As we recall from sections \ref{Apples-subsec} and \ref{Bananas-subsec}, apples and bananas are healthy to eat. \end{document}
64380
So far, I've been trying code from various examples, and landed with:  \usepackage(titlesec) \titleformat{\section}[block]{\bfseries}{\thesection.}{1em}{}  \titleformat{\subsection}[block]{\hspace{2em}{\thesubsection}{1em}{} \titleformat{\subsubsection}[block]{\hspace{3em}}{\thesubsubsection}{1em}{}   to indent the headers and their numbering. But I don't know how to get the content within each section/subsection/subsubsection to have an indented margin. In other words, I'd like to have the section/subsection/subsubsection content to be in line with it's indented header.  Is titlesec able to do this? I've been battling with the documentation, but I think they assume some more tex knowledge than I have as everything I try doesn't seem to work.  I'd like to use titlesec because, according to my understanding, I won't have to make any further adjustments while writing the document. I'm using pandoc to generate that part from markdown, so I can't have inline formatting on my sections.  Added the following as per comment requests:  Here is what I have:    And, here is what I would like:    Or, I would like something like this:
42342
I am writing a report divided into parts. I would like to write a short description of each part on the same page as the part headline. When I just write:  \part{Hello} Hello there...   The text "Hello there.." skips to the next page instead of the same.  Can you help me?
77153
Is there any way to cross-reference to sections/subsections via their title? I find myself writing "Please see section 4 for more details", and it gets annoying very soon, especially when I have to change the numbers repeatedly.  I am using lyx, so it would be nice if there's some way of automating some of the steps.
107073
I'm writing a document using the , and would like to use the subfiles package to manage the sections.  I'm following the ShareLatex example available , and have modified it to use the aastex61 documentclass.  Here's a minimal working example:  Main file:  %main.tex \documentclass[aip,twocolumn,jmp.asmsmath,asmssymb,reprint]{aastex61} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{subfiles} \usepackage{blindtext}  \title{Subfile Example} \begin{document} \section{Introduction} \subfile{introduction} \end{document}   Subfile:  %introduction.tex \documentclass[main.tex]{subfiles}  \begin{document} \Blindtext \end{document}   The main file compiles correctly, but this fails in ShareLatex with  Missing \begin{document}   In pdflatex I get  ! I can't find file `introduction.aux'. &lt;to be read again&gt;                 \relax  l.13 \end{document}   This is unfortunate because I'd like to use subfiles for this project. Is there anything I can do?