Commit d6ca49e1 authored by Felix Hilsky's avatar Felix Hilsky
Browse files

allow new symbols and move settings to yaml file

parent 03505859
\usepackage{fancyhdr} \usepackage{fancyhdr}
\pagestyle{fancy} \pagestyle{fancy}
\fancyhead{} \fancyhead{}
\fancyhead[L]{CURRENTCOMMIT} \fancyhead[L]{2022-01-18T21:14:30+01:00 0f8e6e3}
\fancyfoot[L]{FILENAME} \fancyfoot[L]{q4-Orientiation-Equivalence.md}
\AtBeginDocument{\renewcommand{\setminus}{\mathbin{\backslash}}} \AtBeginDocument{\renewcommand{\setminus}{\mathbin{\backslash}}}
\RequirePackage{silence} % Package that lets ignore warnings and errors for unicodechar redefining
\WarningFilter{newunicodechar}{Redefining}
\RequirePackage{newunicodechar} % makes this remapping possible
\newcommand{\mathsymbol}[2]{\newunicodechar{#1}{\ifmmode#2\else#1\fi}}
\mathsymbol{ê}{\hat{e}}
\mathsymbol{𝕊}{\mathbb{S}}
metadata:
author: Felix Hilsky
variables:
geometry: margin=2cm
include-in-header: ${.}/md-preamble.tex
filters:
- ${.}/pandoc-gitlab-math.lua
pdf-engine: lualatex
...@@ -11,5 +11,7 @@ mkdir -p .maindir/out ...@@ -11,5 +11,7 @@ mkdir -p .maindir/out
cp .maindir/scripts/md-preamble.tex .maindir/out/md-preamble-orig.tex cp .maindir/scripts/md-preamble.tex .maindir/out/md-preamble-orig.tex
sed -i 's#CURRENTCOMMIT#'"${headertext}"'#' .maindir/scripts/md-preamble.tex sed -i 's#CURRENTCOMMIT#'"${headertext}"'#' .maindir/scripts/md-preamble.tex
sed -i 's#FILENAME#'"${baseinfile}"'#' .maindir/scripts/md-preamble.tex sed -i 's#FILENAME#'"${baseinfile}"'#' .maindir/scripts/md-preamble.tex
pandoc --pdf-engine lualatex --lua-filter .maindir/scripts/pandoc-gitlab-math.lua --include-in-header=.maindir/scripts/md-preamble.tex "${infile}" --output="${outfile}" pandoc --defaults .maindir/scripts/md-settings.yaml \
"${infile}" \
--output="${outfile}"
cp .maindir/out/md-preamble-orig.tex .maindir/scripts/md-preamble.tex cp .maindir/out/md-preamble-orig.tex .maindir/scripts/md-preamble.tex
Supports Markdown
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