From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mO4DOQGv1GC6cQEAgWs5BA (envelope-from ) for ; Thu, 24 Jun 2021 18:12:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4C68NAGv1GBpTgAA1q6Kng (envelope-from ) for ; Thu, 24 Jun 2021 16:12:49 +0000 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 3480016A17 for ; Thu, 24 Jun 2021 18:12:49 +0200 (CEST) Received: from localhost ([::1]:59956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwRyB-0006Yr-3e for larch@yhetil.org; Thu, 24 Jun 2021 12:12:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwRxo-0006YV-0n for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 12:12:24 -0400 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:39791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwRxk-0005ZM-MU for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 12:12:23 -0400 Received: by mail-io1-xd30.google.com with SMTP id f10so8940350iok.6 for ; Thu, 24 Jun 2021 09:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UJWNjxAjX1Cv1Q9MlaTA2aoKllyIaVHEcSJJkqyCbxo=; b=O5yD6qMb7S0NAlgtZuyjf5ElwLYHEHkaCo86yXZn8eRszgdYdpIXxgRzP1eyMtnJFz AbCaKJVk3/WGdx0uqImnJ5OJa31n7sHK0CVvJw06UMMV+/C7WhRlUbfMIyZASJximmn4 0MtjGamzXTG7NmKyPcoGagjGFaZ21AVU2tHEmp6sda6n9APvIxc/2oaWtXycyGpLWI+A 9ZWwIPdcP7OOS0x4H0Hbbm3SkrFU8SX2Zh/OKUFvKdlc1pSe4ifFMyh3k6y57wdeO7Gr Gb2WdNxysCUR/WilvyxLkyCT6oHE+cBNBTJG30AfrvUTsRXco0u1XD9KxcJBHtDeesR/ SFyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UJWNjxAjX1Cv1Q9MlaTA2aoKllyIaVHEcSJJkqyCbxo=; b=HgfuOtTfUa1/Og2MVoZU62WOS4iOU8xfNOK6JtNSUUI43l05C6l1K2vlcv3y33qahR ZWlms31138Kz+yshv8v2fqFTscsk4lUdT0crtsf2nTeucSYeuyVLNPRtqN2pBOgi5B1R qxDgwco1Az0zaJ7i20FSwWgfN+t9TOu8JppmEbmixVyf5ux+W60GiyJA+ejFrjUQzqJn Yl/cB+EOxL1Wr6/btufydyQZO/zAoTgkbmp1/i6AHM9xEeDxtHQlZE9o/GjOh1mL4waP rBQCOpZuzb+XV2l4FW7+d31ZgqPc83kgDgB+W106HYjsl+p249F9vjEKnFxhpp81kmIE +5EA== X-Gm-Message-State: AOAM5328ZHRFqLdp1xH4KV+OtD4iFM+6jvbJO8+/8fbXvldQunHJDe9n M8YlNegqX2l681a+kdu8LG39kue1eId2miw8ZfE= X-Google-Smtp-Source: ABdhPJzOWdpwdn81dZy2RXc1TcJFOCzuELTL7mSK0rWWqzTE3GMC6pBrKHy9kY0voxGW+lNM+vveSV5daLjsaTykMak= X-Received: by 2002:a6b:7714:: with SMTP id n20mr4601803iom.126.1624551139528; Thu, 24 Jun 2021 09:12:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rodrigo Morales Date: Thu, 24 Jun 2021 11:06:07 -0500 Message-ID: Subject: Re: Latex preview for whole buffer with on-off keybinding To: Christopher Dimech Content-Type: multipart/alternative; boundary="00000000000097550905c5854993" Received-SPF: pass client-ip=2607:f8b0:4864:20::d30; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-io1-xd30.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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Help Emacs Orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624551169; 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=UJWNjxAjX1Cv1Q9MlaTA2aoKllyIaVHEcSJJkqyCbxo=; b=EosI/m8KDi5ud4aST9L8Kn7BkH4dODKcb53gl8mRCPQn4wIiaLVk3x4EGqPvgPADDE0o9g /hgHJkKBbfUQtRO3aGAeiRGh1CYM5lg8qy6DVWiNwqjoNNrhvw+XkODTeZGdhGaSdVvgDP DdeCjltiOe09CRcBvfENPobVWmqyG3SmInys8s/2bcK12Gcn8eM5NcX6Tx6bH+/OAnAh7Y EO9QHN38fO5GgFUtfodbc7NZNkeiIQS6BgKhgKDUpxjeRp2AwDY+5R8wyayi2r7VDqWlJz VY8Rtdt33ktJiJV+s1668BEI9+xTJKQqLZwY3OmYt57cAN2HXjYqP2PwysMJ9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624551169; a=rsa-sha256; cv=none; b=c49MPwZ4WVnwnlYBFt1Jf0lSHvPlEyEguTC++u3x2SZeHGGiVFZBVvDbi1ld8JQxzO+d/e wZoDOl8uTk7yAzs8lzu0Irk8OnONNCDzyxeG4W6ajTajh7VKIQkNwg76h9YOjjfTOpRrEn ommb7KyOsbDeJ3FFWCD/QOB06fa/JnTAxZ5dxg8+KIW7wGIo3S1Xa8OX7gZVPv/zG9E6UJ ije41QDBPJkRIOC/Nyae/dPtoGOSmSxx3vuDlJZpleu3D3+t+/HuO6Q0xwemRB6BoJAlmW 1c2LYtlWumVO5Rk1FDmwpmXZInWcToPhmORGGZNJZdAkyNgeVefuSyi18C4P2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=O5yD6qMb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=O5yD6qMb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3480016A17 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: ykLHXv99sM+G --00000000000097550905c5854993 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Accomplishing this is explained in the docstring of org-latex-preview: > org-latex-preview is an interactive compiled Lisp function in > =E2=80=98org.el=E2=80=99. > > (org-latex-preview &optional ARG) > > ... > > With a =E2=80=98C-u=E2=80=99 prefix argument ARG, clear images for all fr= agments > in the current section. > > With a =E2=80=98C-u C-u=E2=80=99 prefix argument ARG, display image for a= ll > fragments in the buffer. > > With a =E2=80=98C-u C-u C-u=E2=80=99 prefix argument ARG, clear image for= all > fragments in the buffer. Hope that helps. --- Greetings, rdrg109 On Thu, 24 Jun 2021 at 10:45, Christopher Dimech wrote: > Org-mode allows latex-preview. But this applies to each latex > expression independently. Is there a way to have a keybinding > that would turn latex-preview "on" or "off" for the whole buffer? > > This applies only to snippets > C-c C-x C-l (org-latex-preview) > > --00000000000097550905c5854993 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Accomplishing this is explained in the docstring of org-la= tex-preview:

> org-latex-preview is an interactive compiled Lisp = function in
> =E2=80=98org.el=E2=80=99.
>
> (org-latex-p= review &optional ARG)
>
> ...
>
> With a =E2=80= =98C-u=E2=80=99 prefix argument ARG, clear images for all fragments
>= in the current section.
>
> With a =E2=80=98C-u C-u=E2=80=99 = prefix argument ARG, display image for all
> fragments in the buffer.=
>
> With a =E2=80=98C-u C-u C-u=E2=80=99 prefix argument ARG,= clear image for all
> fragments in the buffer.

Hope that help= s.

---
Greetings,
rdrg109

=
On Thu, 24 Jun 2021 at 10:45, Christo= pher Dimech <dimech@gmx.com> wr= ote:
Org-mode al= lows latex-preview.=C2=A0 But this applies to each latex
expression independently.=C2=A0 Is there a way to have a keybinding
that would turn latex-preview "on" or "off" for the who= le buffer?

This applies only to snippets
C-c C-x C-l (org-latex-preview)

--00000000000097550905c5854993--