1

I have a LaTeX document with several tables. All these tables do not have borders. I would like to add borders to all these tables. Adding borders one by one to each table is a daunting task. Is there a simpler way to add (and remove) borders to all the tables in a LaTeX document?

closed as unclear what you're asking by Mensch, Zarko, Stefan Pinnow, siracusa, TeXnician Nov 26 '18 at 6:51

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    why you should add borders? tables without border are more beautiful :-). i'm afraid, that this change you should do manually, maybe with help of editor (difficult to say since i don't know how the tables looks) – Zarko Apr 5 '18 at 18:33
  • @Zarko Personally, I also prefer tables without borders. That's the reason I made all the tables without borders in the first place. But this is my thesis document and I'm in a position where I have to add borders to all the tables. – BEFL Apr 5 '18 at 19:21
  • 1
    With a regex search and replace feature (available in many text editors) you can probably do this fast: replace \begin{tabular}{ until the next } with \begin{tabular}{| and |}, replace \end{tabular} with \hline\end{tabular}, etc.. (or adjust accordingly for booktabs, longtable, ...) – Marijn Apr 5 '18 at 20:37

Browse other questions tagged or ask your own question.