From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter.frings@agfa.com Subject: LaTeX export: underscores and the syntax package Date: Thu, 12 May 2011 16:00:43 +0200 Message-ID: <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]:42110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWRg-00071f-GU for emacs-orgmode@gnu.org; Thu, 12 May 2011 10:00:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKWRa-0003Sk-Rr for emacs-orgmode@gnu.org; Thu, 12 May 2011 10:00:52 -0400 Received: from mornm02-out.agfa.com ([134.54.1.77]:36247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKWRa-0003SS-Nf for emacs-orgmode@gnu.org; Thu, 12 May 2011 10:00:46 -0400 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 mailing list Good afternoon all, 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. Unfortunately, the LaTeX exporter uses underscores in its section = labels. 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). 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 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! Thanks, Peter. --=20 c++; // this makes c bigger but returns the old value