From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4ea1::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8ERTBDc1y2HdCgEAgWs5BA (envelope-from ) for ; Tue, 28 Dec 2021 17:03:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kL8MOjY1y2HCaQAAG6o9tA (envelope-from ) for ; Tue, 28 Dec 2021 17:03:02 +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 9855D31357 for ; Tue, 28 Dec 2021 17:03:02 +0100 (CET) Received: from localhost ([::1]:44244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2EwG-0006VD-HP for larch@yhetil.org; Tue, 28 Dec 2021 11:03:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2Esh-0003g2-2q for emacs-orgmode@gnu.org; Tue, 28 Dec 2021 10:59:20 -0500 Received: from ciao.gmane.io ([116.202.254.214]:41720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2Esf-0006n2-6h for emacs-orgmode@gnu.org; Tue, 28 Dec 2021 10:59:18 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n2Esb-0002eY-Ra for emacs-orgmode@gnu.org; Tue, 28 Dec 2021 16:59:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Seb Subject: Re: caption width in LateX export Date: Tue, 28 Dec 2021 09:59:04 -0600 Organization: Church of Emacs Message-ID: <877dboafg7.fsf@phoca.sebkatja.org> References: <87lf06q1t9.fsf@phoca.sebkatja.org> <87ilv8dbdw.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:JUqcXeipE6z8KNdyW/8VsKSm7tw= 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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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=1640707382; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bIfKeuAXmZeazAj9X0TbYAzQANCDoscKCmnXGqLnJcY=; b=NIXjCWrF9dtztpxsX+ZUvwgsOxUSevLd8ArsRZY4OeD6ZMjR0TgRuPUAH2rZ6k5/k4nvyN rGAPKjNs/qUiA8D/mxUb9Tm4GSbTBUd8U+R3Kh9D9aw8NYBcAEo2IWZeZUp8YaOnV8AkwV OJzU314QOq70onhwIuFLGM1LlJdc9yxxdVQZCEaIqf24yCFZ2Sz/diQLLbzafl0sGySdQf KtIg/axLEBk6wIkORm50gdT3fSB7FVTIHHZH8uepboLeBznaiplK0dJRI3dr87X0nGXwU1 WfVfRSE9Hs+OaCA1IpFvo5oRJUndlYK613enOz6NPIY0T5vPoPEM/HQ1oQFmAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640707382; a=rsa-sha256; cv=none; b=dgV5J5QaInoN8fRyclo7Ftdj3scHkwEL1PqWYgSbn7GUcRm+a0hTKbBzpQH+dLxcIB7Vya pnJNO4hmn2p3hU7MV6uJqAzivpP8uXj9aWubtpBXCLkdprIHzWRfpJsUY9X4dQMthjcPWi a6Feu1E3kjErQBxYsSGNZM7MhsCnd6iflY9FzVUiUEMCT24jFSaIfPoeBG5+ZiIyRa/d3z YWywK4wf2YWmsBuBW2xyx8EQavitUVKhjJnE95EsAxRU+47eErd/PfU7vLoTKkgx8cv8M9 rQsv5obdqp4NxTP1VdkTCugHaLNeL3ZJtgUiShYygKNH1+dE9TTiNXd0W2iTlQ== 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: 9855D31357 X-Spam-Score: -2.47 X-Migadu-Scanner: scn1.migadu.com X-TUID: n2kmixzEC6oQ On Tue, 28 Dec 2021 14:58:35 +0000, Eric S Fraga wrote: > On Sunday, 26 Dec 2021 at 19:22, Seb wrote: >> Using a special block, as in: > [...] >> fails, as it seems impossible to pass arguments to the special block. > Not true. The following seems to create the LaTeX code you wanted: > #+attr_latex: :options {0.7\textwidth} #+begin_minipage > #+CAPTION: looooooong caption. [[file_path]] > #+end_minipage That is strange, as it actually should not work (it still doesn't for me with your code). However, I had made a mistake in my original post as I meant to have the minipage environment inside the floating figure environment in the output, as in: ---<--------------------cut here---------------start------------------->--- \begin{figure}[htbp] \centering \begin{minipage}{0.5\textwidth} \includegraphics[width=\textwidth]{FILE_PATH} \caption{\label{ORG_LABEL}Lorem ipsum dolor sit amet, consectetuer adipiscing elit.} \end{minipage} \end{figure} ---<--------------------cut here---------------end--------------------->--- which does compile fine. Apologies for the confusion this may have caused. The previous post by Juan Manuel did provide a neat solution, which I'll be tweaking to implement this as I never need captions running across the whole page for figures using much less. -- Seb