diff options
author | Karl Berry <karl@freefriends.org> | 2014-12-02 22:29:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-12-02 22:29:38 +0000 |
commit | a0fcd95ea13d2003d89e4c9c992fea57041d40f7 (patch) | |
tree | c1b86f23138f60830b45d45e97574343af18e79e /Master/texmf-dist/doc/latex/hepnames/mkmacrotables | |
parent | b27b7205b08db16f8f56603b54d3045661292a80 (diff) |
hepnames (2dec14)
git-svn-id: svn://tug.org/texlive/trunk@35722 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/hepnames/mkmacrotables')
-rwxr-xr-x | Master/texmf-dist/doc/latex/hepnames/mkmacrotables | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/hepnames/mkmacrotables b/Master/texmf-dist/doc/latex/hepnames/mkmacrotables index 01c574ddea6..3c06ffbec82 100755 --- a/Master/texmf-dist/doc/latex/hepnames/mkmacrotables +++ b/Master/texmf-dist/doc/latex/hepnames/mkmacrotables @@ -9,10 +9,10 @@ for package in hepnicenames heppennames; do > $TMP echo "\begin{multicols}{2}{" >> $TMP echo "\begin{itemize}" >> $TMP - cat ${package}.sty | egrep "^\\\DeclareRobustCommand|^%\\\DeclareRobustCommand" | \ - while read line; do - item=$( echo $line | sed -e s/'^%'// -e s/"DeclareRobustCommand{\([^}]*\)}[^%]*"/"\1"/g -e s/'%.*'//g ) - description=$( echo $line | sed -e s/'^.*DeclareRobustCommand[^%]*'//g -e s/'^%%.*'//g -e s/'^%\ *'//g ) + cat ${package}.sty | egrep "^\\\DeclareRobustCommand|^%\\\DeclareRobustCommand" | while read line; do + item=$( echo $line | sed -e s/'^%'// -e s/"DeclareRobustCommand{\([^}]\+\)}[^%]*"/"\1"/g -e s/'%.*'//g ) + if [[ -z $item ]]; then continue; fi + description=$( echo $line | sed -e s/'^.*DeclareRobustCommand[^%]*'//g -e s/'%%.*'//g -e s/'^%\ *'//g ) if [[ -n $description ]]; then description="$description\newline"; fi echo "\item ${description} \texcmd{$(echo $item | sed -e s/'\ .*'/''/g)} \$\Rightarrow\$ \\${item}" >> $TMP done @@ -33,7 +33,7 @@ for package in hepnicenames heppennames; do echo "\documentclass[12pt]{article}" >> $PKGOUT echo "\usepackage${pkgopts}{${package}}" >> $PKGOUT echo "\usepackage{a4wide,multicol,setspace,color}" >> $PKGOUT - echo "\title{Testing \\${package}}" >> $PKGOUT + echo "\title{Testing \\textsf{${package}}}" >> $PKGOUT echo "\author{Generated by \texttt{$USER}}" >> $PKGOUT echo "\onehalfspacing" >> $PKGOUT echo '\newcommand{\texcmd}[1]{\textcolor{red}{\texttt{\char`\\#1}}}' >> $PKGOUT @@ -70,6 +70,29 @@ for package in hepnicenames heppennames; do cat $TMP >> $PKGOUT echo "}}" >> $PKGOUT echo >> $PKGOUT + echo "$SECTIONCMD{Sans font}" >> $PKGOUT + echo "\textsf{" >> $PKGOUT + cat $TMP >> $PKGOUT + echo "}" >> $PKGOUT + echo "\clearpage" >> $PKGOUT + echo >> $PKGOUT + echo "$SECTIONCMD{Bold sans font}" >> $PKGOUT + echo "\textsf{\textbf{" >> $PKGOUT + cat $TMP >> $PKGOUT + echo "}}" >> $PKGOUT + echo "\clearpage" >> $PKGOUT + echo >> $PKGOUT + echo "$SECTIONCMD{Italic sans font}" >> $PKGOUT + echo "\textsf{\textit{" >> $PKGOUT + cat $TMP >> $PKGOUT + echo "}}" >> $PKGOUT + echo "\clearpage" >> $PKGOUT + echo >> $PKGOUT + echo "$SECTIONCMD{Bold italic sans font}" >> $PKGOUT + echo "\textsf{\textbf{\textit{" >> $PKGOUT + cat $TMP >> $PKGOUT + echo "}}}" >> $PKGOUT + echo >> $PKGOUT echo "\end{document}" >> $PKGOUT done rm -f $TMP |