> -----Original Message----- > From: Eric Schulte [mailto:schulte.e...@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 > > 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. > > ;; Replace nasty single-quotes returned by R. > (add-hook 'org-export-latex-final-hook > (lambda () (replace-regexp "’" "'"))) > > 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