[tex4ht] [bug #246] \usepackage{cprotect} generate extra strange letters not in text in HTML

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Tue Mar 10 20:57:08 CET 2015


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

                 Summary: \usepackage{cprotect} generate extra strange letters
not in text in HTML
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Tue 10 Mar 2015 09:57:05 PM EET
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Minor
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:


reference:
http://tex.stackexchange.com/questions/232395/why-tex4ht-generate-funny-looking-extra-characters-when-using-usepackagecprote

this MWE

--------------------------------
\documentclass[]{article}
\usepackage{cprotect}
\begin{document}
\cprotect\fbox
{
\begin{minipage}[t]{\textwidth}
  This is a test
\end{minipage}
}
\end{document}
-------------------------

compiled with htlatex foo.tex  generates HTML with extra characters not in the
latex file. The HTML generated is

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
  "http://www.w3.org/TR/html4/loose.dtd">  
<html > 
<head><title></title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)"> 
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)"> 
<!-- html --> 
<meta name="src" content="foo.tex"> 
<meta name="date" content="2015-03-10 14:04:00"> 
<link rel="stylesheet" type="text/css" href="foo.css"> 
</head><body 
>
   <div class="fbox"><div class="minipage">This is a test</div>
&#x02C6;&#x02C6;E&#x02C6;&#x02C6;L</div>

</body></html> 

File list is

 *File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
  tex4ht.sty    
cprotect.sty    2011/01/27 v1.0e (Bruno Le Floch)
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
  suffix.sty    2006/07/15 1.5a Variant command support
 ***********

Screen image is in the above post.

texlive 2014






    _______________________________________________________

Reply to this item at:

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

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



More information about the tex4ht mailing list