summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/interval
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-06 22:24:12 +0000
committerKarl Berry <karl@freefriends.org>2019-03-06 22:24:12 +0000
commit8ed69c4a691d843c39f9eee1cf766a669c713033 (patch)
tree85acdac3e1ae115673cd9fe6d74c702c8921fe5f /Master/texmf-dist/doc/latex/interval
parent6103628f0fb4e302640a732dbdf2fb7e602ae016 (diff)
interval (6mar19)
git-svn-id: svn://tug.org/texlive/trunk@50265 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/interval')
-rw-r--r--Master/texmf-dist/doc/latex/interval/README10
-rw-r--r--Master/texmf-dist/doc/latex/interval/interval.pdfbin312511 -> 323101 bytes
-rw-r--r--Master/texmf-dist/doc/latex/interval/interval.tex51
3 files changed, 43 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/interval/README b/Master/texmf-dist/doc/latex/interval/README
index d4c27853a61..0ae8b8be219 100644
--- a/Master/texmf-dist/doc/latex/interval/README
+++ b/Master/texmf-dist/doc/latex/interval/README
@@ -1,4 +1,4 @@
-% (C) Lars Madsen, daleif@imf.au.dk, 2014/08/04
+% (C) Lars Madsen, daleif@math.au.dk, 2019/03/06
% This material is subject to the LaTeX Project Public License.
% See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
% for the details of that license.
@@ -21,6 +21,12 @@ We also provide a simple interface to switch to the more convenient
See the manual for details.
-* v0.2: typo in manual
+* v0.4:
+ Added \ointerval, \linterval, \rinterval short hands (suggested by Frank Mittelbach).
+ They are just shots ways to say, say, \interval[open]{a}{b}, etc.
+
+ Removed \intervalsetup (now gives an error if used, was set to equal \intervalconfig)
+
* v0.3: added the colorize option
+* v0.2: typo in manual
diff --git a/Master/texmf-dist/doc/latex/interval/interval.pdf b/Master/texmf-dist/doc/latex/interval/interval.pdf
index c87b9bc452c..1095061d6f1 100644
--- a/Master/texmf-dist/doc/latex/interval/interval.pdf
+++ b/Master/texmf-dist/doc/latex/interval/interval.pdf
Binary files differ
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}