summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tabulars-e/05-05-1.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tabulars-e/05-05-1.ltx')
-rw-r--r--Master/texmf-dist/doc/latex/tabulars-e/05-05-1.ltx36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tabulars-e/05-05-1.ltx b/Master/texmf-dist/doc/latex/tabulars-e/05-05-1.ltx
new file mode 100644
index 00000000000..3fb50529eba
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tabulars-e/05-05-1.ltx
@@ -0,0 +1,36 @@
+%%
+%% A DANTE-Edition example
+%%
+%% Example 05-05-1 on page 174.
+%%
+%% Copyright (C) 2010 Herbert Voss
+%%
+%% It may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%%
+%% See http://www.latex-project.org/lppl.txt for details.
+%%
+%%
+%% ====
+% Show page(s) 1
+%%
+\documentclass[]{article}
+\pagestyle{empty}
+\setlength\textwidth{177.70511pt}
+
+\usepackage{dcolumn}
+\makeatletter \newcolumntype{s}[1]{%
+ >{\DC@{.}{\sf\aftergroup\sf,}{#1}\sf}l<{\DC@end}}
+\makeatother
+
+\begin{document}
+\sffamily
+\begin{tabular}{ l s{1.0} s{1.2} s{3.1} }
+test & \multicolumn{1}{l}{test1.0} &
+ \multicolumn{1}{l}{test1.2} &
+ \multicolumn{1}{l}{test3.1} \\\hline
+test & 1 & 1.22 & 333.1\\ test & 2 & 3.44 & 444.1
+\end{tabular}\par\medskip
+$\mathsf{0123456789}$
+\end{document}