From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200911103204.9745-1-ejo@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Tue, 06 Oct 2020 10:18:33 +0200 Subject: Re: [ptxdist] [APPLIED] doc: highlight inline code with gray box List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Enrico Jorns Thanks, applied as 25e4de8af9b9576d337b6f9a465d54ccbe55614a. Michael [sent from post-receive hook] On Tue, 06 Oct 2020 10:18:33 +0200, Enrico Jorns wrote: > 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 > Message-Id: <20200911103204.9745-1-ejo@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/doc/preamble.inc b/doc/preamble.inc > index d9e528ef4108..0e632c3d2736 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 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de