From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Hitt Newsgroups: gmane.emacs.help Subject: Looking for a way to insert formulas involving sums and integrals into a buffer Date: Thu, 25 Feb 2021 11:59:42 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33675"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 25 21:02:41 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFMqP-0008gh-HO for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Feb 2021 21:02:41 +0100 Original-Received: from localhost ([::1]:44078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFMqO-0005uK-K0 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Feb 2021 15:02:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFMnm-0004Mq-2o for help-gnu-emacs@gnu.org; Thu, 25 Feb 2021 14:59:58 -0500 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:35388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFMnk-00027U-CD for help-gnu-emacs@gnu.org; Thu, 25 Feb 2021 14:59:57 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id l12so6453263wry.2 for ; Thu, 25 Feb 2021 11:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Foa4tUF/pNWpUbNVj0t88uNraranl0cj/CSVpUwbtwQ=; b=UXKFuVCtpJLyTxC0cIcOqlC+KmaHi1W2M/VlLu6uiDNNpXUh62qA71XWSmrN/tvsmy KNnW5Ns0se+zf/OLhLdz+zIf7BpOCOQVTvVZ+1EwYwxyQe3LoXRuUKUXhjxSZDu9Uw0D wp2rSJrDEzvJx4LIZxZEEH3goId8ZXTp+uo3/sy1mDapU+O3qkpXILb0OHKxn7H96h13 q4oyo3ki8wupPwVnNW6jNbpzzMoZJB30tyaqQxB6VV36n+D3pIXgf0zKx1R0sGkjPeMa /zA1ChzcpyMbFmIYqNTpxchBvUMKiIk8Fj+BmnTaMa7s+z5VyXUFGyRh5z8ib0BXAk++ d0Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Foa4tUF/pNWpUbNVj0t88uNraranl0cj/CSVpUwbtwQ=; b=TLhWBcC/GPB5vHsk5m3FdoNNyK/uUpK1xwNfMbpM2GDn1YSDZ1ws9rQGdAZmL2k4IE 5MMCxr6tw+57mC/JMAU/pP/pa99T0BODnWm9/uIhL/YxKkvVnJRVa1lRKpnrrHhTjucy KCd4ml+wtxoTEL3ckgt2Pj+wxPe68jTk73FUZZGWvRROpn7kaJ7FIUsf+lLBHcTwY5cQ ZtM8+nbJMaUsA+5FPFQCXM2IGCdAAxhm5Xkyg2YEGW6FsZ9l+vgQeaY1WNhSV6HchpsE Imp6H+dgXRAvIojwW/08VjsYcjmZ6ARLA+meQFe+2wTph41fHPi3t52E9UTkcYkQT7vX l4QA== X-Gm-Message-State: AOAM533ShvIm0yL6SiugrTjiSTm62MqX/Wk7ehvvJEhNvEsHuRpm+LUw 5sHm7fYA/96aP4B+siQMGKdvMZIyC2ncbZVieaRSt/HB X-Google-Smtp-Source: ABdhPJziR1byWiTGq9J6PlfGUeTRUSGkRc0+tbdsuiq0vQ5gaBkDABXMY1pNtuh+lArcOyXru+Bs2Cqoh8oNvFwQT4E= X-Received: by 2002:adf:ef4a:: with SMTP id c10mr4968046wrp.427.1614283193933; Thu, 25 Feb 2021 11:59:53 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=dan.hitt@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128262 Archived-At: Using latex, you can easily write some random formula like \[ \int_a^b |f(t)|^2 dt = \sum_{j=0}^{\infty} \alpha_j^2 \] After you convert the output dvi to pdf, it is easy to read. I would like to do something like this in an emacs buffer that has loads of other things in it, without much trouble. Certainly i wouldn't want to have to do anything multi-stage (like running latex, or compiling a file). This would make it easier to keep notes, for example. Now, what i can do is create an integral sign (using '\int' with tex input mode in a text buffer), and create a capital sigma (\Sigma). And there's even limited creation of subscripts and superscripts, although lots of symbols (such as \infty) cannot be turned into subscripts or superscripts. On the other hand, i know that this sort of thing is possible in principle, because if you look up, e.g., Parseval's identity in the wikipedia, it is full of formulas. If you copy/paste a wikipedia formula into an emacs buffer, you get something that looks a lot like latex. So somewhere along the line something is doing something like latex-on-the-fly. It would be nice, although i guess not required, if parts of formulas could be colorized or bolded, as is possible in enriched mode. The main requirement is that it be super-easy, without running additional processes, and the result should be easily transportable (via copy/paste) from buffer to buffer. My version of emacs is 26.1, running on debian 10. TIA for any info! dan