ar5iv icon indicating copy to clipboard operation
ar5iv copied to clipboard

Improve article 1405.2330 (fancyvrb fidelity)

Open dginev opened this issue 3 years ago • 1 comments

Exact location of issue

Reported on twitter

Still has issues with the fancyvrb package as code examples are not rendered properly, e.g., https://ar5iv.org/html/1405.2330 (Fig. 1, 4, 5, 6).

Problem details

The HTML is not accurately recreating the fancyvrb listing structure.

(Optional) Expected behavior

Should roughly match the PDF

Desktop (please complete the following information)

  • Seen on Firefox, Ubuntu 21.10

Screenshots

broken listing

dginev avatar Feb 02 '22 13:02 dginev

It would be nice to evolve the inline style attributes for the span-soup generated from {Verbatim} to a class-based scheme that can be styled a little cleaner.

The TeX source here is:

\begin{figure}
\begin{Verbatim}
$ curl -I \textcolor{red}{-X OPTIONS} http://www.cs.odu.edu/
HTTP/1.1 200 OK
Date: Wed, 07 Aug 2013 23:11:04 GMT
Server: Apache/2.2.17 (Unix) PHP/5.3.5 mod_ssl/2.2.17 OpenSSL/0.9.8q
\textcolor{red}{Allow: GET,HEAD,POST,OPTIONS}
Content-Length: 0
Content-Type: text/html

$
\end{Verbatim}
\caption{OPTIONS Request and Response}
\label{img:optallow}
\end{figure}

dginev avatar Sep 17 '23 23:09 dginev