With the code below, baz is nested in bar. What I'd like to do is break this nesting, in other word make it look like a section as if there were no preceding chapters.   \documentclass{scrreprt}  \begin{document}  \tableofcontents  \chapter{foo}  \chapter{bar}  % Sectioning break where  % Everything that follows % belongs to the document, not nested in preceding chapters  \section{baz}  \end{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}
96279
I am using multicol to make a two-column document using the book document class. I have a long tabular that I want to break where the page breaks and then continue in the next column.  I could split it into two tables, but I want their width and such to be the same. I've tried with longtable but can't get it to work.  I basically want the table to split and arrange itself into two columns just like normal text does.  Edit: Sorry for the lack of information. With just 1 column it works fine with longtable, but when I use multicols it breaks down and just continues outside the page. I also get an error while compiling.     Package longtable Error: longtable not in 1-column mode.   This is a simplification of my code:  \documentclass[11pt,a4paper]{article}  \usepackage{multicol} \usepackage{longtable}  \begin{document}  \begin{multicols}{2}  \begin{longtable}{ccc} Header of first column &amp; Header of second column \\ \endhead Table cell 1, 1 &amp; Table cell 1, 2 \\ Table cell 2, 1 &amp; Table cell 2, 2 \\ Table cell 1, 1 &amp; Table cell 1, 2 \\ ... ... \end{longtable}  \end{multicols}  \end{document}     I hope this is enough information. Any thoughts?
39041
I have a table of contents (\tableofcontents) in my document. How can I hide subsections in it? I want that only names of sections are displayed there.
74486
I've googled, and I read a lot about how not having a pagebreak before a new chapter is bad style. I've read about how one could use sections instead. I've read about how changing whether a chapter begins on a new page or not within a document is even worse, from a style standpoint.  However, if I still have to do it somehow, typographic style be damned, and I have to do it in a twocolumn document...  Background: I am translating a set of gaming rulebooks into a single scrbook, with each original rulebook represented by a part in my scrbook. Layout of the rulebooks is relatively uniform, with  beginning on a new page each.  The exception to this is the first rulebook / part, which has very short chapters, sometimes several on a single page, but following the same numbering scheme as the more elaborate chapters in the other rulebooks / parts.  I could typeset that first book seperately, using sections instead of chapters, and include the resulting PDF. That way, I would lose the common TOC / LOT / index, which would be unfortunate.  I could wing it by redefining header formats for the first part, to make sections "look" like chapters and subsections look like sections and subsubsections... and so on. Pretty heavy-handed.  Edit: The solution in  (using etoolbox to patch the clearpage / cleardoublepage out of the definition of \chapter) does not work for a twocolumn document, yielding "Float(s) lost" errors. (I hadn't mentioned the twocolumn detail before as I did not think it would make a difference.) User lockstep asked for a seperate question; instead, I vote for re-opening this (edited) one.    tl;dr:  Is there a way to tell LaTeX not to put a pagebreak for \chapter in a twocolumn document?
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?
72481
Here's a problem (at least it seems like a problem) I noticed in the first couple revisions of . Based on experiments shown below, when I include within a &lt;pre&gt; block lines that start with one or more spaces, they appear as a nested pre-area in the question, and if there are enough of these lines, I get two scrollbars, one for the nested &lt;pre&gt; (which seems to be created by the Markdown parser) and one for the outer &lt;pre&gt; (which is explicitly given in the question). I'd expect to get only one &lt;pre&gt; in the rendered question, the one that I explicitly include.  Example:   line of code  line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code line of code   line of code line of code
17643
I'm writing a book using memoir, and I'd like each chapter's text to begin on a new page after the chapter headings (so each chapter heading stands on a page by itself).  Is there a way to make this automatic, so I don't have to add the \newpage command after each instance of \chapter{}?  I tried \renewcommand{\chapter{}}{\chapter{} \newpage}, but it doesn't seem to work...  Here is my MWE as it stands with my current chapter header customizations:  \documentclass{memoir} \usepackage[american]{babel}  % Chapter headers customize \setsecnumdepth{none} \setlength\beforechapskip{6\baselineskip} \renewcommand*{\chaptitlefont}{\sffamily \HUGE \bfseries}  \begin{document} \chapter{Chapter 1} My text. \end{document}
118917
Possible Duplicate:          In a table I would like to have a line break in the text inside a cell. Is there an easy way to do so, or do I have to create a new line without borders? The same holds true for other situations such as breaking a line in a caption for instance.
44968
Suppose a book has only 4 chapters. Suppose each chapter has a ridiculously large number of sections, say, 100.  A table of contents with depth=0 for this book will take only 1 page, whereas a table of contents with depth=1 will run to 20 pages.  For such a book, it would be great to have 2 consecutive tables of contents: the first would refer to chapters only, and the second would break down chapters into sections.  How could I do this?  In the following example, the second TOC gets blank.  \documentclass{book} \begin{document}  \setcounter{tocdepth}{0} \tableofcontents  \setcounter{tocdepth}{1} \tableofcontents  \chapter{One} \section{a} \section{b} \section{c} \section{d} \section{e} \chapter{Two} \section{a} \section{b} \section{c} \section{d} \section{e} \chapter{Three} \section{a} \section{b} \section{c} \section{d} \section{e} \chapter{Four} \section{a} \section{b} \section{c} \section{d} \section{e}  \end{document}
108054
When using a documentclass of book, it seems there is a \newpage inserted after the \tableofcontents and \listoffigures. How can I suppress this? In articles, the following works. How can I get this layout with a book?  \twocolumn \tableofcontents \listoffigures \listoftables \printglossaries \onecolumn
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
9993
I am using Beamer with the Warsaw theme to make a presentation.  I quite like having a mini-outline of the TOC at the start of each slide.  However, I have found that it tends to take up quite a bit of vertical space.  Hence, I am wondering if it is possible for the per-slide TOC (\sections and \subsections) to be split over two columns so:  A B C D   to  A B  or  A C C D      B D   I am aware of the compress option which forces list of sections and subsections to be on a single line but this is a bit too extreme.  I have also seen a couple of questions relating to splitting the global table of contents over two columns -- however I am interested in the mini-TOC which appears at the start of every frame (with the Warsaw theme at least).
10770
I have the following VF page, but when I render it as pdf the Apex:repeat tables break in the middle to the next page. I'm thinking of limiting the tables displayed in each page to avoid table breaks. Is there any way of doing this or any better ideas ? Any help on this would be appreciated.   &lt;!-- Report Data --&gt;         &lt;apex:outputPanel layout="none" &gt;             &lt;apex:repeat value="{!rsReportRows}" var="reportRow" &gt;                 &lt;!-- Risk Data --&gt;                 &lt;table cellpadding="7" style="border-top:1px solid black;border-left:1px solid black;border-right:1px solid black; border-bottom:1px solid black; width:100%;"&gt;                     &lt;tr&gt;                         &lt;td style="text-align:center;" colspan="{!parentObj.fieldApiNamesList.size}" &gt;&lt;b&gt;Risk&lt;/b&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                         &lt;apex:repeat value="{!parentObj.fieldLabelsList}" var="fieldLabel" &gt;                             &lt;th style="font-size:{!pdfFontSize}pt;" &gt;&lt;apex:outputText value="{!fieldLabel}" /&gt;&lt;/th&gt;                         &lt;/apex:repeat&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                         &lt;apex:repeat value="{!parentObj.fieldApiNamesList}" var="field" &gt;                             &lt;td &gt;                                 &lt;apex:outputField value="{!reportRow.risk[field]}" rendered="{!field != 'risk__residual_score_movement_direction__c'}" /&gt;                                 &lt;apex:outputField value="{!reportRow.risk[field]}" rendered="{!field == 'risk__residual_score_movement_direction__c' &amp;&amp; (CONTAINS(reportRow.risk[field],'Up') || CONTAINS(reportRow.risk[field],'Down') || CONTAINS(reportRow.risk[field],'Right'))}" /&gt;                             &lt;/td&gt;                         &lt;/apex:repeat&gt;                     &lt;/tr&gt;                 &lt;/table&gt;                  &lt;!-- Related List Data --&gt;                 &lt;apex:repeat value="{!relatedList}" var="rList" &gt;                     &lt;apex:outputPanel layout="none" rendered="{!rList.isSelected &amp;&amp; rList.fieldsList.fieldApiNamesList.size &gt; 0}" &gt;                         &lt;table cellpadding="7" style="border-bottom: 1px solid black;border-left:1px solid black;border-right:1px solid black; width:100%;"&gt;                             &lt;tr&gt;                                 &lt;td style="text-align:center;" colspan="{!rList.fieldsList.fieldApiNamesList.size}" &gt;&lt;b&gt;{!rList.relationshipLabel}&lt;/b&gt;&lt;/td&gt;                             &lt;/tr&gt;                             &lt;tr&gt;                                 &lt;apex:repeat value="{!rList.fieldsList.fieldLabelsList}" var="fieldLabel" &gt;                                     &lt;th &gt;&lt;apex:outputText value="{!fieldLabel}" /&gt;&lt;/th&gt;                                 &lt;/apex:repeat&gt;                             &lt;/tr&gt;                              &lt;apex:repeat value="{!reportRow.objRecords[rList.relationshipName]}" var="record" &gt;                                 &lt;tr&gt;                                     &lt;apex:repeat value="{!rList.fieldsList.fieldApiNamesList}" var="field" &gt;                                         &lt;td&gt;                                             &lt;apex:outputField value="{!record[field]}" /&gt;                                         &lt;/td&gt;                                     &lt;/apex:repeat&gt;                                 &lt;/tr&gt;                             &lt;/apex:repeat&gt;                         &lt;/table&gt;                     &lt;/apex:outputPanel&gt;                 &lt;/apex:repeat&gt;                 &lt;div style="clear:both;"&gt;&amp;nbsp;&lt;/div&gt;                 &lt;div style="clear:both;"&gt;&amp;nbsp;&lt;/div&gt;             &lt;/apex:repeat&gt;         &lt;/apex:outputPanel&gt;
119850
I want to add a section without a number, but \section* also excludes it from the numbering, so if there is this  \section*{Section 1} \subsection{Subsection} \subsection{Subsection 2} \section*{Section 2} \subsection{Subsection 3}   I get what I want untill Section 2, but I want Subsection 3 to be numbered as "2.1", and it keeps numbering "1.3".  Is there any command that can fix this?
68844
I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to allow a word break with hyphenation. But: I would like LaTeX not to insert a dash (which could be mistaken as belonging to the dataset name). How can I do this?   (Something similar is realized in the url package so I guess I could just read that code :) I would not like to use the url package here to be able to make a syntactical (and typographic) difference between urls and datset names.)
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   ?
118402
I want to suppress the word 'chapter' from my headings but to leaving the normal 'CHAPTER X: Name of the chapter' in the document.  I want that my headings says '# Name of the chapter', not 'Chapter # Name of the chapter'.