Graphics, Figures & TablesNew to tables formatting

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mirou
Posts: 18
Joined: Thu Apr 29, 2010 4:36 am

New to tables formatting

Post by mirou »

Hello out there,

Had my first trial with drawing a simple table with the following code:

Code: Select all

\documentclass[parskip]{scrartcl}
\usepackage[frenchb] {babel}
\usepackage[latin1]{inputenc}
\selectlanguage{frenchb} 
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex}
\usepackage{graphicx}
\begin{document}
\begin{table}[htdp]
\caption{Eléments de flexibilité}
\begin{center}
\begin{tabular}{|l|l|}
\hline 
Volume Flexibility & What : Ability to vary the short-term products/services. \\
  & Why : Important. Deadlines for reports, spécial business évents, new projects. \\
  & Example : Ability to asign person /hours to an unplanned project. \\
  \hline]
\hline
\end{tabular}
\end{center}
\label{Eléments de flexibilité des SI proposés par Kumar}
\end{table}%
\end{document}
Note that I had to leave space before the & tabulation sign so that it skips the first column and moved into the second... I don't like it too much but it worked fine.
I have 1 problem and 2 questions: The problem is that the the table is not aligned to the text nor to the page and goes to the left and its remainder cannot be seen in Latex Pdf as if text was cut
the 2 questions are:
How to split a cell into diagonal like in word or excel
How to itemize text in a cell (write text that is bulleted?)
Thanks for the help you can provide me with awaiting your reply..

Recommended reading 2024:

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

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

mirou
Posts: 18
Joined: Thu Apr 29, 2010 4:36 am

New to tables formatting

Post by mirou »

OK I have partially resolved my issue and found that to handle large width cells in a table that might prolong itself over several pages it is best to use the \ltxtable command, but this doesn't give me the results I expect: 2 colomns (the first is text width), the second is aligned with the page margins and would take as many lines from the page as needed.
Pls see my code below and tell me what I shoudl do to enhance its looks (it actually looks BAD) :? .

Code: Select all

\begin{table}
\caption{Eléments de flexibilité des SI proposés par Kumar}
\begin{ltxtable}{{\linewidth}|X|X|}
\hline 
Flexibilité en volume & \begin{itemize} \item Quoi: Capacité de faire varier le produit/service à court-terme. 
\item Pourquoi: Important. Echéanciers de remise des rapports, événements spéciaux de l'entreprise, nouveaux projets.
\item Exemple : Capacité à dédier des personnes/heures à un projet non-planifié.
\end{itemize} \\
Thank you
\hline
\end{ltxtable}
\label{Eléments de flexibilité des SI proposés par Kumar}
\end{table}%
Post Reply