I am using \documentclass{amsart} and want my table of contents subsections to be indented slightly beneath the sections. Right now, all the sections and subsections are equally flush to the left side. I still want the page numbers to be aligned though. What is the proper code?
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}
61644
I'm trying to use the titletoc package to add the word "Chapter" only to my numbered entries in my Table of Contents. I'm using a report document class. I'm really close (I think), I just need to know how to align the numberless entries with the word "Chapter" from the numbered entries.   Here's what I've got:  \usepackage{titletoc}%  \titlecontents{chapter}% &lt;section-type&gt;   [0pt]% &lt;left&gt;   {}% &lt;above-code&gt;   {\bfseries\chaptername\ \thecontentslabel\quad}% &lt;numbered-entry-format&gt;   {\bfseries}% &lt;numberless-entry-format&gt;   {\bfseries\hfill\contentspage}% &lt;filler-page-format&gt;   Which gives me:    I'd like to align those numberless chapters on the left hand side with the word "Chapter". Also, I'm receiving \hbox warnings for the page numbers with four or more characters (such as viii) and am not sure what to do about those. I'm new to LaTeX and am at a loss. I tried looking through the titletoc documentation but was unsuccessful. Thanks in advance!   EDIT: As requested, here is a MWE:  \documentclass[12pt]{report} \usepackage[utf8]{inputenc}  \usepackage{titletoc}%  \titlecontents{chapter}% &lt;section-type&gt;   [0pt]% &lt;left&gt;   {}% &lt;above-code&gt;   {\bfseries\chaptername\ \thecontentslabel:\quad}% &lt;numbered-entry-format&gt;   {\bfseries}% &lt;numberless-entry-format&gt;   {\bfseries\hfill\contentspage}% &lt;filler-page-format&gt;  \usepackage{lipsum}  \usepackage{setspace}  \begin{document}  \pagenumbering{roman}       \clearpage                   \setcounter{page}{2}          \chapter*{Abstract} \addcontentsline{toc}{chapter}{\numberline{}Abstract} \lipsum[1]  \chapter*{Acknowledgements} \addcontentsline{toc}{chapter}{\numberline{}Acknowledgements} \lipsum[1]  \begin{doublespace} \renewcommand*{\contentsname}{Table of Contents} \tableofcontents \addcontentsline{toc}{chapter}{\numberline{}Table of Contents} \end{doublespace}  \pagenumbering{arabic} %\setcounter{page}{255}  % % Uncomment to see \hbox warnings due to long TOC page number  \chapter{Introduction} \lipsum[1] \section{Section one} \lipsum[1]  \chapter{Second Chapter} \lipsum[1] \section{Another section} \lipsum[1]  \end{document}   Note: remove the comment to receive the \hbox warnings. Thanks again
35305
I use the listings package for code listings and I turned the line numbers on. But they appear left of the paragraph. I want them inside the paragraph. In the documentation it looks just right. Here is my code:  \documentclass[12pt,a4paper]{scrartcl} \usepackage{listings} \lstset{numbers=left} \begin{document} \section{Test} Test \begin{lstlisting}     test() \end{lstlisting} \end{document}
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.
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?
8125
I want to format paragraph to work as a regular title  \paragraph{title} text goes here   output of that is:  title text goes here    how can I change the output to force line break and use the usal indentation of 1st line?  title  text goes here  __  edit1: this is for a thesis and I'm using the document class - book. I don't want to use \subsubsection because this is the structure of the document. I just simply need one level of headers deeper.  And that is why I wanted to use \paragraph as a heading not as paragraph.  edit2: clarification: I'd like paragraph to behave like a header like section subsection subsubsection etc
70342
I'm trying to adjust a simple template in Pages version 5.2 but can't for the life of my figure out how to change the existing layout such that the text spans the full width of the page.  I've turned on Show Layout and tried adjusting the left Document Margin to 0 but it's still indented by about 4.5cm and that throws the footer and header too far to the left.  The Ruler won't allow me to drag the slider any further left than the edge of the layout.  Changing the Column settings doesn't do it either. My Indents settings are all set to 0. I'm completely at a loss as to how to do this.  I've had no issue changing the top, bottom and right margins, but the left margin seems to have this welded in inset.  The following screen snap of the standard Business Letterhead template (with markup in red) indicates what I am trying to achieve.    My thinking is there is some weird margin applied, but I don't know where it is set. I can not move the blue tip (see image below)    How can the tip to the left be moved? Right now it is 'blocked'.
42984
I would like to place figures in my document in certain subsections. Normally I would achieve this with float using [H]. But this would mean, that the figures are at fixed points in my text and sometimes this just doesn't look good.   I already found this question:   How can I tell LaTeX use subsections as float barriers instead of sections.
81973
I'm writing my thesis and I woud like to add a minitoc at the beginning of each chapter. However, I don't like the standard format where the titles of the sections are listed as in the main TOC and I would like to align the titles on the same row (a format I saw in several books), maybe sperated by a comma or a textbullet. I mean something like this:     Chapter 1      Contents      1.1 Sec 1, 1.2 Sec 2, 1.3 Sec3, 1.4 Sec 4   I can do this for the main TOC through the titletoc package, but I need it for minitoc. Is there a way to have this customization of the minitoc? Thank you in advance.
25022
I am using my school's latex . Unfortunately, since this package was last updated, we are now required to add the word 'Page' above the topmost page number on each page of the Table of Contents. This cls file includes the following bit of code, which puts 'Page' at the top of the first page, but not any subsequent pages (see attached)  \newcommand\chapteruaf{ \if@arabic\relax\else\if@chapterone\setcounter{page}{1}\else\relax\fi\fi \@chapteronefalse                     \if@openright\cleardoublepage\else\clearpage\fi                     \thispagestyle{myheadings}%                                                                                                    \global\@topnum\z@                     \@afterindentfalse                     \secdef\@chapter\@schapteruaf} \def\@schapteruaf#1{\if@twocolumn                    \@topnewpage[\@makeschapterheaduaf{#1}]%                                                                                     \else                    \@makeschapterheaduaf{#1}%                                                                                                     \@afterheading                  \fi} \def\@makeschapterheaduaf#1{%                                                                                                    {\parindent \z@ \centering     \reset@font     \normalsize \bfseries  #1\par                                                                                                  \vspace{-18.3pt}\hspace{143mm} Page                                                                                            \nobreak   }}   First page of the TOC:   second page of the TOC:   Any thoughts here? I have played with this a bit, and can't get it to work. Thanks.
85191
I am writing a document using the report class in two column mode, but I need a \section to spread across both columns, but how can I set that?  Something like  \documentclass[10pt,danish,a4paper,twoside,twocolumn]{report} \input{preamble.tex} \begin{document}  % This section should spread over both columns \section{Name}  \lipsum[1-3] \end{document}
9712
Hello I am trying to further modify my TOC.  I got an answer  as to how I could remove the \section numbers on the left side of the TOC and now I would like to expand that.  I would like to remove the left-hand numbering for \subsection and \subsubsection as well but I do not know how.  (I also want to keep these numbers out of the document and I am using \def\sectionformat{} to do that)  Also, my TOC is slightly over one page and so I would like to adjust the spacing from 2 to 1.5,  is there any way to do this?    \documentclass[12pt, a4paper, twoside]{article}     \usepackage{baskervald}     \usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}     \usepackage[T1]{fontenc}     \usepackage[notes]{biblatex-chicago}     \usepackage{filecontents}     \usepackage{microtype}     \usepackage{url}     \usepackage{makeidx}     \usepackage{indentfirst}     \usepackage{setspace}     \usepackage{chngcntr}\counterwithin*{footnote}{section}     \newcommand*{\textsubscript}[1]{$#1{}$}     \DefineBibliographyStrings{english}{references = {Works Cited}}     \DeclareBibliographyCategory{primary}     \makeindex     \addbibresource{bibliography.bib}     \makeatletter     \let\latexl@section\l@section     \def\l@section#1#2{\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}     \def\@seccntformat#1{\ifcsname #1format\endcsname\else\csname the#1\endcsname\quad\fi}     \def\sectionformat{}     \def\subsectionformat{}     \def\subsubsectionformat{}     \makeatother     \author{}     \title{\vspace*{36 pt}\textbf{\emph{\Huge{Big Important Title}}}\vfill}     \date{}     \begin{document}     \tableofcontents     \section{Part I}     Hello World     \end{document}
97384
As discussed for example here:  subscripts should usually be typeset upright. Is there a possibility to this automatically e.g. inserting something to the document-header? Or, if not possible in LaTeX, is there an option in LyX? Until now I do it like this: Q _ Alt Z R test which is quite slow.
52127
How can i change formatting of the table of contents to avoid section numbering and section title to overlap?  Document:  \documentclass[10pt,oneside,notitlepage]{book}  % Use Heuristica Font \usepackage{heuristica} \usepackage[heuristica,vvarbb,bigdelims]{newtxmath} \renewcommand*\oldstylenums[1]{\textosf{#1}}   \begin{document}  \tableofcontents  \part{Part one}  \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh} \chapter{Chapter Oh}   \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi} \section{Chapter Hi}  \end{document}   Example output:
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:
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!]
84507
I am writing a small KOMA-Script scrartcl document with multiple sections. In the table of contents, LaTeX fills the current line with dots between the end of the section name and the page number. Is there any way to customize this behavior? I would like to reduce the space between the single dots (i.e. use more dots in the same space).