emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code


From: Rudolf Adamkovič
Subject: [PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code
Date: Mon, 6 Feb 2023 22:42:16 +0100

* lisp/ox-texinfo.el (org-texinfo-supports-math-p): Fix the incorrect
syntax @displaymath{1 + 1 = 2} used to detect whether Texinfo supports
TeX "math mode".  Instead, use the correct syntax @math{1 + 1 = 2}.
---
 lisp/ox-texinfo.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 8e3a04562..7ee4bc533 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -2030,7 +2030,7 @@ Once computed, the results remain cached."
                    (input-content
                     (concat (format "@setfilename %s" input-file) "\n"
                             "@node Top" "\n"
-                            (format "@displaymath{%s}" math-example) "\n")))
+                            (format "@math{%s}" math-example) "\n")))
               (with-temp-file input-file
                 (insert input-content))
               (let* ((output-file (org-texinfo-compile input-file))
-- 
2.39.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]