add configs for pandoc

This commit is contained in:
Amolith 2021-11-10 03:13:40 -05:00
parent b5282e4750
commit bb1ddb80fd
Signed by: Amolith
GPG Key ID: 5548AD9930655715
2 changed files with 32 additions and 0 deletions

6
pandoc_config/images.lua Normal file
View File

@ -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

26
pandoc_config/styles.tex Normal file
View File

@ -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,
}