These may be separate questions, but the following MWE:
\usepackage{pdfpages}
...
\addcontentsline{lot}{subsection}{\ref{tab:UserRoles} \textbf{User Roles}}
\includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles}]{UserRolesTable}
...
has several unexpected behaviors.
I get the following warning:
Package pdfpages Warning: There's something wrong with the entries of `addtolist'. Not all entries were processed. Check `addtolist' [in the MWE]."Probably due to the
\labelnot being bound to the inserted pdf (in a table environment), my inserted PDF is numbered using the section, and not the expected "Table X" value.The manually-inserted LoT line (which also uses the section number rather than the incremented table number) is not formatted like the other lines in the LoT - the number lines up, but the table caption itself is not aligned with the others in the list.
The source PDF has no errors and displays correctly in the output PDF.
PDFLaTeX -> BibTex
MWE:
\documentclass[11pt,letterpaper,twoside,final]{article}
\usepackage{pdfpages}
\begin{document}
\listoftables
\begin{center}
\textbf{Table \ref{tab:UserRoles} - The User Roles Table} \addcontentsline{lot}{subsection}{\ref{tab:UserRoles}
\textbf{User Roles}} % manual entry in ToC
\includepdf[pages={-}, pagecommand={\label{tab:UserRoles}}, offset=0in -1in, addtolist={9, table, {The User Roles table}, tab:UserRoles, lot}]{UserRolesTable}
\end{center}
\end{document}


