From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: nbsp and /italics/ Date: Sun, 14 Oct 2012 05:59:17 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNQb6-0006gU-2M for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 11:59:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNQb5-0005ts-0R for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 11:59:23 -0400 Received: from oproxy11-pub.bluehost.com ([173.254.64.10]:60378) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TNQb4-0005th-M1 for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 11:59:22 -0400 Received: from [24.94.67.12] (port=61686 helo=poto.local) by box472.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1TNQaz-0005o3-Uj for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 09:59:18 -0600 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: Org-mode Aloha Nicolas, Using the filter you kindly provided (below) and this construct, "/Sida/ cf.=C2=A0/fallax/" I get the following incorrect LaTeX export, "\emph{Sida} cf.~/fallax/". I'm expecting "\emph{Sida} cf.~\emph{fallax}". All the best, Tom #+name: ngz-nbsp #+begin_src emacs-lisp (defun ngz-latex-filter-nobreaks (text backend info) "Ensure \"_\" are properly handled in Beamer/LaTeX export." (when (memq backend '(e-beamer e-latex)) (replace-regexp-in-string "=C2=A0" "~" text))) (add-to-list 'org-export-filter-plain-text-functions 'ngz-latex-filter-nobreaks) #+end_src --=20 Thomas S. Dye http://www.tsdye.com