CSVreader[] avec \multicolumn
salut,
J´ai le code suivant. Je voudrais construire ce tableau avec mes donner données d´un fichier CSV. Mais mon probleme c ´est maitre problème c´est de mettre des linhe unie:
lignes unies.
| | one | Two | Three | Four | Five | Six | Seven | Ten | Eleven |
| 1 | Linhe unie, parfait!!!!!!!!parfait!!!!!!!!!!!!!!! |
| 2 | ana | pedro | rita | Nuno | ana | pedro | rita | Jãoo | marta |
| | Linhe unie, parfait!!!!!!!!parfait!!!!!!!!!!!!!!! |
| 3 | pedro| rita | marta| nuno | ana | rui | rita | joão | pedro |
..........etc
**Code LaTeX**
\documentclass{article}
\usepackage{longtable}
\usepackage{csvsimple}
\usepackage[landscape, margin=3cm,left=1cm]{geometry}%\usepackage{lscape} %pacote pagina horizontal
%\usepackage{adjustbox}
\usepackage{tabularx}
% \usepackage{longtable}
\usepackage{array,longtable}
%permite centrar os dados ao centro da tabela
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
%encoding
%--------------------------------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{graphicx}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\chead{\includegraphics[width=12cm]{logotipo_novo.png}}
\usepackage{color}
%--------------------------------------
%Portuguese-specific commands
%--------------------------------------
\usepackage[portuguese]{babel}
%--------------------------------------
%Hyphenation rules
%--------------------------------------
\usepackage{hyphenat}
\hyphenation{mate-mática recu-perar}
%--------------------------------------
\usepackage[table]{xcolor}
\usepackage{colortbl}
\begin{document}
\hspace{1cm}
\begin{longtable}{|M{1.5cm}|M{2cm}|M{2cm}|M{2cm}|M{2cm}|M{2cm}|M{2.3cm}|M{2cm}|M{2cm}|M{1.5cm}|M{1.5cm}|}
\caption*{Departamento de Matemática e Ciências Experimentais}\\\hline
& Organização & Atividade & Responsáveis & Interveniente & Escola & Enquadramento & P.Educativo & Articulação & Custo & Aprovação\\\hline
\endfirsthead
%\multicolumn{3}{@{}l}{\ldots continued}\\\hline
\hline
& Organização & Atividade & Responsáveis & Interveniente & Escola & Enquadramento & P.Educativo & Articulação & Custo & Aprovação\\\hline
\endhead % all the lines above this will be repeated on every page
\hline
%\multicolumn{3}{r@{}}{continued \ldots}\\
\endfoot
\hline
\endlastfoot
\hline
\centering
\csvreader[
column count=11,
%no head,
table head=\hline,
late after line=\\\hline
]{mat.csv}{
1=\one, 2=\two, 3=\three, 4=\four,
5=\five, 6=\six, 7=\seven, 8=\eight,
9=\nine, 10=\ten, 11=\eleven
}
{\one & \two & \three & \four & \five & \six & \seven & \eight & \nine & \ten & \eleven}
\end{longtable}
\end{document}
Merci beaucoup,
Stéphane\end{document}