From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gIuJKWzgUWK8JQAAgWs5BA (envelope-from ) for ; Sat, 09 Apr 2022 21:37:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qODmJmzgUWLjXQAA9RJhRA (envelope-from ) for ; Sat, 09 Apr 2022 21:37:16 +0200 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 B0D6139AA5 for ; Sat, 9 Apr 2022 21:37:15 +0200 (CEST) Received: from localhost ([::1]:47584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndGtW-0003ju-Tu for larch@yhetil.org; Sat, 09 Apr 2022 15:37:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndGt6-0003jT-4I for emacs-orgmode@gnu.org; Sat, 09 Apr 2022 15:36:48 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:58329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndGt4-0003Bn-8d for emacs-orgmode@gnu.org; Sat, 09 Apr 2022 15:36:47 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 4D3CE1145D6 for ; Sat, 9 Apr 2022 15:36:44 -0400 (EDT) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:mime-version:content-type:content-id; s= sasl; bh=Lq+TdrKeK3hQgVACudMRUP3H1MQULWyOJRz9NkIUoTk=; b=dVojZaI UqCkwCle4YxW38+iK2fl3XT+t+yITz83T9Tnh0PZWshpNzLuihH9D4fTVkUgWxYt bZIt2yiCpPkevPoNiarqi6ZbQ3quiOP9K90Vd3UEbQxRhUnYsSexY4MvIZg4OB8d d9wlLvhxWqW+JEsoEGVffOrdqnkqfpNCtAzA= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 3187C1145D4 for ; Sat, 9 Apr 2022 15:36:44 -0400 (EDT) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 9D5191145D3 for ; Sat, 9 Apr 2022 15:36:43 -0400 (EDT) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 02150120EA9; Sat, 9 Apr 2022 15:36:42 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id EF6AE120E29 for ; Sat, 9 Apr 2022 15:36:42 -0400 (EDT) Date: Sat, 9 Apr 2022 15:36:42 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: emacs-orgmode@gnu.org Subject: Putting LaTeX inside a figure environment on export Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII; format=flowed Content-ID: X-Pobox-Relay-ID: 62C9F802-B83C-11EC-BEC4-CB998F0A682E-56320186!pb-smtp2.pobox.com Received-SPF: pass client-ip=64.147.108.71; envelope-from=wtd@pobox.com; helo=pb-smtp2.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649533036; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qdur+uWDp+a6ErWGh/jP5AfUNSogvDwNy7kWBIcm4sQ=; b=dxoBrRrdfsPH8maGDYRT3KgwgvsJIFfTkHcAVFHc+CcuTod/3xh8ouBnNG88M322X6aLzK fTIzPzq5BWuRrhQQarDIOwfXWTfpdLz/swh41TiSeyVLq2YauwlauRZECc9SAHoKyJ1uyn bkrJuhSlhsGBP8iBqYL3MI3mnhAYtJHsWWbFuB7XvdU82rWphQ7YQjJ9tNgoTRHIGFlkhf wCUASME7aJh3QQCxP7kEjrP+jQ1ag5to9B9dHx6m4m+wlVf9PJyBJKwfncZY062bPNKL/n cHXHRT1Ys7hTHwkpPHa2kM823RpF1nV4B9vgcpOASeTE+Qtz/XxC5KN5MP16iQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649533036; a=rsa-sha256; cv=none; b=rWuo0atCo09TERyjQ1HjgyhBSk9U6lbvIC7cAUYk3z8StkQEIyxC8f30iP89sW109mTekx WpHzJSRHnqQY1iXbTaMbw1hCs/MphXgc6dgE13tJvch4qykLcSJOXAqLjdXHmnJoJ8U6AK yxiGKlafB23m+p/XCs6CSWGfDL0InbNkcdnX5wRWBTF+V5SfJ5p5baZqzLYDUczM4uoRyO hoE0bLX6teMl5SDoTjvOS58wk0FWfRdrFiRFHxoxiYu3gv7KsmbOgAduH5+QK0CmRH6Y3X jkCk5k8SL5ffBr0x/GuVfHbY48dn6rmZ4whpakGGOEd+333y4L/A6Xj2n8+xRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b="dVojZaI "; dmarc=pass (policy=none) header.from=pobox.com; 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: -5.87 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b="dVojZaI "; dmarc=pass (policy=none) header.from=pobox.com; 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: B0D6139AA5 X-Spam-Score: -5.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: Bea7sRbnaMrE Is there a way to get a line of LaTeX inside a figure environment when exporting from Org? I've got a problem making an index of photographs where some of the photos are large and get floated to a different page, and the page number in the index is incorrect. For example, let's say I have: #+caption: This is a large tree [[file:large_tree.jpg]] When exported to LaTeX, this turns into: \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{large_tree.jpg} \caption{This is a large tree} \end{figure} 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. If it's outside, then the index will point to the page where that line sits in the text, if you get what I mean. If the figure would be in the middle of page 15 but is so big it gets floated to page 16, then the index will say 15 (where the index command is), not 16 (where the image is). Now that I've written this out I see I could make my own macro to do all this (I'd pass in filename, caption, and indexing information, and generate that LaTeX figure above with the index line inside), but is there a way built in to Org to insert LaTeX like this when exporting? From what I see in the manual there isn't, one can only set attributes, not add a custom line, but I thought I'd ask. Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada