I am trying to center this table in LaTeX:
so that it stretches to the entire width of the page. I tried several other solutions provided on TeX.SE, but none of them suited my purpose.



    \address{White House, \\ Washington D.C \\ The USA}
        \opening{Dear Joe}
    Sincerely, \\ \\
    \begin{tabularx}{\textwidth}{c c}
    Founder Name & \makebox[2.5in]{\hrulefill}\\
        Founder & Intern Name \\[8ex]% adds space between the two sets of signatures
  • tabularx should only ever be used if it has an X column that allows it to stretch May 27, 2021 at 14:37
  • 1
    also you have a word space at the start of the makebox (from { ) so there is not room to fit a \textwidth wide table. You probably want {% May 27, 2021 at 14:39
  • @DavidCarlisle That fixes it! Thank you!
    – mon
    Jun 2, 2021 at 13:57


Your Answer

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

Browse other questions tagged or ask your own question.