summaryrefslogtreecommitdiff
path: root/lib/sbin/ThornGuide.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-30 15:47:13 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-30 15:47:13 +0000
commit9d01956c74f5802cc783b1fb100e1f42b70c27e8 (patch)
treeca2e0fcb57f5a14b29e2ff59f2e49be87ea7c090 /lib/sbin/ThornGuide.pl
parentf12d6f7f1486beb76f8bfcc9d59288776b4b311d (diff)
From Ian Kelley:
Put all the bibliographies together at the end of the thorn guide (for now) git-svn-id: http://svn.cactuscode.org/flesh/trunk@2871 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/ThornGuide.pl')
-rw-r--r--lib/sbin/ThornGuide.pl20
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/sbin/ThornGuide.pl b/lib/sbin/ThornGuide.pl
index 377119d4..869963fe 100644
--- a/lib/sbin/ThornGuide.pl
+++ b/lib/sbin/ThornGuide.pl
@@ -65,6 +65,9 @@ chomp ($start_directory);
# what file are we looking for?
my $file = "documentation.tex";
+# for putting all the bibs at the end
+my $bibliography = "";
+
# specify output file
$outfile ||= "ThornGuide.tex";
@@ -182,6 +185,13 @@ sub Read_Thorn_Doc
if (/\\title\{(.*?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?.*?)\}/) { $title = $1; }
if (/\\author\{(.*?)\}/) { $author = $1; }
if (/\\date\{(.*?)\}/) { $date = $1; }
+ if (/\\begin\{thebibliography/) {
+ my $line;
+ while (($line = <DOC>) && ($line !~ /\\end\{thebibliography/)) {
+ $bibliography .= $line;
+ }
+ next;
+ }
next if (/^\s*?\\tableofcontents\s*?$/);
@@ -318,8 +328,16 @@ EOC
#@@*/
sub Output_Bottom
{
+ if ($bibliography =~ /\w/) {
+ #$bibliography = "\\addcontentsline\{toc\}\{chapter\}\{Bibliography\}\n\\begin\{thebibliography\}\{9\}\n$bibliography\n\\end\{thebibliography\}";
+ &Start_Arr("References", $counter);
+ $bibliography = "\\begin\{thebibliography\}\{9\}\n$bibliography\n\\end\{thebibliography\}";
+ }
+
print OUT <<EOC;
+$bibliography
+
\\end{document}
EOC
}
@@ -421,7 +439,7 @@ print OUT <<EOC;
\\rule{\\linewidth}{1mm}
\\vspace*{\\stretch{2}}
\\begin{center}
-\\includegraphics[angle=0,width=5cm]{bincactus.eps}
+\\includegraphics[angle=0,width=5cm]{bincactus}
\\end{center}
\\vspace*{\\stretch{2}}
\\begin{center}