[tex4ht] [bug #312] tcolorbox package does not work with tex4ht. All newlines are lost in listings

Nasser M. Abbasi nma at 12000.org
Fri Jun 10 03:25:10 CEST 2016


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

                 Summary: tcolorbox package does not work with tex4ht. All
newlines are lost in listings
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Fri 10 Jun 2016 04:25:10 AM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Minor
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This MWE

\documentclass[12pt]{book}%
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{listings}
\usepackage{tcolorbox}
\tcbuselibrary{listings}
\usepackage{matlab-prettifier}
\definecolor{bg}{RGB}{240,240,240}
\usepackage{upquote} %to fix string quotes

\newtcblisting{matlab}[1]{
   nobeforeafter, % <--- added
   colback=bg,
   size=minimal,
   hbox,
   listing only,
   listing options={
      style=Matlab-editor,
      basicstyle=\ttfamily#1,
      breaklines         = false,
      escapechar         = `,
      mlshowsectionrules = true
   },
}

\begin{document}
\begin{matlab}{\small}
clear all;
m_zeros = [-1 -2];
m_poles = [0 -4 -6];
gain  = 5;
sys   = zpk(m_zeros,m_poles,gain);
[num,den] = tfdata(sys,'v');
printsys(num,den,'s')
\end{matlab}
\end{document}

Does not produce similar output as lualatex when compiled with make4ht foo.tex
or htlatex

All newlines in the listings are removed in HTML and all the code listings
comes out in one long line in the web page.

Using TL 2015 on Linux mint.






    _______________________________________________________

Reply to this item at:

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

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



More information about the tex4ht mailing list