[tex4ht] is Verbatim[frame=single] supposed to show frame in tex4ht generated HTML?

Michal Hoftich michal.h21 at gmail.com
Thu Aug 14 18:58:44 CEST 2014


I can confirm that. Firefox shows the line, chrome not. From what I've
found in quick search, it seems that chrome doesn't show borders which
are smaller than 0.8pt. Border width used in the css is value used in
fancyvrb, so maybe try to set the frame width to a higher value.



2014-08-14 18:27 GMT+02:00 Nasser M. Abbasi <nma at 12000.org>:
> I just found out it is a browser issue !
>
> I use Chrome browser. On Chrome (windows 7) the frame does _not_
> show. On Firefox and IE the frame shows.
> So it is either Chrome has a bug, or the CSS generated by
> tex4ht is not valid and happens to work on FF and IE only.
> I do not know  yet.
>
> I am using Chrome  36.0.1985.143 and FF31 and IE 11.
>
> --Nasser
>
>
>
> On 8/14/2014 11:21 AM, Nasser M. Abbasi wrote:
>>
>> Thanks for trying Michal. Are you using texlive 2014? I forgot to mention
>> that this is on texlive 2014, Linux box.
>>
>> Here is the whole folder in a zip file, which includes the
>> source, the html and any other files generated, and you can see
>> there is no frame generated.
>>
>> http://12000.org/tmp/081314/missing_frame_verbatim.zip
>>
>> If you get a frame, this means there is another regression bug that
>> happened between texlive 2013 and texlive 2014, similar to the other
>> one you fixed (the report/table of section issue) where it works for
>> you and not for me.
>>
>> Thank you,
>> --Nasser
>>
>> On 8/14/2014 9:08 AM, Michal Hoftich wrote:
>>>
>>> Hi Nasser,
>>>
>>> I've tried your example and it created a frame for me. When you open
>>> file `foo.css` does it have lines:
>>>
>>> div#fancyvrb1{ border-top: solid 0.4pt; }
>>> div#fancyvrb1{ border-left: solid 0.4pt; }
>>> div#fancyvrb1{ border-bottom: solid 0.4pt; }
>>> div#fancyvrb1{ border-right: solid 0.4pt; }
>>>
>>> at the end?
>>>
>>> Michal
>>>
>>>
>>> 2014-08-14 15:20 GMT+02:00 Nasser M. Abbasi <nma at 12000.org>:
>>>>
>>>> Before I spend time for workaround, I thought to check what
>>>> is the status of this is.
>>>>
>>>> Using
>>>>
>>>> \begin{Verbatim}[frame=single]
>>>>    text
>>>> \end{Verbatim}
>>>>
>>>> does not show frame in HTML but it does in pdf. Googling
>>>> around, it seems that this was supposed to work in tex4ht,
>>>> here is email posting from 2005 by Eitan Gurari
>>>>
>>>>
>>>> http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2005-08/msg00441.html
>>>>
>>>> So it must have been working then? Yet on texlive 2014, I do not
>>>> get frame in HTML. Here is a MWE
>>>>
>>>> --------------------------------
>>>> \documentclass[]{article}
>>>> \usepackage{fancyvrb}
>>>> \begin{document}
>>>> \begin{Verbatim}[frame=single]
>>>> text
>>>> \end{Verbatim}
>>>> \end{document}
>>>> ------------------------------
>>>>
>>>> Compiled with htlatex foo.tex
>>>>
>>>> HTML generated is
>>>>
>>>> --------------------------------
>>>> </head><body >
>>>>      <div class="fancyvrb" id="fancyvrb1"><a
>>>>    id="x1-3r1"></a><span
>>>> class="cmtt-10">&#x00A0;</span><span
>>>> class="cmtt-10">&#x00A0;text</span></div>
>>>> </body></html>
>>>> ------------------------------------
>>>>
>>>> Any one knows if this should have generated a frame? If not,
>>>> then why does the email above seems to suggest that a frame
>>>> was generated at that time? Something changed since then?
>>>>
>>>> thanks,
>>>> -Nasser
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>


More information about the tex4ht mailing list