From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UKoGGNnjcGSLXgAASxT56A (envelope-from ) for ; Fri, 26 May 2023 18:52:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eCNSF9njcGQ2kQAAG6o9tA (envelope-from ) for ; Fri, 26 May 2023 18:52:41 +0200 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 1B76120E5E for ; Fri, 26 May 2023 18:52:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2afO-0001sT-1G; Fri, 26 May 2023 12:51:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2afK-0001rl-Vb for emacs-orgmode@gnu.org; Fri, 26 May 2023 12:51:47 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2afA-0001zB-8f for emacs-orgmode@gnu.org; Fri, 26 May 2023 12:51:46 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-64d5f65a2f7so896074b3a.1 for ; Fri, 26 May 2023 09:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley.edu; s=google; t=1685119894; x=1687711894; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=le4jk5loFZDOyiE0zWhCg51svjajZ5xxZdx4pCHxrks=; b=WX1zW5nLNCIdTOkufLwDiPe4ND0hZ42FrFEnW7pxuY1SU5ZETHvY9Ym62azLpU5UJ/ Gxk/bK9SvSiSgtdRdZ/bTW1esetSBZqggXJlxR1L/uIEaAEV5T8V8aDXYnVYqq7hyC5T vH+ql4Og6uCib05awVkJlvSzy2IOnJC1H2DOZ2CNUN5s703WcBizwXx6v0IzIBfy1ZfC JU+z10Yvleub9ZcgxFeh2DtId2NWWGmxTxWHWJZtX3Bp1Mw1RtVVMQzC74mIgV3/Vu80 FG8cD00KAvpH0prPmA9HF/0Jp/W7QocIqbNUy8VqZuvQ205ktTeAE2tlAyWUwfQbOAQL FnsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685119894; x=1687711894; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=le4jk5loFZDOyiE0zWhCg51svjajZ5xxZdx4pCHxrks=; b=GLuCjbj9+lsIprUTjZo36wjUXfNc7cGHyFUrHMDXssVeDUCS+kCM57agIrjIIsYwhA 7IVmNZy1QpJCizoIXr8OngzF+hGhYIk72tTygjJA1dB1EBHb+r72zrlkMvCcafG7c7x8 89X545rEJ7dQ2317u13UcuwoTmrOLmnvkw9K3EmfIXXzQji2wRtDBYMkoLhczRCvqRJG Wsedvi1toOdxzajEshhyfWVyeaAKgHDdNAqBp31k8kpROFnQV6d21X3ueHwR37xGk/x0 Bn95RzI3xySRTN116TcLI/It20SkgiserzoLjYu688dXMnN1nhBhJfeBZZeT6IoR57BQ b8lQ== X-Gm-Message-State: AC+VfDx6FVYJ0SMn+frizoDC05QHoSl5tpjv8YmKqS3YIwT7YC9CIfAY COkH4ngfmjlOcn4e9j98Vs+/2jwzWIrbNMVro4c= X-Google-Smtp-Source: ACHHUZ4lIiwepRZ8OZi2WjnFmrQYUe5ylUK7pzZ8X1nk51zf0N3BU/2poIVrYZ4xWs08tTHdlJFNcg== X-Received: by 2002:a05:6a00:b44:b0:64f:3fc8:5d11 with SMTP id p4-20020a056a000b4400b0064f3fc85d11mr4153389pfo.12.1685119893270; Fri, 26 May 2023 09:51:33 -0700 (PDT) Received: from smtpclient.apple (198-27-191-74.fiber.dynamic.sonic.net. [198.27.191.74]) by smtp.gmail.com with ESMTPSA id w16-20020aa78590000000b0063f0ef3b421sm3074321pfn.14.2023.05.26.09.51.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 May 2023 09:51:30 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Subject: Re: LaTeX export ignores caption if table is in a drawer From: Richard Stanton In-Reply-To: <87bki7wqjc.fsf@localhost> Date: Fri, 26 May 2023 09:51:29 -0700 Cc: emacs-orgmode@gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: <6F0A1A0E-248E-48A9-A053-570B1A47187D@berkeley.edu> References: <87bki7wqjc.fsf@localhost> To: Ihor Radchenko X-Mailer: Apple Mail (2.3696.120.41.1.3) Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=rhstanton@berkeley.edu; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685119961; a=rsa-sha256; cv=none; b=GC5Zx95svT380R/XwYZcXHJCEmGD7PRDIG/bC2IOdEyTwBBlq/qfhgcgVjg6PDK9k2NPv7 SmixT/lDm4BNvh0HtJETqPMC8Xq3ZK9tUDz4+hUkkyDm6OFgZSBq4ZmQ+g4In648n6xw8x BqHozOiRbYcEiKaJwwuk9PHfqlQvrmh+/sAphjBAQrv0cu2vxLckh3RGZyxolPVJi3ASm6 bEPY/5FWyLNp0DhhdeSsFPZ4po4aGzAzj03JkGinSkOfu1gCij1VnL8oLVS04O5nZpnlmP c5pRge5WkHf5FyRgH4XRz6RZDv1ll9hSzHYmABPWaTzKrXKSUl+ew1OxO22AZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=berkeley.edu header.s=google header.b=WX1zW5nL; dmarc=pass (policy=none) header.from=berkeley.edu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685119961; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=le4jk5loFZDOyiE0zWhCg51svjajZ5xxZdx4pCHxrks=; b=YWACp3a63dB3sqPEtSH6cyA3UHWRIw9DpYLpHB360GdwvcIyjje2fTw+H9p0/qyFEVVLVI lL+vfqIk02wTV7RuZRABCMd8NFXvlB5R1SS5NyEe9miWAF2jIL+XeWw7ozy6s0S71kREgk NmajWPqP79UlOi8cl3PwZALjCHXtk4dv107Dtuin7hN2XWh8yIsgdTKEahhBtHPAZw00X9 H0ay0m4+oi7/D7gL5IAPHHlZT/dyIyKB9fotbo4W2Yq6uH/pNTAX76FYrEAyrPMoVVHooI aydibJJuEs6hGbhBtrXMfVXkqMrIjZ4yyefG+fhKKhdrs4MRURJoor3+HrGNWw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=berkeley.edu header.s=google header.b=WX1zW5nL; dmarc=pass (policy=none) header.from=berkeley.edu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.39 X-Spam-Score: -6.39 X-Migadu-Queue-Id: 1B76120E5E X-TUID: XdZLUjOHeBmK Thanks, Ihor. ":results raw replace" seems to do what I need. Best, Richard > On May 25, 2023, at 11:33 PM, Ihor Radchenko = wrote: >=20 > "Richard H. Stanton" writes: >=20 >> I often create tables programatically from within an org code block. = To make sure I don=E2=80=99t produce multiple copies of the output, I = like to enclose the results in a drawer. However, the exporter seems to = ignore any caption I might assign if the table itself is inside a = drawer. For example, if you export the sample org file below to LaTeX, = the first table gets exported with caption, the second without. Would it = be possible for the exporter to keep the caption in the second case as = well?=20 >> ... >> #+caption: Small table >> | C1 | C2 | >> |----+----| >>=20 >> #+caption: Small table >> :results: >> | C1 | C2 | >> |----+----| >> :end: >=20 > The second example has a drawer with caption, not a table with = caption. > Captions in drawers are ignored (or rather it is undefined behaviour). >=20 > I recommend not wrapping tables into drawers in your use case - it is > not necessary if you just have a table in the output. If you have > multiple things, with table coming first, it would be unclear which = part > you want to assign the caption to; so you would need to arrange = yourself > to create table result with caption inside the drawer. >=20 > --=20 > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at