diff options
author | Karl Berry <karl@freefriends.org> | 2010-03-28 23:58:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-03-28 23:58:21 +0000 |
commit | 4c1354bc80518900881117ec3e90b129ed171556 (patch) | |
tree | 9a0364aee8da100535810029d3645e3a8ee8aeb8 /Master/texmf-dist/doc/latex/youngtab/makeydoc | |
parent | ae233f18c699dd1960b4a2e0c092af269f79735b (diff) |
rearrange youngtab
git-svn-id: svn://tug.org/texlive/trunk@17597 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/youngtab/makeydoc')
-rw-r--r-- | Master/texmf-dist/doc/latex/youngtab/makeydoc | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/youngtab/makeydoc b/Master/texmf-dist/doc/latex/youngtab/makeydoc new file mode 100644 index 00000000000..d0fda75af83 --- /dev/null +++ b/Master/texmf-dist/doc/latex/youngtab/makeydoc @@ -0,0 +1,59 @@ +#!/bin/sh +# +# Everything after a `#' is ignored (in this shell script) +# +# remove the string `> /dev/null' if you want more log-output +# remove the line containing `batchmode' if you want even more +# log-information while running LaTeX +# +#----------------- create a `ltxdoc.cfg': -------------------------- + +# Put here a list of options to pass to the class: +OPT=a4paper + +echo "Generating configuration file ltxdoc.cfg for youngtab.dtx" + +# Write the file in one pass: +cat > ltxdoc.cfg <<EOF +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% ltxdoc.cfg for youngtab.dtx, generated by makeydoc %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\PassOptionsToClass{$OPT}{article} +\batchmode + +%% Do not uncomment the next 2 lines +%\AtBeginDocument{\RecordChanges} +%\AtEndDocument{\PrintChanges} + +%% The next 3 lines produce full indexes and change logs +%% - you may not want those (commented out by default). +\AtBeginDocument{\CodelineIndex\EnableCrossrefs} +\AtEndDocument{\PrintIndex} +\AtEndDocument{\addcontentsline{toc}{section}{Index}} + +%% If you do not want any code listings, just documentation, then instead +%% of the lines above, uncomment the following: +%\AtBeginDocument{\OnlyDescription} +EOF +#---------- latex the documentation using `ltxdoc.cfg': -------------- + +ThisDoc=youngtab.dtx +Base=youngtab + +echo;echo "1st latex $ThisDoc" +if (latex $ThisDoc > /dev/null) +then + echo;echo "2nd latex $ThisDoc" + latex $ThisDoc > /dev/null + + echo;echo "makeindex -s gind.ist $Base.idx" + makeindex -s gind.ist $Base.idx + echo;echo "3rd latex $ThisDoc" + latex $ThisDoc > /dev/null +else + echo;cat <<EOF + !!! LaTeX ERROR: $ThisDoc. (See $Base.log.) + Perhaps a new version of youngtab.sty is missing? + (Then, generate it by "tex youngtab.ins") +EOF +fi |