Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-12-15 20:28:02 +03:00
parent 03c3561f2c
commit 0f277a216f

View File

@ -172,15 +172,14 @@ LN := cp -l
#%.md: %.tex #%.md: %.tex
# pandoc -t $(MD_FORMAT) -s $< -o $@ # pandoc -t $(MD_FORMAT) -s $< -o $@
# XXX STUB/HACK... # XXX EXPERIMENTAL...
# ...need to call $(TEX) on the result...
# ...need to install the internet class...
# https://github.com/loopspace/latex-to-internet
# XXX revise: # XXX revise:
# ...for this to work we need to replace: # ...for this to work we need to replace:
# \documentclass{ltxdoc} # \documentclass{ltxdoc}
# to: # to:
# \documentclass[markdownextra]{internet} # \documentclass[markdownextra]{internet}
# XXX install the internet class...
# https://github.com/loopspace/latex-to-internet
%.md: %.tex %.md: %.tex
cat $< \ cat $< \
| sed 's/documentclass{ltxdoc}/documentclass[markdownextra]{internet}/' \ | sed 's/documentclass{ltxdoc}/documentclass[markdownextra]{internet}/' \