GeneralHow do I do it?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Haba4568
Posts: 1
Joined: Fri Jun 29, 2018 12:55 pm

How do I do it?

Post by Haba4568 »

How to get a value of a variable? For example, I need to add vertical space of a size defined by \topsep. How do I do it?
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10340
Joined: Mon Mar 10, 2008 9:44 pm

How do I do it?

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

You can print it by \the, or by \showthe to the log file, or use it directly. Take a look:

Code: Select all

\documentclass{article}
\begin{document}
text

\vspace{\topsep}
text

That was additonal space of \the\topsep.
\end{document}
Stefan
LaTeX.org admin
Post Reply