From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SN2sCvbiUWK6QQAAgWs5BA (envelope-from ) for ; Sat, 09 Apr 2022 21:48:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +Ld6B/biUWJwHwEAauVa8A (envelope-from ) for ; Sat, 09 Apr 2022 21:48:06 +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 946461938F for ; Sat, 9 Apr 2022 21:48:05 +0200 (CEST) Received: from localhost ([::1]:51514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndH40-00078k-2X for larch@yhetil.org; Sat, 09 Apr 2022 15:48:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndH2r-00078W-HG for emacs-orgmode@gnu.org; Sat, 09 Apr 2022 15:46:53 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:37456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndH2q-0004UQ-3c for emacs-orgmode@gnu.org; Sat, 09 Apr 2022 15:46:53 -0400 Received: by mail-pf1-x42e.google.com with SMTP id bo5so11271218pfb.4 for ; Sat, 09 Apr 2022 12:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=qnL9GFwp4GIg9+GDdq40WlWeXqkEg7VsNLntaxq8uIE=; b=NV95dGE4wwIWm8TCybTQTlePrdidWfjJZo7xndlpVq7sTaKWxpfbsbM/8IO/eitHoX obtiewP4wVFiLnbCbpHHVPhFr+nN9UucgNyCAhbRlT22ZThc+SuSQU+WI7j/uScWsjdq cUj8/hlhEzkUqssh37cqwSUeOk+PHx75KUqxGWcVZeG7Z2B+LDfoVf9d/EndRBLxd5/7 l0HK3C3f0KEdVXnDj4vFXn7WVDDpyI2pHBgU3o2wo1xbdpGPcUhezcgttCUxGoD+839T 4Fr5/3EweaY8eN2N5+gic389RZYbcGVLtfhri96YU6qA4e/wYECyH9gBhbF4iBykgqur a97g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=qnL9GFwp4GIg9+GDdq40WlWeXqkEg7VsNLntaxq8uIE=; b=cRWePCS76p38AV0kk8Gguzl9YA2e1gZifMqmicg/l5y0GmNChb3YijQWlOwDE4NPnG /Q66eduDA2UcLsSEG8rCCoSOYnZfgqMRcW35t+Q0XU+FGdYSzmj4c+Yb1VMgEaYt0Wz0 Bk5NjrFIGw1A6v9qOtDc41wSXeqrHv5rg8S8g78V6wVR00G/7zq310qHTq5ss5CpDBzc HyfoyG8a93C/FNNcpy/x2Z7iRJ0giUAEkbjyHUOiWvUUWGFtstGV8BhSfiGYlCibtCNj qI2SGhb5f5vKvAanhINtmCdn3Q/Q3dK2RxS7SIb0z6jfF9hk0enJgN53TLh3QfQclA5b 1kwA== X-Gm-Message-State: AOAM533jDGgS6VZAZ2GGsQEwuRB/LJ06cy9+xsFWIthV1Dtzrh5oVAxx T+dT+vv3ypXjYqfWAEt4fmVtyJJ4pp4= X-Google-Smtp-Source: ABdhPJwiDPl/xLhTJlyEvdScuy303pBews9v+BFLKtqJ8c6fy/Uqo/EJoeAK4eHhvKPboa3PFHjarQ== X-Received: by 2002:a63:cf4d:0:b0:399:40fc:addf with SMTP id b13-20020a63cf4d000000b0039940fcaddfmr20423876pgj.416.1649533609883; Sat, 09 Apr 2022 12:46:49 -0700 (PDT) Received: from [192.168.1.124] (c-71-59-145-34.hsd1.or.comcast.net. [71.59.145.34]) by smtp.gmail.com with ESMTPSA id g17-20020a62e311000000b00505b16fed90sm173955pfh.37.2022.04.09.12.46.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Apr 2022 12:46:48 -0700 (PDT) Message-ID: Date: Sat, 9 Apr 2022 12:46:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Putting LaTeX inside a figure environment on export Content-Language: en-US To: emacs-orgmode@gnu.org References: From: Jason Ross In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=jasonross1024@gmail.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1649533685; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qnL9GFwp4GIg9+GDdq40WlWeXqkEg7VsNLntaxq8uIE=; b=dDsqHwu2csjgKTB11Ij+8Zrntr6Yvjr7XYlckn53qxEZNNA9k1ePqk/aPpBI42bn+tm9PF N3aE6JMKFReIZq+787ne46YxfD4pEYKuTMldAbRyTvCohEEUiuRZWokGMYlJ4SVFQED56L yEQ8DjkpggMwp5I3lnZJVeIHJkD1RNN9aO1t1rNhG5DZEgJ4dtVeq706Rr3mIziWUgcM8N hPIHA3xFXJ+/Zak+MqIo/GPQkrTXdGLTu40EfKO/NSvGAxXTmDY6bAX4r+FI8+Y5u1aoej DBjIeTdjcNMgM+9d+jek8HE6bctLYIcqTBvhnpS9Cu6u85epbO/REqRdon8NJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649533685; a=rsa-sha256; cv=none; b=JDZ9wz9/Igow49SAQmvNa+pPs8FAxe6p6jZg1hpa0lnlSg2Cf1rg0+MZWDUAmzgXYRTT/i CSZQzUMO7wkjNB7pBRw68g27+IgF5m/ElggPD8gkJATiKsg1/ZCbh67ATh/WGU7HbgCOuV rCL81QkQQFD6sTA1tTQnswu3fSyZRHKPrhP4Nzka3WNl3ikL+KYvdb4ZNNovcSFzcU3JQE xasBKFBprgRyvLuHZHOD0iy5VnGtjM2AAzj6UXzDZOKNCj50m7OqsW48nJ1LlXvhJ0SbxN pIjmTKKbR1aVNTIzO+3RMHaeXLjn7Fca/056fk6Nli9Ux/205hwI2ZXabkc2VA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NV95dGE4; dmarc=pass (policy=none) header.from=gmail.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: -9.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NV95dGE4; dmarc=pass (policy=none) header.from=gmail.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: 946461938F X-Spam-Score: -9.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: NzQD3RMDJ0M/ 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}