diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-12-04 11:55:39 +0100 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-12-04 11:55:39 +0100 |
commit | d57edaebf8dacc9159c35e1084b7d600f077e18e (patch) | |
tree | 79c4bcb34bc4a6e0684f07124cdaac01da4e7160 /org-roam-ui.el | |
parent | fca239e3140e660fc26dd7b7bc7bfbbcfafe8630 (diff) |
feat: add own latex macros
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index 61b8ea6..17059fe 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -145,6 +145,13 @@ Take ID as string as sole argument." :group 'org-roam-ui :type 'hook) +(defcustom org-roam-ui-latex-macros nil + "Alist of LaTeX macros to be passed to org-roam-ui. +Format as, i.e. with double backslashes for a single backslash: +'((\"\\macro\".\"\\something{#1}\"))" + :group 'org-roam-ui + :type 'alist) + ;; Internal vars (defvar org-roam-ui--ws-current-node nil @@ -577,7 +584,8 @@ from all other links." (data . (("dailyDir" . ,daily-dir) - ("roamDir" . ,org-roam-directory))))))))) + ("roamDir" . ,org-roam-directory) + ("katexMacros" . ,org-roam-ui-latex-macros))))))))) (defun org-roam-ui-sql-to-alist (column-names rows) "Convert sql result to alist for json encoding. |