Re: [O] Logical not in org-entities.el
On 01/06/2013 07:14 AM, Bastien wrote: Hi Florian, Florian Beck f...@miszellen.de writes: The confusion arises with org-pretty-entities because what you see is definitely not what you get. Mhh... not sure what you mean: what do you see that you don't get? With org-pretty-entities: On display, org-entities handles all entities and displays them as unicode characters, even inside math blocks. On export, org-entities only handles entities outside math. Most of the time it doesn't matter because the entity name is the same as the latex command. But in case of $\not a$ latex export and fontification differ: the fontified buffer shows the angled dash (¬), the exported document shows a slash through the next charaxter.
Re: [O] Logical not in org-entities.el
Hi Florian, Florian Beck f...@miszellen.de writes: With org-pretty-entities: On display, org-entities handles all entities and displays them as unicode characters, even inside math blocks. On export, org-entities only handles entities outside math. Most of the time it doesn't matter because the entity name is the same as the latex command. But in case of $\not a$ latex export and fontification differ: the fontified buffer shows the angled dash (¬), the exported document shows a slash through the next charaxter. In master, I added (neg \\neg{} nil not; [angled dash] ¬ ¬) in (defconst org-entities ...) so that you can now use it to produce \\neg{} where relevant. Thanks, -- Bastien
Re: [O] Logical not in org-entities.el
On 01/06/2013 12:39 PM, Bastien wrote: In master, I added (neg \\neg{} nil not; [angled dash] ¬ ¬) in (defconst org-entities ...) so that you can now use it to produce \\neg{} where relevant. Thanks, but: \neg has to be put in math mode.
Re: [O] Logical not in org-entities.el
Hi Florian, Florian Beck f...@miszellen.de writes: Thanks, but: \neg has to be put in math mode. Isn't it the case for other entities as well? -- Bastien
[O] Logical not in org-entities.el
Hi! org-entities contains the line: (not \\textlnot{} nil not; [angled dash] ¬ ¬) This should be (neg \\neg t not; [angled dash] ¬ ¬) The first line fails in math mode (i.e. \not is not replaced at all and negates/slashes the next symbol); the second works in either case.
Re: [O] Logical not in org-entities.el
org-entities contains the line: (not \\textlnot{} nil not; [angled dash] ¬ ¬) This should be (neg \\neg t not; [angled dash] ¬ ¬) The first line fails in math mode (i.e. \not is not replaced at all and negates/slashes the next symbol); the second works in either case. OK, so org doesn't touch anything inside a math environment at all. Which makes sense in a way. The confusion arises with org-pretty-entities because what you see is definitely not what you get.
Re: [O] Logical not in org-entities.el
Hi Florian, Florian Beck f...@miszellen.de writes: The confusion arises with org-pretty-entities because what you see is definitely not what you get. Mhh... not sure what you mean: what do you see that you don't get? Thanks, -- Bastien