From: Jason Ross <jasonross1024@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Putting LaTeX inside a figure environment on export
Date: Sat, 9 Apr 2022 12:46:47 -0700 [thread overview]
Message-ID: <a6d8b69e-b7d4-c412-7a29-fa8a2f9d49b8@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2204091450550.66944@shell3.miskatonic.org>
On 4/9/22 12:36, William Denton wrote:
> Is there a way to get a line of LaTeX inside a figure environment when
> exporting from Org?
> For example, let's say I have:
>
> #+caption: This is a large tree
> [[file:large_tree.jpg]]
>
> I want to use this to generate an entry in an index:
>
> \index[photos]{Tree}
>
> Is there a way to get that *inside* the figure environment? If it is,
> then the page number is correct.
Does the following work?
#+caption: This is a large tree @@latex:\index[photos]{Tree}@@
[[file:large_tree.jpg]]
Resulting LaTeX:
\begin{figure}[htbp]
\centering
\includegraphics[width=.9\linewidth]{large_tree.jpg}
\caption{This is a large tree \index[photos]{Tree}}
\end{figure}
\end{document}
next prev parent reply other threads:[~2022-04-09 19:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-09 19:36 Putting LaTeX inside a figure environment on export William Denton
2022-04-09 19:46 ` Jason Ross [this message]
2022-04-09 20:04 ` William Denton
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=a6d8b69e-b7d4-c412-7a29-fa8a2f9d49b8@gmail.com \
--to=jasonross1024@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).