mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Enrico Jorns <ejo@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Enrico Jorns <ejo@pengutronix.de>
Subject: [ptxdist] [PATCH v2] doc: highlight inline code with gray box
Date: Fri, 11 Sep 2020 12:32:04 +0200	[thread overview]
Message-ID: <20200911103204.9745-1-ejo@pengutronix.de> (raw)

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>
---

Changes in v2:

* use same background and border style as non-inline code boxes
* reduce fbox inner separation for better inline experience

 doc/preamble.inc | 3 +++
 1 file changed, 3 insertions(+)

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
-- 
2.28.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

             reply	other threads:[~2020-09-11 10:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11 10:32 Enrico Jorns [this message]
2020-09-11 14:40 ` Michael Olbrich
2020-09-16 10:08   ` Roland Hieber
2020-10-06  8:18 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200911103204.9745-1-ejo@pengutronix.de \
    --to=ejo@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox