texlive[50265] Master/texmf-dist: interval (6mar19)
commits+karl at tug.org
commits+karl at tug.org
Wed Mar 6 23:24:12 CET 2019
Revision: 50265
http://tug.org/svn/texlive?view=revision&revision=50265
Author: karl
Date: 2019-03-06 23:24:12 +0100 (Wed, 06 Mar 2019)
Log Message:
-----------
interval (6mar19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/interval/README
trunk/Master/texmf-dist/doc/latex/interval/interval.pdf
trunk/Master/texmf-dist/doc/latex/interval/interval.tex
trunk/Master/texmf-dist/tex/latex/interval/interval.sty
Modified: trunk/Master/texmf-dist/doc/latex/interval/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/interval/README 2019-03-06 22:24:01 UTC (rev 50264)
+++ trunk/Master/texmf-dist/doc/latex/interval/README 2019-03-06 22:24:12 UTC (rev 50265)
@@ -1,4 +1,4 @@
-% (C) Lars Madsen, daleif at imf.au.dk, 2014/08/04
+% (C) Lars Madsen, daleif at 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 @@
See the manual for details.
+* 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
-* v0.3: added the colorize option
Modified: trunk/Master/texmf-dist/doc/latex/interval/interval.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/interval/interval.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/interval/interval.tex 2019-03-06 22:24:01 UTC (rev 50264)
+++ trunk/Master/texmf-dist/doc/latex/interval/interval.tex 2019-03-06 22:24:12 UTC (rev 50265)
@@ -3,7 +3,7 @@
\usepackage{amsmath,enumitem,showexpl}
%\usepackage[scaled]{beramono}
\title{The \textsf{interval} package}
-\author{Lars Madsen\thanks{Email: daleif at imf.au.dk, version: \INTVversion}\\ \small (on behalf of By the Danish \TeX\ collective)}
+\author{Lars Madsen\thanks{Email: daleif at 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,8 +124,22 @@
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 @@
-\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}
Modified: trunk/Master/texmf-dist/tex/latex/interval/interval.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/interval/interval.sty 2019-03-06 22:24:01 UTC (rev 50264)
+++ trunk/Master/texmf-dist/tex/latex/interval/interval.sty 2019-03-06 22:24:12 UTC (rev 50265)
@@ -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,13 +13,10 @@
%%
%% This work has the LPPL maintenance status "maintained".
%%
-%% The Current Maintainer of this work is Lars Madsen (daleif at imf.au.dk).
+%% The Current Maintainer of this work is Lars Madsen (daleif at math.au.dk).
%%
-%% v0.2: typo in manual
-%% v0.3: added the colorize option
-
\RequirePackage{pgfkeys}
\newcommand\INTV at scaler[1]{
@@ -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 at openfence{\mathopen{\INTV at leftfence}}%
\def\INTV at closefence{\mathclose{\INTV at rightfence}}%
- \let\INTV at extra\relax%
+% \let\INTV at extra\relax%
\pgfkeys{interval,#1}%
\pgfkeysgetvalue{/interval/left fence}{\INTV at leftfence}%
\pgfkeysgetvalue{/interval/right fence}{\INTV at rightfence}%
@@ -76,9 +76,13 @@
\INTV at colorize%
\INTV at openfence%
#2%
- %,%
\pgfkeysvalueof{/interval/separator symbol}
#3%
\INTV at 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}}
+
More information about the tex-live-commits
mailing list