[tex4ht] [bug #555] htlatex with \caption[]{}: unwanted content in HTML when using optional argument [BLA]

Michael Jachan puszcza-hackers at gnu.org.ua
Wed Feb 23 09:06:03 CET 2022


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

                 Summary: htlatex with \caption[]{}: unwanted content in HTML
when using optional argument [BLA]
                 Project: tex4ht
            Submitted by: mjachan
            Submitted on: Wed Feb 23 08:06:03 2022
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello! 

I am setting a figure with caption incl. optional argument, and then, in the
HTML, the optional argument is not only placed into the LOF, but BUG: also at
the figure itself. 

The caption is set in my tex source like: 

\begin{figure}
\includegraphics{FILE.PNG}
\caption[BLA]{real caption}
\end{figure}


The figure is set in the HTML like (BUG)

------------
[FILE.PNG]
[BLA]% THE BUG
[real caption]
------------

The raw HTML snippet: 

<!--l. 34--><p class="noindent" > <hr class="figure"><div class="figure" 
>
<!--l. 34--><p class="noindent" ><img 
src="FILE.PNG" alt="PIC"  
>
BLA<br /> % HERE IS THE BUG: BLA SHALL NOT BE THERE!
<div class="caption" 




Many thanks, Michael :)




    _______________________________________________________

Reply to this item at:

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

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



More information about the tex4ht mailing list.