From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: Org-mode: How to render latex inside ~code~ Date: Sat, 27 Feb 2016 10:41:38 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZlgf-0007bm-3Q for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 15:42:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZlgb-0002CO-Ud for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 15:42:01 -0500 Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:59716) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1aZlgb-0002B1-Mo for emacs-orgmode@gnu.org; Sat, 27 Feb 2016 15:41:57 -0500 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: Lawrence Bottorff Cc: emacs-orgmode Mailinglist 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