[tex4ht] [bug #610] How to use verbatimbox in tex4ht? Compile error. OK in pdf

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Mon Oct 2 06:41:15 CEST 2023


                 Summary: How to use verbatimbox in tex4ht? Compile error. OK
in pdf
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Mon Oct  2 04:41:15 2023
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



reference and screen shots at


I found great solution in
which allows one to use verbatim as second argument for href. It is the only
solution I found after trying many, where I can use verbatim as second
argument of href. (No, I do not want to use \url, I need to use href as I want
to use specific shorter target names, as the URL can be very long to use)

It worked in pdf. When I tried it in tex4ht I get a compile error. Here is






This compiles in lualatex to pdf with no problem

enter image description here

But in tex4ht it gives error

make4ht -ulm default -a debug main.tex "mathjax,htm,nostyle"

(./main.aux) (/usr/local/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd)
! Missing \endcsname inserted.
<to be read again> 
l.59 ...strange_characters/report.htm\end{myverbbox}

Does tex4ht not support verbatimbox? How to make it work in tex4ht also?

TL 2023


Reply to this item at:


  Message sent via/by Puszcza

More information about the tex4ht mailing list.