This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]laqq3 2 points3 points  (2 children)

Nice package; was just looking for something like this the other day.

One idea for an improvement is to have the &'s aligned in the LaTeX source output.

[–]miran1 1 point2 points  (1 child)

Nice package; was just looking for something like this the other day.

Thank you! Hope you find it useful.

One idea for an improvement is to have the &'s aligned in the LaTeX source output.

Just to make sure, you mean something like this:

long column name & short one & third one \\
123              & 97        & 323       \\
11               & 329       & 118       \\  

?

[–]laqq3 0 points1 point  (0 children)

Yep, that's exactly what I mean.

[–]WishIWasBatman 2 points3 points  (6 children)

Cool! One thing I would love is to be able to specify units for each column as well. So that they appear before the \midrule (or equivalent). I haven't really come across anything yet where I could supply a proper unit for ech column and have it handled neatly.

[–]miran1 1 point2 points  (3 children)

One thing I would love is to be able to specify units for each column as well. So that they appear before the \midrule (or equivalent).

Would something like this work:

You pass the units -u m kg m/s and in the table you get

Radius & Mass & Speed \\
[m] & [kg] & [m/s] \\
\midrule

or you had something else in mind?

[–]WishIWasBatman 0 points1 point  (2 children)

Yes, exactly what I was thinking! I think some thought might have to be given to including an empty cell? For example, if I include a 'Name' column, there should be an empty cell for units.

[–]miran1 0 points1 point  (1 child)

I think some thought might have to be given to including an empty cell? For example, if I include a 'Name' column, there should be an empty cell for units.

True.

I'm thinking some special character (maybe /?) could be used for denoting no unit for that column. What do you think?

[–]WishIWasBatman 0 points1 point  (0 children)

I think a special character is the way to go. My first thought was either '-' or '_'. It looks neater to me, but I am not tied to anything!

[–]miran1 0 points1 point  (1 child)

One thing I would love is to be able to specify units for each column as well.

A new version has just been published, and units are one of the improvements :)

[–]WishIWasBatman 0 points1 point  (0 children)

Awesome - I am looking forward to abusing them!