[Orgmode] Rendering of = and - as arrows in exports?

2010-03-04 Thread Geralt
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


Re: [Orgmode] Rendering of = and - as arrows in exports?

2010-03-04 Thread Valentin Wüstholz
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.gen...@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



___
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