diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/ionumbers/ionumbers_test.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/ionumbers/ionumbers_test.tex | 209 |
1 files changed, 207 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/ionumbers/ionumbers_test.tex b/Master/texmf-dist/doc/latex/ionumbers/ionumbers_test.tex index 304a7992023..277e4e7e3d9 100644 --- a/Master/texmf-dist/doc/latex/ionumbers/ionumbers_test.tex +++ b/Master/texmf-dist/doc/latex/ionumbers/ionumbers_test.tex @@ -2,7 +2,7 @@ % % test file for ionumbers package % -% Copyright 2008 Christian Schneider <software(at)chschneider(dot)eu> +% Copyright 2008,2011 Christian Schneider <software(at)chschneider(dot)eu> % % This file is part of ionumbers. % @@ -53,10 +53,10 @@ This is test output of the \textsf{ionumbers} \LaTeX{} package. The default \LaTeX{} output, the output with \textsf{ionumbers} package and the expected output with \textsf{ionumbers} package is given for different inputs. - If the package \textsf{ionumbers} works correctly, the contents in the `\textsf{ionumbers}' columns and the respective contents in the `expected' columns must be identical. + Note that a lot of input is nonsense and serves for testing purposes only. \vspace{2ex}\noindent } @@ -261,6 +261,108 @@ \end{center} \clearpage + \section*{Options \texttt{autothousands=true,autothousandths=true,}\\ + \texttt{grplenthousands=2,grplenthousandths=4}} + \enlargethispage{3ex} + \fileinfo + \ionumbersresetstyle + \ionumbersstyle{autothousands,autothousandths,grplenthousands=2,% + grplenthousandths=4} + + \begin{center} + \begin{tabular}% + {r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r} + \hline\hline + input & \LaTeX{} & \textsf{ionumbers} & expected\\ + \hline\hline\\[-1ex] + \header{simple digits} + \abc{1}{1} + \abc{12}{12} + \abc{123}{1,23} + \abc{1234}{12,34} + \abc{12345}{1,23,45} + \abc{123456}{12,34,56} + \abc{1234567}{1,23,45,67} + \header{point} + \abc{.1}{.1} + \abc{1.}{1.} + \abc{1.1}{1.1} + \abc{1. 2}{1. 2} + \abc{1 .2}{1 .2} + \abc{1.23456}{1.2345\,6} + \abc{12345.6}{1,23,45.6} + \abc{1.23.456}{1.23.45\,6} + \abc{a.b}{a.b} + \abc{a.1}{a.1} + \abc{1.a}{1.a} + \header{comma} + \abc{,1}{,1} + \abc{1,}{1,} + \abc{1,1}{1,1} + \abc{1, 2}{1, 2} + \abc{1 ,2}{1 ,2} + \abc{1,23456}{1,23456} + \abc{12345,6}{12345,6} + \abc{1,23,456}{1,23,456} + \abc{a,b}{a,b} + \abc{a,1}{a,1} + \abc{1,a}{1,a} + \hline\hline + \end{tabular} + \end{center} + + \begin{center} + \begin{tabular}% + {r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r} + \hline\hline + input & \LaTeX{} & \textsf{ionumbers} & expected\\ + \hline\hline\\[-1ex] + \header{plus and minus} + \abc{+1}{+1} + \abc{-1}{-1} + \abc{++1}{++1} + \abc{+ +1}{+ +1} + \abc{+ + 1}{+ + 1} + \abc{1+2}{1+2} + \abc{1+ 2}{1+ 2} + \abc{1 +2}{1 +2} + \abc{1 + 2}{1 + 2} + \abc{1++2}{1++2} + \abc{x+1}{x+1} + \abc{1+x}{1+x} + \abc{x+y}{x+y} + \header{letter `e'} + \abc{1e1234}{1e12,34} + \abc{1e+1234}{1e+12,34} + \abc{1e.}{1e.} + \abc{1e,}{1e,} + \abc{1e.1234}{1e.1234} + \abc{1e,1234}{1e,1234} + \abc{1e++1234}{1e++12,34} + \abc{1e 1,234}{1e 1,234} + \abc{1e +1234}{1e +12,34} + \abc{1 e1,234}{1 e1,234} + \header{mixed numbers} + \abc{1.234,890}{1.234,8\,90} + \abc{1,234.890}{1,234.890} + \abc{1234e5678}{12,34e56,78} + \abc{+1234e5678}{+12,34e56,78} + \abc{1234e+5678}{12,34e+56,78} + \abc{1.234e5.678}{1.234e5.678} + \abc{1,234e5,678}{1,234e5,678} + \header{single characters} + \abc{\sqrt 1}{\sqrt 1} + \abc{\sqrt 1234}{\sqrt 12,34} + \abc{\sqrt +}{\sqrt +} + \abc{\sqrt ++}{\sqrt ++} + \abc{\sqrt +1234}{\sqrt +12,34} + \abc{1e\sqrt +1234}{1e\sqrt +12,34} + \abc{1\sqrt +1234e0}{1\sqrt +12,34e0} + \hline\hline + \end{tabular} + \end{center} + + \clearpage \section*{Options \texttt{exponent=rmE}} \fileinfo \ionumbersresetstyle @@ -557,4 +659,107 @@ \end{tabular} \end{center} + \clearpage + \section*{Options \texttt{comma=decimal,point=thousands,}\\ + \texttt{autothousands,autothousandths,thousands=apostrophe}\\ + \texttt{thousandths=phantom}} + \enlargethispage{6ex} + \fileinfo + \ionumbersresetstyle + \ionumbersstyle{comma=decimal,point=thousands,autothousands,autothousandths,% + thousands=apostrophe,thousandths=phantom} + + \begin{center} + \begin{tabular}% + {r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r} + \hline\hline + input & \LaTeX{} & \textsf{ionumbers} & expected\\ + \hline\hline\\[-1ex] + \header{simple digits} + \abc{1}{1} + \abc{12}{12} + \abc{123}{123} + \abc{1234}{1'234} + \abc{12345}{12'345} + \abc{123456}{123'456} + \abc{1234567}{1'234'567} + \header{point} + \abc{.1}{'1} + \abc{1.}{1.} + \abc{1.1}{1'1} + \abc{1. 2}{1. 2} + \abc{1 .2}{1 '2} + \abc{1.23456}{1'23456} + \abc{12345.6}{12345'6} + \abc{1.23.456}{1'23'456} + \abc{a.b}{a.b} + \abc{a.1}{a'1} + \abc{1.a}{1.a} + \header{comma} + \abc{,1}{.1} + \abc{1,}{1,} + \abc{1,1}{1.1} + \abc{1, 2}{1, 2} + \abc{1 ,2}{1 .2} + \abc{1,23456}{1.234\phantom{.}56} + \abc{12345,6}{12'345.6} + \abc{1,23,456}{1.23.4\phantom{.}56} + \abc{a,b}{a,b} + \abc{a,1}{a.1} + \abc{1,a}{1,a} + \hline\hline + \end{tabular} + \end{center} + + \begin{center} + \begin{tabular}% + {r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r@{\hspace{1em}}r} + \hline\hline + input & \LaTeX{} & \textsf{ionumbers} & expected\\ + \hline\hline\\[-1ex] + \header{plus and minus} + \abc{+1}{+1} + \abc{-1}{-1} + \abc{++1}{++1} + \abc{+ +1}{+ +1} + \abc{+ + 1}{+ + 1} + \abc{1+2}{1+2} + \abc{1+ 2}{1+ 2} + \abc{1 +2}{1 +2} + \abc{1 + 2}{1 + 2} + \abc{1++2}{1++2} + \abc{x+1}{x+1} + \abc{1+x}{1+x} + \abc{x+y}{x+y} + \header{letter `e'} + \abc{1e1234}{1e1'234} + \abc{1e+1234}{1e+1'234} + \abc{1e.}{1e.} + \abc{1e,}{1e,} + \abc{1e.1234}{1e'1234} + \abc{1e,1234}{1e.123\phantom{.}4} + \abc{1e++1234}{1e++1'234} + \abc{1e 1234}{1e 1'234} + \abc{1e +1234}{1e +1'234} + \abc{1 e1234}{1 e1'234} + \header{mixed numbers} + \abc{1.234,890}{1'234.890} + \abc{1,234.890}{1.234'\phantom{.}890} + \abc{1234e5678}{1'234e5'678} + \abc{+1234e5678}{+1'234e5'678} + \abc{1234e+5678}{1'234e+5'678} + \abc{1.234e5.678}{1'234e5'678} + \abc{1,234e5,678}{1.234e5.678} + \header{single characters} + \abc{\sqrt 1}{\sqrt 1} + \abc{\sqrt 1234}{\sqrt 1'234} + \abc{\sqrt +}{\sqrt +} + \abc{\sqrt ++}{\sqrt ++} + \abc{\sqrt +1234}{\sqrt +1'234} + \abc{1e\sqrt +1234}{1e\sqrt +1'234} + \abc{1\sqrt +1234e0}{1\sqrt +1'234e0} + \hline\hline + \end{tabular} + \end{center} + \end{document} |