Skip to content

Commit

Permalink
nit: code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 2, 2023
1 parent 9ce07ee commit 7b4fe80
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/extras/me-org-extras.el
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,11 @@ Return an AST with newlines counts in each level."

(defun +org-extras-inject-latex-fragment (orig-func &rest args)
"Advice function to inject latex code before and/or after the equation in a latex fragment.
You can use this to set \\mathversion{bold} for example to make
it bolder. The way it works is by defining
:latex-fragment-pre-body and/or :latex-fragment-post-body in the
variable `org-format-latex-options'. These strings will then be
injected before and after the code for the fragment before it is
made into an image."
You can use this to set \\mathversion{bold} for example to make it bolder.
The way it works is by defining :latex-fragment-pre-body and/or
:latex-fragment-post-body in the variable `org-format-latex-options'. These
strings will then be injected before and after the code for the fragment before
it is made into an image."
(setf (car args)
(concat
(or (plist-get org-format-latex-options :latex-fragment-pre-body) "")
Expand Down

0 comments on commit 7b4fe80

Please sign in to comment.