How can I set the margins around all tabulars to zero by default?

The margins around a single tabular can be removed using @{}, see below, but I have dozens of tables and would like to have a single switch for all of them.


Source: How can the margins around a table set to 0pt?

  • @PhelypeOleinik unfortunately not, that removes the space between columns in the table. Jan 16, 2018 at 11:08
  • 4
    One way would be to define your own environment which adds the @{}. \newenvironment{mytabular}[1]{\tabular{@{}#1@{}}}{\endtabular}. By renaming tabular to e.g. origtabular first (\let\origtabular\tabular \let\endorigtabular\endtabular) you can even patch the environment and keeping the orginal name. Jan 16, 2018 at 11:13

1 Answer 1


Just for fun. This trims off the edge using a \makebox. The \fbox is just to show the actual dimensions.



  My&own MWE


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.