unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44842: 28.0.50; Support texed latex as Calc language
@ 2020-11-24 14:58 Michael Heerdegen
  2020-11-25 16:40 ` Mattias Engdegård
  2020-11-28 18:08 ` Roland Winkler
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Heerdegen @ 2020-11-24 14:58 UTC (permalink / raw)
  To: 44842; +Cc: Mattias Engdegård, Stefan Monnier, Roland Winkler

[-- 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-12  2:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-24 14:58 bug#44842: 28.0.50; Support texed latex as Calc language Michael Heerdegen
2020-11-25 16:40 ` 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

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).