[l2h] latex2html problem with tabular in iclude file

Marc Buffat marcbuffat at free.fr
Sat Nov 13 15:01:37 CET 2004


Dear Colleagues,
I am using latex2html to convert large Latex files (using lyx). I have a 
problem with tabular in included file, i.e. in the html document, the
table has only the first ligne. The same table included in the main document
is conveted correctly by latex2html.
Here is a simple example:
the main latex file essai.tex whith one table and an included file tab.tex
=========================
\documentclass[a4paper,oneside,french]{book}
\usepackage{pslatex}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{color}
\usepackage{graphicx}
\makeatletter
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{verbatim}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{ifpdf}
\DeclareGraphicsExtensions{.eps,.ps,.pst}
\usepackage{html}
% hyperref -> html
\def\href#1#2{\htmladdnormallink{#2}{#1}}
%\def\ref#1{\htmlref{#1}}
\def\chaptermark#1{}
\usepackage{color}
\usepackage{fancybox}
% Index
\usepackage{makeidx}
\makeindex
% Paragraphe en couleur
\usepackage{color,calc}
% package algorithm
\usepackage{algorithmic}
\usepackage{algorithm}
% macro \lst{fichier}{language}{caption}{label}
% macro \lst{fichier}{language}{caption}{label}
\usepackage{verbatim}
\def\lstset#1{}
\newcommand{\lst}[4]{%
  \vspace{1ex}%
  \verbatiminput{#1}
  \vspace{1ex}%
}
% idem mais listing non flottant
\newcommand{\lhst}[4]{%
  \vspace{1ex}%
  \verbatiminput{#1}
  \vspace{1ex}%
}
\usepackage{babel}
\makeatother
\begin{document}
\chapter{Essai}
Ceci est un essai de tableau
\section{Tableaux}
\begin{tabular}{|c|c|c|}
\hline
\textbf{tab1}&
tab2&
tab3\tabularnewline
\hline
\hline
\textcolor{red}{1}&
2&
3\tabularnewline
\hline
\textcolor{red}{4}&
5&
6\tabularnewline
\hline
\end{tabular}

avant inclusion

\include{tab}
\end{document}
=====================
and the simple included tex file tab.tex, which contains the same table 
=====================
apres inclusion

\begin{tabular}{|c|c|c|}
\hline
\textbf{tab1}&
tab2&
tab3\tabularnewline
\hline
\hline
\textcolor{red}{1}&
2&
3\tabularnewline
\hline
\textcolor{red}{4}&
5&
6\tabularnewline
\hline
\end{tabular}
========================
when using latex, the output is correct. But with latex2html, only the first 
table is display correctly, the second one as only one row.
Thanks
	Marc
-- 
Marc BUFFAT            		tel: 04/78/50/38/26
51 Chemin du grand Roule  	mél: marcbuffat at free.fr
69350 LA Mulatière         	wéb: marcbuffat.free.fr



More information about the latex2html mailing list