michal-h21 / make4ht

Build system for tex4ht
137 stars 15 forks source link

Feature request: minted #100

Closed yalguzaq closed 1 year ago

yalguzaq commented 1 year ago

Is it possible to add support for the minted package in make4ht?

minted is a modern alternative to lstlisting which allows more structured, colourful and complete syntax highlighting.

As of now, make4ht complains when using minted:

[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename Line    Message
[ERROR]   htlatex: ./markup.tex     44   Package minted Error: You must invoke LaTeX with the -shell-escape flag.
[ERROR]   htlatex: ./markup.tex     45   Package minted Error: You must have `pygmentize' installed to use this packag
[ERROR]   htlatex: ./markup.tex     50   Package catchfile Error: File `_minted-markup/default.pygstyle' not found.
[ERROR]   htlatex: ./markup.tex     50   Package catchfile Error: File `_minted-markup/default.pygstyle' not found.
[ERROR]   htlatex: ./markup.tex     73   Package minted Error: Cannot find Pygments style default.
[ERROR]   htlatex: ./markup.tex     73   Package minted Error: Missing Pygments output; \inputminted was
michal-h21 commented 1 year ago

Minted is supported, I am using it myself in TeX4ht documentation. But it requires the '-s' option for make4ht:

make4ht -s foo.tex
yalguzaq commented 1 year ago

Sorry, I googled it before and could not find anything on this. Thanks!

Could you delete this issue then? I do not have the rights to remove a threat.