Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Centering only header of LaTeX table

Tags:

latex

figures

People also ask

How do I center a specific line in LaTeX?

The environment \begin{center}... \end{center} is used to centre the text (note the American spelling). Each line is centred individually. This tends to make the paragraph look ugly and hard to read, but it is useful for centring figures, tables etc.


Define the headings using

\multicolumn{1}{c}{Heading}

Feel free to stick leading and trailing |s around the c as needed.


In order to put a table (or any float) on its own page, use the p argument for location:

\begin{table}[p]
  ...

It will then appear at the end of the chapter/section, or when you issue a \clearpage or \cleardoublepage.