From: Seb <spluque@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: caption width in LateX export
Date: Tue, 28 Dec 2021 09:59:04 -0600 [thread overview]
Message-ID: <877dboafg7.fsf@phoca.sebkatja.org> (raw)
In-Reply-To: 87ilv8dbdw.fsf@ucl.ac.uk
On Tue, 28 Dec 2021 14:58:35 +0000,
Eric S Fraga <e.fraga@ucl.ac.uk> 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
next prev parent reply other threads:[~2021-12-28 16:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-27 1:22 caption width in LateX export Seb
2021-12-27 7:41 ` Juan Manuel Macías
2021-12-27 9:09 ` Juan Manuel Macías
2021-12-27 12:53 ` Sebastian P. Luque
2021-12-27 13:28 ` Juan Manuel Macías
2021-12-27 17:16 ` Sebastian P. Luque
2021-12-27 19:28 ` Juan Manuel Macías
2021-12-28 14:58 ` Eric S Fraga
2021-12-28 15:59 ` Seb [this message]
2021-12-28 16:26 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dboafg7.fsf@phoca.sebkatja.org \
--to=spluque@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).