mirror of
https://github.com/flynx/photobook.git
synced 2025-10-28 18:00:10 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1326badd81
commit
34733ff937
4
Makefile
4
Makefile
@ -14,7 +14,7 @@ TEX := lualatex
|
||||
|
||||
# Generate docs from latex package/class...
|
||||
#
|
||||
# - keep lines starting with \def\<module-name>@FILE
|
||||
# - keep lines starting with \def\<module-name>@[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}/' \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user