From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eFB8LnOaj2YQvwAAqHPOHw:P1 (envelope-from ) for ; Thu, 11 Jul 2024 08:40:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eFB8LnOaj2YQvwAAqHPOHw (envelope-from ) for ; Thu, 11 Jul 2024 10:40:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ea4EESPF; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720687219; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+BCY+GIEoMcYqKfoD4T5ssei91R8+1gJHlUQgB8VpF8=; b=qWVzOj9q6F/+PGS4+WSIoV9swye9THiQ0jlBuezfS7D2GAbF4e3Zy+UZHJJYn4EPuLnWWQ L3rA56aYuaI9QUFXW463vVohgBEa2nzO3dvwokgvty1b7/ioBvQt/jFvNTPpqgbou1K9q5 kisUEiAVUNSzjoxkeil1onDJPYvj8y0cK8RHWlgb55YBU2h4hhVYQ86Dz8SzMukRp1n3Sq M4Kv5cX6Kgd49ARwd1ihFFPkZDJI4vDbDMd6l219l5IbfOjHETK6M+OLBi5e6wjiTivWnm bLIetSyI2H4q3N7ej82IFGu9028bhlccTemkC4qkauV0ND4fWGcDTA/FM7Egrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720687219; a=rsa-sha256; cv=none; b=jCfJoKO0bySE00Rm8zrByG0smWiFHHE6+1OYITshW5Jd0ls6hQuXb2XgqG8utY9LV91zz1 L4OZf48JHLQEZVM7XvCHjuap6As4XU1kMx61asearbukVNwOjg7nKdRdTMAeJVDegQQxAq owtIWgiZEps4HVgF+AXCXBqXphZ+jIiAb/wPdNLFrymtzPL75Hh92ePMCBRpa3W5QgaWef homzrmMHSuU8iKmAsKidA9DYB543fMnbdIv3pBbcxcNCdOrKnGCt73m89W8+Osu4DOfGpv dkb+qGsB/WxWIUd0Vi9VrAJzMS2bTwRG2/bIbK0GKbUfGrJFfw8OGNPmcBCHPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ea4EESPF; 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" 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 88434742E6 for ; Thu, 11 Jul 2024 10:40:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRpKn-0005Ma-W4; Thu, 11 Jul 2024 04:39:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRpKl-0005BZ-L6 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 04:39:23 -0400 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRpKj-0007mV-2L for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 04:39:23 -0400 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-25e43dda1edso392191fac.0 for ; Thu, 11 Jul 2024 01:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720687157; x=1721291957; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+BCY+GIEoMcYqKfoD4T5ssei91R8+1gJHlUQgB8VpF8=; b=ea4EESPFyON+XsofjXd5+zriqQfIK8cU5Kzd9NhZ+trW+G4cWKEVwhXW+rSwJH5dZ5 vH91enjuNfcXwe4OhdenaqnbvVQ3be/uhi0uJWoYLr28QoJfLOrkukPyop9NcmGTucaR W2TOhs9EKUvE9+Qhib0yn7pO2DrvBHwGECIxd7cZIWl+WIPQNJuqPMQ0Z9T5cOqtlnyl FeyLX8nnM3nW0CSTPi/OWjX8EuVh3l2RiXR73pBVsokZrwGJhYBVX0JLpikXKBmWcVSd nFGsZReUBG93cvOxq1Rfr5Y0ia5MnOM4Zo7nLiNgbupCejgv1qiDBuXae/RAhWy6zsCn Bamg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720687157; x=1721291957; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+BCY+GIEoMcYqKfoD4T5ssei91R8+1gJHlUQgB8VpF8=; b=rJBYMEOfbdGVQwHEHu9l7EVKF+5HW2NsHd2GTSlIvhCE4F4VJa+oM8xi/fXsWrZypo XVQdw0GQlTUYAHWdJsNSQ1nJr2Pq3+Tu4a0uG298Pu45H3yBK1JRgzEfKVif3QuiPcO0 Ibxb5ypYUy+ZQlzYPgfDAJQMUAlvd4l9/UlwG4f8PtYGax8cRJs47Z5F/yDROjTDy+b6 G6qi4y0/s4uFmti3CHFA5GNVF23h5Udre9JOBhxDRnxvt0mLvzic+VUH5S/0OEBGLS4G UG7iiQqLaFTE2NcxRmaOq2eIFuMEVuziVvNkcYdXcQ9aEDNMOwQ2CMWsftxifyCBt5IS +Jlg== X-Gm-Message-State: AOJu0Yx/wtBfAZYoakXChXg29ICYzz4L1/SZdxncLPgpTybjo30jYb0l qM6rD4ywdZUICJzr2Brp1xjMhyh1AVBU55XlxuQzLQjw1fsP9oYXPgTllH+rhC5BGH+6Bopn8aX Qa25JagxI8LAnQRmMSLyM2CKNCKA= X-Google-Smtp-Source: AGHT+IGhsmlyVBduvznIFMiedudN4ZycpkzYzSfInb/Z9YrbxgDDEduT5W+Dsoku5qe2Qj60VN//fg+noRH7ATFWRYU= X-Received: by 2002:a05:6870:8190:b0:250:6f17:fbea with SMTP id 586e51a60fabf-25eaec95a79mr6746206fac.57.1720687157537; Thu, 11 Jul 2024 01:39:17 -0700 (PDT) MIME-Version: 1.0 References: <87jzhu724w.fsf@gmail.com> In-Reply-To: <87jzhu724w.fsf@gmail.com> From: mahmood sheikh Date: Thu, 11 Jul 2024 11:39:06 +0300 Message-ID: Subject: Re: figures not exported properly by ox-latex To: Karthik Chikmagalur Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000cb76cb061cf4b27d" Received-SPF: pass client-ip=2001:4860:4864:20::2b; envelope-from=mahmod.m2015@gmail.com; helo=mail-oa1-x2b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.74 X-Spam-Score: -6.74 X-Migadu-Queue-Id: 88434742E6 X-Migadu-Scanner: mx11.migadu.com X-TUID: P3deXB41cHm9 --000000000000cb76cb061cf4b27d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable it might've been fixed for figures as its been a while, but shouldnt latex environments with #+caption: and #+name: above them be exported as figures? because currently the user has to write \begin{figure} and \end{figure} explicitly which would work but may not be as practical for other ox backends like html i think? perhaps im wrong. On Tue, Jul 9, 2024 at 11:15=E2=80=AFPM Karthik Chikmagalur < karthikchikmagalur@gmail.com> wrote: > > im on tecosaur's dev branch (version 9.7-pre) > > i have the following in an org file: > > ```org > > #+name: fig-switching-circuit-1 > > #+caption: implementation of \(p\) > > [[attachment:circuit.svg]] > > ``` > > it gets turned into this > > ``` > > > \includesvg[width=3D.9\linewidth]{/home/mahmooz/brain/notes/data/9e/5ba2c= e-c383-4396-a2cb-891465f14d51/circuit}\\[0pt] > > ``` > > Cannot reproduce. I get the following: > > \begin{figure}[htbp] > \centering > \includesvg[width=3D.9\linewidth]{/tmp/circuit} > \caption{\label{fig-switching-circuit-1}implementation of \(p\)} > \end{figure} > > Perhaps you have customized the LaTeX export process in some way? Also > note that we don't touch any of the LaTeX generation code in ox-latex > except the parts handling LaTeX preview images. > > Karthik > --000000000000cb76cb061cf4b27d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
it might've been fixed for figures as its been a while= , but shouldnt=C2=A0latex environments with #+caption: and #+name: above th= em be exported as figures? because currently the user has to write \begin{f= igure} and \end{figure} explicitly which would work but may not be as pract= ical for other ox backends like html i think? perhaps im wrong.

On Tue, Jul = 9, 2024 at 11:15=E2=80=AFPM Karthik Chikmagalur <karthikchikmagalur@gmail.com> wrote:
> im on tecosaur= 9;s dev branch (version 9.7-pre)
> i have the following in an org file:
> ```org
> #+name: fig-switching-circuit-1
> #+caption: implementation of \(p\)
> [[attachment:circuit.svg]]
> ```
> it gets turned into this
> ```
> \includesvg[width=3D.9\linewidth]{/home/mahmooz/brain/notes/data/9e/5b= a2ce-c383-4396-a2cb-891465f14d51/circuit}\\[0pt]
> ```

Cannot reproduce.=C2=A0 I get the following:

\begin{figure}[htbp]
\centering
\includesvg[width=3D.9\linewidth]{/tmp/circuit}
\caption{\label{fig-switching-circuit-1}implementation of \(p\)}
\end{figure}

Perhaps you have customized the LaTeX export process in some way?=C2=A0 Als= o
note that we don't touch any of the LaTeX generation code in ox-latex except the parts handling LaTeX preview images.

Karthik
--000000000000cb76cb061cf4b27d--