LaTeX forum ⇒ GeneralHow do I do it?

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

How do I do it?

Postby Haba4568 » Fri Jun 29, 2018 2:21 pm

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?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8946
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Jun 29, 2018 3:01 pm


welcome to the forum!

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

  1. \documentclass{article}
  2. \begin{document}
  3. text
  5. \vspace{\topsep}
  6. text
  8. That was additonal space of \the\topsep.
  9. \end{document}

Site admin

Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests