bugtex4ht - Bugs: bug #312, tcolorbox package does not work...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

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

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Fri Jun 10 01:25:10 2016  
Category: NonePriority: 5 - Normal
Severity: 3 - MinorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Fri Oct 20 16:09:22 2023, comment #1:

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.

Michal Hoftich <michal_h21>
Project Member
Fri Jun 10 01:25:10 2016, original submission:

This MWE

\usepackage{upquote} %to fix string quotes

nobeforeafter, % <--- added
listing only,
listing options={
breaklines = false,
escapechar = `,
mlshowsectionrules = true

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');

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.

Nasser M. Abbasi <nma123>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray