From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [BUG] Export option ^:{} does not work inside tags Date: Tue, 26 Aug 2014 02:05:40 +0200 Message-ID: <87bnr8uncb.fsf@gmail.com> References: <8761hhh0ac.fsf@gmail.com> <87zjes4tyc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM4Gy-0000Vc-KP for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 20:06:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XM4Gs-0004Z1-59 for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 20:06:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:33506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM4Gr-0004Yq-UW for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 20:05:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XM4Gl-0002Tw-04 for emacs-orgmode@gnu.org; Tue, 26 Aug 2014 02:05:51 +0200 Received: from e178062022.adsl.alicedsl.de ([85.178.62.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Aug 2014 02:05:50 +0200 Received: from tjolitz by e178062022.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Aug 2014 02:05:50 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > 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. hmm, I updated (make update) after your fix, and I do see your commit in the git history: ,---- | 2f359a6 * | ox-latex: Protect special characters in tags `---- #+BEGIN_SRC emacs-lisp (call-interactively 'org-version) #+END_SRC #+results: : Org-mode version 8.3beta (release_8.3beta-265-g7cf7e4 @ /usr/share/emacs/24.3/lisp/org/lisp/) but I still see the very same problem, in my real world use case as well as in the MWE. Maybe not yet fixed? -- cheers, Thorsten