1

I'm working on a presentation and I would like to type a table. The problem is that I know how to do a table but not this kind of table. I would like to do a table that really looks like this one at the headlin e " Comparatif technique " without pictures( it is not presented the same way in English )

When I try to do it, when I want to fill in the block it extends to the other columns and then my table goes out of my page from the right. I would like it goes to the line so each column are not too large so that the whole table appears. Sorry for my mistakes in english.

  • If you want to create tables online you can do it. There are several very simple tools to use. You can see this link: tex.stackexchange.com/questions/1801/… – Sebastiano May 16 '18 at 21:37
  • If you are searching for examples, look for` tabular` rather than table. – John Kormylo May 16 '18 at 21:45
  • 1
    Welcome to TeX.SE! (Nice pic of Benoit Mandelbrot, by the way!) – Mico May 16 '18 at 22:04
  • He is the best ! – Atmos May 29 '18 at 9:45
3

Something like the following? The code employs a tabularx environment and columns of (modified) type X, which allow automatic line-breaking.

enter image description here

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[a4paper,margin=2.5cm]{geometry}

\usepackage{tabularx,ragged2e}
\newcolumntype{L}{>{\RaggedRight\arraybackslash\hspace{0pt}}X}
% The '\hspace{0pt}' part is a well-known trick to get around TeX's
% inability to hyphenate the very first word of a (logical) paragraph.

\begin{document}   
\begin{table}
% 1st column: type 'l'; next 7 columns: type 'L'
\begin{tabularx}{\textwidth}{|l|*{7}{L|}}
\hline
Avion de chasse & furtivité & supercroisière & 
super-manœu-vrabilité & vol à haute altitude & 
liaisons de données tactique & fusion des données & 
Génération selon les classements \\
\hline
 & & & & & & & \\
\hline
\end{tabularx}
\end{table}
\end{document}
| improve this answer | |
0
\documentclass{article}
\oddsidemargin = 0.25cm
\begin{document}   
\begin{table}[h]
% 1st column: type 'l'; next 7 columns: type 'L'
\begin{tabular}{|p{1.5cm}|p{1.5cm}|p{2cm}|p{1.5cm}|p{1.5cm}|p{2cm}|p{2cm}|p{2cm}|}\hline
&&&&&&&\\
Avion de chasse & furtivité & supercroisière & 
super-manœu-vrabilité & vol à haute altitude & 
liaisons de données tactique & fusion des données & 
Génération selon les classements \\
&&&&&&&\\
\hline
 & & & & & & & \\
\hline
\end{tabular}
\end{table}
\end{document}

I have removed all packages and adjusted the table. I hope that you like it.

| improve this answer | |
0
\documentclass{article}
\oddsidemargin = 0.25cm
\begin{document}   
\begin{table}[h]
% 1st column: type 'l'; next 7 columns: type 'L'
\begin{tabular}{|p{1.25cm}|p{1.5cm}|p{2cm}|p{1.25cm}|p{1.25cm}|p{1.5cm}|p{1.5cm}|p{2cm}|}\hline
&&&&&&&\\
Avion de chasse & furtivité & supercroisière & 
super-manœu-vrabilité & vol à haute altitude & 
liaisons de données tactique & fusion des données & 
Génération selon les classements \\
&&&&&&&\\
\hline
 & & & & & & & \\
\hline
\end{tabular}
\end{table}
\end{document}

I have changed the column sizes. It is reduced by 2 cm. I hope it fits the page size you have selected.

| improve this answer | |
  • 1
    Your table is wider than text width. Added empty rows before and after column headers doesn't make them nicer, column headers are poorly formatted ... (my opinion). Comments before table doesn't has any relation to your table design, etc – Zarko Apr 20 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.