From bb1ddb80fd9414be8db2d3ad99bc0d846150b490 Mon Sep 17 00:00:00 2001 From: Amolith Date: Wed, 10 Nov 2021 03:13:40 -0500 Subject: [PATCH] add configs for pandoc --- pandoc_config/images.lua | 6 ++++++ pandoc_config/styles.tex | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pandoc_config/images.lua create mode 100644 pandoc_config/styles.tex diff --git a/pandoc_config/images.lua b/pandoc_config/images.lua new file mode 100644 index 0000000..87bf85e --- /dev/null +++ b/pandoc_config/images.lua @@ -0,0 +1,6 @@ +function Image (img) + if img.src:sub(1,1) == '/' then + img.src = os.getenv 'WEBROOT' .. img.src + end + return img +end diff --git a/pandoc_config/styles.tex b/pandoc_config/styles.tex new file mode 100644 index 0000000..8d061e1 --- /dev/null +++ b/pandoc_config/styles.tex @@ -0,0 +1,26 @@ +% Contents of listings-setup.tex +\usepackage{xcolor} +\usepackage{fontspec} + +\lstset { + basicstyle=\ttfamily, + numbers=left, + keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries, + stringstyle=\color[rgb]{0.31,0.60,0.02}, + commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape, + numberstyle=\footnotesize, + stepnumber=1, + numbersep=5pt, + backgroundcolor=\color[RGB]{248,248,248}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2, + captionpos=b, + breaklines=true, + breakatwhitespace=true, + breakautoindent=true, + escapeinside={\%*}{*)}, + linewidth=\textwidth, + basewidth=0.5em, + }