I have problems translating this table (from Online table generator) to tabularx
environment so it would be coherent with the rest of Tables of my document. Could you kindly help me? Thanks!
\documentclass{article}
\usepackage{multirow}
\usepackage{graphicx}
\begin{document}
\begin{table}[]
\centering
\caption{My caption}
\resizebox{\textwidth}{!}{%
\begin{tabular}{cccccc}
\hline
1 & 2 & 3 & 4 & 5 & 6 \\
\hline
\multirow{2}{*}{Pepe} & \multirow{2}{*}{a} & \multirow{2}{*}{b} & \multirow{2}{*}{c} & \multirow{2}{*}{d} & e \\
& & & & & f \\
\hline
\multicolumn{1}{l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} \\
\hline
\end{tabular}%
}
\end{table}
\end{document}
That is, the table should start by:
\documentclass{article}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{tabularx}
\begin{document}
\begin{table}
\begin{tabularx}{\textwidth}
\end{tabularx}
BLA, BLA, BLA.
\end{table}
\end{document}
`
, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it).\textwidth
? Resize a a small table ? Multicolumns of 1 column? Another suggestion: Do no use table generators, the resulting code is garbage.