|
|
equal column width matrix?
My supervisor would like his matrices to have equal column
width. That means that a 0 entry would be centred in
enough blank space to make the column width as wide as
the widest entry in the matrix. This can probably be
hacked by measuring the widest entry and having the
other entries centred in a hbox that wide. But is there
a more elegant and automatic way to do this?
David
|
|
0
|
|
|
|
Reply
|
David
|
2/3/2011 8:29:35 PM |
|
In article <dalton-B09DCC.16593403022011@news.eternal-september.org>,
David Dalton <dalton@nfld.com> wrote:
> My supervisor would like his matrices to have equal column
> width. That means that a 0 entry would be centred in
> enough blank space to make the column width as wide as
> the widest entry in the matrix. This can probably be
> hacked by measuring the widest entry and having the
> other entries centred in a hbox that wide. But is there
> a more elegant and automatic way to do this?
I forgot to mention that we are using the array
environment in LaTeX.
David
|
|
0
|
|
|
|
Reply
|
David
|
2/3/2011 11:05:56 PM
|
|
Le 04/02/2011 00:05, David Dalton a �crit :
> In article<dalton-B09DCC.16593403022011@news.eternal-september.org>,
> David Dalton<dalton@nfld.com> wrote:
>
>> My supervisor would like his matrices to have equal column
>> width. That means that a 0 entry would be centred in
>> enough blank space to make the column width as wide as
>> the widest entry in the matrix. This can probably be
>> hacked by measuring the widest entry and having the
>> other entries centred in a hbox that wide. But is there
>> a more elegant and automatic way to do this?
>
> I forgot to mention that we are using the array
> environment in LaTeX.
>
> David
You can try the tabu package as in:
\documentclass{article}
\usepackage[delarray]{tabu}
\begin{document}\makeatletter
{
$\begin{tabu}spread 1in|{*4{X[$c]}}|
\alpha & \beta & \gamma & \delta \\
\sum_i \frac{a_i}{x_i} & 0 & \cdot & \cdot \\
\end{tabu}$
}
\end{document}\endinput
But it still under development...
It's not possible to give standard l, c, r columns a specific width,
instead, embed your math content into a paragraph column
>{$}m{width}<{$}
This is what tabu does, measuring the widths to make them
equal: "X[$c]" replaces
">{\centering\arraybackslash}}>{$}p{some dimen}<{$}"
....
|
|
0
|
|
|
|
Reply
|
GL
|
2/3/2011 11:33:37 PM
|
|
|
2 Replies
212 Views
(page loaded in 0.031 seconds)
Similiar Articles: how to transpose large matrix? - comp.unix.shell... have a relatively large file (9.4GB) that containing a rectangular matrix (columns ... I was specifically not speaking of equal-width elements which would certainly make ... Creating matrix of 1's and 0's based on a comparison of values in ...... asking' for every number in a column of A, if that number is smaller than or equal ... Creating copy of columns in Matrix - comp.soft ... comp.graphics.api.opengl... and width ... Copying rows in a two dimensional array. - comp.lang.ada ...... Row is array (Positive range <>) of Float; type Matrix (Width ... Column) =3D --| old Item (Instance, Row_1, Column)); -- Note: Row_1 and Row_2 may be equal. Make a simple 4 row by 4 column scratch pad. - comp.lang.java.help ...... java.help ..... example is missing the * to multiply the character > width by ... Moving columns below other columns, in a matrix - comp.soft-sys ... Make a simple 4 row by 4 ... Euro symbol canvas postscript - comp.lang.perl.tkdup 0 matrix currentmatrix dtransform dup mul exch ... if cvi 6 index mul 3 2 roll % Stack now: width ... in units of the stipple pattern size, going up columns ... renderbuffer objects - comp.graphics.api.opengl... this->rbo->Set( GL_DEPTH_COMPONENT24, this->width ... and hi jakob (as you are frequent reader of this column ;-) ). ... depth test assumes the far plane to be 1, which is equal ... Where did Fortran go? - comp.lang.fortran... de/~tburnus/gcc-trunk/benchmark/iff/ and the columns ... annoys me) is that it has trouble reading fixed-width ... I HAVE programmed in F77, matrix manipulation >where ... How to: Change Row Height or Column Width (Reporting Services)How to: Display the Same Data on a Matrix and a Chart (Reporting Services) ... When you set a column width, you are specifying the maximum width for the column in the ... How to: Change Row Height or Column Width (Reporting Services)When you set a column width, you are specifying the maximum width for the column in the rendered report. Columns do not automatically adjust horizontally to accommodate ... 7/24/2012 12:05:51 AM
|
|
|
|
|
|
|
|
|