Commit 208d0840 authored by Cédrick COPOL's avatar Cédrick COPOL

Je n'arrive plus a compiler avec lualatex sur mon serveur

parent aa8b19ea
Pipeline #384 failed with stage
in 2 seconds
......@@ -29,7 +29,9 @@ class LatexTemplate {
// file_put_contents($texfile, ob_get_clean());
// Run lualatex (Used because of native unicode and TTF font support)
$cmd = sprintf("lualatex -interaction nonstopmode -halt-on-error %s",
//$cmd = sprintf("lualatex -interaction nonstopmode -halt-on-error %s 2>&1",
// escapeshellarg($texfile));
$cmd = sprintf("/usr/local/bin/pdflatex -interaction nonstopmode -halt-on-error %s 2>&1",
escapeshellarg($texfile));
chdir(sys_get_temp_dir());
exec($cmd, $lua_outp, $ret);
......
......@@ -20,10 +20,8 @@ $texfile = fopen($texname, "w") or die("Unable to open file!");
$lines ="% !TEX TS-program = LuaLaTeX
\documentclass[a4paper,12pt]{book}
\usepackage[" . $identite['doctype'] . "]{uapagedegarde}
\usepackage[" . $identite['doctype'] . "]{uapagedegarde}";
\usepackage{polyglossia}
\setmainlanguage{french}";
fwrite($texfile, $lines."\n");
//------- Titre, auteur et date
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment