LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2005, 10:44 AM   #1
thelonius
Member
 
Registered: Aug 2005
Location: Montréal
Distribution: Debian Testing, Slackware 10.2
Posts: 136

Rep: Reputation: 15
table alignment in LaTeX


Hello,

I want that my two columns table takes the width of the page, i.e. the left column must be adjusted on the left margin, and the rigth column must be adjusted on the right margin of the page.

There must be some special package, but I cannot find it. I don't want to use the '\ \ \ \ \ ...'.

Anyone knows it ?

Thanks.
 
Old 10-04-2005, 07:41 AM   #2
Robattack
LQ Newbie
 
Registered: Dec 2003
Location: Frankfurt, Germany
Distribution: mandriva2006 /dsl-2.0/gentoo-2006.0
Posts: 25

Rep: Reputation: 15
Hello thelonius,

there is a package called "tabularx" (without the quotes of course ;-)).

the code could be something like this:

Code:
\documentclass[12pt]{article}  
\usepackage{german,tabularx}  

\begin{document} 

\begin{center} 
\begin{tabularx}{\textwidth}{|X|X|} 	
  \hline 	
  \raggedleft hello & world\\ 	
  \hline 	
  \centering here & \centering I am 	
  \cr 	
  \hline 
\end{tabularx} 
\end{center}    

\end{document}
hope this helps

robattack

Last edited by Robattack; 10-04-2005 at 07:47 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
stretching a table in LaTeX trutnev Linux - Software 1 08-01-2005 06:42 PM
Latex, width of a tabular table? fei Programming 5 05-23-2005 09:11 AM
latex -- table alignment kaon Linux - Software 2 04-04-2005 02:25 PM
Latex Help - Tabular creating vertical holes in table maneeshsethi Linux - Software 3 08-20-2004 08:13 PM
Partition Table Alignment ripmaster Linux - Newbie 3 07-25-2004 09:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration