diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-20 21:52:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-20 21:52:58 +0000 |
commit | fe2d50f648a774c6f405d54b77ab8e5c2f37e4b6 (patch) | |
tree | 550832aeb2c5d7d63af10cb7770e0055e3056fae /Master/texmf-dist/doc/latex/multidef | |
parent | 658a820e8fce6fffa034e89505a59080716852ff (diff) |
multidef (20apr16)
git-svn-id: svn://tug.org/texlive/trunk@40637 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/multidef')
-rw-r--r-- | Master/texmf-dist/doc/latex/multidef/README | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/multidef/multidef-test.tex | 37 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/multidef/multidef.pdf | bin | 192897 -> 195375 bytes |
3 files changed, 48 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/multidef/README b/Master/texmf-dist/doc/latex/multidef/README index dc667092475..645fdd0442a 100644 --- a/Master/texmf-dist/doc/latex/multidef/README +++ b/Master/texmf-dist/doc/latex/multidef/README @@ -1,6 +1,6 @@ - multidef.sty -- quickly define a bunch of similar commands + multidef.sty -- quickly define a series of similar commands (Nicolas Markey -- <multidef(at)markey.fr>) - version 1.00 -- 2016/03/14 + version 1.10 -- 2016/04/20 Package multidef provides a quick and easy way of declaring several @@ -21,6 +21,14 @@ and version 1.3 or later is part of all distributions of LaTeX version This work has the LPPL maintenance status `maintained'. The Current Maintainer of this work is Nicolas Markey. +---------------------------------------------------------------------- - +Changelog: + - v1.00 (2016/03/14): initial release + - v1.01 (2016/03/15): + * now uses trimspaces.sty if available + * [BUG] added \global for list of redefined macros + - v1.10 (2016/04/20): + * corrected wrong example in doc (thanks to Pedro Sanchez Terraf) + * added option 'robust' for defining robust commands diff --git a/Master/texmf-dist/doc/latex/multidef/multidef-test.tex b/Master/texmf-dist/doc/latex/multidef/multidef-test.tex new file mode 100644 index 00000000000..0161d8d6225 --- /dev/null +++ b/Master/texmf-dist/doc/latex/multidef/multidef-test.tex @@ -0,0 +1,37 @@ +\documentclass{article} +\usepackage{xspace} +\usepackage{dsfont} +\usepackage{multidef} + + +%% basic definition +\multidef[p=cal]{\ensuremath{\mathcal{#1}}}{A-Z} + +%% example with noerr, nowarn +\multidef[noerr,nowarn,suffix=name]{#1}{contents->Table des mati\`eres, + ref->R\'ef\'erences, + part->Partie} + +%% with one argument +\multidef[arg=1]{\ensuremath{\mathsf{#1}(##1)}}{first,last} + +%% global + robust +\makeatletter +\bgroup +\multidef[noerr,global,p=bb,args=1,robust] + {\@ifnextchar+{\ensuremath{\mathds{#1}^+}\@gobble} + {\ensuremath{\mathds{#1}}}} + {A,B,C,H,N,Q,R,T,Z, + Z , Z ,one->1} +\egroup + + +\begin{document} + +\section{\protect\(\bbZ\protect\) would fail if not robust} + +\calT\ should write $\mathcal T$ + +\first a should write $\mathsf{first}(a)$ + +\end{document} diff --git a/Master/texmf-dist/doc/latex/multidef/multidef.pdf b/Master/texmf-dist/doc/latex/multidef/multidef.pdf Binary files differindex ff6d04aa09e..fe32edcaf7c 100644 --- a/Master/texmf-dist/doc/latex/multidef/multidef.pdf +++ b/Master/texmf-dist/doc/latex/multidef/multidef.pdf |