浏览代码

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 8 年之前
父节点
当前提交
a138fedfd2
共有 1 个文件被更改,包括 2 次插入5 次删除
  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