Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Can we enable -shell-escape through any option without editing the default htlatex program? OR Can we achieve this using mk4ht ht?

share|improve this question
    
try mk4ht htlatex <file> "--shell-escape" –  Herbert Jul 24 '13 at 13:21
    
@Herbert: Sorry that argument is for the cfg! But, thanks it give me a hint to trace and finally I got the answer. –  Jagath AR Jul 24 '13 at 13:59
add comment

1 Answer

up vote 2 down vote accepted

Finally I got the answer:

The -shell-escape option should be passed as the fifth argument to htlatex.

htlatex <filename> <cfg> <ht-font-dir-for-tex4ht> <option-to-t4ht-program> <tex-command-line-option>

So an example would be:

htlatex test.tex config.cfg "xhtml,charset=utf-8" -utf8 -shell-escape
htlatex test.tex config.cfg "" "" -shell-escape

Source: htlatex.bat

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.