From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Hannon Subject: Re: Problems with Org-Mode export Date: Fri, 16 Sep 2011 13:04:12 -0700 (PDT) Message-ID: <1316203452.3057.YahooMailNeo@web161905.mail.bf1.yahoo.com> References: <1316195401.36711.YahooMailNeo@web161909.mail.bf1.yahoo.com> Reply-To: Michael Hannon Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-445997109-2103331772-1316203452=:3057" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4edy-0004PH-T4 for emacs-orgmode@gnu.org; Fri, 16 Sep 2011 16:04:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4edw-0001H3-UJ for emacs-orgmode@gnu.org; Fri, 16 Sep 2011 16:04:14 -0400 Received: from nm6.bullet.mail.bf1.yahoo.com ([98.139.212.165]:26416) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1R4edw-0001Gu-P4 for emacs-orgmode@gnu.org; Fri, 16 Sep 2011 16:04:12 -0400 In-Reply-To: <1316195401.36711.YahooMailNeo@web161909.mail.bf1.yahoo.com> 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: Org-Mode List ---445997109-2103331772-1316203452=:3057 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable FYI: the problem described below is worse with:=0A=0A=A0=A0=A0 Org-mode ver= sion 7.7 (release_7.7.298.gbf3e9)=0A=0A-- Mike=0A=0A=0A=0A=0A>_____________= ___________________=0A>From: Michael Hannon =0A>To: Or= g-Mode List =0A>Sent: Friday, September 16, 2011 10:= 50 AM=0A>Subject: [O] Problems with Org-Mode export=0A>=0A>=0A>Greetings.= =A0 I've been having problems lately in exporting Org-Mode source-code=0A>d= ocuments to HTML and/or PDF.=0A>=0A>I'm running Org-Mode 7.7 with Emacs 23 = on 64-bit linux (Fedora 15).=0A>=0A>I've appended a document that exhibits = at least some of the problem.=A0 The=0A>problems are similar to the problem= described at:=0A>=0A>=A0=A0=A0 http://comments.gmane.org/gmane.emacs.orgmo= de/45316=0A>=0A>and can *sometimes* be circumvented by executing org-reload= .=0A>=0A>In the particular example shown below, the HTML export works as ex= pected, but=0A>the PDF export fails with message:=0A>=0A>=A0=A0=A0 org-expo= rt-latex-preprocess: Wrong type argument: stringp, nil=0A>=0A>By the way, e= verything worked fine in the example until I added the last=0A>source block= :=0A>=0A>=A0=A0=A0 #+begin_src=0A R=0A>=0A>=A0=A0=A0=A0=A0 x=0A>=0A>=A0=A0= =A0 #+end_src=0A>=0A>I tried using what I take to be the latest version of = Org-Mode:=0A>=0A>=A0=A0=A0 Org-mode version 7.7 (release_7.7.290.g65d05)=0A= >=0A>but that only made things worse.=A0 I tried an HTML export with this v= ersion, and=0A>it generated a horrendous-looking message that begins with:= =0A>=0A>org-babel-R-evaluate: Wrong number of arguments: #[(session body re= sult-type=0A>result-params column-names-p row-names-p) =C6=3D}...=0A>=0A>fo= llowed by a bunch of stuff containing enough non-printing characters that= =0A>it's hard to reproduce in email, and ending with:=0A>=0A>...org-mode/li= sp/ob-R.elc" . 9734)], 5=0A>=0A>I'd welcome any help/advice that anybody ca= n provide.=0A>=0A>Thanks,=0A>=0A>-- Mike=0A>=0A>########## Sample file that= exhibits some export problems=0A>=0A>#+TITLE: This is a test=0A>=0A>#+AUTH= OR: Michael Hannon=0A>#+email: jm_hannon@yahoo.com=0A>=0A>#+BABEL:=0A :sess= ion *R* :cache yes :results output graphics :exports both :tangle yes=0A>= =0A>* Getting Started=0A>=0A>** Batch Mode=0A>=0A>=0A>#+begin_src R :export= s code=0A>=0A>pdf("xh.pdf") # set graphical output file=0A>hist(rnorm(100))= # generate 100 N(0,1) variates and plot their histogram=0A>dev.off() # clo= se the graphical output file=0A>=0A>#+end_src=0A>=0A>If we put the code abo= ve in a file called =3Dz.R=3D, we can execute the=0A>code from the command = line via: =3DR CMD BATCH z.R=3D=0A>=0A>=0A>#+begin_src R=0A>=A0 =0A>=A0 x <= - c(1, 3, 5)=0A>=A0 =0A>#+end_src=0A>=0A>#+begin_src R=0A>=0A>=A0 x[3]=0A>= =0A>#+end_src=0A>=0A>#+begin_src R=0A>=0A>=A0 q <- c(x,x,8)=0A>=0A>#+end_sr= c=0A>=0A>#+begin_src R=0A>=0A>=A0 x=0A>=0A>#+end_src=0A>=0A>=0A>=0A> ---445997109-2103331772-1316203452=:3057 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
FYI: the problem descri= bed below is worse with:

    Org-mode version 7.7 (release_7.7.298.gbf3e9)

-- Mike


From: Michael Hannon <= jm_hannon@yahoo.com>
To:= Org-Mode List <emacs-orgmode@gnu.org>
Sent: Friday, September 16, 2011 10:50 AM
<= span style=3D"font-weight: bold;">Subject: [O] Problems with Org-Mod= e export

Greetings.  I've been having problems lately in exporting Org-Mo= de source-code
documents to HTML and/or PDF.

I'm running Org-Mode= 7.7 with Emacs 23 on 64-bit linux (Fedora 15).

I've appended a docu= ment that exhibits at least some of the problem.  The
problems are = similar to the problem described at:

    http://comme= nts.gmane.org/gmane.emacs.orgmode/45316

and can *sometimes* be circu= mvented by executing org-reload.

In the particular example shown bel= ow, the HTML export works as expected, but
the PDF export fails with mes= sage:

    org-export-latex-preprocess: Wrong type arg= ument: stringp, nil

By the way, everything worked fine in the example until I added the last
source block:

    = #+begin_src=0A R

      x

  = ;  #+end_src

I tried using what I take to be the latest version= of Org-Mode:

    Org-mode version 7.7 (release_7.7.2= 90.g65d05)

but that only made things worse.  I tried an HTML ex= port with this version, and
it generated a horrendous-looking message th= at begins with:

org-babel-R-evaluate: Wrong number of arguments: #[(= session body result-type
result-params column-names-p row-names-p) =C6= =3D}...

followed by a bunch of stuff containing enough non-printing = characters that
it's hard to reproduce in email, and ending with:
...org-mode/lisp/ob-R.elc" . 9734)], 5

I'd welcome any help/advice = that anybody can provide.

Thanks,

-- Mike

########## S= ample file that exhibits some export problems

#+TITLE: This is a tes= t

#+AUTHOR: Michael Hannon
#+email: jm_hannon@yahoo.com

#+= BABEL:=0A :session *R* :cache yes :results output graphics :exports both :t= angle yes

* Getting Started

** Batch Mode


#+begin_= src R :exports code

pdf("xh.pdf") # set graphical output file
his= t(rnorm(100)) # generate 100 N(0,1) variates and plot their histogram
de= v.off() # close the graphical output file

#+end_src

If we put= the code above in a file called =3Dz.R=3D, we can execute the
code from= the command line via: =3DR CMD BATCH z.R=3D


#+begin_src R
&n= bsp;
  x <- c(1, 3, 5)
 
#+end_src

#+begin_s= rc R

  x[3]

#+end_src

#+begin_src R

 = q <- c(x,x,8)

#+end_src

#+begin_src R

  x
=
#+end_src



---445997109-2103331772-1316203452=:3057--