Compare commits

..

5 Commits

Author SHA1 Message Date
TEC 28bfdb6b78
---END PERSONAL NOPUSH DIVIDER---
--
2.42.0
2024-02-20 16:58:05 +08:00
TEC a7a0c945c5
NOPUSH org: Don't fill displayed equations in text
* list/org.el (org-fill-element): If a displayed equation (\[ ... \])
starts on its own line, it should not be filled into the rest of the
text. I.e.,

some nice text
\[
  1+1=2
\]
more text.

should not become,

some nice text \[ 1+1=3 \] more text.

While the above example may not look bad, with non-trivial equations
this can become quite messy.
2024-02-20 16:58:05 +08:00
TEC 4e498564c8
NOPUSH org-src: Prettify inline results
* lisp/org.el (org-inline-src-prettify-results):

* lisp/org-src.el (org-fontify-inline-src-blocks-1):
2024-02-20 16:58:05 +08:00
TEC 3ee9efdf8f
---NOPUSH PERSONAL DIVIDER---
--
2.42.0
2024-02-20 16:58:05 +08:00
Karthik Chikmagalur 0c2073f4f9
org-latex-preview: Fix bug when checking previews
*
lisp/org-latex-preview.el (org-latex-preview--check-all-fragments-produced):
When the first fragment in a preview run silently fails to render,
this function tries to cache a nil value as a fragment.  Fix by
checking that the fragment that fails to render is valid as a
fragment.
2024-02-20 16:58:05 +08:00
1 changed files with 3 additions and 4 deletions

View File

@ -2376,11 +2376,10 @@ fragments are regenerated."
;; If output ends prematurely, this is most likely due to an issue with
;; the last "succesfully" produced fragment, and so we mark it as erronious
;; and attempt to re-generate the rest.
(let ((bad-fragment (car fragments))
(bad-fragment-err (plist-get (car fragments) :errors)))
(when-let ((bad-fragment (car fragments)))
(plist-put bad-fragment :errors
(concat bad-fragment-err
(and bad-fragment-err "\n\n")
(concat (when-let ((current-error (plist-get bad-fragment :errors)))
(concat current-error "\n\n"))
"Preview generation catastrophically failed after this fragment."))
(org-latex-preview--remove-cached
(plist-get bad-fragment :key))