diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/isopt/doc |
Initial commit
Diffstat (limited to 'macros/latex/contrib/isopt/doc')
-rw-r--r-- | macros/latex/contrib/isopt/doc/isopt-doc.bib | 9 | ||||
-rw-r--r-- | macros/latex/contrib/isopt/doc/isopt-doc.pdf | bin | 0 -> 60820 bytes | |||
-rw-r--r-- | macros/latex/contrib/isopt/doc/isopt-doc.tex | 66 |
3 files changed, 75 insertions, 0 deletions
diff --git a/macros/latex/contrib/isopt/doc/isopt-doc.bib b/macros/latex/contrib/isopt/doc/isopt-doc.bib new file mode 100644 index 0000000000..00e85d5c91 --- /dev/null +++ b/macros/latex/contrib/isopt/doc/isopt-doc.bib @@ -0,0 +1,9 @@ +@online{nist, +url={https://physics.nist.gov/cuu/Units/checklist.html}, +author={{NIST: National Institut of Standards and Technology}}, +organisation= {U.S. Department of Commerce}, +title={SI Unit rules and style conventions}, +subtitle={Check List for Reviewing Manuscripts}, +date={2004-09}, +urldate={2017-10-09}, +} diff --git a/macros/latex/contrib/isopt/doc/isopt-doc.pdf b/macros/latex/contrib/isopt/doc/isopt-doc.pdf Binary files differnew file mode 100644 index 0000000000..89b03cc620 --- /dev/null +++ b/macros/latex/contrib/isopt/doc/isopt-doc.pdf diff --git a/macros/latex/contrib/isopt/doc/isopt-doc.tex b/macros/latex/contrib/isopt/doc/isopt-doc.tex new file mode 100644 index 0000000000..d8cb300c8a --- /dev/null +++ b/macros/latex/contrib/isopt/doc/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} + |