emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Valentin Wüstholz" <wuestholz@gmail.com>
To: Geralt <usr.gentoo@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Rendering of => and -> as arrows in exports?
Date: Thu, 4 Mar 2010 22:38:18 +0100	[thread overview]
Message-ID: <69e68c6e1003041338j4364502bnc25d46d307ba67b2@mail.gmail.com> (raw)
In-Reply-To: <fbdd0e51003040545u21c6b2aaq6fd23efe07ec01db@mail.gmail.com>

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
>

      reply	other threads:[~2010-03-04 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 13:45 Rendering of => and -> as arrows in exports? Geralt
2010-03-04 21:38 ` Valentin Wüstholz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69e68c6e1003041338j4364502bnc25d46d307ba67b2@mail.gmail.com \
    --to=wuestholz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=usr.gentoo@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).