unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: 44842@debbugs.gnu.org
Cc: "Mattias Engdegård" <mattiase@acm.org>,
	"Stefan Monnier" <monnier@iro.umontreal.ca>,
	"Roland Winkler" <winkler@gnu.org>
Subject: bug#44842: 28.0.50; Support texed latex as Calc language
Date: Tue, 24 Nov 2020 15:58:33 +0100	[thread overview]
Message-ID: <87eekiby3q.fsf@web.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]


Hello,

Roland, Mattias, if you can help, Stefan CC'd for information since I
had discussed this with him on emacs-help:

I want to enable Calc latex language mode to support latexed output as
an image.  Can someone please help me to prepare an according patch?

Here is my prove of concept so far, working for me in a master emacs -Q:


[-- Attachment #2: calc-latex.el --]
[-- Type: application/emacs-lisp, Size: 2380 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1387 bytes --]


I'm using the latex "breqn" package because it allows me to use the line
breaks that Calc adds to the output by itself; that looks very good most
of the time, is even a bit aware of the window width, and doesn't make
latex barf when line breaks appear inside paren expressions (as it does
normally).  I don't know if I can assume that every latex installation
has "breqn" installed.  Without something like "breqn" the results were
not satisfactory in my experiments, I found that solution after a long
with trouble.

Then, for subformula editing etc., we probably want to provide a way to
turn the image into the source output and back.

And: how should this feature be enabled?  Should it be provided as a
separate language?  The one dimension we have for the prefix arg of d L
is already completely exhausted.

Anything else I forgot to consider?  I guess it would be nice to get rid
of all or most of the org dependencies.  Oh, and I didn't mention yet
that this is super cool and thus has a high priority to have ;-)

Regards,

Michael.


In GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0)
 of 2020-11-24 built on drachen
Repository revision: 9a574a6e51d669eaff091ab590fb18733a386d2c
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid


             reply	other threads:[~2020-11-24 14:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-24 14:58 Michael Heerdegen [this message]
2020-11-25 16:40 ` bug#44842: 28.0.50; Support texed latex as Calc language Mattias Engdegård
2020-11-28 18:08 ` Roland Winkler
2020-12-01 22:57   ` Michael Heerdegen
2021-07-31 12:37     ` Lars Ingebrigtsen
2021-07-31 22:54       ` Michael Heerdegen
2021-10-11 12:36         ` Stefan Kangas
2021-10-12  2:20           ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eekiby3q.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=44842@debbugs.gnu.org \
    --cc=mattiase@acm.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).