* org-entities: why \lang instead of \langle?
@ 2014-02-23 9:36 Anders Johansson
2014-03-13 15:46 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Anders Johansson @ 2014-02-23 9:36 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I noticed that in org-entities these symbols are defined:
("lang" "\\langle" t "⟨" "<" "<" "⟨")
("rang" "\\rangle" t "⟩" ">" ">" "⟩")
But nothing for "langle" and "rangle". I guess it seems pretty confusing
when you try to use the latex-macros you are used to.
Maybe these aliases could also be added, like what is done for e.g. "clubs":
("langle" "\\langle" t "⟨" "<" "<" "⟨")
("rangle" "\\rangle" t "⟩" ">" ">" "⟩")
Cheers,
Anders Johansson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-entities: why \lang instead of \langle?
2014-02-23 9:36 org-entities: why \lang instead of \langle? Anders Johansson
@ 2014-03-13 15:46 ` Bastien
2014-03-25 13:45 ` org-entities: Another issue [was: org-entities: why \lang instead of \langle?] Anders Johansson
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2014-03-13 15:46 UTC (permalink / raw)
To: Anders Johansson; +Cc: emacs-orgmode
Hi Anders,
Anders Johansson <mejlaandersj@gmail.com> writes:
> Maybe these aliases could also be added, like what is done for e.g. "clubs":
>
> ("langle" "\\langle" t "⟨" "<" "<" "⟨")
> ("rangle" "\\rangle" t "⟩" ">" ">" "⟩")
Indeed, done in master, thanks for this idea.
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* org-entities: Another issue [was: org-entities: why \lang instead of \langle?]
2014-03-13 15:46 ` Bastien
@ 2014-03-25 13:45 ` Anders Johansson
2014-03-25 14:02 ` Aaron Ecay
0 siblings, 1 reply; 4+ messages in thread
From: Anders Johansson @ 2014-03-25 13:45 UTC (permalink / raw)
To: emacs-orgmode
(I continue in the same thread as this is related)
org-entities has: ("slash" "/" nil "/" "/" "/" "/")
A LaTeX user entering \slash would probably expect to have this exported
as \slash (which produces a breaking "/", not the same thing as just
entering "/" in LaTeX).
So it should rather be: ("slash" "\\slash" nil "/" "/" "/" "/")
Could this be changed without breaking people's documents?
Cheers,
Anders Johansson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-entities: Another issue [was: org-entities: why \lang instead of \langle?]
2014-03-25 13:45 ` org-entities: Another issue [was: org-entities: why \lang instead of \langle?] Anders Johansson
@ 2014-03-25 14:02 ` Aaron Ecay
0 siblings, 0 replies; 4+ messages in thread
From: Aaron Ecay @ 2014-03-25 14:02 UTC (permalink / raw)
To: Anders Johansson, emacs-orgmode
Hi Anders,
2014ko martxoak 25an, Anders Johansson-ek idatzi zuen:
>
> (I continue in the same thread as this is related)
>
> org-entities has: ("slash" "/" nil "/" "/" "/" "/")
>
> A LaTeX user entering \slash would probably expect to have this exported
> as \slash (which produces a breaking "/", not the same thing as just
> entering "/" in LaTeX).
>
> So it should rather be: ("slash" "\\slash" nil "/" "/" "/" "/")
>
> Could this be changed without breaking people's documents?
It’s important for LaTeX users to have a way to write “/” into the
output – sometimes it might not possible to use a literal “/” in org,
because of the /emphasis/ markup.
It seems to me (as a user of both latex and html export) that most of
the time I want “/” in the output, regardless of backend. Maybe (org’s)
\slash should retain its meaning, and there should be a new entity which
obeys your proposal.
It also seems like \slash in latex has some odd properties
wrt. hyphenation:
<https://tex.stackexchange.com/questions/97310/slash-allows-for-hyphenation-of-only-the-word-on-its-left-how-to-fix-it-for-th>.
So maybe latex power users would rather write something more complicated
using the @@latex:\slash\hspace{0pt}@@ syntax.
Thanks,
--
Aaron Ecay
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-25 14:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-23 9:36 org-entities: why \lang instead of \langle? Anders Johansson
2014-03-13 15:46 ` Bastien
2014-03-25 13:45 ` org-entities: Another issue [was: org-entities: why \lang instead of \langle?] Anders Johansson
2014-03-25 14:02 ` Aaron Ecay
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.