summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/uspace/uspace-test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/uspace/uspace-test.tex39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/uspace/uspace-test.tex b/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
index 0c0b8cb573f..b735f965fa0 100644
--- a/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
+++ b/Master/texmf-dist/doc/latex/uspace/uspace-test.tex
@@ -14,6 +14,7 @@
hidelinks,
breaklinks}
\urlstyle{same} % don't use monospace font for urls
+\usepackage{float}
\usepackage{uspace}
@@ -117,6 +118,44 @@ The name of the Master Namer is `Kur­rem­kar­mer­ruk'.
\pagebreak
+\section{\figuresp{} and \punctsp{}}
+
+\expl{\figuresp{} and \punctsp{} can be used to align numbers in tables. The
+ below table (partial table of Earth athmosphere constituents) does not use
+ either. The numbers are centered in their column.}
+
+\begin{figure}[H]
+\centering
+\begin{tabular}{l | c}
+ Element & ppmv \tabularnewline
+ \hline
+ Nitrogen & 780,840\tabularnewline
+ Oxygen & 209,460\tabularnewline
+ Argon & 9,340\tabularnewline
+ Carbon dioxide & 400 \tabularnewline
+ Neon & 18.18
+\end{tabular}
+\end{figure}
+
+\expl{Below is the same table as above but with addition of \figuresp{} and
+ \punctsp{} to pad the numbers so that they all seem the same width to
+ \LaTeX{}:}
+
+\begin{figure}[H]
+\centering
+\begin{tabular}{l | c}
+ Element & ppmv \tabularnewline
+ \hline
+ Nitrogen & 780,840   \tabularnewline
+ Oxygen & 209,460   \tabularnewline
+ Argon &   9,340   \tabularnewline
+ Carbon dioxide &    400   \tabularnewline
+ Neon &      18.18
+\end{tabular}
+\end{figure}
+
+\pagebreak
+
\section{en, em and other spaces}
\expl{Unicode contains several more space characters, some of which are shown in