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
966f49b2
Commit
966f49b2
authored
Jan 13, 2022
by
Felix Hilsky
Browse files
md pandoc call turned into script
parent
fbca0978
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/md-preamble.tex
View file @
966f49b2
\usepackage
{
fancyhdr
}
\pagestyle
{
fancy
}
\fancyhead
{}
\fancyhead
[L]
{
CURRENTCOMMIT
}
\AtBeginDocument
{
\renewcommand
{
\setminus
}{
\mathbin
{
\backslash
}}}
scripts/pandoc-call.sh
0 → 100644
View file @
966f49b2
#! /usr/bin/env bash
mkdir
-p
.maindir/out
cp
.maindir/scripts/md-preamble.tex .maindir/out/md-preamble-orig.tex
sed
-i
's#CURRENTCOMMIT#'
$(
git rev-parse
--short
HEAD
)
'#'
.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
' "$1" -o "${2:-~/Desktop/pandoc.pdf}"
cp .maindir/out/md-preamble-orig.tex .maindir/scripts/md-preamble.tex
Write
Preview
Markdown
is supported
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