aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Javier (kj-sh604)2023-07-10 01:46:59 -0400
committerGitHub2023-07-10 01:46:59 -0400
commit8d6c778c24ff9c2520627b83835d703769a20b04 (patch)
tree9c0d11bb92955203610e32ef9f8b5f36354118b1
parent19325c1ea446194da42f25a632799884ee0efc37 (diff)
parent653f160abd934f73a0878c68050052c6eede9358 (diff)
merge: pr #4 from kj-sh604 (feat: stability with xelatex)
feat. branch: stability with xelatex
-rw-r--r--download.php2
-rw-r--r--output/header.tex3
2 files changed, 4 insertions, 1 deletions
diff --git a/download.php b/download.php
index 666bfb6..9db671a 100644
--- a/download.php
+++ b/download.php
@@ -48,7 +48,7 @@
$filename = $_SESSION["filename"]; // output file name
$userMarkdown = $_SESSION["user-input"];
- $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=pdflatex";
+ $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=xelatex --include-in-header=output/header.tex";
shell_exec("echo '$userMarkdown' > output/'$push'");
shell_exec("cat $templateFile output/'$push' > output/'$convert'");
diff --git a/output/header.tex b/output/header.tex
new file mode 100644
index 0000000..1ea5a37
--- /dev/null
+++ b/output/header.tex
@@ -0,0 +1,3 @@
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{fontspec}