diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/interval/interval.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/interval/interval.tex | 51 |
1 files changed, 35 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/interval/interval.tex b/Master/texmf-dist/doc/latex/interval/interval.tex index 0413707a6f7..42ebc81f1f7 100644 --- a/Master/texmf-dist/doc/latex/interval/interval.tex +++ b/Master/texmf-dist/doc/latex/interval/interval.tex @@ -3,7 +3,7 @@ \usepackage{amsmath,enumitem,showexpl} %\usepackage[scaled]{beramono} \title{The \textsf{interval} package} -\author{Lars Madsen\thanks{Email: daleif@imf.au.dk, version: \INTVversion}\\ \small (on behalf of By the Danish \TeX\ collective)} +\author{Lars Madsen\thanks{Email: daleif@math.au.dk, version: \INTVversion}\\ \small (on behalf of By the Danish \TeX\ collective)} \setsecnumdepth{none} %\setlength\overfullrule{5pt} @@ -14,6 +14,8 @@ \maketitle + + \section{Motivation} \label{sec:motivation} @@ -122,7 +124,21 @@ interval. Other types are provided via options: As some might be guessed, the \texttt{interval} package depends on the \textsf{pgfkeys} package to handle its key-value configuration. -\newpage + +\subsection{Short hands} +\label{sec:shorthands} + +For convenience the following short hands are provided as of version 0.4. +\begin{description}[style=nextline,font=\normalfont] +\item[\cs{ointerval}\oarg{options}\marg{start}\marg{end}] + is short for \cs{interval}\texttt{[open,}\meta{options}\texttt{]}\marg{start}\marg{end} +\item[\cs{linterval}\oarg{options}\marg{start}\marg{end}] + is short for \cs{interval}\texttt{[open left,}\meta{options}\texttt{]}\marg{start}\marg{end} +\item[\cs{rinterval}\oarg{options}\marg{start}\marg{end}] + is short for \cs{interval}\texttt{[open right,}\meta{options}\texttt{]}\marg{start}\marg{end} +\end{description} + +%\newpage \section{Examples} \label{sec:examples} @@ -144,29 +160,32 @@ As some might be guessed, the \texttt{interval} package depends on the -\begin{LTXexample} +\begin{LTXexample}[varwidth=true] \begin{align*} -&A\in\interval{a}{b}\\ -&A\in\interval[open]{a}{b}\\ -&A\in\interval[open left]{a}{b}\\ -&A\in\interval[open right, - scaled]{a}{\frac12b}=B\\ -&A\in\interval[scaled=\big]{a}{b} +& A\in\interval{a}{b} \\ +& A\in\interval[open]{a}{b} \\ +& A\in\interval[open left]{a}{b} \\ +& A\in\interval[open right, + scaled]{a}{\frac{1}{2}b}=B \\ +& A\in\interval[scaled=\big]{a}{b} \\ +& A\in\ointerval[scaled]{% + \tfrac{1}{3}}{\tfrac{1}{2}} \end{align*} \end{LTXexample} And using soft open fences: -\begin{LTXexample} +\begin{LTXexample}[varwidth=true] \intervalconfig{ soft open fences, separator symbol=;, } \begin{align*} -&A\in\interval{a}{b}\\ -&A\in\interval[open]{a}{b}\\ -&A\in\interval[open left]{a}{b}\\ -&A\in\interval[open right, - scaled]{a}{\frac12b}=B\\ -&A\in\interval[scaled=\big]{a}{b} +& A\in\interval{a}{b} \\ +& A\in\interval[open]{a}{b} \\ +& A\in\interval[open left]{a}{b} \\ +& A\in\interval[open right, + scaled]{a}{\frac{1}{2}b}=B \\ +& A\in\interval[scaled=\big]{a}{b} \\ +& A\in\rinterval{a}{b} \end{align*} \end{LTXexample} |