Debian Codegraph @

texmf-dist/doc/latex/isopt/isopt-doc.tex

raw
1 \documentclass[paper=a4]{article}
2 \usepackage{geometry}
3 \usepackage{dejavu-otf}
4 \usepackage[space=~]{isopt}
5 \makeatletter
6 \let\FV\ISOpt@fileversion
7 \makeatother
8
9 \usepackage{biblatex}
10 \addbibresource{\jobname.bib}
11
12 \title{Writing a \TeX\ length in ISO style\thanks{Thanks to Heiko Oberdiek}\\[7pt] \normalsize v. \FV}
13 \author{Herbert Voß}
14
15 \begin{document}
16
17 \maketitle
18
19 \section{How it works}
20 By default \TeX\ writes an internal length in the following way:
21
22 \verb|\the\baselineskip|$\rightarrow$\the\baselineskip
23
24 There is no space between value and unit. Package \texttt{isopt} provides the macro
25 \texttt{\textbackslash ISO} which needs a \TeX\ length as argument and prints
26 it with the default \verb|\thinspace|
27
28 \verb|\ISO\the\baselineskip|$\rightarrow$\ISO\the\baselineskip
29
30 \begin{verbatim}
31 \sbox0{Hello World}
32 The box is \ISO\wd0\ wide, \ISO\ht0\ high and has a depth of \ISO\dp0.
33 \end{verbatim}
34
35 \sbox0{Hello World}
36 The box is \ISO\wd0\ wide, \ISO\ht0\ high and has a depth of \ISO\dp0.
37
38
39 There is also a short form \verb|\THE| which is defined as \verb|\ISO\the|.
40 It saves only some keystrokes:
41
42 \verb|\THE\tabcolsep|$\rightarrow$\THE\tabcolsep
43
44
45 If you prefer the tilde \verb|~| as space between value and unit, then pass
46 it as optional argument of the package:
47
48 \begin{verbatim}
49 \usepackage[space=~]{isopt}
50 \end{verbatim}
51
52 The predefined space is \verb|\usepackage[space=\thinspace]{isopt}|
53
54 \section{Limitations}
55
56 The current version does not support a rubber length like \verb|\the\parskip|$\rightarrow$\the\parskip
57
58
59
60
61
62 \nocite{*}
63 \printbibliography
64
65 \end{document}
66