>From c4f162ce5436bf0105d81cd012f11c4a30691683 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Sat, 22 Apr 2017 00:10:24 +0900 Subject: [PATCH 1/4] perfbook.tex: Modify definition of \nbco{} It turns out that \nbco{} can't hold "#" character. Modify its definition to use the combination of a \co{} variant and \hbox{}. Also add a macro named \qco{} which has quotation marks around \nbco{}. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- perfbook.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perfbook.tex b/perfbook.tex index 58b0cd2..2de83f0 100644 --- a/perfbook.tex +++ b/perfbook.tex @@ -111,7 +111,8 @@ \makeatother % --- End of workaround for Fedora 23 Texlive bug \newcommand{\co}[1]{\lstinline[breaklines=true,breakatwhitespace=true]{#1}} -\newcommand{\nbco}[1]{\hbox{\texttt{\detokenize{#1}}}} % no break lines for short snippet +\newcommand{\nbco}[1]{\hbox{\lstinline[breaklines=false,breakatwhitespace=false]{#1}}} % no break lines for short snippet +\newcommand{\qco}[1]{``\nbco{#1}''} % \nbco with quotation marks \newcommand{\tco}[1]{\texttt{\detokenize{#1}}} % for code in tabular environment % \tco{} will break at spaces but not at underscores \newcommand{\nf}[1]{\textnormal{#1}} % to return to normal font -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html