emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Several org-entities to be fixed.
@ 2014-12-10 20:26 Konstantin Kliakhandler
  2014-12-11 11:26 ` Rasmus
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Kliakhandler @ 2014-12-10 20:26 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]

Hello,

On all the computers I've used so far, including: Windows[8, 8.1] ,
OSX[Mavericks,Yosemite], debian[wheezy], ubuntu[14.04.1], I've seen the
same problem: the org-entities symbols for phi and varphi were inverted,
and the symbol for setminus was displayed as a W with a strike-through.

Attached is a patch that exchanges between the inverted symbols, and
replaces the W symbol by the unicode 'SET MINUS' symbol.

Thanks,
Kosta

-- 
Konstantin Kliakhandler
    http://slumpy.org
          )°) )°( (°(

[-- Attachment #1.2: Type: text/html, Size: 791 bytes --]

[-- Attachment #2: 0001-Corrected-several-symbols-in-org-entities.patch --]
[-- Type: application/octet-stream, Size: 1836 bytes --]

From 986122d70dda52e1557d9a782a7bdc49cf9d4045 Mon Sep 17 00:00:00 2001
From: Konstantin Kliakhandler <kosta@slumpy.org>
Date: Wed, 10 Dec 2014 22:15:45 +0200
Subject: [PATCH] Corrected several symbols in org-entities.

---
 lisp/org-entities.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/org-entities.el b/lisp/org-entities.el
index 4044432..6f6d054 100644
--- a/lisp/org-entities.el
+++ b/lisp/org-entities.el
@@ -204,8 +204,8 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
     ("upsih" "\\Upsilon" t "&upsih;" "upsilon" "upsilon" "ϒ")
     ("upsilon" "\\upsilon" t "&upsilon;" "upsilon" "upsilon" "υ")
     ("Phi" "\\Phi" t "&Phi;" "Phi" "Phi" "Φ")
-    ("phi" "\\phi" t "&phi;" "phi" "phi" "φ")
-    ("varphi" "\\varphi" t "&varphi;" "varphi" "varphi" "ɸ")
+    ("phi" "\\phi" t "&phi;" "phi" "phi" "ɸ")
+    ("varphi" "\\varphi" t "&varphi;" "varphi" "varphi" "φ")
     ("Chi" "X" nil "&Chi;" "Chi" "Chi" "Χ")
     ("chi" "\\chi" t "&chi;" "chi" "chi" "χ")
     ("acutex" "\\acute x" t "&acute;x" "'x" "'x" "𝑥́")
@@ -378,7 +378,7 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
     ("sube" "\\subseteq" t "&sube;" "[subset of or equal to]" "[subset of or equal to]" "⊆")
     ("nsup" "\\not\\supset" t "&nsup;" "[not a superset of]" "[not a superset of]" "⊅")
     ("supe" "\\supseteq" t "&supe;" "[superset of or equal to]" "[superset of or equal to]" "⊇")
-    ("setminus" "\\setminus" t "&setminus;" "\" "\" "⧵")
+    ("setminus" "\\setminus" t "&setminus;" "\" "\" "∖")
     ("forall" "\\forall" t "&forall;" "[for all]" "[for all]" "∀")
     ("exist" "\\exists" t "&exist;" "[there exists]" "[there exists]" "∃")
     ("exists" "\\exists" t "&exist;" "[there exists]" "[there exists]" "∃")
-- 
2.1.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Several org-entities to be fixed.
  2014-12-10 20:26 Several org-entities to be fixed Konstantin Kliakhandler
@ 2014-12-11 11:26 ` Rasmus
  0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2014-12-11 11:26 UTC (permalink / raw)
  To: emacs-orgmode

Hi Konstantin,

Thanks for the patch.

Konstantin Kliakhandler <kosta@slumpy.org> writes:

> On all the computers I've used so far, including: Windows[8, 8.1] ,
> OSX[Mavericks,Yosemite], debian[wheezy], ubuntu[14.04.1], I've seen the
> same problem: the org-entities symbols for phi and varphi were inverted,
> and the symbol for setminus was displayed as a W with a strike-through.

Actually, it's not so obvious.  LaTeX has it the wrong way around, as far
as I know.  See also:

   https://github.com/mathjax/MathJax/issues/353

(I read this first on Wikipedia, but I can't find the link now).

Note that M-x set-input-method RET TeX RET \phi produces φ as well.
Likewise, the org-entities correspond to what Firefox shows when exporting
to HTML.

> Attached is a patch that exchanges between the inverted symbols, and
> replaces the W symbol by the unicode 'SET MINUS' symbol.

Actually the current symbol "backslash" looks better with my fonts, but
the one you suggests is the correct one.


Beside the above concerns wrt \phi you need to include at proper changelog
in the commit message.  See

    http://orgmode.org/worg/org-contribute.html#unnumbered-4

Also, if you do not have FSF copyright papers sorted out you need to add
TINYCHANGE.  See the same page.

—Rasmus

-- 
To err is human. To screw up 10⁶ times per second, you need a computer

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-11 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-10 20:26 Several org-entities to be fixed Konstantin Kliakhandler
2014-12-11 11:26 ` Rasmus

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).