Skip to content

Commit

Permalink
Add latex code block background to config
Browse files Browse the repository at this point in the history
  • Loading branch information
astonzhang authored Aug 8, 2022
1 parent 47f7d28 commit 718a8d5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ sphinx_configs = numfig_format = {'figure': '图%%s', 'table': '表%%s', 'code-b
\makeatother
\CJKsetecglue{}
\usepackage{zhnumber}
\definecolor{d2lbookOutputCellBackgroundColor}{RGB}{255,255,255}
\definecolor{d2lbookOutputCellBorderColor}{rgb}{.85,.85,.85}
\def\diilbookstyleoutputcell
{\sphinxcolorlet{VerbatimColor}{d2lbookOutputCellBackgroundColor}%
\sphinxcolorlet{VerbatimBorderColor}{d2lbookOutputCellBorderColor}%
\sphinxsetup{verbatimwithframe,verbatimborder=0.5pt}%
}%
%
\definecolor{d2lbookInputCellBackgroundColor}{rgb}{.95,.95,.95}
\def\diilbookstyleinputcell
{\sphinxcolorlet{VerbatimColor}{d2lbookInputCellBackgroundColor}%
\sphinxsetup{verbatimwithframe=false,verbatimborder=0pt}%
}%
''',
# The font size ('10pt', '11pt' or '12pt').
'pointsize': '10pt',
Expand Down

0 comments on commit 718a8d5

Please sign in to comment.