latex.tmbundle icon indicating copy to clipboard operation
latex.tmbundle copied to clipboard

Suggestion about commands in tables and arrays

Open yoblanco opened this issue 13 years ago • 0 comments

Well, I put new suggestions here, in this case, related to tabulars and more:

First if you are in a tabular or array environment you are able to add new lines by pressing Fn+Enter (I think it's called return, but I'm not sure). This commands adds \\ & & with as many & as you had in the line you were when you called the command.

  1. My first suggestion is that you could go through the columns pressing just tab (not ctrl+tab, as it is right now, because at least for me, it doesn't work well the Previous Cell). For example: if your write a & b and then hit Fn+Enter you get a new line \\ $0 &, I think it would be great to make the command give you this: \\ $1 & $0. And, in case of n columns give you $1, ... , $n-1, $0 so you could just tab to change the cursor.
  2. My second suggestion is to make it work in more environments: matrix, pmatrix, bmatrix, vmatrix, Vmatrix, Bmatrix, smallmatrix, align, flalign, alignat, aligned, alignedat, split, eqnarray, cases, rcases, dcases, etc. and their * associated ones (may be I forgot some of them).

And, in second instance, at least in Mountain Lion 10.8.2, the Add new column and Remove column doesn't work properly. It doesn't add the column to the right of where you are writing (moves the left cell to the right, etc.) and the remove command, doen't remove the cell you are in, it removes some times the first of the row, and sometimes the cell just on the left of you.

So, I will shorten the ideas:

  • Support moving through columns with just tab (and mayus+tab). Which I find logical. (*)
  • Support more environments which use columns and rows.
  • If the first point is not solved, fix the bug with Previous Cell. (*)
  • Fix the bugs with Add new column and Remove column.

Thanks! yoblanco

PS (*): may be I could change this just changing the key combination which calls the command, but I'm afraid it interfere with other tab and mayus+tab usage.

EDIT: okey, I tried some things. Changing Next cell to tab is fine, but Previous Cell with mayus+tab doen't work. Sometimes the Remove previous/next cell works but forgets about indentation and destroys the looking of the table. This should be revised.

yoblanco avatar Nov 25 '12 18:11 yoblanco