Code: Select all
\begin{tabularx}{\textwidth}{cXcX}
\caption{The caption}\\
contents&of&the&table\\
\end{tabularx}
Any suggestions?
Code: Select all
\begin{tabularx}{\textwidth}{cXcX}
\caption{The caption}\\
contents&of&the&table\\
\end{tabularx}
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{booktabs,tabularx}
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{table}[!ht]
\caption{Dummy table}\label{tab:dummy-1}
\begin{tabularx}{\textwidth}{cXcX}\toprule
contents & of & the & table \\ \bottomrule
\end{tabularx}
\end{table}
\blindtext
\begin{table}[!ht]
\caption{Dummy table}\label{tab:dummy-2}
\begin{tabularx}{\textwidth}{cXcX}\toprule
contents & of & the & table \\ \bottomrule
\end{tabularx}
\end{table}
\blindtext
\begin{table}[!ht]
\caption{Dummy table}\label{tab:dummy-3}
\begin{tabularx}{\textwidth}{cXcX}\toprule
contents & of & the & table \\ \bottomrule
\end{tabularx}
\end{table}
\blindtext
\end{document}
Code: Select all
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{table}[!ht]
\centering
\caption{The normal table caption}
\label{tab:test1}
\rule{4cm}{2cm}% to simulate a table
\end{table}
\begin{table}[!ht]
\caption{The tabularx caption}
\label{tab:testx}
\begin{tabularx}{\textwidth}{cXcX}
contents&of&the&table\\
\end{tabularx}
\end{table}
\begin{table}[!ht]
\centering
\caption{The normal table caption}
\label{tab:test2}
\rule{4cm}{2cm}% to simulate a table
\end{table}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{tabularx}
\usepackage{ltablex}
\begin{document}
Here's some text
\begin{table}[!ht]
\caption{Dummy table}\label{dummy-1}
\begin{tabularx}{\textwidth}{cXcX}
contents & of & the & table
\end{tabularx}
\end{table}
Here's some text
\begin{table}[!ht]
\caption{Dummy table}\label{dummy-2}
\begin{tabularx}{\textwidth}{cXcX}
contents & of & the & table
\end{tabularx}
\end{table}
Here's some text
\begin{table}[!ht]
\caption{Dummy table}\label{dummy-3}
\begin{tabularx}{\textwidth}{cXcX}
contents & of & the & table
\end{tabularx}
\end{table}
Code: Select all
\documentclass{article}
\usepackage{tabularx}
\usepackage{ltablex}
\begin{document}
Here's some text
\begin{tabularx}{\textwidth}{cXcX}
\caption{Dummy table}\label{dummy-1}\\
contents & of & the & table
\end{tabularx}
Here's some text
\begin{tabularx}{\textwidth}{cXcX}
\caption{Dummy table}\label{dummy-2}\\
contents & of & the & table
\end{tabularx}
Here's some text
\begin{tabularx}{\textwidth}{cXcX}
\caption{Dummy table}\label{dummy-3}\\
contents & of & the & table
\end{tabularx}
\end{document}