>From 6ccc6c3ca1d324ff09b79fc955eed07b13a4575c Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Sat, 31 Dec 2016 13:01:28 +0900 Subject: [PATCH 01/13] Define \tco{} command to be used in table The \co{} command interferes with column width estimation of tabular environment. To avoid the issue, this commit defines a command "\tco{}" to be used instead. It will still break at white spaces, but not at "_". This commit also updates the definition of \nbco{} to make sure that it won't break at "_". Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- perfbook.tex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perfbook.tex b/perfbook.tex index 2942a3f..4eaace8 100644 --- a/perfbook.tex +++ b/perfbook.tex @@ -94,7 +94,10 @@ \makeatother % --- End of workaround for Fedora 23 Texlive bug \newcommand{\co}[1]{\lstinline[breaklines=true,breakatwhitespace=true]{#1}} -\newcommand{\nbco}[1]{\lstinline[breaklines=false,breakatwhitespace=false]{#1}} +\newcommand{\nbco}[1]{\hbox{\texttt{\detokenize{#1}}}} % no break lines for short snippet +\newcommand{\tco}[1]{\texttt{\detokenize{#1}}} % for code in tabular environment +% \tco{} will break at spaces but not at underscores + \newcommand{\Epigraph}[2]{\epigraphhead[65]{\rmfamily\epigraph{#1}{#2}}} \title{Is Parallel Programming Hard, And, If So, What Can You Do About It?} -- 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