* Rendering of => and -> as arrows in exports?
@ 2010-03-04 13:45 Geralt
2010-03-04 21:38 ` Valentin Wüstholz
0 siblings, 1 reply; 2+ messages in thread
From: Geralt @ 2010-03-04 13:45 UTC (permalink / raw
To: emacs-orgmode
Hi,
I'd like it if => and -> would be exported as if they were \Rightarrow
and respectively \rightarrow.
Of course it should be optional (but I think enabled by default is
what most people desire). What do you think?
Rendering auf <- could be treated in that way, too but <= is also
lower-equal and therefore I suggest to not render it as an arrow,
besides I don't think that the left-arrows are commonly used in
plain-text.
Geralt.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Rendering of => and -> as arrows in exports?
2010-03-04 13:45 Rendering of => and -> as arrows in exports? Geralt
@ 2010-03-04 21:38 ` Valentin Wüstholz
0 siblings, 0 replies; 2+ messages in thread
From: Valentin Wüstholz @ 2010-03-04 21:38 UTC (permalink / raw
To: Geralt; +Cc: emacs-orgmode
Hi,
the following hack works quite well for me:
(add-hook 'org-export-latex-after-blockquotes-hook 'org-export-latex-arrows)
(defun org-export-latex-arrows ()
(goto-char (point-min))
(while (search-forward "==>" nil t)
(org-if-unprotected
(replace-match (org-export-latex-protect-string "$\\rightarrow$") nil t)))
)
This shouldn't be too hard to generalize further.
Cheers,
Valentin
On Thu, Mar 4, 2010 at 2:45 PM, Geralt <usr.gentoo@googlemail.com> wrote:
> Hi,
>
> I'd like it if => and -> would be exported as if they were \Rightarrow
> and respectively \rightarrow.
> Of course it should be optional (but I think enabled by default is
> what most people desire). What do you think?
>
> Rendering auf <- could be treated in that way, too but <= is also
> lower-equal and therefore I suggest to not render it as an arrow,
> besides I don't think that the left-arrows are commonly used in
> plain-text.
>
>
>
>
> Geralt.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-04 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04 13:45 Rendering of => and -> as arrows in exports? Geralt
2010-03-04 21:38 ` Valentin Wüstholz
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.