From: "Mikhail Titov" <mlt@gmx.us>
To: 'Eric Schulte' <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <000f01cca0e9$abbcc100$03364300$@us> (raw)
In-Reply-To: <8762iq13pm.fsf@gmail.com>
> -----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
>
> 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
prev parent reply other threads:[~2011-11-12 3:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-12 1:35 babel, beamer: Prevent apostrophe/single quote mangling, so examples can be reused from PDF Mikhail Titov
2011-11-12 2:20 ` Eric Schulte
2011-11-12 3:17 ` Mikhail Titov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000f01cca0e9$abbcc100$03364300$@us' \
--to=mlt@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=schulte.eric@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).