From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Org-mode: How to render latex inside ~code~ Date: Sat, 27 Feb 2016 21:32:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a822c32a99c052cc7289a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZmTq-0007VZ-AY for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 16:32:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZmTp-00059S-5y for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 16:32:50 -0500 Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:36553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZmTo-00059H-Sk for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 16:32:49 -0500 Received: by mail-lb0-x236.google.com with SMTP id x1so62562851lbj.3 for ; Sat, 27 Feb 2016 13:32:48 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode Mailinglist --047d7b3a822c32a99c052cc7289a Content-Type: text/plain; charset=UTF-8 Got it set (custom-set-variables ... '(org-pretty-entities t) ... but nothing changed. ~> (cons 1 nil) \to (1)~ still outputs the raw \to even though in the buffer it changes. On Sat, Feb 27, 2016 at 8:41 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > This seems a catch-22: I want to render code in an org-mode export (html > or > > latex pdf) where the snippet below done as a ~code block > > > >> (cons 1 nil) \to (1) > > > > actually renders \to as a proper right arrow (yields). Of course if I do > the > > snippet as inline latex > > > > $> (cons 1 nil) \to (1)$ > > > > I get the properly rendered right arrow, but now it's not in the sans > mono code > > font. What can I do to have my cake and eat it too? > > \to is defined in org-entities. Do you get what you want by setting > org-pretty-entities non nil? > > All the best, > Tom > > -- > Thomas S. Dye > http://www.tsdye.com > --047d7b3a822c32a99c052cc7289a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Got it set

(custom-set-variables ...=C2= =A0'(org-pretty-entities t) ...

but nothin= g changed. ~> (cons 1 nil) \to (1)~ still outputs the raw \to even thoug= h in the buffer it changes.

<= div class=3D"gmail_quote">On Sat, Feb 27, 2016 at 8:41 PM, Thomas S. Dye <tsd@= tsdye.com> wrote:
Aloha La= wrence,

Lawrence Bottorff writes:

> This seems a catch-22: I want to render code in an org-mode export (ht= ml or
> latex pdf) where the snippet below done as a ~code block
>
>> (cons 1 nil) \to (1)
>
> actually renders \to as a proper right arrow (yields). Of course if I = do the
> snippet as inline latex
>
> $> (cons 1 nil) \to (1)$
>
> I get the properly rendered right arrow, but now it's not in the s= ans mono code
> font. What can I do to have my cake and eat it too?

\to is defined in org-entities.=C2=A0 Do you get what you want by se= tting
org-pretty-entities non nil?

All the best,
Tom

--
Thomas S. Dye
http:= //www.tsdye.com

--047d7b3a822c32a99c052cc7289a--