diff options
author | Karl Berry <karl@freefriends.org> | 2014-08-04 22:13:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-08-04 22:13:05 +0000 |
commit | 2a0b31be5c1f7c36853b609eaa68a2ec0c0161d9 (patch) | |
tree | c8d833c575650ff2d9330f769bd22e54820f2079 /Master/texmf-dist | |
parent | bc1323c73038ad7c10b4e6b5328e6933df75f941 (diff) |
interval (4aug14)
git-svn-id: svn://tug.org/texlive/trunk@34840 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/interval/README | 26 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/interval/interval.pdf | bin | 308061 -> 312511 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/interval/interval.tex | 13 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/interval/interval.sty | 9 |
4 files changed, 45 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/interval/README b/Master/texmf-dist/doc/latex/interval/README new file mode 100644 index 00000000000..d4c27853a61 --- /dev/null +++ b/Master/texmf-dist/doc/latex/interval/README @@ -0,0 +1,26 @@ +% (C) Lars Madsen, daleif@imf.au.dk, 2014/08/04 +% 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. + + +This small package use the pgfkeys pacakge to solve the problem of +using the ]a,b[ syntax for indicating an open interval. Instead of +having to type this as \mathopen{]}a,b\mathclose{[} users can simply +use + + \interval[open]{a}{b} (= ]a,b[ with proper spacing) + +Other usages include + + \interval[open left]{a}{b} (= ]a,b]) + \interval{a}{b} (= [a,b]) + +We also provide a simple interface to switch to the more convenient +(a,b) tradition for specifying an open interval. + +See the manual for details. + +* v0.2: typo in manual +* v0.3: added the colorize option + diff --git a/Master/texmf-dist/doc/latex/interval/interval.pdf b/Master/texmf-dist/doc/latex/interval/interval.pdf Binary files differindex 7f2e8b233f3..c87b9bc452c 100644 --- a/Master/texmf-dist/doc/latex/interval/interval.pdf +++ b/Master/texmf-dist/doc/latex/interval/interval.pdf diff --git a/Master/texmf-dist/doc/latex/interval/interval.tex b/Master/texmf-dist/doc/latex/interval/interval.tex index c0c92d845f6..0413707a6f7 100644 --- a/Master/texmf-dist/doc/latex/interval/interval.tex +++ b/Master/texmf-dist/doc/latex/interval/interval.tex @@ -85,7 +85,18 @@ We note that the interval separator symbol is hidden inside the left open fence=(, right open fence=) \end{quote} - +\item[colorize] + Default: \meta{empty}. When rewriting an existing document into + using the \textsf{interval} package, it turns out to be \emph{very} + handy to color the result of the \cs{interval} macro to keep track + of which have been rewritten and which has not. + This can be done using +\begin{lstlisting}[basicstyle=\ttfamily,columns=flexible] + \usepackage{xcolor} + \intervalconfig{ colorize=\color{red} } +\end{lstlisting} +It will colorize the entire interval including the fences. + \end{description} \subsection{Usage options} diff --git a/Master/texmf-dist/tex/latex/interval/interval.sty b/Master/texmf-dist/tex/latex/interval/interval.sty index 9cfe823fd95..2e3608504ee 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/02/20 v0.2] +\ProvidesPackage{interval}[2014/08/04 v0.3] -\newcommand\INTVversion{v0.2} +\newcommand\INTVversion{v0.3} %% %% This package can be distributed and/or modified under the @@ -17,6 +17,7 @@ %% %% v0.2: typo in manual +%% v0.3: added the colorize option \RequirePackage{pgfkeys} @@ -54,6 +55,7 @@ left open fence={(},% right open fence={)},% },% + colorize/.initial=,% } % user configuation @@ -66,9 +68,12 @@ \begingroup% \def\INTV@openfence{\mathopen{\INTV@leftfence}}% \def\INTV@closefence{\mathclose{\INTV@rightfence}}% + \let\INTV@extra\relax% \pgfkeys{interval,#1}% \pgfkeysgetvalue{/interval/left fence}{\INTV@leftfence}% \pgfkeysgetvalue{/interval/right fence}{\INTV@rightfence}% + \pgfkeysgetvalue{/interval/colorize}{\INTV@colorize}% + \INTV@colorize% \INTV@openfence% #2% %,% |