From 00545062123b3c62a396fd345ac9a037ba7989b1 Mon Sep 17 00:00:00 2001
From: kj_sh604
Date: Sun, 9 Jul 2023 20:12:06 -0400
Subject: feat: added `header.tex` in attempt to still utilize original
 pdflatex engine

---
 output/header.tex | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 output/header.tex

(limited to 'output/header.tex')

diff --git a/output/header.tex b/output/header.tex
new file mode 100644
index 0000000..2dcb452
--- /dev/null
+++ b/output/header.tex
@@ -0,0 +1,3 @@
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{emoji}
-- 
cgit v1.2.3


From 653f160abd934f73a0878c68050052c6eede9358 Mon Sep 17 00:00:00 2001
From: Blista Kanjo
Date: Mon, 10 Jul 2023 01:43:34 -0400
Subject: feat: more stable compiles with `xelatex` and the header.tex file

---
 download.php      | 2 +-
 output/header.tex | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'output/header.tex')

diff --git a/download.php b/download.php
index 51cbc91..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=lualatex --include-in-header=output/header.tex";
+            $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
index 2dcb452..1ea5a37 100644
--- a/output/header.tex
+++ b/output/header.tex
@@ -1,3 +1,3 @@
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
-\usepackage{emoji}
+\usepackage{fontspec}
-- 
cgit v1.2.3

