diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2020-09-11 12:32:04 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-09-11 16:35:35 +0200 |
commit | 25e4de8af9b9576d337b6f9a465d54ccbe55614a (patch) | |
tree | 604abbe95c2e65ac9dd63a787a765a3c69d4ffa2 /doc | |
parent | e4c792dba4ecfa012f8064217f38f956057038fc (diff) | |
download | ptxdist-25e4de8af9b9576d337b6f9a465d54ccbe55614a.tar.gz ptxdist-25e4de8af9b9576d337b6f9a465d54ccbe55614a.tar.xz |
doc: highlight inline code with gray box
This should ease distinguishing inline code snippets from default text
and is also more similar to what the sphinx html outputs look like.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Message-Id: <20200911103204.9745-1-ejo@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/preamble.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/preamble.inc b/doc/preamble.inc index d9e528ef4..0e632c3d2 100644 --- a/doc/preamble.inc +++ b/doc/preamble.inc @@ -82,6 +82,9 @@ \definecolor{VerbatimColor}{gray}{0.95} \definecolor{VerbatimBorderColor}{gray}{0.75} +% override default sphinxcode to display gray-colored box +\protected\def\sphinxcode#1{\fboxsep0.5mm\fcolorbox{VerbatimBorderColor}{VerbatimColor}{\texttt{#1}}} + \makeatother % vim:syntax=tex |