branch: externals/org
commit 681c9656fe739238dcaeb73c1d5c087dd276bab5
Author: Trevor Murphy <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    Add new test test-ox-latex/math-in-alt-title
    
    * testing/lisp/test-ox-latex.el (test-ox-latex/math-in-alt-title): New
    test.
---
 testing/lisp/test-ox-latex.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/testing/lisp/test-ox-latex.el b/testing/lisp/test-ox-latex.el
index 04164767c0..35088deeec 100644
--- a/testing/lisp/test-ox-latex.el
+++ b/testing/lisp/test-ox-latex.el
@@ -272,5 +272,17 @@ is suppressed
       (should (search-forward "}
 \\addcontentsline{toc}{section}{Section 3}")))))
 
+(ert-deftest test-ox-latex/math-in-alt-title ()
+  "Test math wrapping in ALT_TITLE properties."
+  (org-test-with-exported-text
+      'latex
+      "* \\phi wraps
+:PROPERTIES:
+:ALT_TITLE: \\psi wraps too
+:END:"
+    (goto-char (point-min))
+    (should (search-forward
+             "\\section[\\(\\psi\\) wraps too]{\\(\\phi\\) wraps}"))))
+
 (provide 'test-ox-latex)
 ;;; test-ox-latex.el ends here

Reply via email to