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 /fonts/cmolddig/odshrtst.tex |
Initial commit
Diffstat (limited to 'fonts/cmolddig/odshrtst.tex')
-rw-r--r-- | fonts/cmolddig/odshrtst.tex | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/fonts/cmolddig/odshrtst.tex b/fonts/cmolddig/odshrtst.tex new file mode 100644 index 0000000000..cc834bde94 --- /dev/null +++ b/fonts/cmolddig/odshrtst.tex @@ -0,0 +1,46 @@ +%&latex +\errorcontextlines=1000 +\documentclass[a4paper]{article} + +\usepackage[cmoldstylemathdigits]{cmolddig} + +\makeatletter +\renewcommand\section{\@startsection {section}{1}{\z@}% + {-3.25ex\@plus -1ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {\normalfont\bfseries}} +\makeatother + +\newcommand{\testtext}{Some text numerals: 0123456789. Some maths +numerals $0123456789$} + +\begin{document} + +\section{Default} +\testtext + +\section{Both lining} +{\cmliningdigits\cmliningmathdigits +\testtext} + +\section{Text lining; maths default} +{\cmliningdigits +\testtext} + +\section{Text lining; maths oldstyle} +{\cmliningdigits\cmoldstylemathdigits +\testtext} + +\section{Text oldstyle; maths default} +{\cmoldstyledigits +\testtext} + +\section{Text oldstyle; maths oldstyle} +{\cmoldstyledigits\cmoldstylemathdigits +\testtext} + +\section{Text oldstyle; maths lining} +{\cmoldstyledigits\cmliningmathdigits +\testtext} + +\end{document} |