diff options
Diffstat (limited to 'Master/texmf-dist/doc/support/texdef/README')
-rw-r--r-- | Master/texmf-dist/doc/support/texdef/README | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/support/texdef/README b/Master/texmf-dist/doc/support/texdef/README index f4d2f601fb4..b2cc5ccd52d 100644 --- a/Master/texmf-dist/doc/support/texdef/README +++ b/Master/texmf-dist/doc/support/texdef/README @@ -2,8 +2,7 @@ texdef -- Show definitions of TeX commands This perl script shows the definition of (La)TeX commands in a similar way as `\show`. - -Version 1.0 -- 2011/03/05 +Version 1.3 -- 2011/04/03 Copyright (C) 2011 Martin Scharrer <martin@scharrer-online.de> This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions; @@ -15,12 +14,12 @@ Usage: Other program names are possible. See the 'tex' option. Command names do not need to start with `\`. Options: - --tex <flv>, -t <flv> : Use given flavour of TeX: 'tex', 'latex', 'context'. - Variations of 'tex' and 'latex', like 'luatex', 'lualatex', 'xetex', 'xelatex' are supported. - The default is given by the used program name: 'texdef' -> 'tex', 'latexdef' -> 'latex', etc. - --value, -v : Show value of command instead (i.e. \the\command). - --preamble, -P : Show definition of the command inside the preamble. - --beforeclass, -B : Show definition of the command before \documentclass. + --tex <flv>, -t <flv> : Use given flavour of TeX: 'tex', 'latex', 'context'. + Variations of 'tex' and 'latex', like 'luatex', 'lualatex', 'xetex', 'xelatex' are supported. + The default is given by the used program name: 'texdef' -> 'tex', 'latexdef' -> 'latex', etc. + --value, -v : Show value of command instead (i.e. \the\command). + --preamble, -P : Show definition of the command inside the preamble. + --beforeclass, -B : Show definition of the command before \documentclass. --package <pkg>, -p <pkg> : (M) Load given tex-file, package or module depending on whether '*tex', '*latex' or 'context' is used. For LaTeX the <pkg> can start with `[<options>]` and end with `<pkgname>` or `{<pkgname>}`. @@ -34,12 +33,20 @@ Options: The <code> can be arbitray TeX code and doesn't need be be balanced. --after <code>, -a <code> : (M) Place <code> after definition is shown. The <code> can be arbitray TeX code and doesn't need be be balanced. + --find, -f : Find file where the command sequence was defined (L). + --list, -l : List user level command sequences of the given packages (L). + --list-defs, -L : List user level command sequences and their shorten definitions of the given packages (L). + --list-all, -ll : List all command sequences of the given packages (L). + --list-defs-all, -LL : List all command sequences and their shorten definitions of the given packages (L). + --ignore-cmds <cs,cs,..>, -i : Ignore the following command sequence(s) in the above lists. (M) + --ignore-regex <regex,..>, -I : Ignore all command sequences in the above lists which match the given Perl regular expression(s). (M) --help, -h : Print this help and quit. Long option can be shorten as long the are still unique. Short options can be combined. If the option 'environment', 'before' and 'after' are used toegether the produced code will be inserted in the given order (reversed order for 'after'). (M) = This option can be given multiple times. + (L) = LaTeX only. Requires the packages 'filehook' and 'currfile'. Examples: Show the definition of '\chapter' with different classes ('article' (default), 'book' and 'scrbook'): @@ -62,3 +69,6 @@ Show definition of TikZ's '\draw' inside a node, inside a 'beamer' frame in 'han latexdef -c [handout]beamer -p tikz --env frame --env tikzpicture -b '\node {' -a '};' draw +List all user level command sequences (macros) defined by the 'xspace' LaTeX package: + + latexdef -l -p xspace |