Re: Full width tables

2001-09-15 Thread Dekel Tsur

On Fri, Sep 14, 2001 at 09:02:07PM +0200, Herbert Voss wrote:
 Dekel Tsur wrote:
   Nicholas Piper wrote:
   
I don't quite understand what you are suggesting I try. Should I
add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
and that will allow me to use the X column type ?
  
   there are still some problems with redefining the tabular
   environment. therefore write it in real latex (ert)
  
  What problems ?
 
 maybe that I'm blinded by the light, but nothing works ...
 look at attched file (cvs)

I've checked the tabularx source, and it uses tabular internally.
One can overcome this problem by editing the tabularx.sty file,
adding the lines
\let\oldtabular=\tabular
\let\oldendtabular=\endtabular
and replacing the instances of \tabular  \endtabular
by \oldtabular and \oldendtabular.



Re: Full width tables

2001-09-15 Thread Herbert Voss

Dekel Tsur wrote:
 
 I've checked the tabularx source, and it uses tabular internally.
 One can overcome this problem by editing the tabularx.sty file,
 adding the lines
 \let\oldtabular=\tabular
 \let\oldendtabular=\endtabular
 and replacing the instances of \tabular  \endtabular
 by \oldtabular and \oldendtabular.

what do you think about two more options in the tab-gui

use tabular*
use tabularx

and an additional widthfield for these options??

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: Full width tables

2001-09-15 Thread Dekel Tsur

On Fri, Sep 14, 2001 at 09:02:07PM +0200, Herbert Voss wrote:
 Dekel Tsur wrote:
   Nicholas Piper wrote:
   
I don't quite understand what you are suggesting I try. Should I
add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
and that will allow me to use the X column type ?
  
   there are still some problems with redefining the tabular
   environment. therefore write it in real latex (ert)
  
  What problems ?
 
 maybe that I'm blinded by the light, but nothing works ...
 look at attched file (cvs)

I've checked the tabularx source, and it uses tabular internally.
One can overcome this problem by editing the tabularx.sty file,
adding the lines
\let\oldtabular=\tabular
\let\oldendtabular=\endtabular
and replacing the instances of \tabular  \endtabular
by \oldtabular and \oldendtabular.



Re: Full width tables

2001-09-15 Thread Herbert Voss

Dekel Tsur wrote:
 
 I've checked the tabularx source, and it uses tabular internally.
 One can overcome this problem by editing the tabularx.sty file,
 adding the lines
 \let\oldtabular=\tabular
 \let\oldendtabular=\endtabular
 and replacing the instances of \tabular  \endtabular
 by \oldtabular and \oldendtabular.

what do you think about two more options in the tab-gui

use tabular*
use tabularx

and an additional widthfield for these options??

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: Full width tables

2001-09-15 Thread Dekel Tsur

On Fri, Sep 14, 2001 at 09:02:07PM +0200, Herbert Voss wrote:
> Dekel Tsur wrote:
> > > Nicholas Piper wrote:
> > > >
> > > > I don't quite understand what you are suggesting I try. Should I
> > > > add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
> > > > and that will allow me to use the "X" column type ?
> > >
> > > there are still some problems with redefining the tabular
> > > environment. therefore write it in real latex (ert)
> > 
> > What problems ?
> 
> maybe that I'm blinded by the light, but nothing works ...
> look at attched file (cvs)

I've checked the tabularx source, and it uses tabular internally.
One can overcome this problem by editing the tabularx.sty file,
adding the lines
\let\oldtabular=\tabular
\let\oldendtabular=\endtabular
and replacing the instances of \tabular & \endtabular
by \oldtabular and \oldendtabular.



Re: Full width tables

2001-09-15 Thread Herbert Voss

Dekel Tsur wrote:
> 
> I've checked the tabularx source, and it uses tabular internally.
> One can overcome this problem by editing the tabularx.sty file,
> adding the lines
> \let\oldtabular=\tabular
> \let\oldendtabular=\endtabular
> and replacing the instances of \tabular & \endtabular
> by \oldtabular and \oldendtabular.

what do you think about two more options in the tab-gui

use tabular*
use tabularx

and an additional widthfield for these options??

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: Full width tables

2001-09-14 Thread Dekel Tsur

On Fri, Sep 14, 2001 at 07:01:13AM +0200, Herbert Voss wrote:
 Nicholas Piper wrote:
  
  I don't quite understand what you are suggesting I try. Should I
  add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
  and that will allow me to use the X column type ?
 
 there are still some problems with redefining the tabular
 environment. therefore write it in real latex (ert)

What problems ?

Nicholas, please send me a (small) example file with table, and I will see
if I can help you.



Re: Full width tables

2001-09-14 Thread Dekel Tsur

On Fri, Sep 14, 2001 at 07:01:13AM +0200, Herbert Voss wrote:
 Nicholas Piper wrote:
  
  I don't quite understand what you are suggesting I try. Should I
  add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
  and that will allow me to use the X column type ?
 
 there are still some problems with redefining the tabular
 environment. therefore write it in real latex (ert)

What problems ?

Nicholas, please send me a (small) example file with table, and I will see
if I can help you.



Re: Full width tables

2001-09-14 Thread Dekel Tsur

On Fri, Sep 14, 2001 at 07:01:13AM +0200, Herbert Voss wrote:
> Nicholas Piper wrote:
> > 
> > I don't quite understand what you are suggesting I try. Should I
> > add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
> > and that will allow me to use the "X" column type ?
> 
> there are still some problems with redefining the tabular
> environment. therefore write it in real latex (ert)

What problems ?

Nicholas, please send me a (small) example file with table, and I will see
if I can help you.



Re: Full width tables

2001-09-13 Thread Nicholas Piper

On Thu, 06 Sep 2001, Herbert Voss wrote:

 On Thu, 6 Sep 2001, Nicholas Piper wrote:

Sorry for the delay getting back to the list.

  Ah, so it is still not possible to do this using the LyX table editor?
  I suppose I can pass my file through a filter that converts tablular
  to tabularx afterwards.

 latest cvs seems to be buggy, but 1.1.6 and ealier should
 do the trick. with \renewenvironment{tabular}

I have 1.1.6fix3, so I presume you mean that'll be ok.

I don't quite understand what you are suggesting I try. Should I
add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
and that will allow me to use the X column type ?

This would allow my columns to adjust themselves so that the entire
table is a particular width (\textwidth) so I can have a page which is
like

+-+
| h   |
|text text text   |
|text text text   |
|text text text   |
| able table table ta |
| able table table ta |
| able table table ta |
| able table table ta |
|text text text   |
|text text text   |
|text text text   |
| f   |
+-+

?

I'm considering moving back to xemacs for personal documents TBH; but
I'd still like to be able to have wide tables in documents which
must be LyX so that others (eg. my boss) have at least a chance of
learning to edit them.

Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-13 Thread Herbert Voss

Nicholas Piper wrote:
 
 I don't quite understand what you are suggesting I try. Should I
 add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
 and that will allow me to use the X column type ?

there are still some problems with redefining the tabular
environment. therefore write it in real latex (ert)
 
 This would allow my columns to adjust themselves so that the entire
 table is a particular width (\textwidth) so I can have a page which is
 like

\usepackage{tabularx}% in preamble

\begin{tabularx}{\textwidth}{c|X|c}
1  2  3\\
3  4 
\end{tabularx}

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Full width tables

2001-09-13 Thread Nicholas Piper

On Thu, 06 Sep 2001, Herbert Voss wrote:

 On Thu, 6 Sep 2001, Nicholas Piper wrote:

Sorry for the delay getting back to the list.

  Ah, so it is still not possible to do this using the LyX table editor?
  I suppose I can pass my file through a filter that converts tablular
  to tabularx afterwards.

 latest cvs seems to be buggy, but 1.1.6 and ealier should
 do the trick. with \renewenvironment{tabular}

I have 1.1.6fix3, so I presume you mean that'll be ok.

I don't quite understand what you are suggesting I try. Should I
add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
and that will allow me to use the X column type ?

This would allow my columns to adjust themselves so that the entire
table is a particular width (\textwidth) so I can have a page which is
like

+-+
| h   |
|text text text   |
|text text text   |
|text text text   |
| able table table ta |
| able table table ta |
| able table table ta |
| able table table ta |
|text text text   |
|text text text   |
|text text text   |
| f   |
+-+

?

I'm considering moving back to xemacs for personal documents TBH; but
I'd still like to be able to have wide tables in documents which
must be LyX so that others (eg. my boss) have at least a chance of
learning to edit them.

Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-13 Thread Herbert Voss

Nicholas Piper wrote:
 
 I don't quite understand what you are suggesting I try. Should I
 add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
 and that will allow me to use the X column type ?

there are still some problems with redefining the tabular
environment. therefore write it in real latex (ert)
 
 This would allow my columns to adjust themselves so that the entire
 table is a particular width (\textwidth) so I can have a page which is
 like

\usepackage{tabularx}% in preamble

\begin{tabularx}{\textwidth}{c|X|c}
1  2  3\\
3  4 
\end{tabularx}

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Full width tables

2001-09-13 Thread Nicholas Piper

On Thu, 06 Sep 2001, Herbert Voss wrote:

> On Thu, 6 Sep 2001, Nicholas Piper wrote:

Sorry for the delay getting back to the list.

> > Ah, so it is still not possible to do this using the LyX table editor?
> > I suppose I can pass my file through a filter that converts tablular
> > to tabularx afterwards.

> latest cvs seems to be buggy, but 1.1.6 and ealier should
> do the trick. with \renewenvironment{tabular}

I have 1.1.6fix3, so I presume you mean that'll be ok.

I don't quite understand what you are suggesting I try. Should I
add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
and that will allow me to use the "X" column type ?

This would allow my columns to adjust themselves so that the entire
table is a particular width (\textwidth) so I can have a page which is
like

+-+
| h   |
|text text text   |
|text text text   |
|text text text   |
| able table table ta |
| able table table ta |
| able table table ta |
| able table table ta |
|text text text   |
|text text text   |
|text text text   |
| f   |
+-+

?

I'm considering moving back to xemacs for personal documents TBH; but
I'd still like to be able to have "wide" tables in documents which
must be LyX so that others (eg. my boss) have at least a chance of
learning to edit them.

Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-13 Thread Herbert Voss

Nicholas Piper wrote:
> 
> I don't quite understand what you are suggesting I try. Should I
> add \usepackage{tabularx} \renewenvironment{tabular} in the preample,
> and that will allow me to use the "X" column type ?

there are still some problems with redefining the tabular
environment. therefore write it in real latex (ert)
> 
> This would allow my columns to adjust themselves so that the entire
> table is a particular width (\textwidth) so I can have a page which is
> like

\usepackage{tabularx}% in preamble

\begin{tabularx}{\textwidth}{c|X|c}
1 & 2 & 3\\
3 & 4 &
\end{tabularx}

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Full width tables

2001-09-06 Thread Nicholas Piper

On Wed, 05 Sep 2001, Herbert Voss wrote:

 Nicholas Piper wrote:

  I don't understand your last line. Could you give me an example or
  point me to where I might find one ?

 the following all in tex (red)

 \noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline 
 one  two  three \\ 
 1  2  3 \\ 
 a  b  c \\ \hline 
 \end{tabularx}

Ah, so it is still not possible to do this using the LyX table editor?
I suppose I can pass my file through a filter that converts tablular
to tabularx afterwards.

Cheers,

 Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-06 Thread Herbert Voss


On Thu, 6 Sep 2001, Nicholas Piper wrote:

   I don't understand your last line. Could you give me an example or
   point me to where I might find one ?

  the following all in tex (red)

  \noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline
  one  two  three \\
  1  2  3 \\
  a  b  c \\ \hline
  \end{tabularx}

 Ah, so it is still not possible to do this using the LyX table editor?
 I suppose I can pass my file through a filter that converts tablular
 to tabularx afterwards.

latest cvs seems to be buggy, but 1.1.6 and ealier should
do the trick. with \renewenvironment{tabular}

Herbert




Re: Full width tables

2001-09-06 Thread Nicholas Piper

On Wed, 05 Sep 2001, Herbert Voss wrote:

 Nicholas Piper wrote:

  I don't understand your last line. Could you give me an example or
  point me to where I might find one ?

 the following all in tex (red)

 \noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline 
 one  two  three \\ 
 1  2  3 \\ 
 a  b  c \\ \hline 
 \end{tabularx}

Ah, so it is still not possible to do this using the LyX table editor?
I suppose I can pass my file through a filter that converts tablular
to tabularx afterwards.

Cheers,

 Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-06 Thread Herbert Voss


On Thu, 6 Sep 2001, Nicholas Piper wrote:

   I don't understand your last line. Could you give me an example or
   point me to where I might find one ?

  the following all in tex (red)

  \noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline
  one  two  three \\
  1  2  3 \\
  a  b  c \\ \hline
  \end{tabularx}

 Ah, so it is still not possible to do this using the LyX table editor?
 I suppose I can pass my file through a filter that converts tablular
 to tabularx afterwards.

latest cvs seems to be buggy, but 1.1.6 and ealier should
do the trick. with \renewenvironment{tabular}

Herbert




Re: Full width tables

2001-09-06 Thread Nicholas Piper

On Wed, 05 Sep 2001, Herbert Voss wrote:

> Nicholas Piper wrote:

> > I don't understand your last line. Could you give me an example or
> > point me to where I might find one ?

> the following all in tex (red)

> \noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline 
> one & two & three \\ 
> 1 & 2 & 3 \\ 
> a & b & c \\ \hline 
> \end{tabularx}

Ah, so it is still not possible to do this using the LyX table editor?
I suppose I can pass my file through a filter that converts tablular
to tabularx afterwards.

Cheers,

 Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-06 Thread Herbert Voss


On Thu, 6 Sep 2001, Nicholas Piper wrote:

> > > I don't understand your last line. Could you give me an example or
> > > point me to where I might find one ?
>
> > the following all in tex (red)
>
> > \noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline
> > one & two & three \\
> > 1 & 2 & 3 \\
> > a & b & c \\ \hline
> > \end{tabularx}
>
> Ah, so it is still not possible to do this using the LyX table editor?
> I suppose I can pass my file through a filter that converts tablular
> to tabularx afterwards.

latest cvs seems to be buggy, but 1.1.6 and ealier should
do the trick. with \renewenvironment{tabular}

Herbert




Full width tables

2001-09-05 Thread Nicholas Piper

Hi,

I'd like to permit certain tables to use the full width of my A4
page. Normally I quite like the largish margins, but trying to squish
a table which contains a lot of info into them seems silly. Can my
table go from one side of the sheet to the other ?

Cheers,

 Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-05 Thread Herbert Voss

Nicholas Piper wrote:
 
 I'd like to permit certain tables to use the full width of my A4
 page. Normally I quite like the largish margins, but trying to squish
 a table which contains a lot of info into them seems silly. Can my
 table go from one side of the sheet to the other ?

have a look at package tabularx

Herbert
 
-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: Full width tables

2001-09-05 Thread Nicholas Piper

On Wed, 05 Sep 2001, Herbert Voss wrote:

 Nicholas Piper wrote:

  How can I integrate this with LyX's table editor ?

 this is not easy, because you have to redefine the table environment.
 fouer one or two tables choose pute tex (red) code.

I don't understand your last line. Could you give me an example or
point me to where I might find one ?

(Anyone know if native support for tabularx is planned for LyX ?
Similar to the longtable support ?)

Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-05 Thread Herbert Voss

Nicholas Piper wrote:

 I don't understand your last line. Could you give me an example or
 point me to where I might find one ?

the following all in tex (red)

\noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline 
one  two  three \\ 
1  2  3 \\ 
a  b  c \\ \hline 
\end{tabularx}

all columns marked through X always gets a variable width, in this
case the middle column has a width so that the whole table is 
\textwidth wide.

 (Anyone know if native support for tabularx is planned for LyX ?
 Similar to the longtable support ?)

this is a question to Juergen, but he is lying in Italys sun ..

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Full width tables

2001-09-05 Thread Nicholas Piper

Hi,

I'd like to permit certain tables to use the full width of my A4
page. Normally I quite like the largish margins, but trying to squish
a table which contains a lot of info into them seems silly. Can my
table go from one side of the sheet to the other ?

Cheers,

 Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-05 Thread Herbert Voss

Nicholas Piper wrote:
 
 I'd like to permit certain tables to use the full width of my A4
 page. Normally I quite like the largish margins, but trying to squish
 a table which contains a lot of info into them seems silly. Can my
 table go from one side of the sheet to the other ?

have a look at package tabularx

Herbert
 
-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: Full width tables

2001-09-05 Thread Nicholas Piper

On Wed, 05 Sep 2001, Herbert Voss wrote:

 Nicholas Piper wrote:

  How can I integrate this with LyX's table editor ?

 this is not easy, because you have to redefine the table environment.
 fouer one or two tables choose pute tex (red) code.

I don't understand your last line. Could you give me an example or
point me to where I might find one ?

(Anyone know if native support for tabularx is planned for LyX ?
Similar to the longtable support ?)

Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-05 Thread Herbert Voss

Nicholas Piper wrote:

 I don't understand your last line. Could you give me an example or
 point me to where I might find one ?

the following all in tex (red)

\noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline 
one  two  three \\ 
1  2  3 \\ 
a  b  c \\ \hline 
\end{tabularx}

all columns marked through X always gets a variable width, in this
case the middle column has a width so that the whole table is 
\textwidth wide.

 (Anyone know if native support for tabularx is planned for LyX ?
 Similar to the longtable support ?)

this is a question to Juergen, but he is lying in Italys sun ..

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Full width tables

2001-09-05 Thread Nicholas Piper

Hi,

I'd like to permit certain tables to use the full width of my A4
page. Normally I quite like the largish margins, but trying to squish
a table which contains a lot of info into them seems silly. Can my
table go from one side of the sheet to the other ?

Cheers,

 Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-05 Thread Herbert Voss

Nicholas Piper wrote:
> 
> I'd like to permit certain tables to use the full width of my A4
> page. Normally I quite like the largish margins, but trying to squish
> a table which contains a lot of info into them seems silly. Can my
> table go from one side of the sheet to the other ?

have a look at package tabularx

Herbert
 
-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: Full width tables

2001-09-05 Thread Nicholas Piper

On Wed, 05 Sep 2001, Herbert Voss wrote:

> Nicholas Piper wrote:

> > How can I integrate this with LyX's table editor ?

> this is not easy, because you have to redefine the table environment.
> fouer one or two tables choose pute tex (red) code.

I don't understand your last line. Could you give me an example or
point me to where I might find one ?

(Anyone know if native support for tabularx is planned for LyX ?
Similar to the longtable support ?)

Nick

-- 
Part 3 MEng Cybernetics; Reading, UK   http://www.nickpiper.co.uk/
Change PGP actions of mailer or fetch key see website   1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !



Re: Full width tables

2001-09-05 Thread Herbert Voss

Nicholas Piper wrote:

> I don't understand your last line. Could you give me an example or
> point me to where I might find one ?

the following all in tex (red)

\noindent\begin{tabularx}{\textwidth}{|c|X|c|}\hline 
one & two & three \\ 
1 & 2 & 3 \\ 
a & b & c \\ \hline 
\end{tabularx}

all columns marked through X always gets a variable width, in this
case the middle column has a width so that the whole table is 
\textwidth wide.

> (Anyone know if native support for tabularx is planned for LyX ?
> Similar to the longtable support ?)

this is a question to Juergen, but he is lying in Italys sun ..

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/