Aha! 

I've got it working - Helge minipages + Ross Moore \html stuff:

Here's the solution:
1. Put \htmlonly latex tabular statement before the 1st minipage
2. replace the LyX hfill with a conditional \latexhtml{\hfill}{&}
3. Follow the 2nd minipage with an \htmlonly \end{tabular}

Of course you have to put a protected space in the top line of each minipage.
(LyX: ctrl-space ctrl-enter ) to get visual top-alignment.

The LyX sequence:
0. In the preamble:
   \usepackage{html}
1. ERT:
\begin{htmlonly}\begin{tabular}{tt}\end{htmlonly}
2. LyX Insert->Minipage:
3. \latexhtml{\hfill}{&}
4. LyX Insert->Minipage
5. ERT:
\begin{htmlonly}\end{tabular}\end{htmlonly}

The LaTeX html package defines (among other things) environments:
htmlonly{ ... } % for latex commands which will be ignored by latex or
pdflatex but honoured by latex2html
latexhtml{latex code}{html code}
the first argument will be processed by latex only
the second argument will be processed by latex2html only.

Effectively this builds a latex file with the minipages in a latex
tabular when you ask latex2html to process it. When latex or pdflatex
process the file the html bits are ignored (so there is no tabular
statement).

regards
John O'Gorman



Attachment: miniog2.lyx
Description: application/lyx

Reply via email to