From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Dumbquotes in exported source listings Date: Sun, 01 May 2011 15:04:50 -0400 Message-ID: <10967.1304276690@alphaville.americas.hpqcorp.net> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGbws-0001xV-A2 for emacs-orgmode@gnu.org; Sun, 01 May 2011 15:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGbwq-0007PL-Sa for emacs-orgmode@gnu.org; Sun, 01 May 2011 15:04:54 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:48754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGbwq-0007PB-Mw for emacs-orgmode@gnu.org; Sun, 01 May 2011 15:04:52 -0400 In-Reply-To: Message from Avdi Grimm of "Sat, 30 Apr 2011 19:39:29 EDT." 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: avdi@avdi.org Cc: nicholas.dokos@hp.com, emacs-orgmode Avdi Grimm wrote: > So I'm writing an eBook with lots of source code listings, using > org-mode-LaTeX->PDF with the "minted" package providing source code > highlighting. For the most part I'm really, really happy with the > toolchain; thank you to those that pointed me in the direction of > "minted". > > One issue: my beta reviewers have noted that when copy-and-pasting > source code listings that contain single-quoted strings, they are > getting "smart quotes"--i.e. the first quote is a backquote, the > second quote is a single quote. This breaks the pasted code. > In cases like this, an example would help: what you start with in the org file, what it looks like in the tex file (and any other intermediate files[fn:1]) and what the resulting PDF file looks like. FWIW, I tried exporting to PDF the following: --8<---------------cut here---------------start------------->8--- * foo #+begin_src elisp :results value :exports both (setq foo '(bar baz)) #+end_src #+results: | bar | baz | --8<---------------cut here---------------end--------------->8--- and then, while viewing the PDF file with xpdf, tried pasting the lisp-expression from the PDF back into the org file (and even evaluated it). This worked without a hitch. So please give us more information. Nick PS. IIRC, a long time there was a problem like this: trying to copy and paste a lisp expression from the org manual resulted in an error because of a "wrong" quote. I couldn't remember the details so I searched the mailing list. The thread starts at http://thread.gmane.org/gmane.emacs.orgmode/6610 but a) the warning does not appear in the Org manual any longer and b) I now cannot reproduce *that* problem at all (not with xpdf, not with evince and not even with acroread). But it *was* a problem with an older version of acroread (and, apparently evince as well), so maybe that's where you should concentrate your investigations: what PDF viewer are you using and what is the version? Footnotes: [fn:1] Don't know anything about minted so this part of the toolchain is opaque to me: I don't know if it produces other intermediate files.