emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas S. Dye <tsd@tsdye.com>
To: Eric Schulte <schulte.eric@gmail.com>, nicholas.dokos@hp.com
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: html export
Date: Sun, 20 Jun 2010 10:54:16 -1000	[thread overview]
Message-ID: <72BE7A36-2C7D-4343-A87D-2A2CB0288E33@tsdye.com> (raw)
In-Reply-To: <877hlt606l.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2292 bytes --]

Hi Eric,

On Jun 20, 2010, at 8:14 AM, Eric Schulte wrote:

> "Thomas S. Dye" <tsd@tsdye.com> writes:
>
> [...]
>> Removing the blank line doesn't work for me either.
>>
>> Org-mode version 6.36trans (release_6.36.291.gaf90f)
>>
>
> Hmm, I just tried the above again using the HEAD (same org-version
> output as you have above) of the org-mode git repository and a minimal
> emacs config, and it *is* working for me, so maybe your problems  
> will be
> resolved with an update of org-mode, or maybe they're due to something
> in your config?
>
>>
>> Ah, I'm finally able to reproduce the problem in my larger file.   
>> Here
>> is an example:
>>
>> * No results exported
>>
>> #+srcname: problem
>> #+begin_src R
>>  b <- 4
>> #+end_src
>>
>> #+results: problem
>> [[file:~/Public/projects/903_adzes/r/sr-nb-scatter.png]]
>>
>> The key is that srcname: and results: have the same name.  Changing
>> the results: name works.
>>
>> * Results exported
>>
>> #+srcname: problem
>> #+begin_src R
>>  b <- 4
>> #+end_src
>>
>> #+results: problem-not
>> [[file:~/Public/projects/903_adzes/r/sr-nb-scatter.png]]
>>
>
> Yes, the key with the above is that babel by default only exports the
> code of a code block, which means that if there are results in the
> buffer they will be removed on export.  If you want both the code and
> the results to be exported then change
>
>  #+srcname: problem
>  #+begin_src R
>    b <- 4
>  #+end_src
>
> to
>
>  #+srcname: problem
>  #+begin_src R :exports both
>    b <- 4
>  #+end_src
>
> Hope this helps -- Eric

I didn't pay close attention when the default behavior changed.   
Adding #+property: exports both gets me back where I was before.

Also, following on Nick's message, the captions exported properly to  
html with absolute paths in the links and with lots of space between  
the caption and link.  Here's an example that exported properly:

#+CAPTION: Pairwise comparison of six metric variables
#+LABEL: fig:pairwise

#+srcname: pairs
#+begin_src R :results output :var x=whole-adzes :file r/adze_pairs.png
   whole.adze.metric <- x[,c(5,12,15,16,17,18)]
   names(whole.adze.metric) <-  
c("wt","len","edge","front","back","thick")
   pairs(whole.adze.metric)
#+end_src

#+results: pairs
[[file:r/adze_pairs.png]]

Thanks for your help.

Tom



[-- Attachment #1.2: Type: text/html, Size: 4268 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2010-06-20 20:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-20  1:50 html export Thomas S. Dye
2010-06-20  3:28 ` Eric Schulte
2010-06-20  3:58   ` Nick Dokos
2010-06-20 16:11   ` Thomas S. Dye
2010-06-20 18:14     ` Eric Schulte
2010-06-20 20:17       ` Nick Dokos
2010-06-20 20:54       ` Thomas S. Dye [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-05-27 16:37 Thomas S. Dye
2010-05-27 20:58 ` Carsten Dominik
2010-05-27 21:29   ` Sebastian Rose

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=72BE7A36-2C7D-4343-A87D-2A2CB0288E33@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    --cc=schulte.eric@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).