From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ePBnNFnB1GCnEwAAgWs5BA (envelope-from ) for ; Thu, 24 Jun 2021 19:31:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sAoLMFnB1GDcBAAAbx9fmQ (envelope-from ) for ; Thu, 24 Jun 2021 17:31:05 +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 4718C18346 for ; Thu, 24 Jun 2021 19:31:05 +0200 (CEST) Received: from localhost ([::1]:37912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwTBv-0001fJ-Dv for larch@yhetil.org; Thu, 24 Jun 2021 13:31:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwTAb-0001d6-0d for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 13:29:41 -0400 Received: from mout.gmx.net ([212.227.17.21]:58241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwTAV-0004uO-0y for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 13:29:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624555772; bh=4d061IDfcSZvKD2FoRegb7tqEvNcssVTs0ibGWtSQ48=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=iWNZqdTnSwhZqLuKqsYaD/SraJC90kdatuEfPDZi2Fj2N617GHrE0d6aF1eO+ncTj 6eiENY+EY7GuK4g3yLi+l4/DNxY2bTQz6NQRVNbeU7Zt8bsU4eoxyf0hi0sGRu661D eOAnjAHH4VXQMleiq5KiwjdmUffDgmiHEyzikKjE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [92.251.40.31] ([92.251.40.31]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Thu, 24 Jun 2021 19:29:32 +0200 MIME-Version: 1.0 Message-ID: From: Christopher Dimech To: Rodrigo Morales Subject: Latex preview for whole buffer with on-off keybinding Content-Type: text/html; charset=UTF-8 Date: Thu, 24 Jun 2021 19:29:32 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Dvs3D+3CSMSHC9eTNobY18KWsG5TdlFEWaexLtz8qVMLpzAlMm8vAt8r+L5qV64o7U6l8 D0x+1mutGOK+KNPKN5CiqRIoX+SXaHasKSSDu8RfQw48CgcFhiKLUFwa/pR+5JT0fFnMu+LkGVoC BsCvZNiEcahzglVCJKaFucHQ0hVq05uqJTz5tjM3SqzKyqkpc7Gn07t8Sha4z/i6UjlN3beA1uhQ 27y46wQSrkiInIVG+nNkXWB1BABhvK/kElc5iTvYximexNDmuCCwYAnL/YuEfTxY8vFkedSpxRTJ ng= X-UI-Out-Filterresults: notjunk:1;V03:K0:Sv/ylFSxV3o=:wmQrtIbymInRJHNJLRwjZV +2HXxjxazj4y2Um45x0dqPUCeWZ9iDLlc2Qs6Ovr4t5kzl68zMHdlzTfEpbkkvBoR9ciIJLFX safwHr4ZKM98Hu5m+P5EDn+7X3xqwW60DwsPhqu6KHa3iWWvpM6ZyYx0P9BfscjmgL/jNCZ9s /ACLv1arao2csshUEBXgakghbal5sBWCCqIgIgzQdNiKHH2d0S+ie66vV+vv42hfK3SH6FE2K 0sz/F6EExoxtL9pgouzUDIhRMkpkxs4lZcpG86VUW/XNSNWfLR2fFiYQZFx/G5wwHo1eBDMic iqOxWZ2BUmTbCk6q8/wkm4XA6ABww/M/O65DA41Qs2xr/vo1v4sF5QOL3hGOb/q9Njdt+kwHH RQO7KcG2QwDh2wVMY4FvHrOYI/4bQct17JlMGdrUdnk3SxQHQW1NAMPPuzwal9UjdjTQaxDHI DPPiOu5q0Zu/3ahYbRYfp/33AAy7f+HngzN2USEdyjpQw9Cb9xx5tMN+NRPQ5DmkF/sQcMZLf yQeRzeLJrO8jBpgwhF+092uIuBM7/++NJJL7UlhuHmoQZoxYscpUh81pB0B+ux8x4CfGo9jvY v21ftAMLks6riB0nyn7lgtBSrEue8L305VL7qllg3RaaARYMzXKBehSNqalcZ9Y9iiy8eBU3k JSbJtM7CRHbi0jg0ev352cqqWkyeEZc3FfcBa8Ot0uZkIrk7Ih8MJpjNBrG2AWQ3pFRtvCwiv byGScxJOnRoNrG4GqEfL2du7NZuiAqCtyRLoDdbeO5Ge4cVnCHYj83oU1CQ+p01mEyBFryA8a ZYqJu/Aa4/JLQHuVTTmRwdmYx7kRQ== Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1624555865; 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=4d061IDfcSZvKD2FoRegb7tqEvNcssVTs0ibGWtSQ48=; b=TjICCTk/UlWqhyonaUO+bylA5QvGiRpp4g22QEngQbtSW0mGGPR897UNG/zkt4naozL/Gy Pd93dq13i8tAe8/k/T3TeIYoH9R+x/waB/UrfuRIjePsD22KWm9s91gz2+C2szP1mN9LbI 7lak72JOZjmBNHm8uxL9mc3b+620E+VSRK62+oWer8B3g019j9676c5EPIrzyKh+TdZPZG oBjHGTbEuf+Pscma6iSdASCPZk932y4MRxTK2+EPp2uSBAk4oSP1JiKABsXTDo/oRUz7Nr gTWImVmEjwX1a8v+uTvsGgeJlBpY8tCVXkJfFkBGKMjVrmfS62sy6KxB3ekYpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624555865; a=rsa-sha256; cv=none; b=XpLBqaYJL3gUkzV4F+RFyM1dfcJ8sql+AqtxsNNsmJu9qwKSe82LidLYl9nklhKuVp4LZL 2+I6PH2u1Z9DpNvCw/0nLlD1uix25q3UpLTCAnufWLE8H9Uv4fc0LBt89skczRPUhpVCzg zvkUhHWwoyTXVDmH+r92teNIPMhwky0hnAL5boxr8j5DGMjCPVrGg9K6j9XdTNerzAIf1v XZagxEpE2cJONZK/pk0wL0aD2UyUTQL37teR+w6NMGZ2entwlIMr7Uh+qN8195LFp0oDkV KjlAZlYtoMDs49O9Ysnb1mX6Qsd5ggfdfpAC6e8M6iKKLpWaGnSclpcqWJxiEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=iWNZqdTn; 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: -1.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=iWNZqdTn; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmx.com (policy=none); 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: 4718C18346 X-Spam-Score: -1.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: LovIetGSNv7g
 
Does not say what ARG is !
 
Could be much better to do "M-x org-latex-preview" to toggle on-off.
 
Sent: Friday, June 25, 2021 at 4:06 AM
From: "Rodrigo Morales" <moralesrodrigo1100@gmail.com>
To: "Christopher Dimech" <dimech@gmx.com>
Cc: "Help Emacs Orgmode" <emacs-orgmode@gnu.org>
Subject: Re: Latex preview for whole buffer with on-off keybinding
Accomplishing this is explained in the docstring of org-latex-preview:

> org-latex-preview is an interactive compiled Lisp function in
> ‘org.el’.
>
> (org-latex-preview &optional ARG)
>
> ...
>
> With a ‘C-u’ prefix argument ARG, clear images for all fragments
> in the current section.
>
> With a ‘C-u C-u’ prefix argument ARG, display image for all
> fragments in the buffer.
>
> With a ‘C-u C-u C-u’ 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 <dimech@gmx.com> 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)