From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GCkFMjxplGCRcAEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 00:10:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CPGNLTxplGBqVAAAbx9fmQ (envelope-from ) for ; Thu, 06 May 2021 22:10:04 +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 516728917 for ; Fri, 7 May 2021 00:10:04 +0200 (CEST) Received: from localhost ([::1]:53472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lemC3-0000DL-AX for larch@yhetil.org; Thu, 06 May 2021 18:10:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lemBW-0000D5-EO for emacs-orgmode@gnu.org; Thu, 06 May 2021 18:09:30 -0400 Received: from mout.gmx.net ([212.227.15.15]:50489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lemAx-000549-8t for emacs-orgmode@gnu.org; Thu, 06 May 2021 18:09:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620338930; bh=f+hPgzwgE6lFLhD3pZTzIp+YxqrCCMsmdAtY0eSXFb4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=k6T9wDd37GauIKMXj3LJbYnvgfMLSOWEYEad1zhH05WU3uE0qBg7HZ3jNdtyBW+Eu ozIc2zjKY2ciRcmtOZNaLD1DKPeqxUSEXC2gOuQ9l2Knsqeb5Ntr/RCtnvCcVvkAX6 cqTeQ56iK9jp4J5NI+9eQrDQ0EtNQqK84Nd96xU0= 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); Fri, 7 May 2021 00:08:50 +0200 MIME-Version: 1.0 Message-ID: From: michael-franzese@gmx.com To: ccberry@health.ucsd.edu Subject: Re: displaying equations with ob-latex Content-Type: text/plain; charset=UTF-8 Date: Fri, 7 May 2021 00:08:50 +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:rtjsXcvCs4AjXk/ZzRQyeneSnrVJkspSQwUrcXzhTJwfROgrEDTSkB5uzUKLJJ+ip1Zwb d+xe5lwpekti+U4K8w61DxLWAzvlPl6NlkB4qo5NvJxLKb3rQ6RXMirqaE9VcAkPfryC8tl7fF0D MidWHoGV7pe1sXGTRgfZHQR/O3IQo3M9fkP0jUBSyAZRTsl6qjkiLQa6xFnPYzT9AoUXmR7scKha 8m+sFcxws6MhVIeM0NSw0kqGCtEcd4BuxSctORXMjEextyM0+DemtIy2ZLjPvDEnEuj9bgMKQ8CO AY= X-UI-Out-Filterresults: notjunk:1;V03:K0:xUA5cct91yQ=:yfAVMi0Z7o5miB/HXC1+ib rEl53gSkA+VCrj+7FXNf2x2BqTQ6Sk+oES4MAC/IsSWZpPi3fq+nTsaugH1JRdRCo46MKFLPE 3Wb3wMkV0N4fA5MaFAqd8hGieND6SviAh1wJ8vNQKkhb8H7lgljciuz8/tdFzFmA1PPczYuE8 DjK3FtoWho7qZceIqFPpG9zdV66QVrN0wIfR/LZ28finE3GGxFKu7XGqtO3St7o4UIDJzce1+ LZrRbF0P+ppbGqhn9Xh0E81DVedFMDIzf1kbqGkUCMNlwG+KREu/Vd2Wr+74z66HiHgIsSj/6 39k8tDkBZJcXOD77M3otULOdA8ec86X1pXa3cUYHOu1emmnj0RUlZ0JBFHrmnPCPgg0Iuy2t+ hwQBY65LO1wgljkdyb3+xl3UC6m/s1jIZdOs5IkxMVJxgyAXXZfRenSmIa1ICm2SBIt06Acbn Mi3TR+LrP5xnWG2PaXLm91jbjZUUyaxTSin/Xv7KNf3Lbdz2vUh5aR/FB39xPJm4+IWuvu9zD rmBwIfD3uebQoUBAt1N82ZEyn7axzD9FSYkhAcVOyvhTtQxYDkseL8wMmZqQrsYmp3TzsB9c2 aNPncpV97aq3l5+a0dJTmtNCErXugqVRBNVmPGaoVepQhN4Naf2CHMGjAkdmsQcDAYHuKiDui dIOveeKJgb7cF4Jvmotvsh8GnpF1Sqd4yvHjdtX3kEm9YwM7OczTmyIqQTMAeyb3yWLbXvKFx D6bx1skAdRp/Ii0N7JewmhdvPlgQZIxK54nAk8YXV4ATCrnSaOE2dgJDfBL8W+7YAPatJK9J2 f9m9OHEThnsXf0BdtXtbtrr19ISmyJ8QLoJ9EHn0LqgMOoBUCvekfant+FRSziWWuX0qYZNRy P+sOQS7yeIL1zDTRA5wcP0gK2AypkD4cQ4A97E9S2HH6I/ZNkNdP6QLX08bj2XotstPDN9Gl/ eeE1vt0BuaQ== Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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=1620339004; 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=33zrAzgO3Ii/pU5E23k5udfFPQUs/FnYziuP9GIsh8I=; b=NoKbwHTWtsQq1fSpQUDGLlWZqnTKFo0rFbtlqbHj95CBaoh7w93P1HUT74L4bU9EIc5hUA IWfzQETFMXiag2CWrKHK+2kLjtARTmlFoqKKdGXk2KhiPMVwhTfVJvaTLjvv+G3Uk7E7SR QbP1kKXIn8RB8S0ckrT820jkH2wzfra4chmTU8t+RPF5mYJ+pm8bgHRQawZo9FO7QbPXEL SQmmQO/K233eBgHzMNK6rAkHmfm1mOF+EQL6v0xBBT/5dsm6qlJmAMrQ1gJT2iVZlTrl34 cA+omCC/4hAnH0e5jr/hrrcvK9k7vP16hxe0XjzgUKQWJM8Dc87mZK6jfi/PKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620339004; a=rsa-sha256; cv=none; b=snjzpBwlcT2wF8CLXHFbcpSAMqmIC0fw7A3hY2cDA+begsMj5XPixaAesDSddAn+PCE2Op HnPLbRUpH2+R5833L2dQriaIRLcHx+bFnnuL9tj/ifktyQvrPukmWGwUeDrPIgPH7lNX08 A/0nhOPZR/S7lSDq/3Ly3SkRShF6BNCvto/+F6z67ymy4d/70zv85UkjCp/cR8cYCXq7bJ ItIVrwLarBguExcv7jetONhkcNf3Xq0oIT8Zsz5dW7EM9FPW8YCn56t4cSKPhx3GgFYIUX ujYDWx588GNHYpG1v51QQrkURBYcQ+3gsX6i7SEqLCWQnyKl6oWSq9Hq1+llUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=k6T9wDd3; 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=k6T9wDd3; 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: 516728917 X-Spam-Score: -0.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: LSoGkn4uNQuj Did you manage to get the equations displayed, I have tried again and coul= d not do it. It might be beneficial to give more details and some more examples on= what to do. Can I export on a window that is to right window of the code window? I ca= n one use plain tex commands. Texinfo mainly supports plain tex, org mode in basically la= tex, so the two programs do not currently work well together. Texinfo has the good feature to show equations (but only for plain tex) wh= ereas org is good with latex (but not very adept at displaying the output in an emac= s window). > 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 > > > > >