emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org-mode: How to render latex inside ~code~


From: Lawrence Bottorff
Subject: Re: [O] Org-mode: How to render latex inside ~code~
Date: Sat, 27 Feb 2016 21:32:48 +0000

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 <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]