diff --git a/.gitea/workflows/build-xelatex.yml b/.gitea/workflows/build-xelatex.yml index 20935cc..ec69d82 100644 --- a/.gitea/workflows/build-xelatex.yml +++ b/.gitea/workflows/build-xelatex.yml @@ -33,9 +33,6 @@ jobs: entrypoint: sh args: >- -c "mkdir -p pdf aux .texcache/texmf-var .texcache/xdg && - apt-get update -y && - apt-get install -y pipx && - pipx install pygments && for f in ${{ steps.roots.outputs.roots }}; do echo Building $f; latexmk -xelatex -shell-escape -interaction=nonstopmode -halt-on-error -outdir=pdf -auxdir=aux \"$f\" || exit 1; diff --git a/myformat.sty b/myformat.sty index 2db7b8b..59c7f2a 100644 --- a/myformat.sty +++ b/myformat.sty @@ -82,12 +82,17 @@ delim_0 ",\~" \renewcommand*{\sectionformat}{\colorbox{black}{\textcolor{white}{\thesection\autodot}}\enskip} \renewcommand*{\sectionlinesformat}[4]{\makebox[0pt][l]{\rule[-\fboxsep-\fboxrule]{\textwidth}{\fboxrule}}#3\parbox[b]{0.85\textwidth}{\linespread{1}\selectfont#4}} +% minted \RequirePackage{minted} \setmonofont{JetBrains Mono} \usemintedstyle{monokai} \definecolor{codeBg}{HTML}{282822} % Monokai's dark background color \setmintedinline{fontsize=\small, linenos, frame=single, framesep=2mm, bgcolor=codeBg} \setminted{fontsize=\small, framesep=2mm, linenos, bgcolor=codeBg} +\AtBeginEnvironment{minted}{% + \color{monokaitext}% +} + % Define purple colors \definecolor{notaDark}{RGB}{106, 27, 154} % Dark purple for header