maranget / hevea

Hevea is a fast latex to html translator
http://hevea.inria.fr
Other
98 stars 12 forks source link

fancyvrb package is not well supported in Hevea #73

Open LLyaudet opened 5 months ago

LLyaudet commented 5 months ago

Hello :),

Thanks for your hard work. But for the following file : https://github.com/LLyaudet/DevOrSysAdminScripts/blob/main/latex/DevOrSysAdminScripts.tex I have problems with : \VerbatimInput optional and required parameters

If optional is first: \VerbatimInput[numbers=left,xleftmargin=-5mm]{ build_and_checks_dependencies/build_md_from_printable_md } I have this error message: Warning: Cannot open file: [

If required is first: \VerbatimInput{ build_and_checks_dependencies/build_md_from_printable_md }[numbers=left,xleftmargin=-5mm] I have this error message: Warning: Cannot open file: build_and_checks_dependencies/build_md_from_printable_md.sh

Then I must put everything on the same line: \VerbatimInput{build_and_checks_dependencies/build_md_from_printable_md.sh}[numbers=left,xleftmargin=-5mm] But it ignores the optional parameters.

Can you correct this bug, please ?

Best regards, Laurent Lyaudet

maranget commented 5 months ago

Hi @LLyaudet. PR #74 provides a patch. This is only a patch in the sense that most of keyval settings are not recognized, including the two of your file. If you do need line numbers, you may be interested by the listings package, whose hevea implementation is wider.