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