mirror of
https://github.com/semaphoreci/book-cicd-docker-kubernetes.git
synced 2026-02-14 15:59:50 +00:00
Decrease font size in code blocks
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
5
make-code-small.tex
Normal 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} {}
|
||||
Reference in New Issue
Block a user