diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-04 22:46:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-04 22:46:05 +0000 |
commit | 9bc2a0c2350d2837572223c4bd26ab70ffdd2429 (patch) | |
tree | 4aabe51b900cbf58af5173fdfc15ac4d9db7a211 /Master/texmf-dist/doc/latex/letltxmacro | |
parent | 26734a667a81f7bf79cadb7b602a5b0d46565ec9 (diff) |
letltxmacro split from oberdiek (4dec19)
git-svn-id: svn://tug.org/texlive/trunk@53022 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/letltxmacro')
-rw-r--r-- | Master/texmf-dist/doc/latex/letltxmacro/README.md | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/letltxmacro/letltxmacro-showcases.tex | 110 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/letltxmacro/letltxmacro.pdf | bin | 0 -> 290791 bytes |
3 files changed, 122 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/letltxmacro/README.md b/Master/texmf-dist/doc/latex/letltxmacro/README.md new file mode 100644 index 00000000000..424339a06ec --- /dev/null +++ b/Master/texmf-dist/doc/latex/letltxmacro/README.md @@ -0,0 +1,12 @@ +# letltxmacro + +letltxmacro package for LaTeX + + +TeX's \let assignment does not work for LaTeX macros +with optional arguments or for macros that are defined +as robust macros by \DeclareRobustCommand. This package +defines \LetLtxMacro that also takes care of the involved +internal macros. + + diff --git a/Master/texmf-dist/doc/latex/letltxmacro/letltxmacro-showcases.tex b/Master/texmf-dist/doc/latex/letltxmacro/letltxmacro-showcases.tex new file mode 100644 index 00000000000..33a2d55d620 --- /dev/null +++ b/Master/texmf-dist/doc/latex/letltxmacro/letltxmacro-showcases.tex @@ -0,0 +1,110 @@ +%% +%% This is file `letltxmacro-showcases.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% letltxmacro.dtx (with options: `showcases') +%% +%% This is a generated file. +%% +%% Project: letltxmacro +%% Version: 2019/12/03 v1.6 +%% +%% Copyright (C) +%% 2008, 2010 Heiko Oberdiek +%% 2016-2019 Oberdiek Package Support Group +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% https://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% https://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainers of this work are +%% Heiko Oberdiek and the Oberdiek Package Support Group +%% https://github.com/ho-tex/letltxmacro/issues +%% +%% +%% This work consists of the main source file letltxmacro.dtx +%% and the derived files +%% letltxmacro.sty, letltxmacro.pdf, letltxmacro.ins, letltxmacro.drv, +%% letltxmacro-showcases.tex, letltxmacro-test1.tex, +%% letltxmacro-test2.tex. +%% +\NeedsTeXFormat{LaTeX2e} +\makeatletter +\newcommand*{\Line}[1]{% + \typeout{\@percentchar#1}% +} +\newcommand*{\ShowCmdName}[1]{% + \@ifundefined{#1}{}{% + \Line{% + \space\space(\expandafter\string\csname#1\endcsname) = % + (\expandafter\meaning\csname#1\endcsname)% + }% + }% +} +\newcommand*{\ShowCmds}[1]{% + \ShowCmdName{#1}% + \ShowCmdName{#1 }% + \ShowCmdName{\\#1}% + \ShowCmdName{\\#1 }% +} +\let\\\@backslashchar +\newcommand*{\ShowDef}[2]{% + \begingroup + \Line{}% + \newcommand*{\DefString}{#2}% + \@onelevel@sanitize\DefString + \Line{\DefString}% + #2% + \ShowCmds{#1}% + \endgroup +} +\typeout{} +\Line{* LaTeX definitions:} +\ShowDef{cmd}{% + \newcommand{\cmd}[2][default]{}% +} +\ShowDef{cmd}{% + \DeclareRobustCommand{\cmd}{}% +} +\ShowDef{cmd}{% + \DeclareRobustCommand{\cmd}[2][default]{}% +} +\typeout{} +\RequirePackage{etoolbox}[2008/06/12]% +\Line{} +\Line{* etoolbox's robust definitions:} +\ShowDef{cmd}{% + \newrobustcmd{\cmd}{}% +} +\ShowDef{cmd}{% + \newrobustcmd{\cmd}[2][default]{}% +} +\Line{} +\Line{* etoolbox's \string\robustify:} +\ShowDef{cmd}{% + \newcommand{\cmd}[2][default]{} % + \robustify{\cmd}% +} +\ShowDef{cmd}{% + \DeclareRobustCommand{\cmd}{} % + \robustify{\cmd}% +} +\ShowDef{cmd}{% + \DeclareRobustCommand{\cmd}[2][default]{} % + \robustify{\cmd}% +} +\typeout{} +\@@end +\endinput +%% +%% End of file `letltxmacro-showcases.tex'. diff --git a/Master/texmf-dist/doc/latex/letltxmacro/letltxmacro.pdf b/Master/texmf-dist/doc/latex/letltxmacro/letltxmacro.pdf Binary files differnew file mode 100644 index 00000000000..758a8360dc6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/letltxmacro/letltxmacro.pdf |