Graphics, Figures & TablesTable to wide

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
hub
Posts: 12
Joined: Sun Oct 05, 2008 12:25 pm

Table to wide

Post by hub »

I have a table that is to wide for the page. I have also redefined the arraystretch to get "more air" (\renewcommand*\arraystretch{1.5}).

How do I split the text (break it into two lines) in the leftmost column and get a nice look on the rest of the table?

Code: Select all

\begin{table}[htb]
\centering
\begin{tabular}{ l | c | c | c | c |}
\cline{2-5}
& \multicolumn{2}{|c|}{Input Cell}
& \multicolumn{2}{|c|}{Output Cell} \\
\hline
\multicolumn{1}{|l|}{Instruction} 
& Scan Enable & Hold Enable & Scan Enable & Hold Enable \\
\hline
\multicolumn{1}{|l|}{WS\_INTEST\_SCAN} 
& ShiftWR & 1 & ShiftWR & \tilda CaptureWR \\
\hline
\multicolumn{1}{|l|}{WS\_EXTEST\_SCAN}
& WPSE & 1 & WPSE & 0 \\
\hline
\multicolumn{1}{|l|}{WS\_EXTEST}
& ShiftWR & \tilda CaptureWR & ShiftWR & 1\\
\hline
\end{tabular}
\caption{Control signals for wbr cell modes}
\label{tab:wbrcontrolsignals}
\end{table}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table to wide

Post by localghost »

An interesting source for solutions to such issues is the unofficial LaTeX Reference Manual. It lists many basics regarding LaTeX.


Best regards
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Table to wide

Post by Stefan Kottwitz »

Hello hub,

if you use a p-column instead of the l column, like p{2cm}, you could use paragraph or line breaks inside a cell.
To improve your table I recommend to use the booktabs package.

Stefan
LaTeX.org admin
Post Reply