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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
\documentclass{article}
\usepackage{amsmath}
\usepackage[displaylimits]{cmupint}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,top=2.0cm,left=3cm,right=2.5cm,bottom=2cm,includefoot,includehead]{geometry}
\input glyphtounicode.tex
\pdfgentounicode=1
\usepackage{fancyvrb}
\usepackage{tabularx}
\title{The \texttt{cmupint} package}
\author{Uroš Stefanović\footnote{\texttt{urostajms@gmail.com}}}
\date{\today{} v1.1}
\newcommand\tbview[1]{ \verb"#1" & $\textstyle #1$ & $\displaystyle #1$ }
\newcolumntype{C}{>{\centering\arraybackslash\hsize=.1\hsize}X}%
\newcolumntype{D}{>{\centering\arraybackslash}X}%
\newcolumntype{S}{>{\centering\hsize=.3\hsize}X}
\setlength{\extrarowheight}{10pt}
\begin{document}
\maketitle
\section{Why \textsf{cmupint}?}
The shape of integral symbol in some languages differs slightly from the shape commonly seen in English-language textbooks.
While the English integral symbol leans to the right, the integral symbol used throughout Central Europe (such as in German or Serbian language) is upright.
Another difference is in the placement of limits for definite integrals. Generally, in English-language books, limits go to the right of the integral symbol, while in Central European languages the limits are placed above and below the integral symbol.
\[ \intop\nolimits^U_L x\,\mathrm{d}x\quad \text{(English language)} \]
\[ \int\limits^U_L x\,\mathrm{d}x\quad \text{(Central European languages)} \]
The \textsf{cmupint} package contains various upright integral symbols to match Computer Modern font (default \LaTeX{} font).
\section{Usage}
This package is very simple to use: just put
\begin{verbatim}
\usepackage{cmupint}
\end{verbatim}
in preamble of the document.
\section{Options}
The available options are \texttt{displaylimits} (default option), \texttt{limits} and \texttt{nolimits} (see Table~\ref{tabl1}).
\begin{table}[h!]
\centering
\begin{tabularx}{.7\textwidth}{|D|D|D|}
\hline
Option & Text style & Display style \\
\hline
\hline
\texttt{displaylimits} & $\textstyle\int\displaylimits^U_L x\,\mathrm{d}x$ & $\displaystyle \int\displaylimits^U_L x\,\mathrm{d}x$ \\
\hline
\texttt{limits} & $\textstyle\int\limits^U_L x\,\mathrm{d}x$ & $\displaystyle \int\limits^U_L x\,\mathrm{d}x$ \\
\hline
\texttt{nolimits} & $\textstyle\int\nolimits^U_L x\,\mathrm{d}x$ & $\displaystyle \int\nolimits^U_L x\,\mathrm{d}x$ \\
\hline
\end{tabularx}
\caption{Package options.}\label{tabl1}
\end{table}
\section{Integral symbols}
For the avaible integral symbols see Table~\ref{tabl2}.
\section{Long integral}
Long integral symbols are defined as the extensible delimiters, therefore the usage is slightly different: we use this symbols with:
\begin{verbatim}
\longint{bottomLimit}{topLimit}{mathExpression}
\end{verbatim}
Other availble commands are \verb|\longiint|, \verb|\longoint| and \verb|\longoiint|. The limits placement will be same as the choosen package option.
For example, the code
\begin{verbatim}
\longint{-\infty}{+\infty}{\begin{pmatrix}
1 & 2 \\ 3 & 4 \\ 5 & x \\ 6 & 7 \\ 8 & 9 \\ x & 0 \\ \end{pmatrix}}\,\mathrm{d}x
\end{verbatim}
will produce:
\[\longint{-\infty}{+\infty}{\begin{pmatrix}
1 & 2 \\ 3 & 4 \\ 5 & x \\ 6 & 7 \\ 8 & 9 \\ x & 0 \\ \end{pmatrix}}\,\mathrm{d}x.\]
\section{Version history}
\subsection*{1.1}
\begin{itemize}
\item Added \verb|\sumint|, \verb|\intcap|, \verb|\intcup|.
\item Long integral symbols are added.
\end{itemize}
\pagebreak
\begin{table}[h!]
\centering
\begin{tabularx}{\textwidth}{|SCC|SCC|}
\hline
Command & Text style & Display style & Command & Text style & Display style \\
\hline\hline
\tbview{\int} & \tbview{\iint} \\
\tbview{\iiint} & \tbview{\iiiint} \\
\tbview{\oint} & \tbview{\oiint} \\
\tbview{\oiiint} & \tbview{\ointctrclockwise} \\
\tbview{\ointclockwise} & \tbview{\varointclockwise} \\
\tbview{\varointctrclockwise} & \tbview{\sqint} \\
\tbview{\sqiint} & \tbview{\pointint} \\
\tbview{\npolint} & \tbview{\scpolint} \\
\tbview{\rppolint} & \tbview{\cirfnint} \\
\tbview{\intclockwise} & \tbview{\awint} \\
\tbview{\fint} & \tbview{\barint} \\
\tbview{\doublebarint} & \tbview{\xint} \\
\tbview{\landupint} & \tbview{\landdownint} \\
\tbview{\intlarhk} & \tbview{\upint} \\
\tbview{\downint} & \tbview{\sumint} \\
\tbview{\intcap} & \tbview{\intcup} \\
\tbview{\varidotsint} & & & \\
\verb"\idotsint"\footnotemark[1] & $\textstyle \idotsint$ & $\displaystyle \idotsint$ & \verb"\idotsint"\footnotemark[2] & $\textstyle \varidotsint$ & $\displaystyle \varidotsint$ \\
\hline
\end{tabularx}
\caption{Integral symbols.}\label{tabl2}
\end{table}
\footnotetext[1]{If package \texttt{amsmath} is loaded.}
\footnotetext[2]{If package \texttt{amsmath} is not loaded.}
\end{document}
|