LaTeX forum ⇒ TeXworksInquire about \vspace

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

Inquire about \vspace

Postby yaozhao » Sun Oct 28, 2018 3:50 pm

If you want to add blank space into your document use the \vspace{...}
command. This will add blank vertical space of a height specified in typographical
points (pt). For example, \vspace{12pt} will add space equivalent
to the height of a 12pt font.

1. I can understand this command makes some space in the document, like empty lines. But what's the exact meaning of "space equivalent to the height of a 12pt font"? I can only understand the space equivalent to one line, two lines, or three lines...

2. When do you use this command in your work? Can you give me an example?

Many thanks in advance!

Recommended reading 2021: • •
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10164
Joined: Mon Mar 10, 2008 9:44 pm

Inquire about \vspace

Postby Stefan Kottwitz » Mon Oct 29, 2018 1:37 pm

It justs adds empty vertical space. \vspace{2cm} adds 2 cm, \vspace{2in} would add 2 inch, \vspace{12pt} would add space equal to 12 pt (points). I guess they referred to the font (size of 12pt) so you may see how big pt (point) means.

One rarely needs to use this command ever in a document. The only reason I know is in a title page, for space between heading, author, an image, and the like. Other than that, I would use it only in macros when needed for design reasons. There's rarely a point to add empty space in a document except when one wants to do quick and dirty fine-tuning at the very end.

Stefan admin

Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 3 guests