[tex4ht] [bug #617] The fancyvrb LaTeX package produces blank lines with the `\VerbatimInput` command

VítStarýNovotný puszcza-hackers at gnu.org.ua
Tue Dec 12 11:22:09 CET 2023


Follow-up Comment #2, bug #617 (project tex4ht):

Hi Michal,

thanks for the speedy response. Your workaround works for me. 

Adding your config into a file `example.cfg` and running the commands `make4ht
-c example.cfg example-01.tex` and `make4ht -c example.cfg example-02.tex`
produces two HTML files with the following diff:

```
7,8c7,8
< <link href='example-01.css' rel='stylesheet' type='text/css' /> 
< <meta content='example-01.tex' name='src' /> 
---
> <link href='example-02.css' rel='stylesheet' type='text/css' /> 
> <meta content='example-02.tex' name='src' />
```

In other words, both the `Verbatim` LaTeX environment and the `\VerbatimInput`
LaTeX command produce the same HTML output and it is the correct one:

```
<pre class='fancyvrb' id='fancyvrb1'><a id='x1-3r1'></a><span
class='cmtt-10'>foo</span> 
<a id='x1-5r2'></a><span class='cmtt-10'>bar</span> 
<a id='x1-7r3'></a><span class='cmtt-10'>baz</span></pre>
```

>From where I stand, your workaround seems as a good candidate for adding to
the TeX4ht sources.

    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?617>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list.