From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Org-entities-user in caption of Latex export Date: Thu, 24 Jul 2014 05:31:11 -1000 Message-ID: References: <87zjfzw5e2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAKzV-0002bP-Nu for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 11:31:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAKzP-0001K5-Iw for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 11:31:33 -0400 Received: from gproxy3-pub.mail.unifiedlayer.com ([69.89.30.42]:41455) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XAKzP-0001Iw-Bl for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 11:31:27 -0400 Received: from [98.155.255.145] (port=60914 helo=manifi) by box472.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1XAKzE-0001Tw-35 for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 09:31:16 -0600 In-Reply-To: <87zjfzw5e2.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 24 Jul 2014 10:03:01 +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: Org-mode Nicolas Goaziou 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 :noexpor= t: The following source code block sets up user entities that are used frequen= tly in my work. I use the various =3D.*macron=3D 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" "\\=3D{a}" nil "ā" "a" "= a" "=C4=81")) (add-to-list 'org-entities-user '("emacron" "\\=3D{e}" nil "ē" "e" "= e" "=C4=93")) (add-to-list 'org-entities-user '("imacron" "\\=3D{\\i}" nil "ī" "i"= "i" "=C4=AB")) (add-to-list 'org-entities-user '("omacron" "\\=3D{o}" nil "ō" "o" "= o" "=C5=8D")) (add-to-list 'org-entities-user '("umacron" "\\=3D{u}" nil "ū" "u" "= u" "=C5=AB")) (add-to-list 'org-entities-user '("Amacron" "\\=3D{A}" nil "Ā" "A" "= A" "=C4=80")) (add-to-list 'org-entities-user '("Emacron" "\\=3D{E}" nil "Ē" "E" "= E" "=C4=92")) (add-to-list 'org-entities-user '("Imacron" "\\=3D{I}" nil "Ī" "I" "= I" "=C4=AA")) (add-to-list 'org-entities-user '("Omacron" "\\=3D{O}" nil "Ō" "O" "= O" "=C5=8C")) (add-to-list 'org-entities-user '("Umacron" "\\=3D{U}" nil "Ū" "U" "= U" "=C5=AA")) #+end_src ** Local variables :noexpor= t: # Local Variables:=20 # 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: --=20 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