summaryrefslogtreecommitdiff
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
parent6103628f0fb4e302640a732dbdf2fb7e602ae016 (diff)
interval (6mar19)
git-svn-id: svn://tug.org/texlive/trunk@50265 c570f23f-e606-0410-a88d-b1316a301751
-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
-rw-r--r--Master/texmf-dist/tex/latex/interval/interval.sty24
4 files changed, 57 insertions, 28 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}
diff --git a/Master/texmf-dist/tex/latex/interval/interval.sty b/Master/texmf-dist/tex/latex/interval/interval.sty
index 2e3608504ee..1aa4ae52346 100644
--- a/Master/texmf-dist/tex/latex/interval/interval.sty
+++ b/Master/texmf-dist/tex/latex/interval/interval.sty
@@ -1,6 +1,6 @@
-\ProvidesPackage{interval}[2014/08/04 v0.3]
+\ProvidesPackage{interval}[2019/03/06 v0.4]
-\newcommand\INTVversion{v0.3}
+\newcommand\INTVversion{v0.4}
%%
%% This package can be distributed and/or modified under the
@@ -13,12 +13,9 @@
%%
%% This work has the LPPL maintenance status "maintained".
%%
-%% The Current Maintainer of this work is Lars Madsen (daleif@imf.au.dk).
+%% The Current Maintainer of this work is Lars Madsen (daleif@math.au.dk).
%%
-%% v0.2: typo in manual
-%% v0.3: added the colorize option
-
\RequirePackage{pgfkeys}
@@ -60,15 +57,18 @@
% user configuation
\newcommand\intervalconfig[1]{\pgfkeys{/interval,#1}}
-% name in older doc
-\let\intervalsetup\intervalconfig
+
+\newcommand\intervalsetup{
+ \PackageError{interval}{The \string\intervalsetup\space macro has
+ been removed. Please use \string\intervalconfig\space instead}{}
+}
\newcommand\interval[3][]{%
\begingroup%
\def\INTV@openfence{\mathopen{\INTV@leftfence}}%
\def\INTV@closefence{\mathclose{\INTV@rightfence}}%
- \let\INTV@extra\relax%
+% \let\INTV@extra\relax%
\pgfkeys{interval,#1}%
\pgfkeysgetvalue{/interval/left fence}{\INTV@leftfence}%
\pgfkeysgetvalue{/interval/right fence}{\INTV@rightfence}%
@@ -76,9 +76,13 @@
\INTV@colorize%
\INTV@openfence%
#2%
- %,%
\pgfkeysvalueof{/interval/separator symbol}
#3%
\INTV@closefence%
\endgroup%
}
+
+\newcommand\ointerval[3][]{\interval[open,#1]{#2}{#3}}
+\newcommand\linterval[3][]{\interval[open left,#1]{#2}{#3}}
+\newcommand\rinterval[3][]{\interval[open right,#1]{#2}{#3}}
+