Dear Community,
How can I make the formatting of all 'p' aligned columns in tables justified as 'ragged right', but keep the formatting of figure captions as 'fully justified'? Currently, the only way I know to format the table 'p' columns this way is by using the [raggedrightboxes] option of ragged2e. The problem is that this also makes my figure captions ragged right, and I would like the figures to be fully justified.
For example:
Code: Select all
\documentclass{article}
\usepackage[raggedrightboxes]{ragged2e}
\usepackage{graphics}
\begin{document}
\begin{figure}
\caption{Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. }
\end{figure}
%borrowed this table from http://en.wikibooks.org/wiki/LaTeX/Tables
\begin{table}
\caption{This is the table caption.}
\begin{center}
\begin{tabular}{ | l | l | l | p{5cm} |}
\hline
Day & Min Temp & Max Temp & Summary \\ \hline
Monday & 11C & 22C & A clear day with lots of sunshine.
However, the strong breeze will bring down the temperatures. Adding extra text here to make the raggedness clear. \\ \hline
Tuesday & 9C & 19C & Cloudy with rain, across many northern regions. Clear spells
across most of Scotland and Northern Ireland,
but rain reaching the far northwest. \\ \hline
Wednesday & 10C & 21C & Rain will still linger for the morning.
Conditions will improve by early afternoon and continue
throughout the evening. \\
\hline
\end{tabular}
\end{center}
\end{table}
\end{document}
Thanks,
--Jordan