From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] Export option ^:{} does not work inside tags Date: Mon, 25 Aug 2014 14:47:23 +0200 Message-ID: <87zjes4tyc.fsf@nicolasgoaziou.fr> References: <8761hhh0ac.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLtfc-00080K-LE for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 08:46:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLtfS-0008Tt-G0 for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 08:46:48 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:52174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLtfS-0008Ti-5e for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 08:46:38 -0400 In-Reply-To: <8761hhh0ac.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 25 Aug 2014 02:37:31 +0200") 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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Hello, Thorsten Jolitz writes: > when exporting this to latex/pdf > > ,---- > | #+OPTIONS: ^:{} > | * ORG SCRATCH :foo_bar: > | Hallo_World > `---- > > it translates to this > > ,---- > | % Created 2014-08-25 Mo 02:23 > | \documentclass[11pt]{article} > | [...] > | \section{ORG SCRATCH\hfill{}\textsc{foo_bar}} > | \label{sec-1} > | Hallo\_World > | % Emacs 24.3.1 (Org mode 8.3beta) > | \end{document} > `---- > > where the '_' in tag 'foo_bar' is interpreted as subscript, not as literal > underscore (look at the produced pdf), while content 'Hallo_World' is > treated as expected. Tags are not parsed. As such, they cannot contain a sub/superscript object, and "^" option item has no influence on the way they are translated. Nevertheless, as you noticed, "_" should be always escaped. I fixed it in master (as the fix introduces some incompatible changes). Thank you for reporting it. Regards, -- Nicolas Goaziou