From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oPXjNY1uyWHVWwEAgWs5BA (envelope-from ) for ; Mon, 27 Dec 2021 08:43:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uKrsMo1uyWGEywAAauVa8A (envelope-from ) for ; Mon, 27 Dec 2021 08:43:09 +0100 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 6CE2917D37 for ; Mon, 27 Dec 2021 08:43:09 +0100 (CET) Received: from localhost ([::1]:33976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1key-0008DW-Eq for larch@yhetil.org; Mon, 27 Dec 2021 02:43:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1ke5-0008DG-5u for emacs-orgmode@gnu.org; Mon, 27 Dec 2021 02:42:16 -0500 Received: from mout02.posteo.de ([185.67.36.66]:55937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1ke2-00014d-SN for emacs-orgmode@gnu.org; Mon, 27 Dec 2021 02:42:12 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 80555240101 for ; Mon, 27 Dec 2021 08:42:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1640590922; bh=WUr/wZAdPWV4OlK5g/qr3jLGWY0wgUwYb+6OD7wcuVw=; h=From:To:Cc:Subject:Date:From; b=mvVEveuDsJ6VEXUFGpdovuO/Xsj5210arul8bvcOjSi0QFGV7MCnBdZzSd2WNuqMH aIK+Ey1uAj7b20weIZPx62QKnGqwkfMOfjiNFhDxFDSL1GalPQq3f5S7dqg97bHs7Y QyJgWFU9miv7d45++/E6R51LXo0TI2GaKxjGHhftbOcopOGJMra+lnwFrUoxPKD11C dEiaW7ZXLLtCaGs3dzqKZ7i/HU/QGzMyiQ9969WtGFV64/dE4C7KPUUZfy+u3Mdja6 xesAOEGjlWkEgYBcPfVwdF9nfyWNtvcGnZ28Qi2dlE87ZUyT+73b5TdmJ/mv8XPoVr 7Pg+ZrLut72+g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JMqPP5gWKz6tmb; Mon, 27 Dec 2021 08:42:01 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Seb Subject: Re: caption width in LateX export References: <87lf06q1t9.fsf@phoca.sebkatja.org> Date: Mon, 27 Dec 2021 07:41:59 +0000 In-Reply-To: <87lf06q1t9.fsf@phoca.sebkatja.org> (Seb's message of "Sun, 26 Dec 2021 19:22:26 -0600") Message-ID: <874k6utry0.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640590989; 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=qm94rk38FhHsGNv6p4PXZwf1FmUeE/3b1uMm79essJE=; b=kexKWyVNKY9Mna++YAOSGv3FOhlrhoWP6Dr17EDPOg2yJ622utLFtouZFvl1nq5owhTqBO 4fB0FKVdofXH8V0DepuwiOUdKLvTg7MIY4HaiTmggtCcOkbyTKhO+Va8J7vsD1omzx3txR D6j6PWT9Kku/bHGEolFBmMdMwauIyQSZHEFoFxbuc9Mgkws839KBAOC8VzjVOOUMH0dktl FV7xwziVOLOzqV68jQ8GbEglar8zN1Hma8l+6awqY3aYQ7ED3fXZSjXRVUbZts59QMoJQf X5x6VykAePvxuSXg9/ZvJ6+IFKqRN38fA+fkxCevMS5/jiZyLC4QnPNMD/ge4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640590989; a=rsa-sha256; cv=none; b=b5ru1boorTSo0RE0TBviMW/AkPValOchUwKkjCenHcu7M7VH8xtxSb7PKbYzWSco1JCUxI wDMMvcAk0hkIs1CHmF1eS6ZSWS3wD+ZR2SuSVf4bwvXaR4TD51fTjBJd9EDNe8EYZA1nyp 8MdvPiAWKUzH8qjcvyBr5qlmtygBmOnf5tSXaO5fJRX1C8OL5nKIATeXJBzQ/l/ztYBgj1 pbYInpfnWbaadC95RnKnstIZUXZkldr6nVLhO16AMof81MpnvHFiYCFr/u1pjrTK1oAreG p33v0wYcvHaecgYn6hDCL5ZFCVoHyj94N8NHwpVPKw+7JWKsPinCvqCneTITww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mvVEveuD; 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: -9.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mvVEveuD; 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-Queue-Id: 6CE2917D37 X-Spam-Score: -9.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: f4Mj+rMptdS9 Hi Seb Seb writes: > When exporting to LaTeX, is there a mechanism to make the figure > captions as wide as the figure? In pure LaTeX, this can be easily > accomplished by placing the figure inside a minipage environment. > Using a special block, as in: > > \begin{minipage}{0.7\textwidth} > > #+CAPTION: looooooong caption. > [[file_path]] > > \end{minipage} > > fails, as it seems impossible to pass arguments to the special block. > Any tips welcome. If you use the caption package (https://www.ctan.org/pkg/caption), you can indicate in each figure the width of the caption. In this case, you would have to introduce the code using raw latex via the `:caption' property: #+LaTeX_Header: \usepackage{caption} #+ATTR_LaTeX: :caption \captionsetup{width=.3\linewidth}\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit} #+ATTR_LaTeX: :width .3\linewidth [[file_path]] Best regards, Juan Manuel