emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Pre-PATCH] Overhaul of the LaTeX preview system
@ 2023-03-12 12:23 Timothy
  2023-03-13 12:26 ` Ihor Radchenko
                   ` (14 more replies)
  0 siblings, 15 replies; 60+ messages in thread
From: Timothy @ 2023-03-12 12:23 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi All,

After months of work, Karthink and I have prepared a rather large patch-set
completely overhauling the LaTeX preview system. I hope to have a patch set
shortly, but in the mean time it would be good to get some more people testing
this.

To test this feature, please check out the `dev' branch of
<https://git.tecosaur.net/tec/org-mode.git> (it’s the default branch). There are
also some other changes there currently, but I don’t think anything is broken.

You can view the almost-ready path set/diff here:
<https://git.tecosaur.net/tec/org-mode/compare/c8401d2f..6d60738>, see the
ORG-NEWS and org-manual entries to get a bit more of an idea of what’s changed.
The short version is that now:
• Previews are generated in bulk, and hundreds of LaTeX fragments can be processed per second.
• Images are placed continuously as they are generated.
• Preview generation is asynchronous and will not block Emacs.
• Inline previews are aligned and scaled to match the font baseline and size.
• Previews scale along with text when the text scale is changed.
• Previews are coloured to match surrounding text and the active theme.
• SVG previews automatically change colors when the active theme changes.
• Error encountered when compiling LaTeX fragments can be accessed by mousing over preview images.
• Preview overlays can hide and show themselves dynamically based on cursor position.
• Org mode can auto-generate LaTeX previews as you type or edit the text of existing ones.
• Org mode can keep equation numbering consistent by regenerating previews as needed.

If you do come across any issues, please let me know either in a reply here or
the org-mode matrix room. If you could also run
<https://gist.github.com/karthink/0ac48411a81459c0f3fd7557c4e817db> and share the
diagnostic info, that would be quite helpful.

Lastly, Karthink has prepared a video giving an overview of the new
capabilities, you can give it a watch here:
<https://www.youtube.com/watch?v=n-AfvuV-bYo>

All the best,
Timothy

-- 
Timothy (‘tecosaur’/‘TEC’), Org mode contributor.
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/tec>.

^ permalink raw reply	[flat|nested] 60+ messages in thread
* Re: Re: [Pre-PATCH] Overhaul of the LaTeX preview system
@ 2023-06-04 23:29 Rudolf Adamkovič
  2023-06-05  5:27 ` Pedro Andres Aranda Gutierrez
  0 siblings, 1 reply; 60+ messages in thread
From: Rudolf Adamkovič @ 2023-06-04 23:29 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez, Org Mode List

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

> this might not be completely the case, but I recently reported a bug
> against native compilation in Emacs. What about trying without netive
> compilation?

I have just tried without native compilation.  No luck!  I get the exact
same error.

Rudy
-- 
"Great minds discuss ideas; average minds discuss events; small minds discuss
people."
--- Anna Eleanor Roosevelt (1884-1962)

Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia


^ permalink raw reply	[flat|nested] 60+ messages in thread
* Re: [Pre-PATCH] Overhaul of the LaTeX preview system
@ 2023-08-07  8:12 WANG Yicheng
  2023-08-08  8:30 ` Ihor Radchenko
  0 siblings, 1 reply; 60+ messages in thread
From: WANG Yicheng @ 2023-08-07  8:12 UTC (permalink / raw)
  To: orgmode@tec.tecosaur.net; +Cc: emacs-orgmode@gnu.org

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

Hi!

I just tried that out. As I mentioned here:https://lists.gnu.org/archive/html/emacs-orgmode/2023-08/msg00092.html, I found that, when using the dvisvgm option for exporting TeX snippets to HTML, the displayed math enclosed by \[…\] is not rendered as equation block, while math environments enclosed by \begin{…} \end{…} are rendered correctly.

Also, the org-latex-preview also rendered (deliberately put) inline \[…\] as inline images.

I guess it could be caused by org-latex-math-environments-re. Could you add support to recognize \[…\] also as equations? Thank you.

Regards,
ywangmy

[-- Attachment #2: Type: text/html, Size: 1037 bytes --]

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

end of thread, other threads:[~2024-01-21 17:19 UTC | newest]

Thread overview: 60+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-12 12:23 [Pre-PATCH] Overhaul of the LaTeX preview system Timothy
2023-03-13 12:26 ` Ihor Radchenko
2023-03-14 16:04   ` Timothy
2023-03-15  9:34     ` Ihor Radchenko
2023-03-15 17:28       ` Rudolf Adamkovič
2023-03-13 12:30 ` Ihor Radchenko
2023-03-13 12:32   ` Ihor Radchenko
2023-03-14 14:46     ` Timothy
2023-03-13 12:36 ` Ihor Radchenko
2023-03-14 16:10   ` Timothy
2023-03-15  9:38     ` Ihor Radchenko
2023-03-13 12:37 ` Ihor Radchenko
2023-03-14 16:13   ` Timothy
2023-03-25 15:29 ` Tony Zorman
2023-05-02 12:15 ` K. Chousos
2023-05-03 10:07 ` K. Chousos
2023-05-05 17:57   ` Karthik Chikmagalur
2023-05-05 18:48     ` Konstantinos Chousos
2023-05-05 18:53     ` Konstantinos Chousos
2023-05-05 20:05       ` Karthik Chikmagalur
2023-05-05 21:06         ` Konstantinos Chousos
2023-05-05 22:58           ` Karthik Chikmagalur
2023-05-06  9:19             ` Konstantinos Chousos
2023-05-06  9:30               ` Ihor Radchenko
2023-05-06 10:08               ` Konstantinos Chousos
2023-05-08 20:04               ` Karthik Chikmagalur
2023-05-08 20:40                 ` Konstantinos Chousos
2023-05-09 11:34                 ` Ihor Radchenko
2023-05-09 12:03                   ` Timothy
2023-05-09 12:10                     ` Ruijie Yu via General discussions about Org-mode.
2023-05-09 12:12                     ` Ihor Radchenko
2023-05-09 12:10                       ` Timothy
2023-05-09 12:49                   ` Max Nikulin
2023-05-09 12:57                     ` Ihor Radchenko
2023-05-10 10:07 ` Jun Inoue
2023-05-10 10:21   ` Timothy
2023-05-10 13:09     ` Jun Inoue
2023-05-26  9:50 ` Rudolf Adamkovič
2023-05-28 17:31   ` Timothy
2023-06-03  9:00     ` Rudolf Adamkovič
2023-08-21  8:59 ` Visuwesh
2023-08-21 16:40   ` Karthik Chikmagalur
2023-08-21 17:19     ` Visuwesh
2023-08-21 21:40       ` Karthik Chikmagalur
2023-08-22  2:57         ` Visuwesh
2023-08-29  6:01 ` Roshan Shariff
2023-08-29  6:01 ` [PATCH 1/1] Fix background color when line-wrapping latex previews Roshan Shariff
2023-08-29 17:14   ` [PATCH v2] Fix background color of " Roshan Shariff
2024-01-07  7:25     ` Timothy
2024-01-07  9:50       ` Roshan Shariff
2024-01-08 10:24         ` Timothy
2024-01-09 20:12           ` Roshan Shariff
2024-01-07  7:28 ` [Pre-PATCH] Overhaul of the LaTeX preview system Timothy
2024-01-20  5:53 ` Matt Huszagh
2024-01-20  6:02 ` Matt Huszagh
2024-01-20  7:13   ` Matt Huszagh
2024-01-21 17:08     ` Timothy
  -- strict thread matches above, loose matches on Subject: below --
2023-06-04 23:29 Rudolf Adamkovič
2023-06-05  5:27 ` Pedro Andres Aranda Gutierrez
2023-08-07  8:12 WANG Yicheng
2023-08-08  8:30 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).