Text Formatting ⇒ baselineskip?
-
- Posts: 139
- Joined: Tue Mar 10, 2015 11:06 am
baselineskip?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
baselineskip?
\baselineskip
is a length, the space from one baseline to the next. The baseline is the imaginary length, that the letters sit on. Some letters, like g and y descend the baseline. A picture that give some visual aid can be found in the german wikipedia, Zeilenabstand.- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
baselineskip?
\vspace{2\baselineskip}
for skipping two lines, or
\vspace{.5\baselineskip}
for skipping half of a line. Of course it respects font size, which determines the line height, so it automatically scales when you change the font size.
Furthermore, at the beginning and at the end of a page, this space would be omitted, since it's mainly a distance between elements. That's usually desired. The starred version
\vspace*
produces the space also at page start or end, such as for a specific fixed page design.Stefan
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
baselineskip?
The following example includes some snippets concerning linespacing and fontsize, which correspond as already mentioned. I already covered parts of this in another answer of me, that was also covering parts of the [/url=http://latex-community.org/forum/viewtopic.php?p=89372#p89372]latest macro question[/url].
Code: Select all
\documentclass{article}
\usepackage{blindtext}
\usepackage{printlen}
\uselengthunit{pt}
\makeatletter
\newcommand{\showdetail}{%
current \texttt{baselineskip}: \printlength{\baselineskip}
current \texttt{fontsize}: \f@size pt}
\makeatother
\begin{document}
\blindtext\showdetail
texte {\Huge ogee, text \showdetail} text
{\Huge Some more text which should at least yield two different
lines of text \par\showdetail}
\clearpage
{\fontsize{12}{15}\selectfont \blindtext more text \showdetail\par}
\end{document}