summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex')
-rw-r--r--Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex61
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex b/Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex
new file mode 100644
index 00000000000..849720b3a01
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/numprint/nbaseprttest.tex
@@ -0,0 +1,61 @@
+\documentclass[english]{article}
+\IfFileExists{eco.sty}{%
+ \usepackage{eco}
+}{%
+ \typeout{Package file eco.sty not found
+ (The example will be less clear than possible)}
+}
+\usepackage{babel}
+\usepackage[autolanguage]{nbaseprt}
+\begin{document}
+\nbaseprint{0x123456f}
+
+\nbaseprint{"3453}
+
+\nbaseprint{'3453}
+
+\nbaseprint{3453h}
+
+\nbaseprint{3453o}
+
+\nbaseprint{3453H}
+
+\nbaseprint{12345678}
+
+\nbaseprint{123456}
+
+\nplpadding{5}
+\nbaseprint{0d3453}
+
+\nbaseprint{0x1}
+
+\nbaseprint{0x12}
+
+\nbaseprint{0x123}
+
+\nbaseposttext
+\nbaseprint{0x1234}
+
+\nbaseprint{0x12345}
+
+\nbaseprint{0x123456}
+
+%\nbaseprint{\thepage}
+
+%$\nbaseprint{\thepage}$
+
+``\nbaseprint{0x123456}''
+
+``\nbaseprint{0x+123456}''
+
+``\nbaseprint{0x-123456}''
+
+``\nbaseprint{0x+-123456}''
+
+``\nbaseprint{0x\pm 123456}''
+
+``\nbaseprint{-0x123456}''
+
+``\nbaseprint{-0b123456}''
+
+\end{document}