Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Hilsky
masterthesis
Commits
d6ca49e1
Commit
d6ca49e1
authored
Jan 18, 2022
by
Felix Hilsky
Browse files
allow new symbols and move settings to yaml file
parent
03505859
Changes
3
Show whitespace changes
Inline
Side-by-side
scripts/md-preamble.tex
View file @
d6ca49e1
\usepackage
{
fancyhdr
}
\pagestyle
{
fancy
}
\fancyhead
{}
\fancyhead
[L]
{
CURRENTCOMMIT
}
\fancyfoot
[L]
{
FILENAME
}
\fancyhead
[L]
{
2022-01-18T21:14:30+01:00 0f8e6e3
}
\fancyfoot
[L]
{
q4-Orientiation-Equivalence.md
}
\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
}}
scripts/md-settings.yaml
0 → 100644
View file @
d6ca49e1
metadata
:
author
:
Felix Hilsky
variables
:
geometry
:
margin=2cm
include-in-header
:
${.}/md-preamble.tex
filters
:
-
${.}/pandoc-gitlab-math.lua
pdf-engine
:
lualatex
scripts/pandoc-call.sh
View file @
d6ca49e1
...
...
@@ -11,5 +11,7 @@ mkdir -p .maindir/out
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#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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment