From 34733ff9376708f03b75ac7d34aa88b1c1fa8877 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 10 Aug 2021 11:46:41 +0300 Subject: [PATCH] minor tweak... Signed-off-by: Alex A. Naanou --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 81ac394..2bc2e71 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ TEX := lualatex # Generate docs from latex package/class... # -# - keep lines starting with \def\@FILE +# - keep lines starting with \def\@[A-Z]\+ # - keep lines starting with '%%' # - %%%%% Text -> \subsection(Text) # - %%%% Text -> \section(Text) @@ -32,7 +32,7 @@ TEX := lualatex #%.tex: %.sty %.tex: %.cls cat $< \ - | egrep '(^%%|^\\\\def\\\\$*@FILE)' \ + | egrep '(^%%|^\\\\def\\\\$*@[A-Z]+)' \ | sed 's/^\(\\\\def\\\\\)$*@/%%\\1/'\ | sed 's/%%%%%% \(.*\)/%%\\\\subsubsection{\1}/' \ | sed 's/%%%%% \(.*\)/%%\\\\subsection{\1}/' \