## LaTeX forum ⇒ General ⇒ How do I do it?

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

### How do I do it?

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

Stefan Kottwitz
Posts: 8946
Joined: Mon Mar 10, 2008 9:44 pm
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:

\documentclass{article}\begin{document}text \vspace{\topsep}text That was additonal space of \the\topsep.\end{document}

Stefan