|
@@ -472,10 +472,10 @@ TODO
|
|
|
|
|
|
|
|
\\newpage
|
|
\\newpage
|
|
|
\begin{center}
|
|
\begin{center}
|
|
|
-{\Large \\textbf{
|
|
|
|
|
-$paper_fulltitle%
|
|
|
|
|
-}}\\\\\
|
|
|
|
|
-\\vspace{0.6cm}
|
|
|
|
|
|
|
+{\Large \bfseries
|
|
|
|
|
+
|
|
|
|
|
+$paper_fulltitle
|
|
|
|
|
+}\\vspace{0.6cm}
|
|
|
{\large $authors%
|
|
{\large $authors%
|
|
|
} % TODO: check author list
|
|
} % TODO: check author list
|
|
|
{\large $institute%
|
|
{\large $institute%
|
|
@@ -518,7 +518,7 @@ END;
|
|
|
$tex = preg_replace("/\\\begin{abstract}/i",'\section*{Abstract}',$tex);
|
|
$tex = preg_replace("/\\\begin{abstract}/i",'\section*{Abstract}',$tex);
|
|
|
$tex = preg_replace("/\\\\newcommand/i",'\declarecommand',$tex);
|
|
$tex = preg_replace("/\\\\newcommand/i",'\declarecommand',$tex);
|
|
|
$tex = preg_replace("/\\\\renewcommand/i",'\declarecommand',$tex);
|
|
$tex = preg_replace("/\\\\renewcommand/i",'\declarecommand',$tex);
|
|
|
- //$tex = preg_replace("/\\\\DeclareRobustCommand/i",'\declarecommand',$tex);
|
|
|
|
|
|
|
+ $tex = preg_replace("/\\\\DeclareRobustCommand\s*(?<R>{((?:[^{}]+|(?&R))*)})\s*(?<Q>{((?:[^{}]+|(?&Q))*)})/i",'\declarecommand',$tex);
|
|
|
$tex = preg_replace("/\\\\newenvironment/i",'\declareenvironment',$tex);
|
|
$tex = preg_replace("/\\\\newenvironment/i",'\declareenvironment',$tex);
|
|
|
$tex = preg_replace("/\\\\renewenvironment/i",'\declareenvironment',$tex);
|
|
$tex = preg_replace("/\\\\renewenvironment/i",'\declareenvironment',$tex);
|
|
|
$tex = preg_replace("/\\\\NewDocumentEnvironment/i",'\DeclareDocumentEnvironment',$tex);
|
|
$tex = preg_replace("/\\\\NewDocumentEnvironment/i",'\DeclareDocumentEnvironment',$tex);
|
|
@@ -801,7 +801,7 @@ END;
|
|
|
}
|
|
}
|
|
|
if (isset($options["--compile"]))
|
|
if (isset($options["--compile"]))
|
|
|
{
|
|
{
|
|
|
- exec('latexmk -latexoption="-shell-escape" -g -pdf main.tex');
|
|
|
|
|
|
|
+ passthru('latexmk -latexoption="-shell-escape" -g -pdf main.tex');
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|