From d3b1b0a3cc4deac7ac47f446fb0bf27f61169ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Edstr=C3=B6m?= Date: Sun, 18 Feb 2024 20:29:48 +0100 Subject: [PATCH] lisp/org.el: Enhance a docstring * org.el (org-latex-to-html-convert-command): Add a note in the docstring about proper shell-quoting. It can trip you up because wrongly quoted input still works with some math snippets, so the command may work during testing but not later when you have different math snippets in play. TINYCHANGE --- lisp/org.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 947037559..6b2ebf9ac 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3275,7 +3275,11 @@ Replace format-specifiers in the command as noted below and use %i: The LaTeX fragment to be converted. For example, this could be used with LaTeXML as -\"latexmlc \\='literal:%i\\=' --profile=math --preload=siunitx.sty 2>/dev/null\"." +\"latexmlc \\='literal:%i\\=' --profile=math --preload=siunitx.sty 2>/dev/null\". + +Since this is a shell-command, remember to use single-quotes +around \\='%i\\=', not double-quotes! Else a math fragment such +as \"$y = 200$\" gets butchered into only \" = 200\"." :group 'org-latex :package-version '(Org . "9.4") :type '(choice -- 2.40.1