From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: nbsp and /italics/ Date: Sun, 14 Oct 2012 06:37:39 -1000 Message-ID: References: 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]:48070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNRCH-000551-4k for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 12:37:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNRCF-0002XZ-Vk for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 12:37:49 -0400 Received: from oproxy12-pub.bluehost.com ([50.87.16.10]:60068) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TNRCF-0002XC-L5 for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 12:37:47 -0400 Received: from [24.94.67.12] (port=62123 helo=poto.local) by box472.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1TNRCB-0002Vj-EF for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 10:37:44 -0600 In-Reply-To: (Thomas S. Dye's message of "Sun, 14 Oct 2012 05:59:17 -1000") 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 Arghh. I should have pointed out that this is the new exporter, and that the first argument to replace-regexp-in-string is an alternative underscore, not the blank space that shows up in my gnus. Tom tsd@tsdye.com (Thomas S. Dye) writes: > 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{Sid= a} > 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