From: tsd@tsdye.com (Thomas S. Dye)
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Org-entities-user in caption of Latex export
Date: Thu, 24 Jul 2014 05:31:11 -1000 [thread overview]
Message-ID: <m2iommu62o.fsf@tsdye.com> (raw)
In-Reply-To: <87zjfzw5e2.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 24 Jul 2014 10:03:01 +0200")
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> I cannot reproduce it. Do you have an ECM? Are you setting
> `org-entities-user' in a special way (i.e, not globally through `setq'
> or customize)?
In the process of putting together an ECM (which hopefully doesn't
reflect my setup!), I think I found what triggers it.
I'm setting variables buffer local as a way to make reproducible
research documents self-contained. The line that sets org-entities-user
nil is the culprit. Without it, I get the output I expect. With it, I
get the behavior I described.
Here is my try at an ECM:
#+STARTUP: entitiespretty
\amacron \ocirc
#+caption: \amacron \ocirc
| a | b |
| c | d |
** User Entities :noexport:
The following source code block sets up user entities that are used frequently
in my work. I use the various =.*macron= commands to typeset Hawaiian
language words with what is known in Hawaiian as a /kahak\omacron{}/.
#+name: user-entities-local
#+begin_src emacs-lisp
(add-to-list 'org-entities-user '("amacron" "\\={a}" nil "ā" "a" "a" "ā"))
(add-to-list 'org-entities-user '("emacron" "\\={e}" nil "ē" "e" "e" "ē"))
(add-to-list 'org-entities-user '("imacron" "\\={\\i}" nil "ī" "i" "i" "ī"))
(add-to-list 'org-entities-user '("omacron" "\\={o}" nil "ō" "o" "o" "ō"))
(add-to-list 'org-entities-user '("umacron" "\\={u}" nil "ū" "u" "u" "ū"))
(add-to-list 'org-entities-user '("Amacron" "\\={A}" nil "Ā" "A" "A" "Ā"))
(add-to-list 'org-entities-user '("Emacron" "\\={E}" nil "Ē" "E" "E" "Ē"))
(add-to-list 'org-entities-user '("Imacron" "\\={I}" nil "Ī" "I" "I" "Ī"))
(add-to-list 'org-entities-user '("Omacron" "\\={O}" nil "Ō" "O" "O" "Ō"))
(add-to-list 'org-entities-user '("Umacron" "\\={U}" nil "Ū" "U" "U" "Ū"))
#+end_src
** Local variables :noexport:
# Local Variables:
# eval: (require 'ox-latex)
# eval: (and (fboundp 'org-sbe) (not (fboundp 'sbe)) (fset 'sbe 'org-sbe))
# org-entities-user: nil
# eval: (sbe "user-entities-local")
# End:
--
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com
next prev parent reply other threads:[~2014-07-24 15:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-24 0:09 Org-entities-user in caption of Latex export Thomas S. Dye
2014-07-24 8:03 ` Nicolas Goaziou
2014-07-24 15:31 ` Thomas S. Dye [this message]
2014-07-24 15:57 ` Nick Dokos
2014-07-24 16:32 ` Thomas S. Dye
2014-07-25 13:25 ` Nicolas Goaziou
2014-07-25 16:06 ` Thomas S. Dye
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2iommu62o.fsf@tsdye.com \
--to=tsd@tsdye.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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).