From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [PATCH] Protect active characters such as `~' when exporting to LaTeX Date: Fri, 16 Jan 2015 11:42:17 -0500 Message-ID: <87bnlyisnq.fsf@alphaville.usersys.redhat.com> References: <86vbk63h7q.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC9yd-0001Cx-Iw for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 11:42:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC9ya-0006E7-9P for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 11:42:27 -0500 Received: from plane.gmane.org ([80.91.229.3]:55940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC9ya-0006Du-2z for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 11:42:24 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YC9yY-0004Ji-HU for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 17:42:22 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2015 17:42:22 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2015 17:42:22 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sebastien Vauban writes: > Hello, > > When ~code~ is converted to LaTeX, it becomes \verb~code~; i.e., it uses > a potentially "dangerous" character, in this case `~' which is active. > > In most cases, it is unnoticeable, but in some environments, it breaks. > > The solution is to protect the command, what the attached patch does. > I'm not sure it solves the problem. I had looked at this problem five years ago and had concluded that \protect was a bust, because \verb is special - see http://thread.gmane.org/gmane.emacs.orgmode/14256/focus=14257 Maybe I got it wrong back then, but I thought I'd bring it to your attention. Nick