summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-09 22:07:51 +0000
committerKarl Berry <karl@freefriends.org>2017-10-09 22:07:51 +0000
commitab470e9d889b5624187d9c30bb9ff093348039de (patch)
tree8ad791ed60d32b3f970da0069ffa5fe45232e21e /Master/texmf-dist/doc/latex/isopt/isopt-doc.tex
parent46088a3268571a362dd9a36835c27eb3c4cfe42a (diff)
isopt (9oct17)
git-svn-id: svn://tug.org/texlive/trunk@45509 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/isopt/isopt-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/isopt/isopt-doc.tex66
1 files changed, 66 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex b/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex
new file mode 100644
index 00000000000..d8cb300c8a9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/isopt/isopt-doc.tex
@@ -0,0 +1,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}
+