From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: Exporting Source Blocks with Symbols Date: Thu, 14 Jan 2016 04:45:03 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJZmi-0004b8-Qm for emacs-orgmode@gnu.org; Wed, 13 Jan 2016 23:45:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJZmd-00025o-SS for emacs-orgmode@gnu.org; Wed, 13 Jan 2016 23:45:20 -0500 Received: from plane.gmane.org ([80.91.229.3]:33521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJZmd-00022s-LS for emacs-orgmode@gnu.org; Wed, 13 Jan 2016 23:45:15 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aJZmX-0000Ur-DR for emacs-orgmode@gnu.org; Thu, 14 Jan 2016 05:45:10 +0100 Received: from 132.181.243.172 ([132.181.243.172]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jan 2016 05:45:09 +0100 Received: from mikelygee by 132.181.243.172 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jan 2016 05:45:09 +0100 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@gnu.org I've become fond of using Greek symbols in my R code (mu, sigma, etc). R handles these just fine, but most of them disappear in the listing when I export to LaTeX (lower-case mu comes through OK). I think the basic problem is the the listings package can't handle the characters. I've come across some ideas for coping with this in LaTeX, but they involve modifying the source (e.g., escaping the symbols to math mode). Of course if I do that, R won't know what to do with the characters. Any suggestions? Does babel provide any hooks for pre-processing source blocks for export? I didn't find any, but I often miss what's right in front of me (just ask my wife!). Kind Regards, Michael Gauland