From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:203:b4db::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UPxkDXy3yWHamQAAgWs5BA (envelope-from ) for ; Mon, 27 Dec 2021 13:54:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wK3UCny3yWGs2gAA9RJhRA (envelope-from ) for ; Mon, 27 Dec 2021 13:54:20 +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 CF0C213190 for ; Mon, 27 Dec 2021 13:54:19 +0100 (CET) Received: from localhost ([::1]:37872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1pW6-0002iS-Uc for larch@yhetil.org; Mon, 27 Dec 2021 07:54:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1pVX-0002iG-AW for emacs-orgmode@gnu.org; Mon, 27 Dec 2021 07:53:43 -0500 Received: from ciao.gmane.io ([116.202.254.214]:57464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1pVV-0006F0-J7 for emacs-orgmode@gnu.org; Mon, 27 Dec 2021 07:53:43 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n1pVT-0002jH-TP for emacs-orgmode@gnu.org; Mon, 27 Dec 2021 13:53:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Sebastian P. Luque Subject: Re: caption width in LateX export Date: Mon, 27 Dec 2021 06:53:10 -0600 Organization: Church of Emacs Message-ID: <87h7aup5u1.fsf@phoca.sebkatja.org> References: <87lf06q1t9.fsf@phoca.sebkatja.org> <874k6utry0.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:yqQ2K+UGLqDEQUPksO6wUzQ7H5I= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, 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.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" 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=1640609659; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=2hUKEnaqlVO4j4KTKrJXalFHUYsKFKZ+pw6DJVURSLQ=; b=onOVaqwfbQmdhsFc9douXUwSE7N7R1stDBIZm7G/r2l1SvudUW1VickAYydOo/K1RDRL4G 0EfG4RW9PZkRqHdxbeUL3h9vyhfAE8gl8tuDjEw4cAn49ovAdVPeBy8ze/j2Dh9vnZVirR NdImNcGHHvQlE10LBPKjdwK2gUQeEVDVJ8Frlx5k+c/tLckMUMV3LoSdSbae69pozKJIAy EUBrkGQDiBOSi8Qb/lVch1lfzMtfVbb5Qw5Tr7SovLzEwcRb+IMjNte70hV1SrX25AoZD9 nzz2x02Pb1G1qFEmSa09smYQmBBfYz6Tew12drB/veFJdIL1dnx6698q+iaE2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640609659; a=rsa-sha256; cv=none; b=PQcPelRG83jYZkiWWOy7EddI5PblygNDOTqFpzsMeheEAT6zd3BGQHnO3Ac0CU3QAyqAGm UIfNfY/CHjr4fcrRXCYu3Nrx+JJhE7AJMmBmt18uwekR0tdsDv9ghFWJCy7/3HCbFYnelk 5UeaPx9pjk4k9x4AcF1hlZMFAIDC4UHJh7/h0f8OtWxd0QdRXCKW1CsZ6lQpkrTWFu/IiU y+5nQCzYgjISl9XHtzYv6FE54ehQgIKio6E5A8g2HoSr1I0S//C5sYPh0htpwrcyCVlk2n 0ryzAjOWHfBZQVxnkGnjkzpnO6POa4JF11PVGWvDcDmoDrfHWYdQzEQSCWFsxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: -2.47 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: CF0C213190 X-Spam-Score: -2.47 X-Migadu-Scanner: scn1.migadu.com X-TUID: fKDmX3nJKOzh On Mon, 27 Dec 2021 07:41:59 +0000, Juan Manuel MacĂ­as wrote: [...] > 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]] Thank you, Juan. Unfortunately, there is a price for this solution as it is now impossible to name and refer to this segment as usual: #+LATEX_HEADER: \usepackage{caption} See [[fig1]]. #+NAME: fig1 #+ATTR_LATEX: :caption \captionsetup{width=0.5\textwidth}\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit} [[file_path]] leads to this (I compile with latexmk): Latexmk: Summary of warnings from last run of *latex: Latex failed to resolve 1 reference(s) -- Seb