blob: cc834bde94df2b8326d4db2a0ea540b492705352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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}
|