At 2:35 PM -0400 21/5/98, John Turner wrote:
>Why are the captions in the HTML forced to the same width as the
>table? I'd prefer to have them appear as in the dvi.
It is up to the browser to choose how to render:
<TABLE>
<CAPTION><STRONG>Table:</STRONG>
A long caption that is much wider than the table.</CAPTION>
<TR>...
For a {tabular} environment, it make no sense to use other
than this straight-forward markup.
>At first I thought it might be because I had the table in a minipage
>so I could use footnotes, but in Table 2 the minipage and footnotes
>are removed, and it's even worse (apparently because in Table 1 it
>used the width of the longest footnote rather than the width of the
>table).
With a {minipage} the game changes,
for the {minipage} itself generates a <TABLE> tag,
while the {tabular} inside it uses its own separate <TABLE> tag.
In your example the caption is associated to the {minipage}
rather than to the {tabular}.
Now (in LaTeX) you can pass width information for the {minipage}.
In current versions of LaTeX2HTML the width is ignored,
but I've just now implemented it so that the width is read
and expanded by the $MATH_SCALE_FACTOR (since this corresponds
to the desired font-scaling between on-paper and on-screen).
However one can also request different widths as follows:
\begin{htmlonly}
\begin{minipage}{3in}
\end{htmlonly}
%\begin{latexonly}
\begin{minipage}{1.75in}
%end{minipage}
>I realize this may be another case of HTML != LaTeX, but this
>seems like it should be possible. I don't know HTML well enough to
>know.
Certainly it's possible.
The problem is to deduce sensible widths to use with the <TABLE> tags,
given that you cannot know what size fonts the reader will be using.
Setting a value for WIDTH=... is a dubious strategy from this point
of view. But *not* setting a value causes the caption to be wrapped
with the width of the contents --- this may not be wide enough.
>Thanks for taking a look. Although I've reported a number of problems
>lately, I'd like to reiterate how grateful I am for LaTeX2HTML and all
>the hard work people (esp. Ross, who always seems to jump on problems)
>have put into it.
;-)
This is one that has been at the back of my mind for awhile.
It had not been clear (and still isn't 100% obvious)
what is the best way to use the length information of a {minipage}.
So when v98.1p6 comes out (real soon), you'll be able to test whether
or not you like how I've now implemented this situation.
>1. Create a file called CvsC++.tex containing, e.g.:
> ....
> Doing section links ...../^CvsC++\./: nested *?+ in regexp at
> /users/turner/Tools/latex2html/latex2html line 935.
Fixing this is a 1-liner:
$STYLESHEET = '' if ($STYLESHEET =~ /\Q^$FILE/);
^^______insert this
Hope this helps,
Ross Moore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore email: [EMAIL PROTECTED]
Mathematics Department phone: +612 9850 8955
Macquarie University fax: +612 9850 8114
Sydney, NSW 2109 office: E7A-419
Australia WWW: http://www-math.mpce.mq.edu.au/~ross/
***************************
for the best in (La)TeX-nical typesetting and Web page production
join the TeX Users Group (TUG) --- browse at http://www.tug.org
<[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~