* Issue using [:exports both] for inline R code?
@ 2014-03-05 3:21 John Hendy
2014-03-06 17:04 ` Eric Schulte
0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2014-03-05 3:21 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]
Here is a minimal example:
#+begin_src example
* Heading
Here is some R code:
src_R[:exports both]{1 + 2 + 3}.
#+end_src
Here is the minimal config I used with `emacs -Q`:
#+begin_src min-config
;; change as needed
(add-to-list 'load-path "~/.elisp/org.git/lisp/")
(add-to-list 'load-path "~/.elisp/org.git/contrib/lisp")
(add-to-list 'load-path "~/.elisp/site-lisp/ess/lisp/")
(require 'ox-latex)
;; setup babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((R . t)))
#+end_src
Org version (just pulled):
Org-mode version 8.2.5h (release_8.2.5h-676-gfb8a04 @
/home/jwhendy/.elisp/org.git/lisp/)
Upon exporting to latex, I get the attached.
I thought I ran into this some time back, but was able to use a
:session argument as a workaround in the header args. For some reason,
I can't seem to get that to play along at the moment. When I try
adding `:session r`, I get this in the *Messages* buffer:
Warning: defvar ignored because ess-ask-for-ess-directory is let-bound
org-babel-R-initiate-session: Symbol's function definition is void: R
Any suggestions on what's going on? In a non-minimal setup, I get
similar results except that `:session R` doesn't complain on export...
but I get my code bookended by verbatim #+begin/end_src text in the
PDF.
Thanks,
John
[-- Attachment #2: inline-R-exports-both.pdf --]
[-- Type: application/pdf, Size: 70634 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue using [:exports both] for inline R code?
2014-03-05 3:21 Issue using [:exports both] for inline R code? John Hendy
@ 2014-03-06 17:04 ` Eric Schulte
2014-03-13 15:03 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Eric Schulte @ 2014-03-06 17:04 UTC (permalink / raw
To: John Hendy; +Cc: emacs-orgmode
Inline code blocks were provided to allow results of code block
execution to be placed /inline/ within textual elements such as
paragraphs or lists. They are not designed to support code export.
The manual should be updated to make this limitation clear.
Best,
John Hendy <jw.hendy@gmail.com> writes:
> Here is a minimal example:
>
> #+begin_src example
>
> * Heading
>
> Here is some R code:
>
> src_R[:exports both]{1 + 2 + 3}.
>
> #+end_src
>
> Here is the minimal config I used with `emacs -Q`:
>
> #+begin_src min-config
>
> ;; change as needed
> (add-to-list 'load-path "~/.elisp/org.git/lisp/")
> (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp")
> (add-to-list 'load-path "~/.elisp/site-lisp/ess/lisp/")
>
> (require 'ox-latex)
>
> ;; setup babel languages
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((R . t)))
>
> #+end_src
>
> Org version (just pulled):
> Org-mode version 8.2.5h (release_8.2.5h-676-gfb8a04 @
> /home/jwhendy/.elisp/org.git/lisp/)
>
> Upon exporting to latex, I get the attached.
>
> I thought I ran into this some time back, but was able to use a
> :session argument as a workaround in the header args. For some reason,
> I can't seem to get that to play along at the moment. When I try
> adding `:session r`, I get this in the *Messages* buffer:
>
> Warning: defvar ignored because ess-ask-for-ess-directory is let-bound
> org-babel-R-initiate-session: Symbol's function definition is void: R
>
> Any suggestions on what's going on? In a non-minimal setup, I get
> similar results except that `:session R` doesn't complain on export...
> but I get my code bookended by verbatim #+begin/end_src text in the
> PDF.
>
>
>
> Thanks,
> John
>
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue using [:exports both] for inline R code?:
@ 2014-03-06 22:31 John Hendy
0 siblings, 0 replies; 6+ messages in thread
From: John Hendy @ 2014-03-06 22:31 UTC (permalink / raw
To: Eric Schulte; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2068 bytes --]
On Mar 6, 2014 4:18 PM, "Eric Schulte" <schulte.eric@gmail.com> wrote:
>
> Inline code blocks were provided to allow results of code block
> execution to be placed /inline/ within textual elements such as
> paragraphs or lists. They are not designed to support code export.
>
> The manual should be updated to make this limitation clear.
Thanks for clarifying. I'll give a shot at it as I have another manual
change to do anyway :)
John
> Best,
>
> John Hendy <jw.hendy@gmail.com> writes:
>
> > Here is a minimal example:
> >
> > #+begin_src example
> >
> > * Heading
> >
> > Here is some R code:
> >
> > src_R[:exports both]{1 + 2 + 3}.
> >
> > #+end_src
> >
> > Here is the minimal config I used with `emacs -Q`:
> >
> > #+begin_src min-config
> >
> > ;; change as needed
> > (add-to-list 'load-path "~/.elisp/org.git/lisp/")
> > (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp")
> > (add-to-list 'load-path "~/.elisp/site-lisp/ess/lisp/")
> >
> > (require 'ox-latex)
> >
> > ;; setup babel languages
> > (org-babel-do-load-languages
> > 'org-babel-load-languages
> > '((R . t)))
> >
> > #+end_src
> >
> > Org version (just pulled):
> > Org-mode version 8.2.5h (release_8.2.5h-676-gfb8a04 @
> > /home/jwhendy/.elisp/org.git/lisp/)
> >
> > Upon exporting to latex, I get the attached.
> >
> > I thought I ran into this some time back, but was able to use a
> > :session argument as a workaround in the header args. For some reason,
> > I can't seem to get that to play along at the moment. When I try
> > adding `:session r`, I get this in the *Messages* buffer:
> >
> > Warning: defvar ignored because ess-ask-for-ess-directory is let-bound
> > org-babel-R-initiate-session: Symbol's function definition is void: R
> >
> > Any suggestions on what's going on? In a non-minimal setup, I get
> > similar results except that `:session R` doesn't complain on export...
> > but I get my code bookended by verbatim #+begin/end_src text in the
> > PDF.
> >
> >
> >
> > Thanks,
> > John
> >
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
[-- Attachment #2: Type: text/html, Size: 3088 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue using [:exports both] for inline R code?
2014-03-06 17:04 ` Eric Schulte
@ 2014-03-13 15:03 ` Bastien
2014-03-13 18:23 ` John Hendy
0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2014-03-13 15:03 UTC (permalink / raw
To: Eric Schulte; +Cc: emacs-orgmode
Hi John and Eric,
Eric Schulte <schulte.eric@gmail.com> writes:
> Inline code blocks were provided to allow results of code block
> execution to be placed /inline/ within textual elements such as
> paragraphs or lists. They are not designed to support code export.
>
> The manual should be updated to make this limitation clear.
I'm not familiar enough with inline code blocks to update the
documentation myself, can someone take care of providing a patch
for this?
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue using [:exports both] for inline R code?
2014-03-13 15:03 ` Bastien
@ 2014-03-13 18:23 ` John Hendy
2014-03-13 19:44 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2014-03-13 18:23 UTC (permalink / raw
To: Bastien; +Cc: emacs-orgmode, Eric Schulte
On Thu, Mar 13, 2014 at 10:03 AM, Bastien <bzg@gnu.org> wrote:
> Hi John and Eric,
>
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> Inline code blocks were provided to allow results of code block
>> execution to be placed /inline/ within textual elements such as
>> paragraphs or lists. They are not designed to support code export.
>>
>> The manual should be updated to make this limitation clear.
>
> I'm not familiar enough with inline code blocks to update the
> documentation myself, can someone take care of providing a patch
> for this?
Wait, that's what this was for :)
- https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00445.html
I'll re-do with changelog and no extraneous whitespace hopefully tonight.
John
>
> Thanks,
>
> --
> Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Issue using [:exports both] for inline R code?
2014-03-13 18:23 ` John Hendy
@ 2014-03-13 19:44 ` Bastien
0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2014-03-13 19:44 UTC (permalink / raw
To: John Hendy; +Cc: emacs-orgmode, Eric Schulte
John Hendy <jw.hendy@gmail.com> writes:
> Wait, that's what this was for :)
> - https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00445.html
>
> I'll re-do with changelog and no extraneous whitespace hopefully
> tonight.
Okay, absolutely no hurry! And thanks in advance :)
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-13 19:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 22:31 Issue using [:exports both] for inline R code?: John Hendy
-- strict thread matches above, loose matches on Subject: below --
2014-03-05 3:21 Issue using [:exports both] for inline R code? John Hendy
2014-03-06 17:04 ` Eric Schulte
2014-03-13 15:03 ` Bastien
2014-03-13 18:23 ` John Hendy
2014-03-13 19:44 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.