Every time I'm working with tables in LaTeX, I'm frustrated, because I can't find a clean way to type them. Suppose my code looks like this:
\begin{tabular}{c c c}
blablabla & blabla & bla blablabla \\
bla & blablablablabla blabla & blabla blablabla \\
blabla blabla blabla & bla & blablablabla bla \\
\end{tabular}
This looks dreadful in my code (imagine that there are even more columns and rows). I find it hard to read and quickly correct certain elements in it, if necessary. I therefore tried working with spaces and/or tabs to make it look like this:
\begin{tabular}{c c c}
blablabla & blabla & bla blablabla \\
bla & blablablablabla blabla & blabla blablabla \\
blabla blabla blabla & bla & blablablabla bla \\
\end{tabular}
However, when I now need to change something, the alignment changes too and after a while, I'm rather typing spaces than doing something useful. The code in my editor (TeXstudio) is also displayed in Verdana (because I find that easier to read), but as it isn't monospaced, it doesn't even look that nicely aligned.
How do you guys manage this? Does it bother you too that the table should be aligned nicely in your code or am I the only freak out here?
&s https://github.com/junegunn/vim-easy-align – MaxNoe Nov 22 '14 at 17:31cccentries I let them fall as they fall. If it ispentries with paragraphs that kind of alignment doesn't work anyway. A simper alignment on the source, which does work also forpentries, is just to start each cell on a new line, ending the cell with&or\\as needed – David Carlisle Nov 22 '14 at 17:35latexindentto reformat and indent your code properly. – Werner Nov 22 '14 at 18:13latexindentfor automatic indentation, see https://tex.stackexchange.com/questions/334287/how-to-use-latexindent-in-texstudio-on-windows – Jeroen Jun 19 '20 at 11:46