Skip to content

Commit

Permalink
common: common: New file
Browse files Browse the repository at this point in the history
* src/common/common.tex: New file.  Move Minted configuration here.
* src/en/sparc.tex, src/ru/sparc.tex: Use it.
* Makefile.am (COMMON):  Register it.
  • Loading branch information
artyom-poptsov committed Feb 16, 2025
1 parent af778fa commit 6525922
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 20 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ SECTIONS = \
src/ru/sections/appendix-twinkle-twinkle-little-star-02.tex

COMMON = \
src/common/common.tex \
src/common/figureSoundGraph.tex \
src/common/figurePWMGraph.tex \
src/common/figureADC.tex \
Expand Down
10 changes: 10 additions & 0 deletions src/common/common.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Set the Minted style.

\definecolor{friendlybg}{HTML}{f0f0f0}
\setminted[cpp]
{
style=friendly,
bgcolor=friendlybg,
linenos
}
11 changes: 1 addition & 10 deletions src/en/sparc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,7 @@
\usepackage[backend=bibtex]{biblatex}
\addbibresource{references.bib}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Set the Minted style.

\definecolor{friendlybg}{HTML}{f0f0f0}
\setminted[cpp]
{
style=friendly,
bgcolor=friendlybg,
linenos
}
\input{common/common.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setmainfont{Liberation Serif}
Expand Down
11 changes: 1 addition & 10 deletions src/ru/sparc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,7 @@
\usepackage[backend=bibtex]{biblatex}
\addbibresource{references.bib}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Set the Minted style.

\definecolor{friendlybg}{HTML}{f0f0f0}
\setminted[cpp]
{
style=friendly,
bgcolor=friendlybg,
linenos
}
\input{common/common.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setmainfont{Liberation Serif}
Expand Down

0 comments on commit 6525922

Please sign in to comment.