[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Problem with org-entities-user
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Problem with org-entities-user |
Date: |
Mon, 17 Sep 2012 08:41:13 +0200 |
Hello,
address@hidden (Thomas S. Dye) writes:
> I'm probably doing something silly here, but can't figure it out. Using
> the new LaTeX exporter, and with org-entities-user defined as below,
> this:
>
> \C14 \frac12 \Omacron
>
> exports as:
>
> \C14 \textonehalf{} \={O}
>
> Why isn't my C14 entity being exported correctly?
>
> All the best,
> Tom
>
> Value: (("U234" "\\textsuperscript{234}U" nil "<sup>234</sup>U" "234U" "234U"
> "234U")
> ("Th230" "\\textsuperscript{230}Th" nil "<sup>230</sup>Th" "230Th" "230Th"
> "230Th")
> ("C14" "\\textsuperscript{14}C" nil "" "14C" "14C" "14C")
> ("Umacron" "\\={U}" nil "Ū" "U" "U" "Ū")
> ("Omacron" "\\={O}" nil "Ō" "O" "O" "Ō")
> ("Imacron" "\\={I}" nil "Ī" "I" "I" "Ī")
> ("Emacron" "\\={E}" nil "Ē" "E" "E" "Ē")
> ("Amacron" "\\={A}" nil "Ā" "A" "A" "Ā")
> ("umacron" "\\={u}" nil "ū" "u" "u" "ū")
> ("omacron" "\\={o}" nil "ō" "o" "o" "ō")
> ("imacron" "\\={i}" nil "ī" "i" "i" "ī")
> ("emacron" "\\={e}" nil "ē" "e" "e" "ē")
> ("amacron" "\\={a}" nil "ā" "a" "a" "ā")
> ("space" "\\ " nil " " " " " " " "))
That's because numbers are not allowed in entities, except for a few
exceptions:
"\\\\\\(there4\\|sup[123]\\|frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]]\\)"
Note that this regexp also matches LaTeX commands.
One seducing idea would be to drop support for such commands (I'm _not_
talking about math environments and snippets, but about commands like
\hfill{} or \bigskip{}). After all, if you want to write raw LaTeX in an
Org buffer, you can always use #+LATEX: or @@latex:...@@ like with any
other back-end. I see no compelling reason to keep this convenience if
it gets in the way.
It would speed-up a bit entities matching, and would allow for a relaxed
regexp (i.e. a regexp built upon already defined entities).
Regards,
--
Nicolas Goaziou
- [O] Problem with org-entities-user, Thomas S. Dye, 2012/09/16
- Re: [O] Problem with org-entities-user,
Nicolas Goaziou <=
- Re: [O] Problem with org-entities-user, Thomas S. Dye, 2012/09/17
- Re: [O] Problem with org-entities-user, Nicolas Goaziou, 2012/09/19
- Re: [O] Problem with org-entities-user, Carsten Dominik, 2012/09/19
- Re: [O] Problem with org-entities-user, Nicolas Goaziou, 2012/09/19
- Re: [O] Problem with org-entities-user, Bastien, 2012/09/19
- Re: [O] Problem with org-entities-user, Thomas S. Dye, 2012/09/19
- Re: [O] Problem with org-entities-user, Carsten Dominik, 2012/09/20
- Re: [O] Problem with org-entities-user, Nicolas Goaziou, 2012/09/20
- Re: [O] Problem with org-entities-user, Carsten Dominik, 2012/09/20
- Re: [O] Problem with org-entities-user, Nicolas Goaziou, 2012/09/22