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

* bug#44842: 28.0.50; Support texed latex as Calc language
  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
  1 sibling, 0 replies; 8+ messages in thread
From: Mattias Engdegård @ 2020-11-25 16:40 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 44842, Stefan Monnier, Roland Winkler

24 nov. 2020 kl. 15.58 skrev Michael Heerdegen <michael_heerdegen@web.de>:

> <calc-latex.el>

It's probably not quite my cup of tea, but of course I had to try it out! Some notes:

* It does look nice!
* To get it to work, I needed to install dvipng, and the 'breqn' and 'ulem' latex packages.

No good advice for how to integrate it with Calc I'm afraid, but don't let that deter you! The Org dependency is also a bit of a downer but not fatally so by any means. Org already has dependencies on Calc so I suppose this makes it even.






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

* bug#44842: 28.0.50; Support texed latex as Calc language
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Roland Winkler @ 2020-11-28 18:08 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: mattiase, monnier, 44842

On Tue Nov 24 2020 Michael Heerdegen wrote:
> 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?

In general, I am happy to help whenever I can.  Unfortunately, my
time is limited, and I am already engaged in enough emacs-related
projects to keep me engaged.  But let me know if there might be
a specific issue where you feel that I might be able to help.





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

* bug#44842: 28.0.50; Support texed latex as Calc language
  2020-11-28 18:08 ` Roland Winkler
@ 2020-12-01 22:57   ` Michael Heerdegen
  2021-07-31 12:37     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2020-12-01 22:57 UTC (permalink / raw)
  To: Roland Winkler; +Cc: mattiase, monnier, 44842

"Roland Winkler" <winkler@gnu.org> writes:

> In general, I am happy to help whenever I can.  Unfortunately, my
> time is limited, and I am already engaged in enough emacs-related
> projects to keep me engaged.  But let me know if there might be
> a specific issue where you feel that I might be able to help.

A start would be to figure out how to integrate the new latex'ed latex
feature into the existing stuff, conceptually and interface-wise (new
language?  toggle'able view?).

My (related) main concern is that I may overlook something that my
addition might break, not knowing all of Calc's features well.

Regards,

Michael.





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

* bug#44842: 28.0.50; Support texed latex as Calc language
  2020-12-01 22:57   ` Michael Heerdegen
@ 2021-07-31 12:37     ` Lars Ingebrigtsen
  2021-07-31 22:54       ` Michael Heerdegen
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-31 12:37 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: mattiase, Roland Winkler, 44842, monnier

Michael Heerdegen <michael_heerdegen@web.de> writes:

>> In general, I am happy to help whenever I can.  Unfortunately, my
>> time is limited, and I am already engaged in enough emacs-related
>> projects to keep me engaged.  But let me know if there might be
>> a specific issue where you feel that I might be able to help.
>
> A start would be to figure out how to integrate the new latex'ed latex
> feature into the existing stuff, conceptually and interface-wise (new
> language?  toggle'able view?).
>
> My (related) main concern is that I may overlook something that my
> addition might break, not knowing all of Calc's features well.

This was half a year ago...  has there been any progress here?  (It
sounded like good functionality to me, but I haven't tested it myself.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#44842: 28.0.50; Support texed latex as Calc language
  2021-07-31 12:37     ` Lars Ingebrigtsen
@ 2021-07-31 22:54       ` Michael Heerdegen
  2021-10-11 12:36         ` Stefan Kangas
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2021-07-31 22:54 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: mattiase, Roland Winkler, 44842, monnier

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
> >> In general, I am happy to help whenever I can.  Unfortunately, my
> >> time is limited, and I am already engaged in enough emacs-related
> >> projects to keep me engaged.  But let me know if there might be
> >> a specific issue where you feel that I might be able to help.
> >
> > A start would be to figure out how to integrate the new latex'ed latex
> > feature into the existing stuff, conceptually and interface-wise (new
> > language?  toggle'able view?).
> >
> > My (related) main concern is that I may overlook something that my
> > addition might break, not knowing all of Calc's features well.
>
> This was half a year ago...  has there been any progress here?  (It
> sounded like good functionality to me, but I haven't tested it myself.)

Not from my side.  I have canceled the experiment.  Too many things did
not work correctly, a bunch of unrelated things, so I gave up and
returned to the built-in Big language.


Michael.





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

* bug#44842: 28.0.50; Support texed latex as Calc language
  2021-07-31 22:54       ` Michael Heerdegen
@ 2021-10-11 12:36         ` Stefan Kangas
  2021-10-12  2:20           ` Michael Heerdegen
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2021-10-11 12:36 UTC (permalink / raw)
  To: Michael Heerdegen
  Cc: mattiase, Lars Ingebrigtsen, Roland Winkler, monnier, 44842

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Michael Heerdegen <michael_heerdegen@web.de> writes:
>>
>> >> In general, I am happy to help whenever I can.  Unfortunately, my
>> >> time is limited, and I am already engaged in enough emacs-related
>> >> projects to keep me engaged.  But let me know if there might be
>> >> a specific issue where you feel that I might be able to help.
>> >
>> > A start would be to figure out how to integrate the new latex'ed latex
>> > feature into the existing stuff, conceptually and interface-wise (new
>> > language?  toggle'able view?).
>> >
>> > My (related) main concern is that I may overlook something that my
>> > addition might break, not knowing all of Calc's features well.
>>
>> This was half a year ago...  has there been any progress here?  (It
>> sounded like good functionality to me, but I haven't tested it myself.)
>
> Not from my side.  I have canceled the experiment.  Too many things did
> not work correctly, a bunch of unrelated things, so I gave up and
> returned to the built-in Big language.

So should this bug report be closed?





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

* bug#44842: 28.0.50; Support texed latex as Calc language
  2021-10-11 12:36         ` Stefan Kangas
@ 2021-10-12  2:20           ` Michael Heerdegen
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Heerdegen @ 2021-10-12  2:20 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: mattiase, Lars Ingebrigtsen, Roland Winkler, monnier, 44842

Stefan Kangas <stefan@marxist.se> writes:

> So should this bug report be closed?

Eh - not from my side, no - not just because the one who has reported
the thing wasn't able to fix it by himself.

Can we at least keep this somewhere in some wishlist list or so, until
someone might find it that knows Calc a bit better?  Because this
feature would be really useful, and I don't think it's impossible to
implement- it just is beyond what I can do in a reasonable amount of
time.

Michael.





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