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