[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] babel, beamer: Prevent apostrophe/single quote mangling, so exam
From: |
Mikhail Titov |
Subject: |
Re: [O] babel, beamer: Prevent apostrophe/single quote mangling, so examples can be reused from PDF |
Date: |
Fri, 11 Nov 2011 21:17:55 -0600 |
> -----Original Message-----
> From: Eric Schulte [mailto:address@hidden
> Sent: Friday, November 11, 2011 8:21 PM
> To: Mikhail Titov
> Cc: address@hidden
> 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