Browse Source

ox-texinfo: Use UTF-8 instead of LaTeX for entities

* lisp/ox-texinfo.el (org-texinfo-entity): Use UTF-8 instead of LaTeX
  for entities.
Nicolas Goaziou 3 years ago
parent
commit
a138fedfd2
1 changed files with 2 additions and 5 deletions
  1. 2 5
      lisp/ox-texinfo.el

+ 2 - 5
lisp/ox-texinfo.el

@@ -732,11 +732,8 @@ holding contextual information."
 ;;;; Entity
 
 (defun org-texinfo-entity (entity _contents _info)
-  "Transcode an ENTITY object from Org to Texinfo.
-CONTENTS are the definition itself.  INFO is a plist holding
-contextual information."
-  (let ((ent (org-element-property :latex entity)))
-    (if (org-element-property :latex-math-p entity) (format "@math{%s}" ent) ent)))
+  "Transcode an ENTITY object from Org to Texinfo."
+  (org-element-property :utf-8 entity))
 
 ;;;; Example Block