From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: BUG: footnote conflicts with code export to pdf Date: Tue, 25 Oct 2011 21:54:15 +0800 Message-ID: <87vcrddvnc.fsf@gmail.com> References: <87k47wfmbw.fsf@gmail.com> <4020.1319338944@alphaville.dokosmarshall.org> <87lisa3o39.fsf@gmail.com> <7414.1319482888@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIhLc-0004bM-SC for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 09:47:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIhLS-0007W8-Q0 for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 09:47:20 -0400 Received: from lo.gmane.org ([80.91.229.12]:34504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIhLS-0007Vx-HQ for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 09:47:10 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RIhLR-0006iF-1U for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 15:47:09 +0200 Received: from 60.191.28.52 ([60.191.28.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Oct 2011 15:47:09 +0200 Received: from zhangweize by 60.191.28.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Oct 2011 15:47:09 +0200 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: emacs-orgmode@gnu.org Nick Dokos writes: > zwz wrote: > > >> >> Then you modify it: >> >> #+begin_src org >> >> * test >> >> #+BEGIN_SRC c >> >> void main(){ >> >> int a[5]; >> >> } >> >> #+END_SRC >> >> #+end >> >> >> >> It says "org-export-latex-preprocess: Wrong type argument: stringp, >> > nil" >> >> when you try to export the file. >> >> >> >> >> > >> > You didn't say what version of org you are using. I cannot reproduce > it >> > in Org-mode version 7.7 (release_7.7.416.g93bd.dirty) >> > >> > Nick >> >> I am using org-mode 7.7-1 (installed by pacman on Archlinux). >> >> > > Just for future reference: this version does not exist in git, so it > doesn't tell me much. What does M-x org-version say? That's the > important thing (of course, the Archlinux people might have modified it > but it's still the best bet when reporting versions). > > Be that as it may, I checked that release_7.7 had the problem, so I > tried > a bisection and found that the fix is in the following commit: > > ,---- > | commit c3631aae7e68565978433cad8c4a2b286e91dfac > | Author: Nicolas Goaziou > | Date: Sat Jul 30 12:38:06 2011 +0200 > | > | org-footnote: prevent LaTeX export from catching footnotes in protect > environment > | > | * lisp/org-footnote.el (org-footnote-in-valid-context-p): check > | `org-protected' property before allowing to match a footnote. > | (org-footnote-at-reference-p): remove an obsolete test. It's now done > | in the previous function. > `---- > > Nick Thanks for pointing this out. Now I get the latest org, and it is smooth.