From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: html export Date: Thu, 27 May 2010 06:37:11 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1800910251==" Return-path: Received: from [140.186.70.92] (port=57653 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHg5A-0003l5-FH for emacs-orgmode@gnu.org; Thu, 27 May 2010 12:37:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHg59-0006EX-FF for emacs-orgmode@gnu.org; Thu, 27 May 2010 12:37:20 -0400 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:43043 helo=outbound-mail-359.bluehost.com) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OHg59-0006EA-6j for emacs-orgmode@gnu.org; Thu, 27 May 2010 12:37:19 -0400 Received: from cpe-24-161-159-78.hawaii.res.rr.com ([24.161.159.78] helo=[192.168.1.104]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1OHg53-0006GE-Lv for emacs-orgmode@gnu.org; Thu, 27 May 2010 10:37:14 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mode --===============1800910251== Content-Type: multipart/alternative; boundary=Apple-Mail-1-318288009 --Apple-Mail-1-318288009 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha all, Org-mode html export recently began to format links improperly for me in projects that have been stable for some time and working properly. I now get

img src="file:r/filename.png" alt="file:r/filename.png" / >

This isn't a bug report. I've been having lots of problems publishing formerly stable projects, some of which I believe are due to changes in org-mode while others appear to stem from my setup. I haven't investigated this one yet, but it would help me to know if others are seeing similar behavior when publishing to html. All the best, Tom --Apple-Mail-1-318288009 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = all,

Org-mode html export recently began to format = links improperly for me in projects that have been stable for some time = and working properly.

I now get <p>img = src=3D"file:r/filename.png" alt=3D"file:r/filename.png" = /></p>

This isn't a bug = report.  I've been having lots of problems publishing formerly = stable projects, some of which I believe are due to changes in org-mode = while others appear to stem from my setup.

I = haven't investigated this one yet, but it would help me to know if = others are seeing similar behavior when publishing to = html.

All the best,
Tom
= --Apple-Mail-1-318288009-- --===============1800910251== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1800910251==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: html export Date: Thu, 27 May 2010 22:58:20 +0200 Message-ID: <7117A6F0-FAD7-47F2-A7D4-327C60EC670F@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=33197 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHk9s-0003bh-SJ for emacs-orgmode@gnu.org; Thu, 27 May 2010 16:58:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHk9o-000710-Hd for emacs-orgmode@gnu.org; Thu, 27 May 2010 16:58:25 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:31654) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHk9o-00070r-BV for emacs-orgmode@gnu.org; Thu, 27 May 2010 16:58:24 -0400 Received: by ey-out-1920.google.com with SMTP id 13so46443eye.34 for ; Thu, 27 May 2010 13:58:23 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" , Sebastian Rose Cc: emacs-orgmode Mode Hi Tom, On May 27, 2010, at 6:37 PM, Thomas S. Dye wrote: > Aloha all, > > Org-mode html export recently began to format links improperly for > me in projects that have been stable for some time and working > properly. > > I now get

img src="file:r/filename.png" alt="file:r/ > filename.png" />

> > This isn't a bug report. I've been having lots of problems > publishing formerly stable projects, some of which I believe are due > to changes in org-mode while others appear to stem from my setup. > > I haven't investigated this one yet, but it would help me to know if > others are seeing similar behavior when publishing to html. This i a bug introduced by a recent patch to factorize link creation in html export into a separate function. We are still ironing out the small problems this patch created. If this i a critical issue, switch back to an older verion for the time being. I believe Sebastian Rose is now looking at the problem... - Carsten > > All the best, > Tom > _______________________________________________ > 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 - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: html export Date: Thu, 27 May 2010 23:29:13 +0200 Message-ID: <8739xd11au.fsf@gmx.de> References: <7117A6F0-FAD7-47F2-A7D4-327C60EC670F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=37467 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHkdt-0004VH-FZ for emacs-orgmode@gnu.org; Thu, 27 May 2010 17:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHkdp-0002mJ-G9 for emacs-orgmode@gnu.org; Thu, 27 May 2010 17:29:26 -0400 Received: from mail.gmx.net ([213.165.64.20]:45206) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OHkdp-0002lh-3w for emacs-orgmode@gnu.org; Thu, 27 May 2010 17:29:25 -0400 In-Reply-To: <7117A6F0-FAD7-47F2-A7D4-327C60EC670F@gmail.com> (Carsten Dominik's message of "Thu, 27 May 2010 22:58:20 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode Mode Hi Carsten and Thomas, Carsten Dominik writes: > Hi Tom, > > On May 27, 2010, at 6:37 PM, Thomas S. Dye wrote: > >> Aloha all, >> >> Org-mode html export recently began to format links improperly for me in >> projects that have been stable for some time and working properly. >> >> I now get

img src="file:r/filename.png" alt="file:r/ >> filename.png" />

>> >> This isn't a bug report. I've been having lots of problems publishing >> formerly stable projects, some of which I believe are due to changes in >> org-mode while others appear to stem from my setup. >> >> I haven't investigated this one yet, but it would help me to know if others >> are seeing similar behavior when publishing to html. > > This i a bug introduced by a recent patch to factorize link creation in html > export into a separate function. We are still ironing out the small problems > this patch created. If this i a critical issue, switch back to an older verion > for the time being. I believe Sebastian Rose is now looking at the problem... I just saw my patch was applied yesterday. For the bug is fixed, but there might be corner cases I overlooked. Thomas, does the current head not work for you? If not, could you make up a little example for testing? Sebastian > > - Carsten > >> >> All the best, >> Tom >> _______________________________________________ >> 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 > > - Carsten From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: html export Date: Sat, 19 Jun 2010 15:50:06 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=56549 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQ9ft-0003VZ-Ni for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 21:50:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQ9fs-00052X-Bx for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 21:50:17 -0400 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:39672) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OQ9fs-00051q-2L for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 21:50:16 -0400 Received: from cpe-24-161-159-72.hawaii.res.rr.com ([24.161.159.72] helo=[192.168.1.2]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1OQ9fk-0008QB-QC for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 19:50:09 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Aloha all, Exporting this small file to html here doesn't put a caption on the figure. * No caption #+CAPTION: Histogram of adze weights on a logarithmic scale #+LABEL: fig:wt-log [[file:~/Public/projects/903_adzes/r/sr-nb-scatter.png]] Does anyone else see this? All of a sudden, I'm having the devil's own time with html export. I made small changes to a large export project file and was surprised when none of the links were exported. The project has been exporting perfectly for months now. All the best, Tom From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: html export Date: Sat, 19 Jun 2010 20:28:28 -0700 Message-ID: <871vc28js3.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=57878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQBD1-0000En-Gs for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 23:28:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQBCz-0004DY-D3 for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 23:28:35 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:39234) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQBCz-0004DO-8c for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 23:28:33 -0400 Received: by pvg16 with SMTP id 16so1954887pvg.0 for ; Sat, 19 Jun 2010 20:28:31 -0700 (PDT) In-Reply-To: (Thomas S. Dye's message of "Sat, 19 Jun 2010 15:50:06 -1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org Mode Hi Tom, "Thomas S. Dye" writes: > Aloha all, > > Exporting this small file to html here doesn't put a caption on the > figure. > > * No caption > > #+CAPTION: Histogram of adze weights on a logarithmic scale > #+LABEL: fig:wt-log > > [[file:~/Public/projects/903_adzes/r/sr-nb-scatter.png]] > > Does anyone else see this? > Try removing the empty line between the #+LABEL:... line and the [[file:... line, that worked for me. or rather the following worked for me --8<---------------cut here---------------start------------->8--- * No caption #+CAPTION: Histogram of adze weights on a logarithmic scale #+LABEL: fig:wt-log [[file:graph.png]] --8<---------------cut here---------------end--------------->8--- also, if the file doesn't exist, then neither the file, nor the label or caption will export. > > All of a sudden, I'm having the devil's own time with html export. I > made small changes to a large export project file and was surprised > when none of the links were exported. The project has been exporting > perfectly for months now. > I agree it seems that the html export has been a little bit less stable as of late. Best -- Eric > > All the best, > Tom > > > > _______________________________________________ > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: html export Date: Sat, 19 Jun 2010 23:58:04 -0400 Message-ID: <4967.1277006284@gamaville.dokosmarshall.org> References: <871vc28js3.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=48410 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQBfe-0006j5-5Y for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 23:58:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQBfb-0006ZV-CN for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 23:58:10 -0400 Received: from vms173015pub.verizon.net ([206.46.173.15]:57038) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQBfb-0006Ye-8p for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 23:58:07 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L4A004DCOCSKA90@vms173015.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 19 Jun 2010 22:58:05 -0500 (CDT) In-reply-to: Message from "Eric Schulte" of "Sat, 19 Jun 2010 20:28:28 PDT." <871vc28js3.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: nicholas.dokos@hp.com, Org Mode Eric Schulte wrote: > Hi Tom, > > "Thomas S. Dye" writes: > > > Aloha all, > > > > Exporting this small file to html here doesn't put a caption on the > > figure. > > > > * No caption > > > > #+CAPTION: Histogram of adze weights on a logarithmic scale > > #+LABEL: fig:wt-log > > > > [[file:~/Public/projects/903_adzes/r/sr-nb-scatter.png]] > > > > Does anyone else see this? > > > > Try removing the empty line between the #+LABEL:... line and the > [[file:... line, that worked for me. or rather the following worked for > me > > * No caption > > #+CAPTION: Histogram of adze weights on a logarithmic scale > #+LABEL: fig:wt-log > [[file:graph.png]] > > > also, if the file doesn't exist, then neither the file, nor the label or > caption will export. > I can't get it to work with or without the empty line: Org-mode version 6.36trans (release_6.36.264.g74d3) Be that as it may, I compared the html export code with the latex export code and it seems to me that the caption is calculated too late in the html code: it's done in org-export-html-format-image by looking for the org-caption text property on its ``src'' argument, but afaict, the argument is just a string - no text properties. I tried the following patch, which makes the html caption handling look a bit more like what the latex exporter does, and it seems to work in this case, but I have not tested it any further. Thanks, Nick diff --git a/lisp/org-html.el b/lisp/org-html.el index d5809ab..73cba14 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -621,7 +621,8 @@ MAY-INLINE-P allows inlining it as an image." opt-plist components-1) components-1)) (type (first components-2)) - (thefile (second components-2))) + (thefile (second components-2)) + (caption (org-find-text-property-in-string 'org-caption path))) ;;Third pass. Build final link except for leading type @@ -651,7 +652,7 @@ MAY-INLINE-P allows inlining it as an image." (not fragment)) (progn (message "image %s %s" thefile org-par-open) - (org-export-html-format-image thefile org-par-open)) + (org-export-html-format-image thefile caption org-par-open)) (concat "" (org-export-html-format-desc desc) @@ -1674,14 +1675,13 @@ lang=\"%s\" xml:lang=\"%s\"> (org-html-do-expand s)) s)) -(defun org-export-html-format-image (src par-open) +(defun org-export-html-format-image (src caption par-open) "Create image tag with source and attributes." (save-match-data (if (string-match "^ltxpng/" src) (format "\"%s\"/" src (org-find-text-property-in-string 'org-latex-src src)) - (let* ((caption (org-find-text-property-in-string 'org-caption src)) - (attr (org-find-text-property-in-string 'org-attributes src)) + (let* ((attr (org-find-text-property-in-string 'org-attributes src)) (label (org-find-text-property-in-string 'org-label src))) (setq caption (and caption (org-html-do-expand caption))) (concat From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: html export Date: Sun, 20 Jun 2010 06:11:17 -1000 Message-ID: <48C8312A-7793-49D0-AA26-24AB15AC662F@tsdye.com> References: <871vc28js3.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57113 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQN7D-0000E6-QO for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 12:11:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQN7C-0007J9-C6 for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 12:11:23 -0400 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:53566) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OQN7C-0007Ix-5B for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 12:11:22 -0400 In-Reply-To: <871vc28js3.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode Hi Eric, On Jun 19, 2010, at 5:28 PM, Eric Schulte wrote: > Hi Tom, > > "Thomas S. Dye" writes: > >> Aloha all, >> >> Exporting this small file to html here doesn't put a caption on the >> figure. >> >> * No caption >> >> #+CAPTION: Histogram of adze weights on a logarithmic scale >> #+LABEL: fig:wt-log >> >> [[file:~/Public/projects/903_adzes/r/sr-nb-scatter.png]] >> >> Does anyone else see this? >> > > Try removing the empty line between the #+LABEL:... line and the > [[file:... line, that worked for me. or rather the following worked > for > me > > --8<---------------cut here---------------start------------->8--- > * No caption > > #+CAPTION: Histogram of adze weights on a logarithmic scale > #+LABEL: fig:wt-log > [[file:graph.png]] > > --8<---------------cut here---------------end--------------->8--- > > also, if the file doesn't exist, then neither the file, nor the > label or > caption will export. > >> >> All of a sudden, I'm having the devil's own time with html export. I >> made small changes to a large export project file and was surprised >> when none of the links were exported. The project has been exporting >> perfectly for months now. >> > > I agree it seems that the html export has been a little bit less > stable > as of late. > > Best -- Eric Removing the blank line doesn't work for me either. Org-mode version 6.36trans (release_6.36.291.gaf90f) 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]] All the best, Tom From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: html export Date: Sun, 20 Jun 2010 11:14:42 -0700 Message-ID: <877hlt606l.fsf@gmail.com> References: <871vc28js3.fsf@gmail.com> <48C8312A-7793-49D0-AA26-24AB15AC662F@tsdye.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=46877 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQP2d-00071Q-LV for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 14:14:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQP2c-0005I2-7j for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 14:14:47 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:41983) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQP2c-0005Hx-3B for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 14:14:46 -0400 Received: by pwi7 with SMTP id 7so3186449pwi.0 for ; Sun, 20 Jun 2010 11:14:45 -0700 (PDT) In-Reply-To: <48C8312A-7793-49D0-AA26-24AB15AC662F@tsdye.com> (Thomas S. Dye's message of "Sun, 20 Jun 2010 06:11:17 -1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org Mode "Thomas S. Dye" 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 > > All the best, > Tom From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: html export Date: Sun, 20 Jun 2010 16:17:45 -0400 Message-ID: <23083.1277065065@gamaville.dokosmarshall.org> References: <871vc28js3.fsf@gmail.com> <48C8312A-7793-49D0-AA26-24AB15AC662F@tsdye.com> <877hlt606l.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=45145 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQQxh-0007tW-2K for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 16:17:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQQxf-0002rK-Nw for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 16:17:49 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:51548) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQQxf-0002rG-KH for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 16:17:47 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L4B004UTXPMYY50@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 15:17:46 -0500 (CDT) In-reply-to: Message from "Eric Schulte" of "Sun, 20 Jun 2010 11:14:42 PDT." <877hlt606l.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: nicholas.dokos@hp.com, Org Mode Eric Schulte wrote: > "Thomas S. Dye" 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? > I think the difference between Eric's experiment and Tom's is the filename of the image - Eric uses a relative pathname, whereas Tom uses an absolute one: ,---- | | * No caption | | #+CAPTION: Histogram of adze weights on a logarithmic scale | #+LABEL: fig:wt-log | [[file:Pic1.png]] `---- produces a caption, but ,---- | | * No caption | | #+CAPTION: Histogram of adze weights on a logarithmic scale | #+LABEL: fig:wt-log | [[file:~/Desktop/Pic1.png]] `---- does not. Also, the alignment of the image changes in the two cases, which leads me to believe that one is treated as a display and the other as an inline image. Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: html export Date: Sun, 20 Jun 2010 10:54:16 -1000 Message-ID: <72BE7A36-2C7D-4343-A87D-2A2CB0288E33@tsdye.com> References: <871vc28js3.fsf@gmail.com> <48C8312A-7793-49D0-AA26-24AB15AC662F@tsdye.com> <877hlt606l.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1897099572==" Return-path: Received: from [140.186.70.92] (port=44343 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQRX9-00020k-My for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 16:54:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQRX8-00079t-CS for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 16:54:27 -0400 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:33893) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OQRX8-00079l-4A for emacs-orgmode@gnu.org; Sun, 20 Jun 2010 16:54:26 -0400 In-Reply-To: <877hlt606l.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte , nicholas.dokos@hp.com Cc: Org Mode --===============1897099572== Content-Type: multipart/alternative; boundary=Apple-Mail-9-259829566 --Apple-Mail-9-259829566 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Eric, On Jun 20, 2010, at 8:14 AM, Eric Schulte wrote: > "Thomas S. Dye" 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 --Apple-Mail-9-259829566 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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=3Dwhole-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(wh= ole.adze.metric)
#+end_src

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

T= hanks for your = help.

Tom


= --Apple-Mail-9-259829566-- --===============1897099572== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1897099572==--