Skip to content

Commit

Permalink
Update latexmkrc
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 3, 2024
1 parent d7dacfd commit bda5462
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions latexmkrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use File::Spec::Functions;
'layout/hpmor-dust-jacket-1', 'layout/hpmor-dust-jacket-2',
'layout/hpmor-dust-jacket-3', 'layout/hpmor-dust-jacket-4',
'layout/hpmor-dust-jacket-5', 'layout/hpmor-dust-jacket-6',
'layout/test',
);

# Install git hooks for gitinfo2 if not already installed
Expand All @@ -29,8 +28,7 @@ if (-d $hooks_dir) {
}

# Use XeLaTeX (equivalent to command-line -xelatex option)
$pdflatex = 'xelatex %O %S';
$pdflatex = "xelatex %O \"\\PassOptionsToPackage{$options}{hp-book}\\input{%S}\"" if $options;
$xelatex = "xelatex %O \"\\PassOptionsToPackage{$options}{hp-book}\\input{%S}\"" if $options;
my $basedir = curdir();
if (defined($chapter) || defined($chapterfile)) {
if (defined($chapter)) {
Expand All @@ -41,9 +39,9 @@ if (defined($chapter) || defined($chapterfile)) {
} else {
$chapter = 1;
}
$pdflatex = "xelatex -jobname=$chapterfile %O \"\\RequirePackage[pdf]{layout/hp-book}\\begin{document}\\setcounter{chapter}{" . ($chapter - 1) . "}\\input{$chapterfile}\\end{document}\"";
$xelatex = "xelatex -jobname=$chapterfile %O \"\\RequirePackage[pdf]{layout/hp-book}\\begin{document}\\setcounter{chapter}{" . ($chapter - 1) . "}\\input{$chapterfile}\\end{document}\"";
}
$pdf_mode = 1;
$pdf_mode = 5;
$postscript_mode = $dvi_mode = 0;

# Make our fonts available to TeX
Expand Down

0 comments on commit bda5462

Please sign in to comment.