From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Kowalczyk Subject: Re: =code= and ~verbatim~ with bashslash (\), LaTeX export Date: Thu, 24 Sep 2009 00:17:26 +0000 (UTC) Message-ID: References: <554857.82928.qm@web63406.mail.re1.yahoo.com> <87pr9hb6qe.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mqc24-0004yw-9f for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 20:18:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqc1y-0004yk-UY for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 20:17:59 -0400 Received: from [199.232.76.173] (port=41619 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqc1y-0004yh-MX for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 20:17:54 -0400 Received: from lo.gmane.org ([80.91.229.12]:51095) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mqc1y-00014d-AM for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 20:17:54 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mqc1t-0002IE-N8 for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 02:17:49 +0200 Received: from 24-216-241-93.dhcp.mdfd.or.charter.com ([24.216.241.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Sep 2009 02:17:49 +0200 Received: from jtk by 24-216-241-93.dhcp.mdfd.or.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Sep 2009 02:17:49 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bernt Hansen norang.ca> writes: > > Jeff Kowalczyk yahoo.com> writes: > > > Is there a way to escape backslashes (\) in code and verbatim that will export to LaTeX correctly? > > > > When writing =\\host\share= or =C:\path\to=, pdftolatex output is incorrect. > > > > The various methods described in [1] don't work for me in Org. > > #+begin_example > ~ and \ in latex > \host > > \\host\share and c:\path\to\something > > #+end_example > > -Bernt Thanks, Bernt. The begin_example method and ": " have been working well with backslashes for me. The =code= and ~verbatim~ markup would allow the author to spell paths and other backslash items in the normal flow of text. A feature request then: =code= and ~verbatim~ would escape characters with the same environment/rules as the other literal example methods (presuming this is possible for LaTex, of course) Thanks, Jeff