dzwaneveld / tudelft-report-thesis-template

A LaTeX report/thesis template that aims to simplify and improve the (Xe)LaTeX template provided by the TU Delft. Ready-to-go with its rewritten class file and redesigned cover page.
https://dzwaneveld.github.io/report/
56 stars 20 forks source link

reset spacing #2

Closed albiboni closed 4 years ago

albiboni commented 4 years ago

From the description, I have read that you changed the spacing to make it tighter. I would like to reset it to the original one, or increase it a bit below hline command. As you can see from the picture the text is almost attached to the line. Thank you in advance Screen Shot 2020-03-09 at 10 05 55

dzwaneveld commented 4 years ago

Thanks for letting me know!

I have taken a look at the issue and was able to get the same result. Sadly, this is seems to be the default behavior (though it seems to be slightly worse with Arial compared to Computer Modern), nonetheless it can be fixed quite easily.

If you would like to change the row spacing globally, simply add \setlength\extrarowheight{2pt} to the preamble (under 'Additional Commands' in report.tex). This command is part of the array package, which is a dependency of tabularx and should already be included in your class file. You can play around with the spacing, though 2pt seems pretty reasonable.

Another option is to use the booktabs package (already included in the class file). This package allows some more type lines, that also add slightly more spacing on default. The example below uses \toprule, \midrule and \bottomrule respectively. Depending on the type of table, also take a look at \cmidrule(){} if you want to take this route.

image

If you would like to specifically address the height below the \hline, this or something like this might do the trick, thought I haven't used any of those solution myself before.

In the near future, I will also write some documentation for the template that will make sure that adjusting the template will be a bit more straight forward. Furthermore, it might also address some questions like this one.

I hope that was able to fix your problem. If you encounter anything else, let me know!