summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/hepnames/mkmacrotables
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/hepnames/mkmacrotables')
-rwxr-xr-xMaster/texmf-dist/doc/latex/hepnames/mkmacrotables33
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