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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From d52949f8937a736d7eaa1db4914bccf88fbe2697 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
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{}.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 perfbook.tex | 1 +
 1 file changed, 1 insertion(+)

diff --git a/perfbook.tex b/perfbook.tex
index 3dd6c6e..4e6a173 100644
--- a/perfbook.tex
+++ b/perfbook.tex
@@ -73,6 +73,7 @@
 %%HTMLSKIP
 \lstset{
  literate={\_}{}{0\discretionary{\_}{}{\_}}%
+  {\_\_}{}{0\discretionary{\_\_}{}{\_\_}}%
   {->}{}{0\discretionary{->}{}{->}}%
 }
 %%HTMLNOSKIP
-- 
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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux