Jose',
Thanks for your mail. Once I started to think about how I would change Lyx, I too started to be unsure about how to handle the Lyx/SGML units.


Jose' Matos wrote:

On Wednesday 25 June 2003 09:48, David Cussans wrote:


Hi,
I am using Lyx to produce Docbook SGML. I would like to be able to
control the column widths. Lyx allows me to edit the table properties,
but this doesn't get reflected in the Docbook SGML output.



The column and rows separation are actually quite easy, the only reason not to have been done before is (lack of) time. I am talking about a finner grained control, although that is not my toppest priority. :-)


Regarding the column width what do you propose that we should use, based on the present user interface? This is a honest question. :-) The fact that I did not reach any conclusion before was the reason not to have it implemented until now.

Probably use only the value for the column and disregard the units, since here we only have a unit, the "*".


I think that is best for now. Work out the fractional width of each column and translate it into "*"
I don't know exactly how this would work, but I guess something like:


\begin_inset Tabular
<lyxtabular version="3" rows="18" columns="4">
<features>
<column alignment="block" valignment="top" leftline="true" width="50text%">
<column alignment="center" valignment="top" leftline="true" width="30text%">
<column alignment="block" valignment="top" leftline="true" width="10text%">
<column alignment="block" valignment="top" leftline="true" rightline="true" width="10text%">


would become:

<informaltable><tgroup cols="4" colsep="1" rowsep="1">
<colspec colname="col0" align="center" colwidth="5*">
<colspec colname="col1" align="center" colwidth="3*">
<colspec colname="col2" align="center" colwidth="1*">
<colspec colname="col3" align="center" colwidth="1*">
<tbody>

Even if you can't handle every combination of Lyx units, just document which ones you can handle and call it a feature ;-) Perhaps after implementing the easy "special case" it will become clear what to do in general....

   Thanks,
           David

--
  Dr David Cussans             University of Bristol,
office: +44-(117)-928 8772      H.H. Wills Physics Laboratory,
  lab: +44-(117)-33 17199      Tyndall Avenue,
  fax: +44-(117)-925 5624      Bristol BS8 1TL, UK






Reply via email to