Please take a look at snippet below:
Code: Select all
\documentclass[10pt,a4paper,openany]{book}
\usepackage[pdftex]{hyperref}
\begin{document}
\begin{itemize}
\item This gets aligned outside the items
\begin{table}[h]
\begin{tabular}{ccc}
& Portfolio 1 & Portfolio 2 \\
$S_T \le X$ & X & $S_T$ \\
$S_T \geq X$ & $S_T$ & $S_T$
\end{tabular}
\end{table}
\item This gets aligned inside the items
\begin{tabular}{ccc}
& Portfolio 1 & Portfolio 2 \\
$S_T \le X$ & X & $S_T$ \\
$S_T \geq X$ & $S_T$ & $S_T$
\end{tabular}
\end{itemize}
\end{document}
I have two questions:
a. How can I get table + tabular to align like tabular?
b. How can I add a caption and label to tabular and make it appear in list of tables using only the tabular tag?