Skip to contentSkip to conversation

Prevent line-break of '__' within \co{} macro

PATCH New Akira Yokosawa 1 participant 1 message Dec 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Prevent line-break of '__' within \co{} macro

From d52949f8937a736d7eaa1db4914bccf88fbe2697 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 23 Dec 2016 09:20:53 +0900
Subject: [PATCH] Prevent line-break of '__' within \co{} macro

We don't want "__" to be broken in between. Such line-breaks can be prevented by specifying "__" after "_" in \lstset{}.

---
 perfbook.tex | 1 +
 1 file changed, 1 insertion(+)
perfbook.tex +1 -0
index 3dd6c6e..4e6a173 100644
@@ -73,6 +73,7 @@
 %%HTMLSKIP
 \lstset{
  literate={\_}{}{0\discretionary{\_}{}{\_}}%
+  {\_\_}{}{0\discretionary{\_\_}{}{\_\_}}%
   {->}{}{0\discretionary{->}{}{->}}%
 }
 %%HTMLNOSKIP
Signature · 1 line
2.7.4