From: "Berry, Charles" via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Jack Kamm <jackkamm@gmail.com>
Cc: Colin Baxter <m43cap@yandex.com>, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] ob-R output file with graphics parameter
Date: Tue, 6 Jul 2021 17:58:27 +0000 [thread overview]
Message-ID: <F8F39FE8-F067-4C24-920D-F18F41B178F0@health.ucsd.edu> (raw)
In-Reply-To: <87r1gb7acf.fsf@gmail.com>
> On Jul 6, 2021, at 8:04 AM, Jack Kamm <jackkamm@gmail.com> wrote:
>
> Hello again,
>
>>> A user might like to construct a figure consisting of various subfigures such as in a subfloat environment.
>>>
>>> Will this be reasonably simple to accomplish if `:results graphics' (with no `file' element) automatically inserts a link?
>>>
>>> Currently, omitting the file element leaves the link out, which I believe is the most direct way to approach subfloats.
>>
>> Thanks for bringing up this use case, it hadn't occurred to me before.
>
> Thinking about this more, it occurred to me that the ":exports code" or
> ":exports none" header should already handle this.
>
> When that header is set, the graphics result won't be added to the latex
> document, and the user can construct the subfigure separately in latex.
>
> Then we wouldn't need to support the use-case of ob-R creating a graphic
> but not producing a result from it...which still feels a little strange
> to me, to be honest.
>
> Or am I missing something still?
Well, if the src blocks export nothing, the graphics results are not produced and no files are created.
Here is an ECM that when exported with `C-c C-e l o y y` (or 'yes RET' for each `y' depending on your setup)
1) Produces two graphics files:
- fig1.png
- fig2.png
2) Produces file `subfigures.pdf` with a page with one figure containing those
subfigures rendered side-by-side.
If you modify the ECM to change `:exports results' to `:exports none' and clean older fig[12].png's from the directory, the export fails.
Of course, there are workarounds to having Type=file implied by Format=graphics. So if everyone else is determined to make this change I can live with it.
Best,
Chuck
next prev parent reply other threads:[~2021-07-06 17:59 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-23 22:50 [PATCH] ob-R output file with graphics parameter Jeremie Juste
2021-06-24 9:21 ` Colin Baxter
2021-06-27 17:12 ` Jack Kamm
2021-06-28 9:56 ` Colin Baxter
2021-06-28 21:54 ` Jeremie Juste
2021-07-03 4:21 ` Jack Kamm
2021-07-03 4:52 ` Timothy
2021-07-03 13:01 ` Jack Kamm
2021-07-03 17:08 ` Jeremie Juste
2021-07-03 18:14 ` Berry, Charles via General discussions about Org-mode.
2021-07-03 20:48 ` Jack Kamm
2021-07-06 15:04 ` Jack Kamm
2021-07-06 17:58 ` Berry, Charles via General discussions about Org-mode. [this message]
2021-07-06 19:20 ` Jack Kamm
2021-07-06 21:43 ` Berry, Charles via General discussions about Org-mode.
2021-07-10 10:16 ` Jeremie Juste
2021-07-10 21:00 ` Jack Kamm
2021-07-11 3:23 ` Berry, Charles via General discussions about Org-mode.
2021-09-26 8:48 ` Bastien
2021-09-26 9:13 ` Jeremie Juste
2021-09-26 9:29 ` Bastien
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=F8F39FE8-F067-4C24-920D-F18F41B178F0@health.ucsd.edu \
--to=emacs-orgmode@gnu.org \
--cc=ccberry@health.ucsd.edu \
--cc=jackkamm@gmail.com \
--cc=m43cap@yandex.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).