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

2023-10-20 Thread Michal Hoftich
Follow-up Comment #1, bug #312 (project tex4ht):

I've tried this now, and it worked, except the fact that the box wasn't closed
correctly. The Listings library uses a different macro to be called at the end
of the environment that it defines, so we need to patch it to close the box.
There was also some wrong formatting, so I fixed that too.

___

Reply to this item at:

  

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



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

2016-06-09 Thread Nasser M. Abbasi
URL:
  

 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:

  

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