[l2h] Input source
Algis Kabaila
akabaila at pcug.org.au
Wed Nov 22 11:35:29 CET 2006
Hello Ross, Shigeru List Friends, Francis and Lex,
I take the liberty to copy the input source of my experimentation with LaTeX
and latex2html.
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\begin{document}
\noindent I need to state my objectives in formatting the manuscript I am
working on. I want the manuscript to be available in two formats for
different classes of users: html and pdf. Plain LaTeX produces dvi files
which when displayed on the CRT are almost identical to PDFLaTeX compilation
display. LaTeX2html has finer tuning of LaTeX source and produces somewhat
different appearance.
\noindent I was under a mis-understanding and had assumed that the objective
of latex2html was to produce output of as close as possible appearance to
LaTeX. I assume that the aims of latex2html are more ambitious, as mentioned
already.
\noindent On this page I will display a few formats of formulae which satisfy
my needs. For my needs, I am willing to accept less than perfect formatting
if it helps similarity of the two (pdf and html) presentations.
\noindent First, a 'run of the mill' formula format that is most common.
\begin{equation}
\label{eq:1}
P_1 = \alpha \cdot P_3^2 - P_4
\end{equation}
\noindent IMHO, other, more complex formulae should approximate this most
frequently occurring format. Here is another example of a simple formula.
\begin{equation}
\label{eq:2}
\bar P_{1} = - \bar P_{4}
\end{equation}
\noindent And now a group of equations side by side. Please notice that the
'align' command looks very different in html and pdf, so with regret I will
not use the align command in this manuscript. For groups of equations the
'gather' command gives reasonably similar results in both html and pdf.
\begin{gather}
\label{eq:3}
\bar P_{1} = - \bar P_{4} \\
\bar P_{2} = - \bar P_{5}
\end{gather}
\noindent In some cases 'gather' command requires special and laborious
padding. Here is one example, first without and then with padding.
\begin{gather}
\label{eq:5}
\bar P_{1} = - \bar P_{4} \\
\bar P_{2} = - \bar P_{5} + 555.7 \cdot \alpha
\end{gather}
\noindent And now with padding.
\begin{gather}
\label{eq:7}
\bar P_{1} = - \bar P_{4} \phantom{+ 555..7 \cdot \alpha} \\
\bar P_{2} = - \bar P_{5} + 555.7 \cdot \alpha
\end{gather}
\end{document}
Unfortunately, I did not succeed to achieve any consistency between the pdf
and html formats with 'align' command. I again apologise for including
graphics attachments to the mailing list - attached are jpg images of the
above document, both when pdf formatted and when html formatted.
All comments, suggestions and criticism, as always, will be gratefully
received - just bear with my slow response, which I do blame on my age.
With kind regards,
OldAl.
--
Algis Kabaila (Dr)
http://www.pcug.org.au/~akabaila/StructuralAnalysis/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdfFormat.jpg
Type: image/jpeg
Size: 83064 bytes
Desc: not available
Url : http://tug.org/pipermail/latex2html/attachments/20061122/eb724ff6/attachment-0002.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: htmlFormat.jpg
Type: image/jpeg
Size: 66320 bytes
Desc: not available
Url : http://tug.org/pipermail/latex2html/attachments/20061122/eb724ff6/attachment-0003.jpg
More information about the latex2html
mailing list