pod2latex: Cleanup latex build in prep for logo
This commit is contained in:
parent
9c3331927b
commit
63a429dd64
12
Makefile.in
12
Makefile.in
|
|
@ -235,8 +235,8 @@ verilator.html: ${srcdir}/bin/verilator
|
|||
pod2html $< >$@
|
||||
|
||||
# PDF needs DIST variables; but having configure.ac as dependency isn't detected
|
||||
verilator.pdf: ${srcdir}/bin/verilator Makefile
|
||||
pod2latex --full --out verilator.tex ${srcdir}/bin/verilator
|
||||
verilator.pdf: ${srcdir}/bin/verilator Makefile $(POD2LATEXFIX)
|
||||
pod2latex --full --out verilator.tex $<
|
||||
$(PERL) $(POD2LATEXFIX) "$(DISTTITLE)" "${DISTDATE}" < verilator.tex > verilator2.tex
|
||||
mv verilator2.tex verilator.tex
|
||||
pdflatex verilator.tex
|
||||
|
|
@ -251,8 +251,8 @@ README.html: README.pod
|
|||
pod2html $< >$@
|
||||
|
||||
# PDF needs DIST variables; but having configure.ac as dependency isn't detected
|
||||
README.pdf: README.pod Makefile
|
||||
pod2latex --full --out README.tex README.pod
|
||||
README.pdf: README.pod Makefile $(POD2LATEXFIX)
|
||||
pod2latex --full --out README.tex $<
|
||||
$(PERL) $(POD2LATEXFIX) "$(DISTTITLE) README File" "${DISTDATE}" < README.tex > README2.tex
|
||||
mv README2.tex README.tex
|
||||
pdflatex README.tex
|
||||
|
|
@ -267,8 +267,8 @@ internals.html: internals.pod
|
|||
pod2html $< >$@
|
||||
|
||||
# PDF needs DIST variables; but having configure.ac as dependency isn't detected
|
||||
internals.pdf: internals.pod Makefile
|
||||
pod2latex --full --out internals.tex internals.pod
|
||||
internals.pdf: internals.pod Makefile $(POD2LATEXFIX)
|
||||
pod2latex --full --out internals.tex $<
|
||||
$(PERL) $(POD2LATEXFIX) "$(DISTTITLE) Internals Manual" "${DISTDATE}" < internals.tex > internals2.tex
|
||||
mv internals2.tex internals.tex
|
||||
pdflatex internals.tex
|
||||
|
|
|
|||
|
|
@ -18,13 +18,18 @@
|
|||
my $Opt_DistTitle = $ARGV[0] or die "%Error: No disttitle specified,";
|
||||
my $Opt_DistDate = $ARGV[1] or die "%Error: No distdate specified,";
|
||||
|
||||
my $header = ("\\usepackage[left=1.7in,right=1.7in,top=1.3in,bottom=1.3in]{geometry}\n"
|
||||
."\\usepackage[pdftex,bookmarks=true,bookmarksnumbered=true,hypertexnames=false,breaklinks=true,linkbordercolor={0 0 1}]{hyperref}\n"
|
||||
."\\usepackage{fancyhdr} \\pagestyle{fancy}\n"
|
||||
."\\setlength{\\parindent}{0pt} \\setlength{\\parskip}{\\baselineskip}\n"
|
||||
."\\title{${Opt_DistTitle}} \\date{${Opt_DistDate}} \\author{http:\/\/www.veripool.org}\n"
|
||||
."\\lhead[${Opt_DistTitle}]{${Opt_DistTitle}}\n"
|
||||
);
|
||||
my $header =
|
||||
("\\usepackage[left=1.7in,right=1.7in,top=1.3in,bottom=1.3in]{geometry}\n"
|
||||
."\\usepackage[pdftex,bookmarks=true,bookmarksnumbered=true,hypertexnames=false,breaklinks=true,colorlinks=true,linkcolor=blue]{hyperref}\n"
|
||||
."\\usepackage{fancyhdr} \\pagestyle{fancy}\n"
|
||||
."\n"
|
||||
."\\setlength{\\parindent}{0pt} \\setlength{\\parskip}{\\baselineskip}\n"
|
||||
."\n"
|
||||
."\\title{${Opt_DistTitle}}\n"
|
||||
."\\date{${Opt_DistDate}}\n"
|
||||
."\\author{http:\/\/www.veripool.org}\n"
|
||||
."\\lhead[${Opt_DistTitle}]{${Opt_DistTitle}}\n"
|
||||
);
|
||||
|
||||
foreach my $line (<STDIN>) {
|
||||
$line =~ s/(\\begin\{document\})/${header}$1/;
|
||||
|
|
|
|||
Loading…
Reference in New Issue