Above on the left is what my current table of contents looks like in a paper I'm writing and I really wish I could indent subsections like I showed on the right side (which I admittedly just did in Paint by moving them all over 16px, which seems like the ideal amount).  Would anyone know how I could incorporate this into my paper?  Here is the smallest MWE I could manage:  \documentclass[10pt,article]{amsart}  \begin{document}  \tableofcontents  \section{Section A} \subsection{Subsection (16px Indent)} \subsection{Subsection (16px Indent)} \section{Section B} \subsection{Subsection (16px Indent)} \subsection{Subsection (16px Indent)}  \end{document}
121656
I used AMS LaTeX template with gsm-l package to write my teacher's book.   The table of content that produced has the following form:    in which 1, 2, 3.... are sections and 3.1, 3.2, 4.1, 4.2,.... are the subsection.   I want to indent the subsection with respect to the section, like this (it's ok without dots, though):
67255
I make a translation of a 600 pages Book with the beamer class in Latex, so I have lots of Subsections and SubSubsections. I want to show all subsections of the current Section in the sidebar along with all the subsubsections of the CURRENT subsection. I came across a hint and made   \setbeamertemplate{subsubsection in sidebar shaded} {\vspace*{-\baselineskip}}   But that just hides all subsubsections but the current one. The best solution would be something like  \setbeamertemplate{subsubsection in sidebar shaded}[subsubsectionstyle=show/shaded/hide]   or any other way i can change the subsubsectionstyle. The best idea I had was   \setbeamertemplate{subsubsection in sidebar shaded} {\tableofcontents[subsubsectionstyle=show/shaded/hide]}   But that just creates over 3000 errors and didn't solved my problem . Is there anybody who has an idea to solve this Problem ?  Here is a MWE to show what i mean:      \documentclass[9pt]{beamer}  \usetheme[hideothersubsections]{Goettingen}  \begin{document}  \section{Section 1} \begin{frame} \frametitle{Section 1} \end{frame}  \subsection{Subsection 1.1} \subsubsection{SubSubsection1.1.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 1.1.2} \begin{frame} bla \end{frame}  \subsection{Subsection 1.2} \subsubsection{SubSubsection1.2.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 1.2.2} \begin{frame} bla \end{frame}  \section{Section 2} \begin{frame} \frametitle{Section 2} \end{frame}  \subsection{Subsection 2.1} \subsubsection{SubSubsection2.1.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 2.1.2} \begin{frame} bla \end{frame}  \subsection{Subsection 2.2} \subsubsection{SubSubsection2.2.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 2.2.2} \begin{frame} bla \end{frame} \end{document}   And one page of the output is:   As you can see, with the option [hideothersubsections] in  \usetheme[hideothersubsections]{Goettingen} subsections outside the current section are not shown in the sidebar. I want the same effect for the subsubsections with regard to subsections. So Subsubsection1.2.1 and SubSubsection1.2.2 should not be seen in the sidebar, because im in subsection 1.1  Therefore it should looks like this:   And when my slides move on and the subsections changes (from subec 1.1 to subsec 1.2), then the displayed subsubsection shall also change. It then should looks like this:   Of course the space between subsec 1.1 and subsec 1.2 should disappear.
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 }
74357
I'm finalizing my dissertation, and they require that the "Table of Contents - Continued" heading in the ToC (that shows if it flows onto a second page) be centered.  I thought I could find the code that generates the ToC and just customize it a bit, but I can't even find what's generating it...  Anybody have any ideas how I could work this out, or where the code is?
120344
I have a beamer presentation with only three sections. Right now they are spaced at equal distances across the slide, but I would like to compress them so that they are spaced evenly in the left hand side of the headline.   Right now it looks like:  Section 1  ---------------------------- Section 2---------------------------Section 3   And I would prefer it to look like  Section 1-------Section 2-------Section 3   Is there a way to customize the horizontal width of the navigation bar at the top? Thank you in advance!  \documentclass[compress]{beamer} \useoutertheme[footline=authortitle,subsection=false]{miniframes} \begin{document} \section{Section 1} \subsection{Subsection 1} \frame{}\frame{}\frame{} \subsection{Subsection 2} \frame{}\frame{} \section{Section 2} \subsection{Subsection 1} \frame{}\frame{} \subsection{Subsection 2} \frame{}\frame{}\frame{} \section{Section 3} \subsection{Subsection 1} \frame{}\frame{} \subsection{Subsection 2} \frame{}\frame{}\frame{} \end{document}
71008
I am using REVTex 4-1, for my own personal use, not a paper submission.  I like using REVTex and  I have gotten somewhat used to it, but for my current purposes I need left aligned subsections headings. In REVTex only rmp documentclass option gives that, but it also changes other aspects(I prefer prb).  I tried using command \titleformat from the titlesec package, but i can't figure out how to change only one option without changing other settings set by the REVTex (and prb)  \titleformat{\subsection}{\raggedright}{}{}{}  \titleformat*{\subsection}{\raggedright}   Is there a way to only set left alignment, without changing other settings?
95571
I have two sections before the table of contents.  \documentclass{article} \usepackage{lipsum} \begin{document} \thispagestyle{empty} \section*{First random title} \lipsum[1] \section*{Second random title} \lipsum[2] \clearpage \tableofcontents \section{First section} \lipsum[3] \section{Second section} \lipsum[4] \section{Last section} Wombat \lipsum[5] \end{document}   The problem is, that LaTeX starts the page numbering on the first page and I don't want that. I want the page numbering to start after the table of contents. How can I do this?
123065
I would like to obtain an advice regarding the TOC for an article. I wonder if the following serpent-like output caused by numbers of subsections being longer than those of sections is my mistake or is intended like that by amsart? If not, I'd like to know, even manually, how to correct it? I have tried a double title (one in square brackets having more space before the text) but no result.  \documentclass{amsart} % \usepackage{titletoc} \usepackage{amsthm} \usepackage[english]{babel}   \begin{document}    \tableofcontents  %% --------------------------  \section{First Movement}  \subsection{Allegro con brio}    \subsection{Allegro senza brio}    \section{Second Movement}   \subsection{Adagio}   \subsection{Piu adagio}   \subsection{Ancora piu adagio}   \section{Third Movement: ``la sveglia''}  \section{Finale}  \subsection{Prestisisimo}   \end{document}
56118
This question led to a new package:      Is it possible to create headings in LaTeX where you don't specify what level of the heading you want, but rather if you want to go up, down, stay or start over in the hierarchy that the heading is going to be placed within?  That is, instead of writing  \section{Level 1} \subsection{Level 2} \subsection{Level 2} \subsubsection{Level 3} \subsection{Level 2} \section{Level 1}   write something like  \sectiontop{Level 1} \sectiondown{Level 2} \sectionstay{Level 2} \sectiondown{Level 3} \sectionup{Level 2} \sectiontop{Level 1}   If you would use something along these lines, it would be possible to make quick changes. For example, if you suddenly realized that you wanted to place the headings on row 2-5 under a certain heading, you could easily do this by placing a \sectiondown before them. If you instead was using the system where you had to specify the level of every heading you would have to make individual changes to all 4 rows.
32789
That may be a stupid question but is there a way to keep the indent while using the parskip package? I use parskip to keep spacing between my paragraphs while leaving the table of contents and lists intacts but I would like to keep the indents in my text.  Code 1 :  \usepackage{parskip}  \tableofcontents  \section{Section 1} \subsection{Sub 1}  Paragraph 1  Paragraph 2   Code 2  \setlength{\parskip}{10pt}  \tableofcontents  \section{Section 1} \subsection{Sub 1}  Paragraph 1  Paragraph 2   Basically I want the aspect of the table of contents (and possible lists) from the code 1 while keeping the indent like in the code 2. The package parskip works great but I just don't like that it deletes the indents and I'd like to find a way to prevent it from doing that.   Thank you.
50382
See the min expl below. I would like to have two ToC: one giving only the rough structure of the document and a second one giving all the details down to subsubsections. The code pasted below should do just that but the second ToC is not displayed which I do not understand.  \documentclass{report}  \begin{document}  \setcounter{tocdepth}{1}           \setcounter{secnumdepth}{3}         \tableofcontents  \renewcommand*\contentsname{Contents (detailed)}  \setcounter{tocdepth}{3}            \tableofcontents  \chapter{XXX} \section{YYY} \subsection{WER} \subsubsection{ABC} \subsubsection{DEF} \subsection{ZTR} \subsubsection{OIU} \subsubsection{OIZ} \subsubsection{POI} \section{YYY} \subsection{WER} \subsubsection{EDC} \subsubsection{RFV} \subsection{TGB} \subsubsection{ZHN} \subsubsection{OUH} \subsubsection{WEK} \chapter{ZZZ} \chapter{AAA}  \end{document}      Just noticed there is still a problem with hyperref:  \documentclass[10pt, a4paper]{report} \usepackage{shorttoc} \usepackage{hyperref} \begin{document}  \setcounter{secnumdepth}{3}        \pdfbookmark[1]{Contents}{toc}     \shorttoc{Contents}{1}   \pdfbookmark[1]{Contents (detailed)}{toc}     \shorttoc{Contents (detailed)}{3}  \tableofcontents  \chapter{XXX} \section{YYY} \subsection{WER} \subsubsection{ABC} \subsubsection{DEF} \subsection{ZTR} \subsubsection{OIU} \subsubsection{OIZ} \subsubsection{POI} \section{YYY} \subsection{WER} \subsubsection{EDC} \subsubsection{RFV} \subsection{TGB} \subsubsection{ZHN} \subsubsection{OUH} \subsubsection{WEK} \chapter{ZZZ} \chapter{AAA}  \end{document}    By what does {toc} has to be replaced in the second \pdfbookmark? [Sorry, had problem with editing the above comment --> administrator please delete it!]
117086
Is it possible to omit a single specific subsection from the table of contents, while keeping it numbered as usual within the main body, and keeping other subsections listed?  (I am using the amsart class.)
59835
I have 5 tables and a section after them. After creation of an output file I have two tables on one page, then a section and last 3 tables on next page.  What I want to achieve is to put tables and section below them.  \begin{table}[ht]\footnotesize \centering \begin{tabular}{|ll|} ...... \end{tabular} \label{tab:result} \end{table}  \section{Section below tables}
71000
I am submitting a paper to a conference that has a limit of 10 pages.  I have edited and edited the text, but the paper still fills 11 pages, and I am reluctant to remove anything.  What tricks can I use to make the paper fit in 10 pages?    I know about \vspace{-1mm}, but are other and better tricks?  How can I squeeze a little bit between lines, around the elements produced by \maketitle, around headlines, etc. in a way that is consistent and does not look too ugly?  Is it possible to reduce the font size from 11 points to, say, 10.9?  (This should be community wiki, but I don't have enough rep yet.)
49971
I want to display my article's abstract and table of contents side-by-side, to save space. I'm using the multicol package, but it tries to keep each column the same height, and I can't figure out how to force it to move content into the second column.  Here's a mockup; I'm just padding out the abstract to show what it should look like. The layout is perfect, I just want a way to do this properly:  \usepackage{multicol} \begin{document} \maketitle  \begin{multicols}{2} \section*{Abstract}  \lipsum[1-2]  a % padding to make the first column run to   % end of page a  a  a  a  a  a  a  a  a  a  a  a  \tableofcontents \end{multicols}   And here's what it looks like, rendered (perfect except for the padding lines):
45795
I have a long and complex document that I want to render as a minimal outline only, without the body of the text. What is the best way to do this?  What I have tried so far is to save a version with titles only, and no other text. This does not work though. The outline gets caught off.  To try and solve the problem, I made a test file like this:  \documentclass{article}  \begin{document} \section{Foo} \subsection{bar} \subsection{bar} \subsection{bar} \section{Foo} \subsection{bar} \subsection{bar} \subsection{bar} [... eight more sections ... ] \end{document}   The output from this is a two page document, the first page of which is blank. On the second page, the outline appears, but it runs right to the margin until it gets cut off.  Adding a little bit of filler text to each section solves the problem. But without doing that, how can I get the output I would expect?  EDIT: I've edited this to emphasize the specific practical objective I am trying to accomplish, rather than the technical issue of empty sections which is covered .
119973
\begin{center}     \section*{\textcolor{blue}{Ukaaranta }}     \end{center}     \subsection*{Shabhu Harivat}     \addcontentsline{toc}{subsection}{shambhu harivat}  \begin{center}     \section*{\textcolor{blue}{Krostru Shabda}} \end{center}   I have a need to create something like this, however when I run this program, it gives error at the second \end{center}.  Funny but the same command works above. I did not do anything different, just copy pasted and changed the text. Similar commands elsewhere in the document work just fine. I have no clue why it's behaving like this.   Hit ? and R - enter and it gives the desired output but it's a pain to do that every time.