From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kMenGSoC+WOJXwAAbAwnHQ (envelope-from ) for ; Fri, 24 Feb 2023 19:30:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sJKoGSoC+WP/VgAAauVa8A (envelope-from ) for ; Fri, 24 Feb 2023 19:30:02 +0100 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 19C268CAE for ; Fri, 24 Feb 2023 19:30:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVcou-0000M8-UA; Fri, 24 Feb 2023 13:29:24 -0500 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 1pVcot-0000Lv-Dr for emacs-orgmode@gnu.org; Fri, 24 Feb 2023 13:29:23 -0500 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVcor-0005xO-IK for emacs-orgmode@gnu.org; Fri, 24 Feb 2023 13:29:22 -0500 Received: by mail-lf1-x12c.google.com with SMTP id s22so255068lfi.9 for ; Fri, 24 Feb 2023 10:29:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=0cYdQEiEsSYLzwZJMfSBvr+XDm88LSIU39m4lqAUoSc=; b=YGniZmZRZHWBVTtBiQVt8r1wqZTdug0zvXGbYKIncNORLvKGnZ060cdtCp1NPhcasT RRcUWFGMu9n4IYk/sOl3XBeRWj3Gw5dlc3s2WRhuvYCizIgTlvlXApbZ33D4ykuLpwCL qqsiHoF445jPSGA2qWIIKkJzGTiU2xi51pUa1lK/grDXDsRBD7nMwwA5H8ElV+jgt7NC pBDHT8raXlevkatuWlhciPEXXOQ/mYgcEBJyJzWp0PGpUaZVLxC8evLz89jNnYK4uEqo nnTiM4GcUow9QacXZkwlW0iXyJZc9CI814N9DbECf+w4dkB9Kn84/sl4Au1GJS5TOQF0 yjhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0cYdQEiEsSYLzwZJMfSBvr+XDm88LSIU39m4lqAUoSc=; b=Vf51dqKNVRGKKR61Db5qD7+J8IrS8oostpPGAL81RGgorqW9E3qdx/wSg37q0O788C 7X7+YmxhtcqJOxN46k45nAzIdIRv8S2jT+X6Kp/Ud0UFQTCqUefQZr86dddKKCLp+T2/ AFETw78DgyTjqe7N3nYo/MdAwL2Zpe05RTY4iad1wbn01dzK+RNMHl3q3PU8C3rxXDQc 0KrnpHg6ymWBH8XQpCMsqih4+NUkLxihIYibwuoaFO9NqrzOsQ9QDHN6gIFpXmuOv+f5 3XZqmeFCSLTj+pnUkenkLZJd6aTOKlZw+YE0unnmnxQZgQlF1af2bK+w13NTsJjnaJv/ RzjQ== X-Gm-Message-State: AO0yUKUHcU//+L+HK/I8tecD6RxOcM7cfNOv0aIHbWJ+9hEyLXv1+nC9 RE3WZzlGr1jvCMf7XmzIK+KjgdX2Yvw= X-Google-Smtp-Source: AK7set/QUQFqBaXZd7kPFXAN5X/RWGIAUwlHYRUshNUWH8rs2NWBc0KYtvgg2iQKTcGQIAL7EKDbIA== X-Received: by 2002:ac2:48bb:0:b0:4a4:68b9:19f9 with SMTP id u27-20020ac248bb000000b004a468b919f9mr5721555lfg.33.1677263359189; Fri, 24 Feb 2023 10:29:19 -0800 (PST) Received: from pluto.localnet (alagny-155-1-32-78.w83-200.abo.wanadoo.fr. [83.200.85.78]) by smtp.gmail.com with ESMTPSA id p17-20020ac246d1000000b004db3bee9a32sm1318571lfo.283.2023.02.24.10.29.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 10:29:18 -0800 (PST) From: chris To: emacs-orgmode@gnu.org Subject: Re: [BUG] org-latex-preview with custom sty file Date: Fri, 24 Feb 2023 19:29:16 +0100 Message-ID: <8227477.NyiUUSuA9g@pluto> In-Reply-To: <87edqfne9t.fsf@tec.tecosaur.net> References: <3485389.iIbC2pHGDl@pluto> <87edqfne9t.fsf@tec.tecosaur.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=inkbottle007@gmail.com; helo=mail-lf1-x12c.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, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677263402; 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=0cYdQEiEsSYLzwZJMfSBvr+XDm88LSIU39m4lqAUoSc=; b=Ch2VYs13o7uLjHIVHgOnG1sJs3XwKNw9UA/k7lrodgYsf4bSskHGhM5EcoRe538oGUNpoc gp8a8ujVR0e8tqO/YcOz20aoxFNWWclXhKdSOtkHNojUll2WQl4bTmWkLkX8TCcDbI6/l4 MC4bXcGL53xwfdg5bF5S6+dgoSYDVwW8M9t8g2ghA2hYh/ykCKlrHu9XcZ90YBSu8T54Mt ChrREAKi2xk9h1ZjaVt9ujSk+tr45H40XoR/gSKBmZWUKADMRD+6aDuoOybv0IIEwJ6aGp Wevv+gejB0fFlcBDRyRszPuvoHM2s4XoUoyKibqeCw/+OqraB8MkBlRMnWMipg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YGniZmZR; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677263402; a=rsa-sha256; cv=none; b=oEgz6B1YRI0ZRS3WLl9kiY9MtxIEk/nJJ8mS3RwLsf8qZiKzWVMrjpLkE8D7WuE6IqQOEb IpBO0/FuMPWWLohDrmkyFfBvEeSPZ/3TE+UgTBQV54sei3ZTytRCke1f8+bUPF08q940Om CR9/GklhQiX5obaq4eYONVOI/rPYHo6dy4eKkVjmmE2qWjWdbGmNYz08p/kzELFg/kSJO6 i77KvmZSKfH1ExvbYtksia2Q2++fYm0svX4Xn3hxye1NhfshY+B+sfYJUnh7+vpJyMoZ9z ZNBNz0AWK/enHW5rR6ag697uwqrqdyv65RpptaYe2yMWXKS6UiPZzj50XkpeEw== X-Spam-Score: -4.40 X-Migadu-Queue-Id: 19C268CAE Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YGniZmZR; 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"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.40 X-TUID: uDOd8TnGr6fs On Friday, 24 February 2023 18:49:10 CET Timothy wrote: > Hi Chris, >=20 > > Note: I haven=E2=80=99t been able to compute the return value of the ha= sh function for > > my latex expression, because I can=E2=80=99t figure out what the argume= nts actually are, > > specifically `forbuffer`, `fg` and `bg`, but the above reasoning seems = sound. > > Note: Removing specifically the images looking like the image associate= d with > > the latex expression that refuses to be regenerated, using some file ma= nager, > > and then invoking `org-latex-preview`, does the trick, but it=E2=80=99s= impractical. >=20 > Yea, `org-format-latex' is a bit of a nightmare. I=E2=80=99ve got a WIP o= verhaul of the > entire LaTeX preview system which is currently 95% of the way done. The n= ew > system will still not notice changes in package source files, but it will= be > easy to clear the cache and regenerate. There is that, which is supposed to be included in org-mode 9.7: https://github.com/karthink/org-preview? I suppose for image regeneration it needs user manual intervention, otherwi= se it's the same to do `rm ltximg/*`. If I were able to compute the output of the hash function I could have deci= ded which image to selectively remove. >=20 > All the best, > Timothy >=20 >=20