Document ClassesWhat is \p@ in "\vskip 60\p@" (standard class)

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
deniss
Posts: 11
Joined: Tue Aug 04, 2009 9:06 pm

What is \p@ in "\vskip 60\p@" (standard class)

Post by deniss »

I'm at a bit of a loss trying to find what all these weird-looking TeX primitives mean: online searches seem useless, and the LaTeX Companion doesn't really address these.

In classes.dtx file, there is a line inside the definition for \maketitle macro which reads:

Code: Select all

\vskip 60\p@
and the authors comment "the centering is set off a little by adding \vskip".

Fine, but what is "\p@"?? Just like "\z@" and "\@ne" for setting page counter - where do I get more info on these strange little commands that nobody seems to talk about?

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

What is \p@ in "\vskip 60\p@" (standard class)

Post by gmedina »

Hi,

those are examples of some TeX constants:
the TeXbook wrote:\newdimen\p@ \p@=1pt % this saves macro space and time
\newdimen\z@ \z@=0pt
So, \p@ represents 1pt and \z@ represents 0pt. If you want to understand TeX internals, the TeXbook is a must-have document.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
deniss
Posts: 11
Joined: Tue Aug 04, 2009 9:06 pm

Re: What is \p@ in "\vskip 60\p@" (standard class)

Post by deniss »

Many thanks - I will definitely get the TeXbook then. I always figured - I just want to use LaTeX, so it's probably an overkill! But I like being able to understand all the internal code in classes.dtx and such when I try to design something of my own.
Post Reply