bugtex4ht - Bugs: bug #641, adding \usepackage{subcaption}...

 
 
Show feedback again

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

bug #641: adding \usepackage{subcaption} makes tex4ht not correctly align caption below image in graphics

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Sun Nov 10 18:26:46 2024  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sun Nov 10 19:22:00 2024, comment #1:

Thanks for the report. This seems to be caused by a recent update for the Caption package, which fixed another issue. It should be fixed in the sources now.

Michal Hoftich <michal_h21>
Project Member
Sun Nov 10 18:26:46 2024, original submission:

Screen shots at

https://tex.stackexchange.com/questions/730525/adding-usepackagesubcaption-makes-tex4ht-not-correctly-align-caption-below-im

This MWE

----------------------------
\documentclass[12pt]{book}
\usepackage{graphicx}
\usepackage{framed}
\newcommand{\addImage}[4]
{
\begin{figure}
\centering
\begin{framed}
\includegraphics[width=#2\textwidth]{#3}\caption{#4}
\end{framed}
\end{figure}
}%
\usepackage{subcaption}
\begin{document}
\addImage{1}{0.3}{example-image-a}{Phase line diagram}
\end{document}
-------------------

Compiled with lualatex, gives correct output, with caption below the image

enter image description here

But compiled with tex4ht using the command

make4ht -ulm default -a debug A.tex 'mathjax,htm'

gives this

enter image description here

Removing \usepackage{subcaption} from the code, now tex4ht gives correct output

enter image description here

Is there a workaround for tex4ht?

TL 2024, updated 3 days ago.

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