<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\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" &amp; $\textstyle #1$ &amp; $\displaystyle #1$ }

\newcolumntype{C}{&gt;{\centering\arraybackslash\hsize=.1\hsize}X}%
\newcolumntype{D}{&gt;{\centering\arraybackslash}X}%
\newcolumntype{S}{&gt;{\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 &amp; Text style &amp; Display style \\
		\hline
		\hline
		\texttt{displaylimits} &amp; $\textstyle\int\displaylimits^U_L x\,\mathrm{d}x$ &amp; $\displaystyle \int\displaylimits^U_L x\,\mathrm{d}x$ \\
		\hline
		\texttt{limits} &amp; $\textstyle\int\limits^U_L x\,\mathrm{d}x$ &amp; $\displaystyle \int\limits^U_L x\,\mathrm{d}x$ \\
		\hline
		\texttt{nolimits} &amp; $\textstyle\int\nolimits^U_L x\,\mathrm{d}x$ &amp; $\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 &amp; 2 \\ 3 &amp; 4 \\ 5 &amp; x \\ 6 &amp; 7 \\ 8 &amp; 9 \\ x &amp; 0 \\ \end{pmatrix}}\,\mathrm{d}x
\end{verbatim}
will produce:
\[\longint{-\infty}{+\infty}{\begin{pmatrix}
	1 &amp; 2 \\ 3 &amp; 4 \\ 5 &amp; x \\ 6 &amp; 7 \\ 8 &amp; 9 \\ x &amp; 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 &amp; Text style &amp; Display style &amp; Command &amp; Text style &amp; Display style \\
		\hline\hline
		\tbview{\int} &amp; \tbview{\iint} \\
		\tbview{\iiint} &amp; \tbview{\iiiint} \\
		\tbview{\oint} &amp; \tbview{\oiint} \\
		\tbview{\oiiint} &amp; \tbview{\ointctrclockwise} \\
		\tbview{\ointclockwise} &amp; \tbview{\varointclockwise} \\
		\tbview{\varointctrclockwise} &amp; \tbview{\sqint} \\
		\tbview{\sqiint} &amp; \tbview{\pointint} \\
		\tbview{\npolint} &amp; \tbview{\scpolint} \\
		\tbview{\rppolint} &amp; \tbview{\cirfnint} \\
		\tbview{\intclockwise} &amp; \tbview{\awint} \\
		\tbview{\fint} &amp; \tbview{\barint} \\
		\tbview{\doublebarint} &amp; \tbview{\xint} \\
		\tbview{\landupint} &amp; \tbview{\landdownint} \\
		\tbview{\intlarhk} &amp; \tbview{\upint} \\
		\tbview{\downint} &amp; \tbview{\sumint} \\
		\tbview{\intcap} &amp; \tbview{\intcup} \\
		\tbview{\varidotsint} &amp; &amp; &amp; \\
		\verb"\idotsint"\footnotemark[1] &amp; $\textstyle \idotsint$ &amp; $\displaystyle \idotsint$ &amp; \verb"\idotsint"\footnotemark[2] &amp; $\textstyle \varidotsint$ &amp; $\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}</pre></body></html>