From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6Eu2M6tz6WCcAQEAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 12:17:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8GWEL6tz6WB0AgAA1q6Kng (envelope-from ) for ; Sat, 10 Jul 2021 10:17:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6448B1B2CC for ; Sat, 10 Jul 2021 12:17:15 +0200 (CEST) Received: from localhost ([::1]:46804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2A2r-0003j1-8W for larch@yhetil.org; Sat, 10 Jul 2021 06:17:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2A2F-0003is-QF for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 06:16:35 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:35619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2A2E-00010D-JV for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 06:16:35 -0400 Received: by mail-wm1-x331.google.com with SMTP id k31-20020a05600c1c9fb029021727d66d33so6337491wms.0 for ; Sat, 10 Jul 2021 03:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mime-version:date:in-reply-to :message-id:user-agent; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=tScrWvA/2fycuIt/kLG03/4h/NhaAsrQPUHYCzKyAfJfhKaptvkzZWcsYlMsBd0dqD Z3nMUMOr96nMOIsKJ3CdKAdz+y4vF9X5H/VLdmn5AdK8Z8kGuG3vCQnsoGMtv9GzW0fv OvxwPfyLuhk22JyrtkJBTFiTeiWvQw6ljTJQy9qj+YwM59HnVD2yPb2Q3CHYExc5/H06 0JtcVMvPGwPFt5YdIfE0VoGGZhrlDanp6vUm7pgAeExWN+LVsizZ74dvyzvc7sb84Dm7 sowIIOpIp5rOWBST+8k/mf1Y29KbZ7rguvoy1n5b2N41R9h4R630wK6eTIqi3QcjU4LZ bxxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mime-version:date :in-reply-to:message-id:user-agent; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=PvCIPZFnJihcnT/Aj6FH3tBksCP5JoL2wtuPKz66JK8PpEeqm9eCUIbQ9s19+1rxGe 88g8yFX5Ceq/XOfDEnZYpoC9/eY6Vl5/nCZ2cXyX3Z5ZLmj6x4UgPR7lpzGzGSZR6/N2 9VqhwTfTuOfZKcHFCgqoIMieAbIt97jGAMcrT52wQ9RwWpx/ntD5rOrbpJJvj1n/U/cE MVa7HuEIRs4itABqGOsPEzCBx2wu5dEBy6VCji8IFDSWSrD9i+fPCYlQTAFT48Kzf+Fi 84yVMzvb9EuaouUFklWqVJnvKQZx5/2a/qc0KU2rJVSV7szzFa+OhHrB7yQJEdZEzJOo rWww== X-Gm-Message-State: AOAM532DACVKPMDAE9PgXtZVbRvmvLmMIPIckxC9NqddYa+SOj8va+Cg NH8nKK42DKgl2p2TlDIzxpg= X-Google-Smtp-Source: ABdhPJzfqUY26GwB8cAkS5VL9txhjk+nHjY9K9hthoujipHcqF8MY5pHR4ir0+H3yCITjTq6+b5CwQ== X-Received: by 2002:a7b:cd90:: with SMTP id y16mr44710273wmj.87.1625912191891; Sat, 10 Jul 2021 03:16:31 -0700 (PDT) Received: from freegnu (82-64-129-7.subs.proxad.net. [82.64.129.7]) by smtp.gmail.com with ESMTPSA id z11sm7990934wru.65.2021.07.10.03.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 03:16:31 -0700 (PDT) From: Jeremie Juste To: "Berry, Charles" Subject: Re: [PATCH] ob-R output file with graphics parameter References: <8735t8nqlf.fsf@gmail.com> <87pmwbty75.fsf@yandex.com> <871r8n1ban.fsf@gmail.com> <87o8bpbqp3.fsf@gmail.com> <87h7hcowmv.fsf@gmail.com> <87tulbp1hi.fsf@gmail.com> <87r1gb7acf.fsf@gmail.com> <87o8bf6yh8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Hello Chuck, || On Saturday, 3 Jul 2021 at 18:14, Berry, Charles wrote: > Sorry if I have misunderstood the proposals here, but ... > > 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? Many thanks for your valuable feedback, this is a use case that I have never thought of. I used to leave it to R to write the subfigures and leave the formatting of the subfigures to a latex file, but your workflow opens up more possibilities. Rest assured, I have no intention to disrupt the workflow of current users. So I guess the next best thing to do would be add your example to the documentation. @Greg, I'm guessing that this example might be of some interest to you, if you haven't seen it already. On Tuesday, 6 Jul 2021 at 21:43, Berry, Charles wrote: > #+begin_src org > > ,* subfig ECM > :PROPERTIES: > :EXPORT_FILE_NAME: subfigures.tex > :EXPORT_OPTIONS: toc:nil > :EXPORT_LATEX_HEADER: \usepackage{subfig} > :END: > > ,#+macro: subfig @@latex: \subfloat[$1]{\includegraphics[width=0.49\linewidth]{$2}}@@ > > ,#+name: sub1 > ,#+begin_src R :exports results :results graphics :file fig1.png > plot(0:1,0:1) > text(0.5,0.5,"Fig 1") > ,#+end_src > > > ,#+name: sub2 > ,#+begin_src R :exports results :results graphics :file fig2.png > plot(0:1,0:1) > text(0.5,0.5,"Fig 2") > ,#+end_src > > > ,#+begin_figure > @@latex: {\centering@@ > {{{subfig(First,fig1)}}} > {{{subfig(Second,fig2)}}} > @@latex: }@@ > ,#+end_figure > #+end_src > Best regards, -- Jeremie Juste Date: Sat, 10 Jul 2021 12:16:03 +0200 In-Reply-To: (Charles Berry's message of "Tue, 6 Jul 2021 21:43:15 +0000") Message-ID: <87pmvqpj8c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=jeremiejuste@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PYZOR_CHECK=1.392, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Minshall , Colin Baxter , Jack Kamm , Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625912235; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=q3N8MfmZsxY/wj+lRQ3vf2HNaoPvOIEAtNUUkS+E5cMEJ6t8BH1mM9T/piI6rfj2fLM6oo ag2I1TqQ92tVZR+XG+acQOqYVeze5QSkB2QDYF8slQWx0k6z01oLikPH1YtOuZl+WlnhqQ UOHVjAH89B68PfwY/jO5b5wt6Wc0hjjAHJ+erS9tyrtpfGuzXPBkmFX8EOP2Hbsevx2CtO W4Mk62t5UylVz/I9XuyIYlgz182c3IVibWBszu2D1jxcyp8qrhnTdIPGBKsJevrC0+kf5b r0Uj2HE9v7jY8BlnurPVzeqU8p3d3EQcYTEEK2h5LX/I29Dc/X5laIOfp/vd6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625912235; a=rsa-sha256; cv=none; b=X3KLj8Q0VB2Rjel3KIUApRHt7LMb+v0dnzre/xDtpaivYTfz6KOVq2geCJFyCPSCObi37m k7uC4c26UUVJKEfC7tIVN+9YTESamZj2c9pkdYjdW9rrvzRKctbeQ9Th/Oww7ybSLkOUyr oBnqAfzdXmKkj8a3KzmKi3OaAgb0Dtbd/EwzULT2oRCamwBYfgg4XZ9DcLYwXjhfCdASyM wIdS5ahllYcHrCCi3BPP8YQFIU7h/77m4RtQg4hzyY/LJjFMWuZvRSKrBd0tLmYCRkX/SK Z2jsLGXiyyWgXPP3LvEsqT2Y1B8MhGLirQ4b73pgTnCoZxPFIWqM8kJ6g0QLzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="tScrWvA/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="tScrWvA/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6448B1B2CC X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: XUnHoXcxp8zw