From 41a5c7bf4a668c3ae296da6cf46ecf654f393465 Mon Sep 17 00:00:00 2001 From: TEC Date: Thu, 9 Feb 2023 01:17:49 +0800 Subject: [PATCH 6/6] ox-latex: Reformat feature announcement comment * lisp/ox-latex.el: Reformat the feature announcement comment to make it easier to read. --- lisp/ox-latex.el | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 6221cc486..4e7f30f8b 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -211,8 +211,19 @@ (org-export-define-backend 'latex :feature-implementations-alist `((!announce-start :snippet ,(lambda (info) - (format "\n%%%% ox-latex features: %s" - (plist-get info :features))) + (with-temp-buffer + (setq-local left-margin 2) + (insert (string-join + (mapcar #'symbol-name + (plist-get info :features)) + ", ") + ".") + (fill-region-as-paragraph (point-min) (point-max)) + (goto-char (point-min)) + (insert "%% ox-latex features:\n% ") + (while (search-forward "\n" nil t) + (insert "%")) + (buffer-string))) :order -100) (maths :snippet "\\usepackage{amsmath}\n\\usepackage{amssymb}" :order 0.2) (underline :snippet "\\usepackage[normalem]{ulem}" :order 0.5) -- 2.39.0