bugtex4ht - Bugs: bug #344, tex4ht may generate HTML file with...

 
 
Show feedback again

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

bug #344: tex4ht may generate HTML file with incorrect indent

Submitted by:  Rongsong Shen <shen390s>
Submitted on:  Wed Dec 7 09:48:22 2016  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed Dec 14 00:07:28 2016, comment #2:

Indeed, \centering is the declaration, while \center is the environment. LaTeX is somewhat forgiving about this, but I don't think tex4ht can be. Sorry. Closing ...

Karl Berry <karl>
Project Administrator
Wed Dec 7 10:27:08 2016, comment #1:

The issue here is that \center shouldn't be used that way. It starts a trivlist environment and it needs to be closed using \endcenter. You should use `center` environment, as there is a configuration for this envionment in tex4ht.

---------
\item {
Item 2

\begin{center}
This is a centered text
\end{center}

Something about 2
}
---------

Michal Hoftich <michal_h21>
Project Member
Wed Dec 7 09:48:22 2016, original submission:

1. With following source code of latex(say abc.tex):

\documentclass{article}
\begin{document}
\section {Preface}
\section {Preparation}
\subsection {Part A}
\begin{enumerate}
\item {Item 1}
\item {
Item 2

{\center This is a centered text}
Something about 2
}

\end{enumerate}

\subsection {Part B}
Part b goes here
\end{document}

2. generate abc.html with command `htlatex abc.tex`

3. check abc.html

Rongsong Shen <shen390s>

 

Attached Files
file #270:  abc.html added by shen390s (1kB - text/html)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by shen390s (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):

     

     

    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Dec 14 00:07:28 2016karlOpen/ClosedOpen=>Closed
    Wed Dec 7 09:49:17 2016shen390sAttached File-=>Added abc.html, #270
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray