0
votes
0answers
29 views

How to remove the space between the context and the section?

\documentclass{article} \usepackage{fontspec} \usepackage{ulem} \setmainfont[BoldFont=黑体]{宋体} \makeatletter \renewcommand\subsubsection{\@startsection {subsubsection}{2}{1em}%name, level, indent ...
0
votes
0answers
20 views

Automatically applying wrapfig hotfix only when a section heading is the last thing on a page

I have the same problem as the user 'mrf' on Wrapfig and page breaks after section heading (see link for MWE and hotfix). Using wrapfig basically messes up the document flow such that section ...
5
votes
2answers
298 views

How to force LaTeX to keep section/subsection headings with one line below it on the bottom of the current page?

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings, but I would like to keep the section heading with even one line below it at the ...
11
votes
3answers
361 views

Insert newpage before section but prevent pagebreak after part

Maybe some of you can already guess what I'm trying to achieve; I want to redefine some commands with the following result: every \section should start on a new page except for sections which are ...
5
votes
1answer
86 views

Unbreakable section

I would like to know if there is any global command that would prevent any page-breaks inside sections. All my sections are short enough. I read some solutions, such as Absolutely, definitely, ...
1
vote
2answers
507 views

How to change this \renewcommand\section to prevent page break just after the title? [closed]

I am using the following command in my class (thanks to this answer): \renewcommand\section{\@startsection{section}{1}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% ...
8
votes
1answer
170 views

How to generate a “<section> continued” heading after page-break?

This is a follow-up question of the answer to Re-displaying section headings after page-breaks As in the follow-up question, I would like to repeat the section heading after a page break, but ...
5
votes
1answer
300 views

Conditional column break in ConTeXt

Background Trying to determine whether a column break must be inserted on a two-column page. There are multiple sections on the page. Before the last section on the page, I want to insert a column ...
8
votes
1answer
223 views

How to prevent page break between section title and table

I have several consecutive subsections which only contain one longtable each, right after the subsection title. So it happens that some of the subsection titles are at the bottom of the page and the ...
3
votes
1answer
66 views

Adding continuation pages for overflowing sections

Suppose I have a collection of sections (each starting after a \newpage) such that the total content of some of the sections is more than one page. What I want to do is to get LaTeX to recognize this ...
5
votes
1answer
3k views

Remove pagebreak after a chapter (Only for one chapter!)

I am using the report style. I have a conclusion chapter and an acknowledgement chapter. I want to bind them together as they are both very short. I want to remove the Pagebreak after conclusion but ...
6
votes
1answer
113 views

Re-displaying section headings after page-breaks (with titlesec)

This is a follow up question to Re-displaying section headings after page-breaks. The top answer by Werner works, but not when the package titlesec is loaded. Is another solution possible which does ...
5
votes
2answers
371 views

Page break after every section

The skeleton of my document is: \documentclass[11pt]{article} \usepackage{amsmath,textcomp,amssymb,geometry,graphicx} \begin{document} \maketitle \section*{1.} \begin{itemize} \item[(a)] ...
7
votes
1answer
66 views

I need an hrule, but not when at the top of the page

I have a multi-page document that has many small sections split with \hrule lines. Occasionally a section will end immediately before a page break, and so the next section will begin right at the top ...
3
votes
0answers
103 views

ToC page numbering occasionally wrong after using vspace [closed]

I'm writing my dissertation and have a few sections that are small, less than a page, each with a figure. I'm letting the figures float to the next section to keep them from being on a page by ...
2
votes
1answer
211 views

\usepackage{sectsty} and problems with \pagebreak

UPDATE WHERE IT BREAKS DOWN... PLEASE REFER TO CODE BELOW. I ADDED ONE MORE PACKAGE and ONE DEFINITION \documentclass[twocolumn]{book} \usepackage[T1]{fontenc} \usepackage{caption} \usepackage{tikz} ...
3
votes
2answers
707 views

Table caption spanning two columns

I have an appendix section in my document, and I have to put a table after that. The problem is that I intend to use table*, but if I use that it would ignore table*[h] and will place the table on top ...
3
votes
2answers
278 views

titlesec \clearpage before a part

I'm using the titlesec package for my sectioning. I want to have a \clearpage before every \part however when I put it into the format field of ...
1
vote
1answer
129 views

twocolumn span across multiple pages

I want to prevent twocolumn from using magazine-style section breaks across multicolumn pages. I'm currently invoking twocolumn like so: \documentclass[twocolumn]{article} But this is creating the ...
4
votes
1answer
115 views

Preventing page break after sectioning when body begins with a command?

I use the acro package heavily in my thesis, but I noticed that one section has a page break right after the section header. This appears to be a result of the first paragraph beginning with \Ac{} ...
4
votes
1answer
266 views

Repeating section headers in moderncv?

I am trying to prepare my CV using moderncv, and my publication list currently splits pages. I would like the top of the next page to have \refname{} (continued) in the same typeface as the original ...
2
votes
0answers
90 views

How to avoid page overrun using scrreprt document? [closed]

I'm in the process of writing a requirements document and have been using a template based on the scrreprt document class. The problem I'm running into is that when I compile my document, in certain ...
3
votes
2answers
227 views

New page at end of subsection (not start!)

In order to keep everything neat and tidy in my document (in particular with regards to floats floating all over the place), I want each subsection to end with a \clearpage. I originally had the ...
3
votes
0answers
31 views

Prevent new sections to start on the lower part of page [duplicate]

Is it possible to redefine the section-command so that it automatically starts on a new page if say less than a quarter of the current page remains? Below is a minimal working example. In this case ...
6
votes
1answer
141 views

How do I make the title 'Figure' appear on the same page as my first figure

This is my code: \documentclass[twoside, a4paper, 11pt]{article} \title{} \author{} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{mathtools} ...
3
votes
2answers
331 views

\clearpage after every subsubsection

I'd like to clear the page at the end of every \subsubsection. I tried \usepackage{titlesec} \newcommand{\subsubsectionbreak}{\clearpage} But this appears to force a \clearpage at the start of ...
10
votes
1answer
518 views

Using mdframed after a section heading

The following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is ...
5
votes
3answers
2k views

How to prevent page break between two section headings

I have a custom document class, based on book.cls, for which the following code sometimes produces page breaks between two subsequent sections: \section{Introduction} % page break may occur here ...
2
votes
1answer
372 views

nomenclature page formatting

I have a list of symbols generated throught the nomencl package. It works fine. The only problem I have is: How can I redefine the margins for the page? by default it is using the margins for ...
7
votes
3answers
1k views

How can I make \titlespacing not omit the top spacing?

In a multicols*{2} environment for 12pt linehight text, I use \titlespacing*{\subsection}{0pt}{12pt}{12pt} To create exactly 12pt of space before and after subsections. Together with a line height ...
1
vote
0answers
53 views

No automatic page breaking after inserting figure [duplicate]

Possible Duplicate: Overfull box and broken pagination I'm currently using Latex for the first time in about a year, and I've run into some trouble. I have two images in my document so far, ...
6
votes
1answer
1k views

two chapters on same page in memoir

I am writing a preface, which consists of roughly ten sentences describing my work. I have to write this in both English and Swedish. Same content, merely different languages. I have chosen to have ...
5
votes
4answers
283 views

How can I add a page break after a chapter title?

I'd like to have a page that is mostly blank, but just shows the chapter number and the title, and maybe a small summary of the chapter, followed by white space... The actual sections will start on ...
2
votes
1answer
160 views

Empty sections cannot be broken, making page look stretched out

This is almost duplicate to question Random unwanted space between paragraphs but I don't even use \par. I'm using pdflatex to compile a .tex file. As I wrote my text I noticed a sudden change in how ...
5
votes
2answers
414 views

Make \sections begin on even-numbered pages in documentclass scrartcl

I am using the scrartcl class for a bunch of documents and I would like to start every \section (including \tableofcontents) on even-numbered pages. I am using custom headers, so I would also be ...
2
votes
1answer
157 views

Supress page breaks before headings, allow orphans

I am trying to create a simple outline document (based on scrbook), that contains just headings (chapter, section, ...) and a few notes inbetween. For that, I removed the clearpage before a new ...
4
votes
1answer
660 views

Defining a prose-style section break command [duplicate]

Possible Duplicate: Paragraph breaks with asterisks I'm trying to define a command to insert section breaks into a prose manuscript. Specifically, I would like to use a command to insert ...
16
votes
1answer
746 views

Displaying the range of sections on the page in the header

I would like to have on each page the range of sections covered by it displayed, opposite of the page number and accompanied by the name of the first new section (if there is a new one) starting on ...
0
votes
0answers
29 views

Chapters on the same page or not displaying parent counters [duplicate]

Possible Duplicate: Start new chapter on same page Using the scrbook class so far, what I want is either to get new chapters to start on the same page as the last one (after a reasonable ...
7
votes
3answers
545 views

Section open right in scrbook

Using scrbook, I would like sections to open on a new odd page, like chapters do. How can I achieve that?
8
votes
2answers
275 views

How can I tell LaTeX to only make pagebreaks on new sections?

I'm working on a document where it's important that sections are in the same page. How can I tell LaTeX to only make a page break (if necessary) when I write a new \section without having to manually ...
7
votes
1answer
116 views

No pagebreaks between questions and answers

I'm working on a homework set, and one of my answers to a multi-part question has become very long. I've been keen on keeping problems and solutions as much on the same page as possible, and my ...
3
votes
2answers
2k views

section numbers (\thesection) and names have next page's values

I have customized my headers to display section numbers and section names. However: (a) The section number (\thesection) in my header often shows up with the next page's value. (b) The section name ...
2
votes
1answer
114 views

Two margin woes

I have two problems with my margins. One is that when I print the margins, I can't seem to get them to come out properly. I have \usepackage[top = 1in, bottom = 1in, left = 1.5in, right = ...
0
votes
1answer
1k views

Suppress/remove sectioning (heading) from table of contents?

(NB: not the same question as How to remove “Contents” line from table of contents [closed]) Please consider the following MWE, compiled with pdflatex test.tex: \documentclass[twoside,a4paper]{book} ...
5
votes
2answers
1k views

Error while trying to start chapters on the same page

This is my first post here. I have tried the solution proposed in this site to start chapters in the same page as the previous one ended but I always get an error. I am a TeX newbie and I feel that ...
3
votes
1answer
181 views

No page break before a heading, while preserving some vertical space before heading?

How can I prevent a page break before a run-in section heading while preserving vertical spacing before the heading? Based on the suggestion in How to prevent a page break before an itemize list?, I ...
3
votes
1answer
2k views

How to remove empty pages in document class article

Between sections/section or sections/subsection I have empty pages if a pre-section or pre-subsection does fill one page. My document class: \documentclass[9pt]{article} How can I avoid this? ...
5
votes
1answer
2k views

\newpage and \clearpage does not work

The following problem shows up: Usually after the end of every chapter, there's a blank page before the new chapter starts in my document. Funnily enough, there is one point in my pdf where is no ...
8
votes
3answers
2k views

Chapter title and abstract in the same page

I'm writing a report and I need to write an abstract for the chapter after the chapter title in the same page. How can I do this?