From 8e334f60a6c746a40471e99900181d7ca3b06ccc Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 31 Jan 2014 22:28:02 +0000 Subject: isodoc (31jan14) git-svn-id: svn://tug.org/texlive/trunk@32833 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/isodoc/README | 4 ++ Master/texmf-dist/doc/latex/isodoc/inst | 55 +++------------------ Master/texmf-dist/doc/latex/isodoc/isodoc.pdf | Bin 1347188 -> 1348777 bytes Master/texmf-dist/doc/latex/isodoc/listkeys | 50 +++++++++++++++++++ .../doc/latex/isodoc/logoletter/logoletter.sty | 4 +- 5 files changed, 64 insertions(+), 49 deletions(-) create mode 100755 Master/texmf-dist/doc/latex/isodoc/listkeys (limited to 'Master/texmf-dist/doc/latex/isodoc') diff --git a/Master/texmf-dist/doc/latex/isodoc/README b/Master/texmf-dist/doc/latex/isodoc/README index 07af3840e25..f420fe10a06 100644 --- a/Master/texmf-dist/doc/latex/isodoc/README +++ b/Master/texmf-dist/doc/latex/isodoc/README @@ -20,3 +20,7 @@ experiment with. Installation: Execute the inst script with the --help option for more information. +Changes in version 1.03: + - added logo and nologo options + - changed definitions for fancy headings and footings to allow for easy + adaptation in style files. diff --git a/Master/texmf-dist/doc/latex/isodoc/inst b/Master/texmf-dist/doc/latex/isodoc/inst index d605163b9c4..56c1cf04d82 100644 --- a/Master/texmf-dist/doc/latex/isodoc/inst +++ b/Master/texmf-dist/doc/latex/isodoc/inst @@ -11,20 +11,6 @@ function die { exit 1 } -function help { - cat <<-EOD - This is inst - install the $NAME LaTeX $DOCTYPE - Options: - -h, --help print this help - -c, --clean remove all files created by the installation, except the zip file - -z, --zip Create zip for CTAN (no install, developer only) - - Without any options, inst installs $NAME in the first writable - TEXMFMAIN, TEXMFLOCAL or TEXMFHOME tree. - EOD - exit -} - function setdir { # create installation directory for i in MAIN LOCAL HOME; do TREE=$(kpsewhich --expand-var \$TEXMF$i) @@ -58,16 +44,12 @@ sed 's/^%//;s/\\\\$// s/\\text\(sl\|it\){\([^}]\+\)}/\/\2\//g # \textsl{...} -> /.../ s/{\([^}]*\)}/\1/g # keep last, removes all {...} ' >README + grep "Changes in version" README >/dev/null || die changes not detected } function clean { # clean but keep what goes in the zip - rm -f $NAME.{aux,fls,glo,gls,idx,ilg,ind,log,out,toc,$EXT} - rm -f examples/*/{$NAME*,*.{pdf,aux,log,out}} -} - -function Clean { - clean - rm -f $NAME.pdf README + rm -f $NAME.{aux,fls,glo,gls,idx,ilg,ind,log,out,toc} + rm -f examples/*/{$NAME*,*.{pdf,aux,log,fls,out}} } function makeall { @@ -103,45 +85,24 @@ function makeall { } function installall { - # install and cleanup + # cleanup and install + clean echo installing in $TREE - rm -rf $INSTTEX/* $INSTSRC/* $INSTDOC/* cp -f $NAME.$EXT languages/iso* $INSTTEX cp -a $NAME.{ins,dtx} $INSTSRC cp -a README inst languages/template.ldf $NAME.pdf examples/* $INSTDOC mktexlsr $TREE 2>/dev/null - clean -} - -function mkzip { - clean + rm $NAME.cls cd .. zipfile=$NAME/$NAME-$VERSION.zip rm -f $zipfile - zip -Drq $zipfile $NAME/* -x $NAME/test/* + zip -Drq $zipfile $NAME/* -x $NAME/test/* -x $NAME.$EXT cd $NAME - Clean + rm README $NAME.pdf } testexecs setdir - -if ! options=$(getopt -o hcz \ - -l help,clean,zip -- "$@"); then exit 1; fi -eval set -- "$options" - -while [ $# -gt 0 ]; do - case $1 in - -c|--clean) Clean; exit;; - -z|--zip) makeall; mkzip; exit;; - -h|--help) help;; - (--) shift; break;; - (*) break;; - esac - shift -done -test "$1" = "" || die No arguments expected - makeall installall diff --git a/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf b/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf index 79241374cc1..0d1b552c5b8 100644 Binary files a/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf and b/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf differ diff --git a/Master/texmf-dist/doc/latex/isodoc/listkeys b/Master/texmf-dist/doc/latex/isodoc/listkeys new file mode 100755 index 00000000000..ab77a2f607d --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodoc/listkeys @@ -0,0 +1,50 @@ +#!/bin/bash +#shopt -s extglob + +# after the addition of new options, two regions of the documentation in +# isodoc.dtx need to be updated: +# 1. the body of the definition of \showkeys +# listkeys will print that body with the argument `show' +# 2. The body of the tabular (in the section `Commands'), which shows +# the options having a corresponding command. +# listkeys will print that body with the argument `defs' +# +# An easy way to replace the data in isodoc.dtx is, using the vim editor: +# 1. select the lines (the contents of \def\showkeys, say) with V and then +# 2. type :!listkeys show + + +usage() { echo "Usage: listkeys defs|show"; } +[[ -z $1 ]] && usage + +type=$1 +[[ $type =~ ^(defs|show)$ ]] || usage + +minipage='^(acceptdesc|copyto|enclosures|logoaddres|signature|returnaddress)$' +undef='^(accountname|accountno|bic|iban|routingno|vatno)$' +# find keys which have a corresponding command: +a=($( + while read -r x; do + [[ $x =~ define@key ]] || continue + # \define@key{isodoc}{closing} {\def\closing{#1}} + re='\\define@key\{isodoc\}\{([[:alpha:]]+)\}.*\\def\\\1\{' + # ----word---- ^^-same word + [[ $x =~ $re ]] || continue + echo ${BASH_REMATCH[1]} + done