Decrease font size in code blocks

This commit is contained in:
Marko Anastasov
2020-03-03 18:36:56 +01:00
parent 1b9846420f
commit 4010e73b89
2 changed files with 6 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ html: $(BUILD)/html/$(BOOKNAME).html
$(BUILD)/pdf/$(BOOKNAME).pdf: $(TITLE) $(CHAPTERS)
mkdir -p $(BUILD)/pdf
docker run --rm --volume `pwd`:/data pandoc/latex:2.6 -f markdown-implicit_figures -o /data/$@ $^
docker run --rm --volume `pwd`:/data pandoc/latex:2.6 -f markdown-implicit_figures -H make-code-small.tex -o /data/$@ $^
$(BUILD)/html/$(BOOKNAME).html: $(TITLE) $(CHAPTERS)
mkdir -p $(BUILD)/html

5
make-code-small.tex Normal file
View File

@@ -0,0 +1,5 @@
% Hack to decrease font size in code blocks
% Options for font size:
% huge, LARGE, Large, large, normalsize, small, footnotesize, scriptsize, tiny
% Source: https://stackoverflow.com/questions/27000906/how-to-set-the-font-size-for-code-blocks-in-pandoc-markdown#comment78049604_27159300
\renewenvironment{Shaded} {\footnotesize} {}