emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Latex export fails when src block contains "[X]" [7.7]
@ 2011-11-13  0:54 Daniel Mescheder
  2011-11-13  8:42 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Mescheder @ 2011-11-13  0:54 UTC (permalink / raw)
  To: emacs-orgmode


Hi,

I'm running the following system:

Emacs  : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-04-04 on rothera, modified by Debian
Package: Org-mode version 7.7

I've run into a problem with #+begin_src #+end_src blocks:
Whenever I trying to have a one-element python list inside of such a block the pdf-export will fail with 

(wrong-type-argument stringp nil)

Here comes a minimal example:

------------------------------------
* Some section

This works fine:

#+begin_src python
    print [0,1,2]
#+end_src

This does not work:

#+begin_src python
    print [1]
#+end_src
------------------------------------

(For some reason I needed to include the src-block in some section. 
That is probably an unrelated problem.)

The trace of this example is

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("ORG-LIST-END-MARKER\\'" nil)
  org-export-latex-preprocess((:emph-multiline t :for-backend latex :comments nil :tags not-in-toc :priority nil :footnotes t :drawers nil :timestamps t :todo-keywords t :tasks t :add-text nil :skip-before-1st-heading nil :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragments nil))
  org-export-preprocess-string(#("* Some section\n\nThis works fine:\n\n#+begin_src python\n    print [0,1,2]\n#+end_src\n\nThis does not work:\n\n#+begin_src python\n    print [1]\n#+end_src\n\n" 0 18 (font-lock-fontified t fontified nil) 18 19 (font-lock-fontified t fontified nil) 19 20 (fontified nil) 20 22 (fontified nil) 22 34 (fontified nil) 34 35 (fontified nil) 35 36 (fontified nil) 36 53 (fontified nil) 53 54 (fontified nil) 54 72 (fontified nil font-lock-fontified t) 72 73 (fontified nil font-lock-fontified t) 73 77 (fontified nil font-lock-fontified t) 77 90 (fontified nil font-lock-fontified t) 90 91 (fontified nil font-lock-fontified t) 91 100 (fontified nil font-lock-fontified t) 100 101 (fontified nil font-lock-fontified t) 101 102 (fontified nil font-lock-fontified t) 102 1
 21 (fontified nil font-lock-fontified t) 121 122 (fontified nil font-lock-fontified t) 122 123 (fontified nil font-lock-fontified t) 123 141 (font-lock-fontified t fontified nil) 141 142 (font-lock-fontified t fontified nil) 142 146 (font-lock-fontified t fontified nil) 146 155 (font-lock-fontified t fontified nil) 155 156 (font-lock-fontified t fontified nil) 156 164 (font-lock-fontified t fontified nil) 164 165 (font-lock-fontified t fontified nil rear-nonsticky t) 165 166 (fontified nil font-lock-fontified t) 166 167 (fontified nil)) :emph-multiline t :for-backend latex :comments nil :tags not-in-toc :priority nil :footnotes t :drawers nil :timestamps t :todo-keywords t :tasks t :add-text nil :skip-before-1st-heading nil :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragme
 nts nil)
  org-export-as-latex(nil nil nil nil nil nil)
  org-export-as-pdf(nil)
  call-interactively(org-export-as-pdf)
  org-export(nil)
  call-interactively(org-export nil nil)


I don't want to exclude the possibility that this has to do with my particular setup.
If you cannot reproduce this problem, I'll have a look whether there's anything relevant in my config files.

Regards,
Daniel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: Latex export fails when src block contains "[X]" [7.7]
  2011-11-13  0:54 Bug: Latex export fails when src block contains "[X]" [7.7] Daniel Mescheder
@ 2011-11-13  8:42 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2011-11-13  8:42 UTC (permalink / raw)
  To: Daniel Mescheder; +Cc: emacs-orgmode

Hello,

Daniel Mescheder <mail@danielmescheder.de> writes:

> I'm running the following system:
>
> Emacs  : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
>  of 2011-04-04 on rothera, modified by Debian
> Package: Org-mode version 7.7
>
> I've run into a problem with #+begin_src #+end_src blocks:
> Whenever I trying to have a one-element python list inside of such a block the pdf-export will fail with 

This should be fixed in recent development versions. You may upgrade or
wait for 7.8 release.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-13  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-13  0:54 Bug: Latex export fails when src block contains "[X]" [7.7] Daniel Mescheder
2011-11-13  8:42 ` Nicolas Goaziou

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).