Re: [O] Problems with Org-mode & Minted

2017-12-11 Thread jerome moliere
Hi all,
thanks Alan , after unifying the syntax it works like a charm..
Problem solved!!!

Kind regards

J.MOLIERE - Mentor/J


2017-12-07 14:12 GMT+01:00 jerome moliere :

> Thanks Alan I wondered about this strange syntax mix ..
> I will investigate , following thi strack...
>
> Regards
>
> J.MOLIERE - Mentor/J
>
>
> 2017-12-07 11:18 GMT+01:00 Alan Schmitt :
>
>> Hello,
>>
>> On 2017-12-07 10:42, jerome moliere  writes:
>>
>> > org-latex-minted-options   '(("frame" "lines") ("linenos=true")
>> > ("fontsize=\scriptsize") )
>>
>> I think this is wrong, you should have two strings in each list. Have
>> you tried
>> '(("frame" "lines") ("linenos" "true") ("fontsize" "\\scriptsize")
>> ?
>>
>> Alan
>>
>> --
>> OpenPGP Key ID : 040D0A3B4ED2E5C7
>> Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-11: 405.14, 2016-11: 403.53
>>
>
>


Re: [O] Problems with Org-mode & Minted

2017-12-07 Thread jerome moliere
Thanks Alan I wondered about this strange syntax mix ..
I will investigate , following thi strack...

Regards

J.MOLIERE - Mentor/J


2017-12-07 11:18 GMT+01:00 Alan Schmitt :

> Hello,
>
> On 2017-12-07 10:42, jerome moliere  writes:
>
> > org-latex-minted-options   '(("frame" "lines") ("linenos=true")
> > ("fontsize=\scriptsize") )
>
> I think this is wrong, you should have two strings in each list. Have
> you tried
> '(("frame" "lines") ("linenos" "true") ("fontsize" "\\scriptsize")
> ?
>
> Alan
>
> --
> OpenPGP Key ID : 040D0A3B4ED2E5C7
> Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-11: 405.14, 2016-11: 403.53
>


Re: [O] Problems with Org-mode & Minted

2017-12-07 Thread Alan Schmitt
Hello,

On 2017-12-07 10:42, jerome moliere  writes:

> org-latex-minted-options   '(("frame" "lines") ("linenos=true")
> ("fontsize=\scriptsize") )

I think this is wrong, you should have two strings in each list. Have
you tried
'(("frame" "lines") ("linenos" "true") ("fontsize" "\\scriptsize")
?

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-11: 405.14, 2016-11: 403.53


signature.asc
Description: PGP signature


[O] Problems with Org-mode & Minted

2017-12-07 Thread jerome moliere
Hi all Org-mode gurus,
I am trying to use the minted package with Org-mode to generate a big
slides deck containing
java code & XML code listtings...
It's almost OK execpted that I am unaable to set any option to adapt the
listings to my needs..
As a consequence the listings come in raw excepted the language attribute
set accordingly to my config and the theme as specified in my config file
(spacemacs)

I tried to specify a couple of options but they are simply ignored and are
not exported...
excerpt from my .spacemacs file

 (setq org-latex-listings 'minted
org-latex-packages-alist '(("" "minted"))
org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode
-output-directory %o %f"
  "pdflatex -shell-escape -interaction nonstopmode
-output-directory %o %f")
org-latex-minted-options   '(("frame" "lines") ("linenos=true")
("fontsize=\scriptsize") )
)


I tried already with org-export-latex-minted-options but does not work ..

This a listing as generated in my .tex file output from org-mode export
\begin{minted}[]{java}
public class ComplexLayoutDemo extends JFrame {
public ComplexLayoutDemo(){
JPanel main_panel = (JPanel)getContentPane();
main_panel.setLayout(new BorderLayout());
JPanel north = new JPanel();
north.add(new JLabel("Texte au nord"));
JPanel south = new JPanel();
south.setLayout(new FlowLayout());
south.add(new JLabel("Autre texte"));
south.add(new JLabel("texte au sud"));
main_panel.add("North",north);
main_panel.add("South",south);
pack();
setVisible(true);
}
\end{minted}


As already stated I can't see no minted options...

I would like to shorten the font size with tiny or script size and may be
activate frames around listings


J.MOLIERE - Mentor/J


Re: [O] Problems with Org-mode from git and Habits

2012-06-15 Thread Charles Philip Chan
Michael Brand  writes:

Hi Micheal:

> I can not confirm with release_7.8.11-71-g8840cd. Can you try this?:
> ...

Thanks. I have traced the problem to a customization that I have in
"org-after-todo-state-change-hook" what prevented the ":LAST_REPEAT:"
property to be add and the todo state to be toggled back.

Sorry for the noise.

Charles

-- 
Sigh.  I like to think it's just the Linux people who want to be on
the "leading edge" so bad they walk right off the precipice.
(Craig E. Groeschel)


pgp4PjCw3xY67.pgp
Description: PGP signature


Re: [O] Problems with Org-mode from git and Habits

2012-06-15 Thread Michael Brand
Hi Charles

On Fri, Jun 15, 2012 at 8:42 PM, Charles Philip Chan  wrote:
> I have decided to give org-habit another shot, however, I am having some
> problems. The habit todos show up in the agenda correctly with
> consistency graphs. However, they will not repeat once I mark them as
> done- this used to work, but not anymore. I am using the git version of
> org-mode. Any pointer will be appreciated.

I can not confirm with release_7.8.11-71-g8840cd. Can you try this?:

#+BEGIN_SRC org
  ,* TODO take a break
  ,  SCHEDULED: <2012-06-14 Thu .+9d/28d>
  ,  :LOGBOOK:
  ,  - State "DONE"   from "TODO"   [2012-06-01 Fri 12:00]
  ,  :END:
  ,  :PROPERTIES:
  ,  :LAST_REPEAT: [2012-06-01 Fri 12:00]
  ,  :LOG_INTO_DRAWER: t
  ,  :LOGGING:  logrepeat
  ,  :STYLE:habit
  ,  :END:
#+END_SRC

Michael



[O] Problems with Org-mode from git and Habits

2012-06-15 Thread Charles Philip Chan
Hello all:

I have decided to give org-habit another shot, however, I am having some
problems. The habit todos show up in the agenda correctly with
consistency graphs. However, they will not repeat once I mark them as
done- this used to work, but not anymore. I am using the git version of
org-mode. Any pointer will be appreciated.

Charles

-- 
I've run DOOM more in the last few days than I have the last few
months.  I just love debugging ;-)
(Linus Torvalds)


pgpA0zFGdWLuk.pgp
Description: PGP signature


[O] Problems with org-mode

2011-10-27 Thread Renger van Nieuwkoop
Hi

I have the following problem with org-mobile: If I want to push my org-files, I 
get the message that I should set my org-directory.
This directory is set in my .emacs file, so I don't know why I have to set it 
again.
If I set it with set-variable  -- org-directory and then put D:/Daten/org I get 
the error message
set-variable: Value `d:/Daten/org/' does not match type directory of 
org-directory
I just downloaded the newest version of org-mode and use Emacs 23.2.1 on a 
Windows 7 machine.
Cheers

Renger






Re: [O] Problems with Org-Mode export

2011-09-21 Thread Michael Hannon
Thanks, Nick.  I just grabbed:

    Org-mode version 7.7 (release_7.7.314.g12f0)

and don't seem to have the problem any more.

-- Mike



>
>From: Nick Dokos 
>To: Michael Hannon 
>Cc: nicholas.do...@hp.com; Org-Mode List 
>Sent: Wednesday, September 21, 2011 7:37 AM
>Subject: Re: [O] Problems with Org-Mode export
>
>Michael Hannon  wrote:
>
>> Nick Dokos  wrote:
>> 
>> > Org-mode version 7.7 (release_7.7.224.g6e14) GNU Emacs 24.0.50.2
>> > (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-09-13
>> 
>> > I'll pull the newest bits and try again.
>> 
>
>I pulled from latest and reran both the original test file and the test
>file below. I get no errors either with my standard config or with a
>minimal .emacs in either case.
>
>Version info for reference:
>
>Org-mode version 7.7 (release_7.7.311.g0c099)
>
>GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 
>2011-09-13
>
>This is on Ubuntu 10.10.
>
>Nick
>
>> Thanks, Nick.  This is getting curiouser and curiouser.  I can now reliably
>> get documents exported using the vanilla 7.7 Org-Mode, but not with the
>> development version I currently have installed:
>> 
>>     Org-mode version 7.7 (release_7.7.304.g9da4)
>> 
>> I suspect that the following bit of the error message is the relevant one:
>> 
>>     org-babel-R-evaluate: Wrong number of arguments: #[(session body 
>>result-type
>>     result-params column-names-p row-names-p
>> 
>> but I don't know what to make of it.
>> 
>> In order to simplify the discussion, I've been working with some Org code 
>> that
>> I took from the "worg" web site.  Please see below for details.
>> 
>> I've also appended the pieces of my .emacs file that relate to finding Org
>> files.
>> 
>> At this point I guess I'm ready to declare victory and slink away, but it
>> WOULD be interesting to know what's going on.
>> 
>> -- Mike
>> 
>> --
>> 
>> #+TITLE: Test 
>> #+AUTHOR: Michael Hannon
>> #+EMAIL: jm_han...@yahoo.com
>> #+BABEL: :session *R* :cache yes :results output graphics :exports both 
>> :tangle yes 
>> 
>>  Example taken from:
>>     
>> http://orgmode.org/worg/org-contrib/babel/how-to-use-Org-Babel-for-R.html
>> 
>> * Example of Org-Babel for R Literate Programming
>> ** R text output
>> A simple summary. 
>> #+begin_src R 
>>   x <- rnorm(10)
>>   summary(x)
>> #+end_src
>> 
>> ** R graphics output
>> Note we use the object =x= generated in previous code block, thanks to
>> the header option =:session *R*=.  The output graphics file is
>> =a.png=. 
>> 
>> #+begin_src R  :file a.png
>>   y <- rnorm(10)
>>   plot(x, y)
>> #+end_src
>> 
>> Same plot with larger dimension:
>> 
>> #+begin_src R  :file b.png :width 800 :height 800
>>   plot(x, y)
>> #+end_src
>> 
>> -- Org-Mode path variables, standard and devel versions
>> 
>> (setq load-path (cons "/usr/local/emacs.d/ssh" load-path))
>> (require 'ssh)
>> 
>> ;;(setq load-path (cons "/usr/local/emacs.d/org-mode/org-7.7/lisp" 
>> load-path))
>> 
>> ;;(setq load-path (cons 
>> "/usr/local/emacs.d/org-mode/org-7.7/contrib/lisp" load-path))
>> 
>> (setq load-path (cons "/usr/local/emacs.d/org-mode/org-devel/org-mode/lisp" 
>> load-path))
>> 
>> (setq load-path (cons 
>> "/usr/local/emacs.d/org-mode/org-devel/org-mode/contrib/lisp" load-path))
>> 
>> (require 'org-install)
>> 
>> 
>
>
>
>

Re: [O] Problems with Org-Mode export

2011-09-21 Thread Nick Dokos
Michael Hannon  wrote:

> Nick Dokos  wrote:
> 
> > Org-mode version 7.7 (release_7.7.224.g6e14) GNU Emacs 24.0.50.2
> > (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-09-13
> 
> > I'll pull the newest bits and try again.
> 

I pulled from latest and reran both the original test file and the test
file below. I get no errors either with my standard config or with a
minimal .emacs in either case.

Version info for reference:

Org-mode version 7.7 (release_7.7.311.g0c099)

GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 
2011-09-13

This is on Ubuntu 10.10.

Nick

> Thanks, Nick.  This is getting curiouser and curiouser.  I can now reliably
> get documents exported using the vanilla 7.7 Org-Mode, but not with the
> development version I currently have installed:
> 
> Org-mode version 7.7 (release_7.7.304.g9da4)
> 
> I suspect that the following bit of the error message is the relevant one:
> 
> org-babel-R-evaluate: Wrong number of arguments: #[(session body 
> result-type
> result-params column-names-p row-names-p
> 
> but I don't know what to make of it.
> 
> In order to simplify the discussion, I've been working with some Org code that
> I took from the "worg" web site.  Please see below for details.
> 
> I've also appended the pieces of my .emacs file that relate to finding Org
> files.
> 
> At this point I guess I'm ready to declare victory and slink away, but it
> WOULD be interesting to know what's going on.
> 
> -- Mike
> 
> --
> 
> #+TITLE: Test 
> #+AUTHOR: Michael Hannon
> #+EMAIL: jm_han...@yahoo.com
> #+BABEL: :session *R* :cache yes :results output graphics :exports both 
> :tangle yes 
> 
>  Example taken from:
> 
> http://orgmode.org/worg/org-contrib/babel/how-to-use-Org-Babel-for-R.html
> 
> * Example of Org-Babel for R Literate Programming
> ** R text output
> A simple summary. 
> #+begin_src R 
>   x <- rnorm(10)
>   summary(x)
> #+end_src
> 
> ** R graphics output
> Note we use the object =x= generated in previous code block, thanks to
> the header option =:session *R*=.  The output graphics file is
> =a.png=. 
> 
> #+begin_src R  :file a.png
>   y <- rnorm(10)
>   plot(x, y)
> #+end_src
> 
> Same plot with larger dimension:
> 
> #+begin_src R  :file b.png :width 800 :height 800
>   plot(x, y)
> #+end_src
> 
> -- Org-Mode path variables, standard and devel versions
> 
> (setq load-path (cons "/usr/local/emacs.d/ssh" load-path))
> (require 'ssh)
> 
> ;;(setq load-path (cons "/usr/local/emacs.d/org-mode/org-7.7/lisp" 
> load-path))
> 
> ;;(setq load-path (cons 
> "/usr/local/emacs.d/org-mode/org-7.7/contrib/lisp" load-path))
> 
> (setq load-path (cons "/usr/local/emacs.d/org-mode/org-devel/org-mode/lisp" 
> load-path))
> 
> (setq load-path (cons 
> "/usr/local/emacs.d/org-mode/org-devel/org-mode/contrib/lisp" load-path))
> 
> (require 'org-install)
> 
> 



Re: [O] Problems with Org-Mode export

2011-09-20 Thread Michael Hannon
Nick Dokos  wrote:

> [...]

> FWIW, I don't get any error messages. I have no idea what the exported file
> should look like: I attach both the exported pdf and the exported html below
> (as well as the org file, which is just cut-n-pasted from what you posted).
 
> Versions:

> Org-mode version 7.7 (release_7.7.224.g6e14) GNU Emacs 24.0.50.2
> (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-09-13

> I'll pull the newest bits and try again.

Thanks, Nick.  This is getting curiouser and curiouser.  I can now reliably
get documents exported using the vanilla 7.7 Org-Mode, but not with the
development version I currently have installed:

    Org-mode version 7.7 (release_7.7.304.g9da4)

I suspect that the following bit of the error message is the relevant one:

    org-babel-R-evaluate: Wrong number of arguments: #[(session body result-type
    result-params column-names-p row-names-p

but I don't know what to make of it.

In order to simplify the discussion, I've been working with some Org code that
I took from the "worg" web site.  Please see below for details.

I've also appended the pieces of my .emacs file that relate to finding Org
files.

At this point I guess I'm ready to declare victory and slink away, but it
WOULD be interesting to know what's going on.

-- Mike


--

#+TITLE: Test 
#+AUTHOR: Michael Hannon
#+EMAIL: jm_han...@yahoo.com
#+BABEL: :session *R* :cache yes :results output graphics :exports both :tangle 
yes 

 Example taken from:
    
http://orgmode.org/worg/org-contrib/babel/how-to-use-Org-Babel-for-R.html

* Example of Org-Babel for R Literate Programming
** R text output
A simple summary. 
#+begin_src R 
  x <- rnorm(10)
  summary(x)
#+end_src

** R graphics output
Note we use the object =x= generated in previous code block, thanks to
the header option =:session *R*=.  The output graphics file is
=a.png=. 

#+begin_src R  :file a.png
  y <- rnorm(10)
  plot(x, y)
#+end_src

Same plot with larger dimension:

#+begin_src R  :file b.png :width 800 :height 800
  plot(x, y)
#+end_src


-- Org-Mode path variables, standard and devel versions

(setq load-path (cons "/usr/local/emacs.d/ssh" load-path))
(require 'ssh)

;;(setq load-path (cons "/usr/local/emacs.d/org-mode/org-7.7/lisp" 
load-path))

;;(setq load-path (cons "/usr/local/emacs.d/org-mode/org-7.7/contrib/lisp" 
load-path))

(setq load-path (cons "/usr/local/emacs.d/org-mode/org-devel/org-mode/lisp" 
load-path))

(setq load-path (cons 
"/usr/local/emacs.d/org-mode/org-devel/org-mode/contrib/lisp" load-path))

(require 'org-install)


Re: [O] Problems with Org-Mode export

2011-09-20 Thread Michael Hannon
Another bit of information about this:  if I remove:

    :session *R*

from the line starting with:

    #+BABEL

then I don't see any error message.

OTOH, this isn't much of a workaround, because without a "session", the values 
of the variables are not preserved between source-code blocks, so that, for 
instance, the combination:

    x <- c(1, 3, 5)     defined in one block

and

    q <- c(x, 8, 8)     defined in another block

raises an R error ('x' is not defined when the assignment to 'q' is made).

Also, in grasping at straws, I've tried renaming the R session, as:

    ... :session mTest

(on the theory that the '*' is used for emphasis in Org-Mode markup and might, 
therefore, somehow confuse things).  That didn't help.

-- Mike




>
>From: Michael Hannon 
>To: Org-Mode List 
>Sent: Friday, September 16, 2011 10:50 AM
>Subject: [O] Problems with Org-Mode export
>
>
>Greetings.  I've been having problems lately in exporting Org-Mode 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 document that exhibits at least some of the problem.  The
>problems are similar to the problem described at:
>
>    http://comments.gmane.org/gmane.emacs.orgmode/45316
>
>and can *sometimes* be circumvented by executing org-reload.
>
>In the particular example shown below, the HTML export works as expected, but
>the PDF export fails with message:
>
>    org-export-latex-preprocess: Wrong type argument: stringp, nil
>
>By the way, everything worked fine in the example until I added the last
>source block:
>
>    #+begin_src
 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.290.g65d05)
>
>but that only made things worse.  I tried an HTML export with this version, and
>it generated a horrendous-looking message that begins with:
>
>org-babel-R-evaluate: Wrong number of arguments: #[(session body result-type
>result-params column-names-p row-names-p) Æ=}...
>
>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
>
>## Sample file that exhibits some export problems
>
>#+TITLE: This is a test
>
>#+AUTHOR: Michael Hannon
>#+email: jm_han...@yahoo.com
>
>#+BABEL:
 :session *R* :cache yes :results output graphics :exports both :tangle yes
>
>* Getting Started
>
>** Batch Mode
>
>
>#+begin_src R :exports code
>
>pdf("xh.pdf") # set graphical output file
>hist(rnorm(100)) # generate 100 N(0,1) variates and plot their histogram
>dev.off() # close the graphical output file
>
>#+end_src
>
>If we put the code above in a file called =z.R=, we can execute the
>code from the command line via: =R CMD BATCH z.R=
>
>
>#+begin_src R
>  
>  x <- c(1, 3, 5)
>  
>#+end_src
>
>#+begin_src R
>
>  x[3]
>
>#+end_src
>
>#+begin_src R
>
>  q <- c(x,x,8)
>
>#+end_src
>
>#+begin_src R
>
>  x
>
>#+end_src
>
>
>
>

Re: [O] Problems with Org-Mode export

2011-09-19 Thread Michael Hannon
>> Greetings.  I've been having problems lately in exporting Org-Mode
>> 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 document that exhibits at least some of the problem.  The
>> problems are similar to the problem described at:

>>    http://comments.gmane.org/gmane.emacs.orgmode/45316

>> and can *sometimes* be circumvented by executing org-reload.

>> In the particular example shown below, the HTML export works as expected,
>> but the PDF export fails with message:

>>    org-export-latex-preprocess: Wrong type argument: stringp, nil

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

>>    #+begin_src 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.290.g65d05)
>> 
>> but that only made things worse.  I tried an HTML export with this version,
>> and
>> it generated a horrendous-looking message that begins with:
>> 
>> org-babel-R-evaluate: Wrong number of arguments: #[(session body result-type
>> result-params column-names-p row-names-p) Æ=}...
>> 
>> 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.
>
>
> Could I ask you to provide the entire backtrace for both errors?
> 
> M-x toggle-debug-on-error RET
> 
> The backtrace might contain information about the exact place where a
> string is expected. If you can't copy it into the email program save
> to disk + gzip + attach should do the trick.

Hi, David.  I've attached the backtrace for:

    Org-mode version 7.7 (release_7.7.304.g9da4)

(I was traveling when I worked on this previously, and my environment has now
changed.  The version I'm using now exhibits the same kind of error.)

Thanks,

-- Mike


backtrace.txt.gz
Description: GNU Zip compressed data


Re: [O] Problems with Org-Mode export

2011-09-16 Thread David Maus
At Fri, 16 Sep 2011 10:50:01 -0700 (PDT),
Michael Hannon wrote:
> Greetings.  I've been having problems lately in exporting Org-Mode 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 document that exhibits at least some of the problem.  The
> problems are similar to the problem described at:
> 
> http://comments.gmane.org/gmane.emacs.orgmode/45316
> 
> and can *sometimes* be circumvented by executing org-reload.
> 
> In the particular example shown below, the HTML export works as expected, but
> the PDF export fails with message:
> 
> org-export-latex-preprocess: Wrong type argument: stringp, nil
> 
> By the way, everything worked fine in the example until I added the last
> source block:
> 
> #+begin_src 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.290.g65d05)
> 
> but that only made things worse.  I tried an HTML export with this version, 
> and
> it generated a horrendous-looking message that begins with:
> 
> org-babel-R-evaluate: Wrong number of arguments: #[(session body result-type
> result-params column-names-p row-names-p) Æ=}...
> 
> 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.


Could I ask you to provide the entire backtrace for both errors?

M-x toggle-debug-on-error RET

The backtrace might contain information about the exact place where a
string is expected. If you can't copy it into the email program save
to disk + gzip + attach should do the trick.

Best,
  -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpAA75epbMNO.pgp
Description: PGP signature


Re: [O] Problems with Org-Mode export

2011-09-16 Thread Michael Hannon
FYI: the problem described below is worse with:

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

-- Mike




>
>From: Michael Hannon 
>To: Org-Mode List 
>Sent: Friday, September 16, 2011 10:50 AM
>Subject: [O] Problems with Org-Mode export
>
>
>Greetings.  I've been having problems lately in exporting Org-Mode 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 document that exhibits at least some of the problem.  The
>problems are similar to the problem described at:
>
>    http://comments.gmane.org/gmane.emacs.orgmode/45316
>
>and can *sometimes* be circumvented by executing org-reload.
>
>In the particular example shown below, the HTML export works as expected, but
>the PDF export fails with message:
>
>    org-export-latex-preprocess: Wrong type argument: stringp, nil
>
>By the way, everything worked fine in the example until I added the last
>source block:
>
>    #+begin_src
 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.290.g65d05)
>
>but that only made things worse.  I tried an HTML export with this version, and
>it generated a horrendous-looking message that begins with:
>
>org-babel-R-evaluate: Wrong number of arguments: #[(session body result-type
>result-params column-names-p row-names-p) Æ=}...
>
>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
>
>## Sample file that exhibits some export problems
>
>#+TITLE: This is a test
>
>#+AUTHOR: Michael Hannon
>#+email: jm_han...@yahoo.com
>
>#+BABEL:
 :session *R* :cache yes :results output graphics :exports both :tangle yes
>
>* Getting Started
>
>** Batch Mode
>
>
>#+begin_src R :exports code
>
>pdf("xh.pdf") # set graphical output file
>hist(rnorm(100)) # generate 100 N(0,1) variates and plot their histogram
>dev.off() # close the graphical output file
>
>#+end_src
>
>If we put the code above in a file called =z.R=, we can execute the
>code from the command line via: =R CMD BATCH z.R=
>
>
>#+begin_src R
>  
>  x <- c(1, 3, 5)
>  
>#+end_src
>
>#+begin_src R
>
>  x[3]
>
>#+end_src
>
>#+begin_src R
>
>  q <- c(x,x,8)
>
>#+end_src
>
>#+begin_src R
>
>  x
>
>#+end_src
>
>
>
>

[O] Problems with Org-Mode export

2011-09-16 Thread Michael Hannon
Greetings.  I've been having problems lately in exporting Org-Mode 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 document that exhibits at least some of the problem.  The
problems are similar to the problem described at:

    http://comments.gmane.org/gmane.emacs.orgmode/45316

and can *sometimes* be circumvented by executing org-reload.

In the particular example shown below, the HTML export works as expected, but
the PDF export fails with message:

    org-export-latex-preprocess: Wrong type argument: stringp, nil

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

    #+begin_src 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.290.g65d05)

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

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

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

## Sample file that exhibits some export problems

#+TITLE: This is a test

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

#+BABEL: :session *R* :cache yes :results output graphics :exports both :tangle 
yes

* Getting Started

** Batch Mode


#+begin_src R :exports code

pdf("xh.pdf") # set graphical output file
hist(rnorm(100)) # generate 100 N(0,1) variates and plot their histogram
dev.off() # close the graphical output file

#+end_src

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


#+begin_src R
  
  x <- c(1, 3, 5)
  
#+end_src

#+begin_src R

  x[3]

#+end_src

#+begin_src R

  q <- c(x,x,8)

#+end_src

#+begin_src R

  x

#+end_src