GeneralForcing to New Line

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Greenberet
Posts: 3
Joined: Thu Jun 25, 2009 7:59 pm

Forcing to New Line

Post by Greenberet »

Hi all ;

First of all , I like to admit my grateful thanks to all concern involved in this site ;)

Anyway , how to start a new line in the same column in tabular environment.

I tried to use \linebreak , \\ , & \newline ....nothing happened.

In fact , if that is not possible , how to create table like this in \LaTeX :

Code: Select all

Title One                                                   Title two

The first statement  , True                                ---------
The second one                                                         
The third one                                                             


The first statement , False                                ---------
The second one                                                         
The third one                                                             


The first statement , False                                ---------
The second one                                                         
The third one                    

Note : I need the comma in the same alignment of vertical line .

:)

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
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Forcing to New Line

Post by gmedina »

Hi,

you could use the tabbing environment, as the following example suggests:

Code: Select all

\documentclass{article}

\begin{document}

\begin{tabbing}
  \hspace*{4cm} \= \hspace*{6cm} \= \kill
  Title 1 \> \> Title 2 \\[1.2\baselineskip]
  The first statement \> , \> True \rule{1cm}{.4pt} \\
  The second one \\
  The third one \\[2\baselineskip]
  Another first statement \> , \> False \rule{1cm}{.4pt} \\
  The second one \\
  The third one \\[1.2\baselineskip]
\end{tabbing}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Forcing to New Line

Post by Juanjo »

...or a tabular environment:

Code: Select all

\documentclass{article}
\usepackage{array,booktabs}
\begin{document}
\begin{tabular}{>{\raggedright}p{0.25\textwidth}@{,\ }l@{\qquad}l}
   \toprule
   \multicolumn{2}{l}{Title One} & Title two \\ \midrule
   The first statement \\  The second one \\ The third one
      & True & Bla bla bla \\[8ex]                                                        
   The first statement \\  The second one \\ The third one
      & False & Bla bla bla \\[8ex]                                                        
   The first statement \\  The second one \\ The third one
      & False & Bla bla bla \\[8ex]                                                        
   The first statement \\  The second one \\ The third one
      & False & Bla bla bla \\ \bottomrule
\end{tabular}
\end{document}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply