Skip to content

Commit

Permalink
Fixes to STVR preamble generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainhalle committed Mar 6, 2019
1 parent caf1b2f commit 699a071
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions set-style.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
**************************************************************************/

// Version
$version_string = "2.1";
$version_string = "2.1.1";
$autogen_comment = "%% This file was autogenerated by PaperShell v$version_string on ".date("Y-m-d H:i:s")."\n%% https://github.com/sylvainhalle/PaperShell\n%% DO NOT EDIT!";

// Read author-title file
Expand Down Expand Up @@ -1036,8 +1036,16 @@
\usepackage{newtxtext,newtxmath} % Times font with math support
\usepackage[scaled]{helvet} % Scale Helvetica
{$doublespace}
\\newcommand\\BibTeX{{\\rmfamily B\\kern-.05em \\textsc{i\\kern-.025em b}\\kern-.08em
T\\kern-.1667em\\lower.7ex\\hbox{E}\\kern-.125emX}}
EOD;

$out .= "\\def\\volumeyear{".$config["year"]."}\n\n";
$out .= "\\input{includes.tex}\n\n";
$out .= "%% Default path for graphics\n\\graphicspath".get_graphicspath()."\n\n";
$out .= "\n\\begin{document}\n\n";
$out .= "\n\n% Running heads\n";
$out .= "\\runningheads{".$authors_initials."}{".$short_title."}\n\n";
$out .= "\n\n% Title\n";
Expand Down Expand Up @@ -1078,14 +1086,12 @@
}
$out .= "%\n}\n\n";
$out .= "\\corraddr{".$config["corr-addr"]."}\n\n";
$out .= "\\input{includes.tex}\n\n";
$out .= "%% Default path for graphics\n\\graphicspath".get_graphicspath()."\n\n";
$out .= "\\begin{document}\n\n";
$out .= "\\maketitle\n";
if ($config["abstract"])
{
$out .= "\\begin{abstract}\n\\input{abstract.tex}\n\\end{abstract}\n";
}
$out .= "\n\\keywords{".$config["keywords"]."}\n\n";
$out .= "\n\\maketitle\n";
file_put_contents($out_folder."preamble.inc.tex", $out);

// Postamble
Expand Down

0 comments on commit 699a071

Please sign in to comment.