In my manuscript, I need to specify the vspace command in a few places. I wonder if I can define numerical variables for this purpose in an article document class. For example, instead of typing \vspace{1cm}, I would like to define a variable, such as x = 1cm and use x inside my vspace. Ideally, I would like to have multiple variables x1, x2, x3 that I can use each of them in their appropriate places, and by setting them in preamble I will not need to go through every single vspace manually.

1 Answer 1


You can define a length variable with


and then you'll be able to use it, e.g.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .