diff --git a/NEWS b/NEWS index 0355d1f..62a1bd8 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,9 @@ Copyright (C) Artyom V. Poptsov notice and this notice are preserved. * Unreleased +** common +*** Change the Minted style for code examples +- Add light-gray background and line numbers for Minted code blocks. ** en *** Dialogues with a computer **** Algorithms diff --git a/src/en/sparc.tex b/src/en/sparc.tex index 4b7f94d..9c05113 100644 --- a/src/en/sparc.tex +++ b/src/en/sparc.tex @@ -28,6 +28,17 @@ \usepackage[backend=bibtex]{biblatex} \addbibresource{references.bib} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Set the Minted style. + +\definecolor{friendlybg}{HTML}{f0f0f0} +\setminted[cpp] + { + style=friendly, + bgcolor=friendlybg, + linenos + } + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setmainfont{Liberation Serif} \setmonofont{Liberation Mono} diff --git a/src/ru/sparc.tex b/src/ru/sparc.tex index b363c98..ea608da 100644 --- a/src/ru/sparc.tex +++ b/src/ru/sparc.tex @@ -28,6 +28,17 @@ \usepackage[backend=bibtex]{biblatex} \addbibresource{references.bib} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Set the Minted style. + +\definecolor{friendlybg}{HTML}{f0f0f0} +\setminted[cpp] +{ + style=friendly, + bgcolor=friendlybg, + linenos +} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setmainfont{Liberation Serif} \setmonofont{Liberation Mono}