- Generation time added to LaTeX

This commit is contained in:
Wiesner András 2024-10-01 16:45:01 +02:00
parent 8e145df855
commit b1c1509f9f
3 changed files with 5 additions and 3 deletions

View File

@ -213,7 +213,7 @@ class Report
// add comments if any
if ($this->comments != []) {
$tex .= "\\huge A következő oldal érzékeny információkat tartalmazhat!\\newline Nem publikálandó!\n\\clearpage\n\n";
$tex .= "\\huge\\noindent A következő oldal érzékeny információkat tartalmazhat!\\newline Nem publikálandó!\n\\clearpage\n\n";
$tex .= "\\clearpage\n\small\n\\noindent ";
$tex .= join("\\\\\n", $this->comments);
}

View File

@ -579,7 +579,7 @@ function generate_report_by_groups(ReqHandler &$rh, array $params): string
$report->addComment("filter: ${filter}");
$report->addComment("best_only: ${params["best_only"]}");
$requestURL = $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
$report->addComment("\\scriptsize \\path{$requestURL}");
$report->addComment("\\scriptsize \\path{" . $requestURL . "}");
// generate latex
$report->saveTeX($buildDir);

View File

@ -13,6 +13,7 @@
\usepackage[fontsize=7pt]{fontsize}
\usepackage{titlesec}
\usepackage{url}
\usepackage{datetime2-magyar}
% For frame layout and content
\usepackage{xcolor}
@ -151,7 +152,8 @@
\begin{document}
\begin{center}
\Huge \IfFileExists{title.tex}{\input{title.tex}}{Kvíz eredmények}
\Huge \IfFileExists{title.tex}{\input{title.tex}}{Kvíz eredmények}\\
\normal \DTMcurrenttime
\end{center}
\Large