From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mikhail Titov" Subject: Re: babel, beamer: Prevent apostrophe/single quote mangling, so examples can be reused from PDF Date: Fri, 11 Nov 2011 21:17:55 -0600 Message-ID: <000f01cca0e9$abbcc100$03364300$@us> References: <000301cca0db$5f5f60f0$1e1e22d0$@us> <8762iq13pm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP46m-0007uu-CA for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 22:18:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RP46k-0000rh-VD for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 22:18:20 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:51337) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RP46k-0000ra-N7 for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 22:18:18 -0500 In-Reply-To: <8762iq13pm.fsf@gmail.com> Content-Language: en-us 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: 'Eric Schulte' Cc: emacs-orgmode@gnu.org > -----Original Message----- > From: Eric Schulte [mailto:schulte.eric@gmail.com] > Sent: Friday, November 11, 2011 8:21 PM > To: Mikhail Titov > Cc: emacs-orgmode@gnu.org > Subject: Re: [O] babel, beamer: Prevent apostrophe/single quote = mangling, > so examples can be reused from PDF >=20 > I have seen a similar issue in which code *executed* by R returns = weird > nasty quotes. The following works for me to remove these quotes = before > the confuse TeX. >=20 > ;; Replace nasty single-quotes returned by R. > (add-hook 'org-export-latex-final-hook > (lambda () (replace-regexp "=E2=80=99" "'"))) >=20 > Hope this helps -- Eric Probably it was another issue. I've double checked in another text = editor that I'm getting correct apostrophes in tex output. I tried with = or without your code in dot emacs (I restarted emacs). It is something = in LaTeX or some package that triggers it:( I've came across this = http://www.cs.sfu.ca/~ggbaker/reference/characters/#single . It says = that for typewriter font LaTeX won't substitute apostrophe with closing = single quote. However I thought that verbatim as produced by babel = implies typewriter font. Mikhail