Generalvalue of a variable?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
iranacre
Posts: 7
Joined: Fri Jul 24, 2009 11:14 pm

value of a variable?

Post by iranacre »

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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

value of a variable?

Post by gmedina »

Hi,

to get the value, use the \the command; i.e., use

Code: Select all

\the\topset
in the body of your document and compile.

Edit: but, of course, you can achieve the vertical skip without knowing the actual value, using

Code: Select all

\vspace{\topsep}    
1,1,2,3,5,8,13,21,34,55,89,144,233,...
iranacre
Posts: 7
Joined: Fri Jul 24, 2009 11:14 pm

Re: value of a variable?

Post by iranacre »

Thanks a lot :)
Post Reply