Skip to content

Commit

Permalink
{en,ru}: sparc: Change the Minted style for code blocks
Browse files Browse the repository at this point in the history
src/en/sparc.tex, src/ru/sparc.tex: Change the Minted style for code blocks: set
light-gray background and add line numbers.
* NEWS: Update.
  • Loading branch information
artyom-poptsov committed Feb 16, 2025
1 parent f24edfd commit af778fa
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Copyright (C) Artyom V. Poptsov <[email protected]>
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
Expand Down
11 changes: 11 additions & 0 deletions src/en/sparc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
11 changes: 11 additions & 0 deletions src/ru/sparc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit af778fa

Please sign in to comment.