Tengo una página de título de apéndice en la que quiero enumerar claramente todos los diferentes apéndices. Aquí está el código que tengo para ello:
\documentclass[letter,12pt]{article}
\usepackage{enumitem}
\begin{document}
\vfill
\LARGE\rmfamily\bfseries\centering APPENDICES
\noindent\textcolor{complement2}{\rule{0.75\textwidth}{2mm}}\par
\Large
\begin{enumerate}
\item Appendix A\hfill CFD Results \\
\item Appendix B\hfill Pump and Inlet Pipe Specifications\\
\item Appendix C\hfill Technical Drawings \\
\item Appendix D\hfill Cost Breakdown \\
\item Appendix E\hfill Some super other different thing\\
\end{enumerate}
\vfill
\end{document}
Básicamente, quiero separar el 'Apéndice X' y el 'Título' con \hfill
. Sin embargo, el texto se superpone como puede ver y se extiende a la siguiente línea.
¿Cómo hago para que las 'Especificaciones' estén justificadas a la derecha?
Respuesta1
Puedes emular un enumerate
entorno dentro de un tabularx
entorno:
\documentclass[letter,12pt]{article}
\usepackage{enumitem}
\usepackage[svgnames]{xcolor}
\usepackage{tabularx}
\begin{document}
\vfill
\LARGE\rmfamily\bfseries\centering APPENDICES
\noindent\textcolor{Peru!90}{\rule{0.75\textwidth}{2mm}}\par
\vspace{\dimexpr\baselineskip + \topsep\relax}
\Large
\renewcommand\arraystretch{1.4}
\newcounter{tabenum}\setcounter{tabenum}{0}
\newcommand{\tabitem}{\stepcounter{tabenum}\,\thetabenum.\hspace{\labelsep}}
\begin{tabularx}{\linewidth}{l>{\raggedleft\arraybackslash}X@{}}
\tabitem Appendix A & CFD Results \\
\tabitem Appendix B & Pump and Inlet Pipe Specifications\\
\tabitem Appendix C & Technical Drawings \\
\tabitem Appendix D & Cost Breakdown \\
\tabitem Appendix E & Some super other different thing
\end{tabularx}
\vfill
\end{document}
Agregado:
Otra posibilidad (semánticamente más limpia) consiste en utilizar las capacidades de tabla de contenido parcial del titletoc
paquete: al principio del apéndice, puede usar el comando, digamos,
\appendix
\startcontents[appendices]
\section{CFD Results}
…
\section{Some super other different thing}
\stopcontents[appendices]
e imprímelo donde quieras con el comando:
\printcontents[appendices]{Appendix}{1}{}