emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code
@ 2023-02-06 21:42 Rudolf Adamkovič
  2023-02-07  2:24 ` Max Nikulin
  0 siblings, 1 reply; 11+ messages in thread
From: Rudolf Adamkovič @ 2023-02-06 21:42 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Rudolf Adamkovič

* 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



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-04-01 21:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06 21:42 [PATCH] ox-texinfo: Fix invalid syntax in Texinfo version detection code Rudolf Adamkovič
2023-02-07  2:24 ` Max Nikulin
2023-02-07  8:39   ` Rudolf Adamkovič
2023-02-07 12:13     ` Max Nikulin
2023-02-07 12:21       ` Ihor Radchenko
2023-02-07 15:13         ` Max Nikulin
2023-02-15 18:22           ` Rudolf Adamkovič
2023-02-17 10:41             ` Ihor Radchenko
2023-02-17 12:51               ` Ihor Radchenko
2023-03-24 16:37                 ` Ihor Radchenko
2023-04-01 21:22                   ` Rudolf Adamkovič

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).