emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: zwz <zhangweize@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: BUG: footnote conflicts with code export to pdf
Date: Mon, 24 Oct 2011 15:01:28 -0400	[thread overview]
Message-ID: <7414.1319482888@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from zwz <zhangweize@gmail.com> of "Mon, 24 Oct 2011 14:23:06 +0800." <87lisa3o39.fsf@gmail.com>

zwz <zhangweize@gmail.com> 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 <n.goaziou@gmail.com>
| 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

  reply	other threads:[~2011-10-24 19:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23  2:55 BUG: footnote conflicts with code export to pdf zwz
2011-10-23  3:02 ` Nick Dokos
2011-10-24  6:23   ` zwz
2011-10-24 19:01     ` Nick Dokos [this message]
2011-10-25 13:54       ` zwz

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=7414.1319482888@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=zhangweize@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).