From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KCkyNstllGBRZQEAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 23:55:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QITSMctllGDxHQAAB5/wlQ (envelope-from ) for ; Thu, 06 May 2021 21:55:23 +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 5D7969028 for ; Thu, 6 May 2021 23:55:23 +0200 (CEST) Received: from localhost ([::1]:45382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lelxq-0004Ff-Fy for larch@yhetil.org; Thu, 06 May 2021 17:55:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lelwu-00043l-Qf for emacs-orgmode@gnu.org; Thu, 06 May 2021 17:54:27 -0400 Received: from mout.gmx.net ([212.227.17.22]:42837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lelws-0005zY-Qd for emacs-orgmode@gnu.org; Thu, 06 May 2021 17:54:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620338057; bh=W43fo5kn83G1T7re11mcEx5sJ1/GJz5rrYRk2p6VZkY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=I4ZmxV1DCb6CW1p5K1wqWY1w8usmNlKfl0qLj/vLUACIdMxBA9f3/5xLgbQMq8ZZW Ut4cogJUpuJ5bkDNANQJhrpT7rLxrrMEWuqmb/VIrCGcyuOqOZYpAFE1pulZILIg0E zFl2aqdzKrKforU7du79Tg2KGtUpEW3jX2o3wG7k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs12.server.lan [172.19.170.180]) (via HTTP); Thu, 6 May 2021 23:54:17 +0200 MIME-Version: 1.0 Message-ID: From: Christopher Dimech To: ccberry@health.ucsd.edu Subject: Re: displaying equations with ob-latex Content-Type: text/plain; charset=UTF-8 Date: Thu, 6 May 2021 23:54:17 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <8E0D781F-7947-4616-BA73-1B6F7C45442A@health.ucsd.edu> References: <8E0D781F-7947-4616-BA73-1B6F7C45442A@health.ucsd.edu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:/eT6am5GjQJVPU0ZMxRxo0P7+cjmL8o06qrcSsO/trOhMhPctcB21rQcDrW6VYxo+Jcu9 0qcVZ7uI302VcD86MRa/Rc8zvyayuLIkOE4fPWWd7J3cwi2jD4M/HXsgiT/F0AQxKq7ovZIBaUAK y+De/e1biCAKP+M4ZebBhWoM64hdlExPdQPSQM4QHdqDUokbPorTqZYZNKsURv4vqyiRia5hO9R8 uKh9Lo8SG0uXUswF2gIQcDhDDprvJOjjNN+uLsU8WrCTDNxvCxJKbThS8hiyYnaCV1AKmm6RbmKB /Q= X-UI-Out-Filterresults: notjunk:1;V03:K0:UagZ841f2/k=:HdXKNViShTlwAyEeYZlDGC lTsjnamNj92Xphvtzsqrz+q0rxmYJ+R/VCi/VHuDCxcicnbGWuu0kMIEUi7GfuVyKtgzpp0p+ iQv7yBeXvBSCJ/OwaNXa+OqiSniHEsc1cttIKAnxDipNZZbQ522Dyc0MonLeSBlWgAncQPhdy Zkglz0JJ5M8s6lM92Hh+VuU+GbzrY83we1rKjucS30u91F5s9o+a/ZEM6wImx9YdBSq8Avdcm LsOzjGMjk+/Ox1FsvOWrPfhK8lIsc6jgIaUIPY4ArD9M0fIsGTPKMg5K4uoeJV2DPSdec3Rzf FdQqm/6p/d+Xahy2N2gniz73RzNullH5NNzvdL6epuNSs6rXMO/SG4XFEcvRnpbl7fD1maW2S MkgWSzqN0xs6G1q41O6G1i6+2xoBzcvuNToR8xnft1Y4aXNIa+eZv+cWJhpwHpk2ovo4Njh84 o61oou7K8J6f5tIqfrKjvOL8GWnSHrYZ/IXU9s1vViD9LMbYmRBE5ZHl7XhvynjPRI3HNlatP /h5U4Vtq3Z/u09GZI3jnBkq/OS9EVJnCibLetw49s86ihSKd1YLr/3GeReY22KVp1sA5cSEt2 u3vVgLS6VZfQej1dY49P97uGX9rKHCVyc64BWAQLCFHtkvygXRtZ6hIIEBtNcK2McS//uLv92 tfjhunnVOxLXPVCDSw/VoIL4aaPZNk5goECGIiyGjE42KLSI9gxE1tTDXJeY6E2LN+gfyBTMK B1hxCzmdMYEDdOpyFfs0QgM397Y9sMxpsX8zm1R+n0pV1KAznQNNnoQPjxZd1abweoVSMnIql t2e24H6vGfLM5a48bd8fVzr+B13QGQVA1n6Qf/IEdenpjwzqBwv4hGYN2yvOA1OWvM2fuBDV1 c7XW44SRM/lFCikmrncgXExlODDCKVQClPhjGEJtCWGYWpr//SlRSmqHAt1rLk Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, 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=1620338123; 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: 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=09UaxlqjGSTl+mkhzhJYwkCJ+G7vrsjtP3Ftb9ks4j8=; b=kdy0pxNn7zRpkITfGcH6vykUzUH3n/w3vfm2crGV5oBjF3TFvQr00sr+MmyflS31tEBDLS se4ORsumSXnCrhxqbVCrH0kE6oA2t5BiUbFXLwWuNsweDlI/rlUSfG8bavIoRTtoxX2Dv2 Fz5hphnHFfEGPIiDn6A1zDvUhDGXtT47FFksf0nRWaXfvgxscyBRH+lZX6bNYvKR2UoiN6 zi/QNYoy8jdbaxQ4f+ar0tTBHXDTe5KYHxkA3xjj3hiMV6mqspdotdmx27bki8dHWrS1d9 YmQzQpzyJT6m2vScH4grlBVkPKKs4NCfkIGqksqJQVy1RepEcb1wPDM1HJjSGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620338123; a=rsa-sha256; cv=none; b=m3TCuzNjs5XnZckDNFliCxRgmlC7ICyuBiQ5bqj4VLkg/DkHf/F2fRONgDOZUUgz27forI j5VpGrDpPAlpEGCXp9eFv88aVvDc3bTInDcBHedNE1Alh3TQaviJAeCezZQuEudNvn7w6/ VwXnzDXzx9/PGzvykjm0mHR7CYuT6qfkeIa+ctdCthTXfyQ5Seln7yOOgDtBrd5TmbsLDe DrJnUWWe3JV+cQAoGZOLMVSFuDwsP+G5maCWjXya5rG/OoBSt9mzgSgcEtRK+pxjdEVJDK 6tWbodhF5Jn6S77QFHvpcsgFoUiKtbDX7zt+6o8c6ZG8bso+RfJbVRNVToYRBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=I4ZmxV1D; 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-Spam-Score: -0.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=I4ZmxV1D; 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: 5D7969028 X-Spam-Score: -0.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: PyPcP3Uh9IxD It would please many users if ob-latex was made to behave like other code = blocks. One can parse and show equations in emacs using mathjax as has been recent= ly implemented in texinfo using @display. Regards Christopher > Sent: Friday, May 07, 2021 at 6:14 AM > From: "Berry, Charles via General discussions about Org-mode." > To: "michael-franzese@gmx.com" > Cc: "Help Emacs Orgmode" > Subject: Re: displaying equations with ob-latex > > > > > On May 6, 2021, at 12:50 AM, michael-franzese@gmx.com wrote: > > > > > > I am trying to use ob-latex but equations are not being displayed in e= macs > > when I try to execute with "C-c C-c". > > Right. This is because `:results latex replace' is the default for latex= src blocks and the leads to wrapping everything in a latex export block. > > The context inside that block is `export-block' - i.e. it is not a `grea= ter-element' and cannot contain other elements. AFAIK, there is not previ= ewer for export blocks - latex or otherwise. > > The context for an equation inside a greater-element is latex-fragment. = And those can be rendered via `org-latex-preview'. > > If you want to render equations for previewing, you could put them into = a drawer that is not repeated in the export. > > To make this work, you probably want something like this > > #+begin_src org > > ,#+name: eqn1 > ,#+begin_src latex :exports none :results drawer > \(y =3D x\beta + \epsilon\) > ,#+end_src > > > Here is the equation for export: > > ,#+call: eqn1() :results latex > > #+end_src > > Evaluating the latex src block (C-c C-c) will create a `results' drawer = line this: > > #+RESULTS: eqn1 > :results: > \(y =3D x\beta + \epsilon\) > :end: > > but the `:exports none' will strip that out on export. The call line wil= l create this on export: > > #+RESULTS: > #+begin_export latex > \(y =3D x\beta + \epsilon\) > #+end_export > > > HTH, > > Chuck > > > > > =2D-------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy