handyfloss

Because FLOSS is handy, isn’t it?

LaTeX: pagebreaks and paragraph positioning

Posted by isilanes on May 10, 2006

Blog moved to: handyfloss.net

Entry available at: http://handyfloss.net/2006.05/latex-pagebreaks-and-paragraph-positioning/

Don’t know about the reader, but I keep discovering little nifty tricks for LaTeX, Perl or Linux administration, only to hit my head against the wall some time later, when I encounter the same problem again, but don’t remember the trick, and have to invent a solution again…

Nevermore!

Yeah, I don’t have a better place to put my tricks. Got a problem?

Let’s move on to the tricks:

Q: How do I move a text X mm down (or up)?

A: Producing space between two text blocks is easy:


text1
\vspace{Xmm}
text2

Producing some space before any text in the page is more complicated, because the following will just not work:


\vspace{Xmm}
text2

However, we can force LaTeX to do our will substituting “text1” with a blank space “\ “:


\ \vspace{Xmm}
text2

Q: How do I produce a blank page?

A: This is something that should seldom be done, because paging is automatically controled, but some day you might need it.

To achieve this, you cannot simply put a \clearpage (or \newpage, or \pagebreak), because it only works after some text in the page. Anyway, we can use the trick above, and do:


% This is page 1, with a normal use of \newpage:
blah-blah-blah\newpage

% This is page 2, blank:
\ \clearpage

% This is page 3, normal:
blah-blah-blah

If we want a completelly blank page (i.e. without even page numbering or headers), use:


\thispagestyle{empty}\ \clearpage

6 Responses to “LaTeX: pagebreaks and paragraph positioning”

  1. kavya said

    Damn cool🙂

  2. Marco said

    You solved my problem! Great!

  3. An impressive share! I’ve just forwarded this onto a coworker who has been doing a little research on this. And he actually bought me breakfast simply because I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanks for spending some time to discuss this topic here on your website.

  4. What’s up mates, its fantastic article about educationand completely explained, keep it up all the time.

  5. magnificent post, very informative. I’m wondering why the other specialists of this sector do not notice this. You should continue your writing. I’m confident, you have a
    great readers’ base already!

  6. Heya just wanted to give you a brief heads up and let you know
    a few of the pictures aren’t loading correctly. I’m not sure why but
    I think its a linking issue. I’ve tried it in two
    different internet browsers and both show the same results.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: