diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-07-18 18:53:44 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-07-18 18:53:44 +0000 |
commit | 996d199af97ad532deb03de7e2159d4c8b282c79 (patch) | |
tree | 2838b370799ceb1b85f2639a7428189c7a77f04c /lib/sbin/ThornGuide.pl | |
parent | 05bfc34577b4fef0ec9277bd53f4d57e902a45a3 (diff) |
Use numbers instead of letters to "number" arrangements. The alphabet
does not have enough letter.
Remove stuff from the thorn guide header that is now in cactus.sty.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3294 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/ThornGuide.pl')
-rw-r--r-- | lib/sbin/ThornGuide.pl | 108 |
1 files changed, 15 insertions, 93 deletions
diff --git a/lib/sbin/ThornGuide.pl b/lib/sbin/ThornGuide.pl index 28e16cae..c97833e0 100644 --- a/lib/sbin/ThornGuide.pl +++ b/lib/sbin/ThornGuide.pl @@ -9,14 +9,14 @@ use vars qw($h $help $cctk_home $thornlist $directory $outdir $verbose $debug $o # @date Sun Mar 3 19:05:41 CET 2002 # @author Ian Kelley # @desc -# Create cactus documentation based upon documenation provided by thorns -# in the current checkout being examined. (documentation.tex files) -# -# It will create a "manual" for this particular checkout, with an index -# and everything. Note that the documentation provided by thorns may -# not use macros, etc. (except of course, the ones we provide globally) +# Create cactus documentation based upon documenation provided by thorns +# in the current checkout being examined. (documentation.tex files) # -# It attempts to include the output of InterLatex.pl, ParamLatex.pl and +# It will create a "manual" for this particular checkout, with an index +# and everything. Note that the documentation provided by thorns may +# not use macros, etc. (except of course, the ones we provide globally) +# +# It attempts to include the output of InterLatex.pl, ParamLatex.pl and # SchedLatex.pl, which if run before this program, will create output from # parsing the interface.ccl, param.ccl, and schedule.ccl files. # @enddesc @@ -463,7 +463,7 @@ sub Start_Arr print OUT <<EOC; \\begin{cactuspart}{$partnum}{$arr}{}{} -\\renewcommand{\\thepage}{\\Alph{part}\\arabic{page}} +\\renewcommand{\\thepage}{\\arabic{part}:\\arabic{page}} EOC } @@ -511,7 +511,6 @@ print OUT <<EOC; \\usepackage{$cactus_style_file} -\\usepackage{fancyhdr} \\usepackage{minitoc} @@ -525,89 +524,12 @@ print OUT <<EOC; \\makeatother \\usepackage{tocloft} -\\addtolength{\\cftchapnumwidth}{0.5em} -\\addtolength{\\cftsecnumwidth}{0.5em} -\\addtolength{\\cftsubsecnumwidth}{0.5em} -\\addtolength{\\cftsubsubsecnumwidth}{0.5em} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Takes three arguments - the name of the document, the revision, and -% the date. -% Additionally ther eis an optional first argument with the version number - -\\newcommand{\\cactustitlepage}[4][4.0] -{ -\\thispagestyle{empty} -\\setlength{\\parindent}{0mm} -\\setlength{\\parskip}{0mm} -\\vspace*{\\stretch{1}} -\\rule{\\linewidth}{1mm} -\\begin{flushright} - \\Huge Cactus #1\\\\[5mm] - #2 -\\end{flushright} -\\rule{\\linewidth}{1mm} -\\vspace*{\\stretch{2}} -\\begin{center} -\\includegraphics[angle=0,width=5cm]{bincactus} -\\end{center} -\\vspace*{\\stretch{2}} -\\begin{center} - \\Large #3 \\\\[3mm] - #4 -\\end{center} -\\newpage -} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\\newenvironment{cactuspart}[4] -{ - \\clearpage - \\renewcommand{\\thepage}{\\Alph{part}\\arabic{page}} - % Redefine the plain style - \\fancypagestyle{plain} - { - \\fancyhf{} % Clear all header and footer fields - \\lfoot{#3} - \\cfoot{#4} - % \\rfoot{\\thepage/\\pageref{lastpage:\\thepart}} - \\rfoot{\\thepage} - \\renewcommand{\\headrulewidth}{0.0pt} - \\renewcommand{\\footrulewidth}{0.4pt} - \\renewcommand{\\thepage}{\\Alph{part}\\arabic{page}} - } - - % Make sure it's arabic numbering - \\pagenumbering{arabic} - % Start the page counter at 1 - \\setcounter{page}{1} - % Start a new part - \\renewcommand{\\thepage}{\\Alph{part}\\arabic{page}} - \\part{#2} - \\setcounter{part}{#1} - % Redefine the page - % Set up fancy headings. - \\lfoot{#3} - \\cfoot{#4} - % \\rfoot{\\thepage/\\pageref{lastpage:\\thepart}} - \\rfoot{\\thepage} - \\renewcommand{\\headrulewidth}{0.4pt} - \\renewcommand{\\footrulewidth}{0.4pt} -} -{ - % Remember the last page of the part - \\label{lastpage:\\thepart} - \\clearpage -} +\\addtolength{\\cftchapnumwidth}{1.5em} +\\addtolength{\\cftsecnumwidth}{1.5em} +\\addtolength{\\cftsubsecnumwidth}{1.5em} +\\addtolength{\\cftsubsubsecnumwidth}{1.5em} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\\def\\nhat{{\\hat n}} -\\def\\vone{{v_{{}_{(1)}}}} -\\def\\vtwo{{v_{{}_{(2)}}}} -\\def\\vthree{{v_{{}_{(3)}}}} -\\def\\eref#1{(\\ref{#1})} - \\begin{document} \\cactustitlepage{Thorn Guide$configname}{Date of Creation:}{$TODAYS_DATE} @@ -623,9 +545,9 @@ print OUT <<EOC; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\\renewcommand{\\thepart}{\\Alph{part}} -\\renewcommand{\\thechapter}{\\Alph{part}\\arabic{chapter}} -\\renewcommand{\\thepage}{\\Alph{part}\\arabic{page}} +\\renewcommand{\\thepart}{\\arabic{part}} +\\renewcommand{\\thechapter}{\\arabic{part}:\\arabic{chapter}} +\\renewcommand{\\thepage}{\\arabic{part}:\\arabic{page}} \\pagestyle{fancy} \\parskip = 10pt \\parindent = 0pt |