4
votes
1answer
41 views

Image vs Text Arrangement [duplicate]

When I write a multi-page paper with imported images, I usually try to group the picture with the text referencing it. Sometimes, there is not enough room at the end of the page for the picture, and ...
10
votes
1answer
112 views
+150

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...
5
votes
1answer
109 views

mdframed: splittopskip does not work when the first object after splitting is another mdframed box

Question I would like to add space in an mdframed environment after a splitting (a page break) and in the case where the first object after the splitting (the page break) is another mdframed ...
5
votes
3answers
103 views

Proper vertical spacing and pagebreaks in custom environment

I would like to design a simple environment which displays examples. This is what I got so far: \documentclass{article} \usepackage{xcolor} \usepackage{parskip} \usepackage{lipsum} \makeatletter ...
3
votes
4answers
116 views

Vertical spacing for writing answers

I couldn't find any answers to this issue, so I hope you LaTeX gurus can help me out. I am formatting a study guide with the KOMA scrbook class. Throughout there are (enumerated) lists of discussion ...
2
votes
2answers
100 views

Why is there only one question on the second page? Using Exam Class

I am trying to format this exam; however, the number of question per page is horrible. There is no logical reason why there is only one question on the second page and several on the next page and ...
2
votes
2answers
89 views

How to force a text to appear after a table

I have to show a set of four tables: one after another. Each table has almost middle page of information, and I really need them to appear before the next block of text. An example of LaTeX code is ...
4
votes
0answers
79 views

longtable package: Stretch height of last row on page

Consider the following code \documentclass[a4paper]{article} \usepackage{longtable} \usepackage{lipsum} \begin{document} \begin{longtable}{|p{5cm}|} \hline \lipsum[5] \\\hline ...
7
votes
1answer
153 views

Break line only if it's too long, but breaking won't create a new page

I'm the author of the contracard package/class for typesetting calling cards for traditional dances. Currently, if you typeset a particularly long figure on a calling card it wraps like this (look at ...
5
votes
1answer
427 views

How to equalize the two columns in the last page INSIDE the IEEEbiography enviroment

I'd like to make the two columns of the last page of equal length but starting the new column INSIDE the IEEEbiography environment. I have four authors in the last page, the second one has a long ...
1
vote
1answer
144 views

Prevent page break without removing vertical space

I have a single sentence paragraph that introduces a list, and LaTeX is trying to insert a page break between the paragraph and its list, which I find unacceptable. I can prevent that page break with ...
5
votes
1answer
161 views

How to circumvent a late \pagetotal reset to 0pt?

Below example demonstrates at the beginning of each paragraph how \pagetotal is not always reset to 0pt at the beginning of the page. This appears to interfere with my attempt to automatically clear a ...
4
votes
1answer
106 views

Glue at bottom of page

I'm writing a lengthy document which will have prompts typically between 2 and 5 lines long with a space after each prompt for notes. Ideally I want a 2-inch space with a stretch of 1 in and a ...
3
votes
0answers
97 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 ...
5
votes
2answers
113 views

thmbox splits theorems in two pages and the option “nocut” produces many empty spaces in pages.

this is a follow up to the problem described here. I have the same problem and the proposed solution does not completely solve the problem. I mean, it does solve the problem but also creates another ...
2
votes
2answers
142 views

How to get rid of extra space before align and gather envronments, but allow page breaks?

I am editing a rather long text which contains many equations and floats, and encountered a problem with the align and gather environments. MWE: \documentclass[preview]{standalone} ...
13
votes
1answer
262 views

Is there any opposite of newpage?

Is there any command which is the opposite of \newpage/\pagebreak/\clearpage, i.e. which goes back a page instead of going forward, similarly to the way you can use \vspace to move the current ...
2
votes
2answers
54 views

How to create space at the bottom of a the 1st page only

How should I add space at the bottom of a particular page? I want to create a space at bottom of 1st page and it should not followed for other pages. Suppose I want the last four line to go to the ...
3
votes
1answer
55 views

Leading space in samepage environment after equation

When used directly after the an equation, the samepage environment inserts a leading space. Is this the intended behavior? How do I remove it? Compare the output of ...
10
votes
3answers
284 views

Whitespace that breaks across pages (e.g. for handwritten answers)

I'm creating a document where I want to leave white space of varying heights, e.g. for handwritten answers to questions. It doesn't matter whether this empty space is bordered or not. The key thing ...
2
votes
1answer
306 views

Adding floating space between main text and footnotes

I have to typeset a text with several widows and lots of footnotes. The editor told me to leave an additional blank line between the main text and the footnotes and to use this space to print the ...
2
votes
1answer
317 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 ...
6
votes
1answer
67 views

Force hardspace in multiple citations

To cite multiple references, I'm using \cite{foo, bar}. Unfortunately, the second citation appears on a new page. Is there a way to force a hardspace between the two citations? This is primarily a ...
7
votes
3answers
901 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 ...
4
votes
1answer
111 views

Too much space at end of chapter

When writing my thesis in LyX, I encountered the following problem: After finishing a chapter, I wrote \break in order for LyX to start writing the next section in the next page. The problem is that ...
2
votes
1answer
159 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 ...
7
votes
1answer
151 views

How do I suppress the whitespace above an equation block at the page top?

How do I suppress the whitespace above the equation block at the page top ? It is added to the top margin, and I don't want that to happen. I know that \abovedisplayshortskip controls this for the ...
5
votes
0answers
48 views

How to put a blank space having dimensions equal to some text [duplicate]

Possible Duplicate: How to replace a large block of text by an empty block of the same size? A friend of mine is preparing some teaching materials. In the version for the lecturer there ...
5
votes
1answer
150 views

Skip given vertical space accross pages if needed

I would like to leave a vertical space of a given length, say 10cm, in my tex document. In fact, I want to leave enough space in a proof environment for the proof to be written at hand once the ...
2
votes
1answer
113 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 = ...
3
votes
1answer
193 views

Headers and footers for listing environment?

What I need to be able to do is apply a header and footer when I use the listings environment. I have a few requirements: The header and footer should be outside the listing itself, i.e. they are ...
3
votes
1answer
177 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 ...
0
votes
1answer
126 views

fancyvrb always creates new page

I'm having trouble using the facyvrb package. I have the following code: \section{My section} \subsection{Subsection} \begin{Verbatim}[frame=single] ...lots of code... \end{Verbatim} However, ...
0
votes
1answer
173 views

Annoying behaviour of \vspace [duplicate]

Possible Duplicate: Adding vertical space at the start of a page Basically I am making a title page and I want the title to be in the center of the text \documentclass[15pts]{article} ...
1
vote
0answers
31 views

Tocloft: Make a 'pagebreak' (vertical skip between chapters) [duplicate]

Possible Duplicate: How can I force ToC not to end with a chapter? I started using tocloft which changed formatting and spacing in my ToC a little. I have fixed other issues, but this one ...
27
votes
7answers
1k views

How to replace a large block of text by an empty block of the same size?

I know there exists the \phantom command, but does it work on large blocks of text (containing several paragraphs or even several pages)? What I want is to have some commands, call them \hide and ...
10
votes
2answers
303 views

How to check if a section title (or any heading) is the first line of a new page?

I would like to be able to use an \if command to check if a \section appears on the first line of a new page. If a section heading is the first line of a new page, I would like to then adjust some of ...
36
votes
3answers
17k views

Adding vertical space at the start of a page

I'd like to, first thing before writing anything on a page, add some vertical space. Minimal (non)working example: \documentclass{article} \begin{document} \vspace{250px} I want to be further down ...
9
votes
3answers
4k views

How can I fit my table of contents into a single page?

When I use \tableofcontents I get all my contents in a single page except for a line that goes on the other page, how can I make all in the same page?
1
vote
0answers
226 views

Get remaining height on page (and scale image to it) [duplicate]

Possible Duplicate: How to define a figure size so that is consume the rest of a page? Hi all, I've seen How to compute the remaining space on the current page - but that doesn't really ...