From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] Export option ^:{} does not work inside tags
Date: Tue, 26 Aug 2014 02:05:40 +0200 [thread overview]
Message-ID: <87bnr8uncb.fsf@gmail.com> (raw)
In-Reply-To: 87zjes4tyc.fsf@nicolasgoaziou.fr
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Thorsten Jolitz <tjolitz@gmail.com> 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
next prev parent reply other threads:[~2014-08-26 0:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-25 0:37 [BUG] Export option ^:{} does not work inside tags Thorsten Jolitz
2014-08-25 12:47 ` Nicolas Goaziou
2014-08-26 0:05 ` Thorsten Jolitz [this message]
2014-08-26 11:02 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnr8uncb.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.