From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Love Subject: Re: LaTeX export: underscores and the syntax package Date: Fri, 13 May 2011 21:51:59 -0500 Message-ID: <97BE4DB8-21C0-4B5F-90A7-EF6ADB173782@comcast.net> References: <15300C6C-1B46-42B5-89D5-E38BEF0EE371@agfa.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QL4xa-000836-27 for emacs-orgmode@gnu.org; Fri, 13 May 2011 22:52:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QL4xY-00058L-PN for emacs-orgmode@gnu.org; Fri, 13 May 2011 22:52:05 -0400 Received: from qmta01.emeryville.ca.mail.comcast.net ([76.96.30.16]:41262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QL4xY-00058D-Ep for emacs-orgmode@gnu.org; Fri, 13 May 2011 22:52:04 -0400 In-Reply-To: <15300C6C-1B46-42B5-89D5-E38BEF0EE371@agfa.com> 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: peter.frings@agfa.com Cc: emacs-orgmode mailing list And I find the same problem with export to HTML. I have many variables = and paths that have underscores in them. The underscores all are shown = as subscripts. I don't want to have to go thru all my org files and = escape the underscore. =20 How do I make the underscore be a subscript only in math mode? On May 12, 2011, at 9:00 AM, peter.frings@agfa.com wrote: > Good afternoon all, >=20 > I spent the best part of the afternoon trying to figure out why an = org-generated .tex file wouldn=92t compile with my set-up. It turns out = that the `syntax=92 package messes a bit with the definition of an = underscore, making it impossible to use the underscore in a \label. >=20 > Unfortunately, the LaTeX exporter uses underscores in its section = labels. >=20 >=20 > Actually, it is possible to have the _ in \label: use the = `nounderscore=92 option with the syntax package. But you then do not get = the tweaked underscore in plain text (unless you use \_ again). >=20 > Since I=92d like to keep the syntax package and the ease of using = plain underscores, I=92d like to avoid the _ in labels.=20 >=20 > Maybe I didn=92t look hard enough, but I didn=92t find an obvious way = to change the way org generates the labels. Would it be an option to use = the same label-generating code as AUCTeX mode? That would be very nice! >=20 >=20 > Thanks, > Peter. > --=20 > c++; // this makes c bigger but returns the old value >=20 >=20