From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Org-mode: How to render latex inside ~code~ Date: Sat, 27 Feb 2016 20:24:57 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11348f0498b949052cc6359a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZlQC-00048S-AS for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 15:25:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZlQB-0005fp-FF for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 15:25:00 -0500 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:35406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZlQB-0005ff-6V for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 15:24:59 -0500 Received: by mail-lb0-x22a.google.com with SMTP id bc4so62260203lbc.2 for ; Sat, 27 Feb 2016 12:24:58 -0800 (PST) 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: emacs-orgmode Mailinglist --001a11348f0498b949052cc6359a Content-Type: text/plain; charset=UTF-8 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? LB --001a11348f0498b949052cc6359a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This seems a catch-22: I want to render code in an or= g-mode export (html or latex pdf) where the snippet below done as a ~code b= lock

> (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?

LB
--001a11348f0498b949052cc6359a--