emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Mikhail Titov <mlt@gmx.us>
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 19:20:37 -0700	[thread overview]
Message-ID: <8762iq13pm.fsf@gmail.com> (raw)
In-Reply-To: <000301cca0db$5f5f60f0$1e1e22d0$@us> (Mikhail Titov's message of "Fri, 11 Nov 2011 19:35:33 -0600")

"Mikhail Titov" <mlt@gmx.us> writes:

> Hello!
>
> I’ve picked up some templates from orgmode tutorials and I can
> successfully create PDF made of beamer slides with babelized R
> code. The problem is that I can’t reuse text from pdf by copy-pasting
> like SQL I used in RODBC examples.
>
> At some point all my single quotes are turned into something that is
> not even on my keyboard and looks like reversed back quote.
>
> I’m not sure if mailing list can pass all these unchanged. I’m getting
> ’ instead of ' in the output.
>
> What shall I look at to fix this? I really want all text to be easily reusable.
>
> I feel like it is a LaTeX related problem since I see tex file as it
> is supposed to be. But there must be some workaround or at least
> warning for babel users of org-mode.
>
> P.S. I typed in message in HTML mode and converted it to plain text
> later. And it looks like even MS Outlook did this conversion in text
> :(
>
> P.P.S. I have the following in output tex file if it makes any difference
>
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
>
> and I'm running MS Windows with latest org mode from git and MikTeX 2.9 .
>
> Mikhail
>

Hi Mikhail,

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

>
>
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  reply	other threads:[~2011-11-12  2:20 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 [this message]
2011-11-12  3:17   ` Mikhail Titov

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=8762iq13pm.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mlt@gmx.us \
    /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).