From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 oM6yH+5RcGSXDAAASxT56A (envelope-from ) for ; Fri, 26 May 2023 08:30:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GHuTH+5RcGTjPgAAauVa8A (envelope-from ) for ; Fri, 26 May 2023 08:30:06 +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 C51FF293B3 for ; Fri, 26 May 2023 08:30:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2Qwt-0002U2-5l; Fri, 26 May 2023 02:29:15 -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 1q2Qwn-0002TJ-Dv for emacs-orgmode@gnu.org; Fri, 26 May 2023 02:29:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2Qwk-0001WV-TU for emacs-orgmode@gnu.org; Fri, 26 May 2023 02:29:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 36126240028 for ; Fri, 26 May 2023 08:29:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1685082544; bh=GZ5csqc5LMe3T6xdsqzu/yEeXWnNfcV0BSuJWfIG+YQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=OINXnRYOsf0K/UFOAYkQ0yXo60WaLWkp0BE8z3GGnWeUNv2oTonpDsrYPYY8J1iio CZduzWThUOUorfJSwPnE0tisNMeTFyel3aoyxC8WR0pgUiP+neuxJnARxUaZQ9z1Ra 9sqK65oXsXThh+oorPFJcm+H3YTeVmIW/KUx0bJF6RMwRqTwitY7WOn2wFnjgGWYGm YNIeWrCaJ3Xv6JD7DSjFIYanZGvqtIOJzbB4YkQB+tHAeug1srvgmV5mLpnxRvJ0EF GRWJQUDZ7a/cRpyPXvdGVVIgOa6RwYaZvnBL1E3eQgty44vufREUrba0B8ztxuOK0R WZFBtDzQs3vsw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QSFPW51jQz6tmv; Fri, 26 May 2023 08:29:03 +0200 (CEST) From: Ihor Radchenko To: "Richard H. Stanton" Cc: emacs-orgmode@gnu.org Subject: Re: LaTeX export ignores caption if table is in a drawer In-Reply-To: References: Date: Fri, 26 May 2023 06:33:11 +0000 Message-ID: <87bki7wqjc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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=1685082606; a=rsa-sha256; cv=none; b=i/+Rn3e19s6YbJ2pRApsjrEbySBElU3NkrIEO+kSP+Zt9K6RKFJztut89aNbHg/I1gSuds /747v6SuAdpJg5E9seqcfRdv9K8MFxA2I6W4Xy0qsURkLbupVZtxoqb6jjuszqnlaI9+Vy G3FAA1m3409dhg6eSqKGVSNcDIhmgfiE14M3Td40hAvjUDruAUEBBFl/hOoeq0/yecXYP2 KWgBgiunhmiufjWrN3MuMly0CoF7DjkLHWhT/Fk6ov1VgRvDqpT8hkJYjzadGNK0jYK2OC EMEZeFv56fl8f/LeMtO2mNHR3EmplwKJSEcyS7WTxRF2oTtNKyHjkUOdfDaong== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OINXnRYO; dmarc=pass (policy=none) header.from=posteo.net; 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=1685082606; 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=GZ5csqc5LMe3T6xdsqzu/yEeXWnNfcV0BSuJWfIG+YQ=; b=rf+AmokXNVC1cMHAwt4wA3JQoPao8CqKxuwTmpKYnwbOEnwcGgAzxxM7mcIPWIY1q97Lsa e/MV6gHfDO0RK1hB9IoHeKjgJhNakmVQ/ATUFAd31Y65Bi+FcYTuPvvI+nVdJwG4E11zFZ iS9Exe8XMwTRqJP6p6Rq5xTZKDzAIwLiiPY0s3AdhqKg7kjrdlpVxHqZWrt/h4hYER0HIi O67t3M4q080LARo0qgozAW+WMcH9bxhG5jOicu50krESKezTHby2rMis34Yq9/Nx2uoedN HnHCi2ivPQxmQgEcyTExoZq4B6zLUqe9mScxvwRV18cSbQYswNxEAFQNGQJ7sQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OINXnRYO; dmarc=pass (policy=none) header.from=posteo.net; 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.13 X-Spam-Score: -6.13 X-Migadu-Queue-Id: C51FF293B3 X-TUID: jStuVrvQbjoE "Richard H. Stanton" writes: > I often create tables programatically from within an org code block. To m= ake sure I don=E2=80=99t produce multiple copies of the output, I like to e= nclose the results in a drawer. However, the exporter seems to ignore any c= aption 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 expo= rted with caption, the second without. Would it be possible for the exporte= r to keep the caption in the second case as well?=20 > ... > #+caption: Small table > | C1 | C2 | > |----+----| > > #+caption: Small table > :results: > | C1 | C2 | > |----+----| > :end: The second example has a drawer with caption, not a table with caption. Captions in drawers are ignored (or rather it is undefined behaviour). 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 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at