Eu tenho uma página de título de apêndice na qual desejo listar todos os diferentes apêndices de maneira organizada. Aqui está o código que tenho para isso:
\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}
Essencialmente, quero separar 'Apêndice X' e 'Título' com \hfill
. No entanto, o texto se sobrepõe como você pode ver e se espalha para a próxima linha.
Como faço para que as 'Especificações' sejam justificadas à direita?
Responder1
Você pode emular um enumerate
ambiente dentro de um tabularx
ambiente:
\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}
Adicionado:
Outra possibilidade (semanticamente mais limpa) consiste em usar as capacidades do índice parcial do titletoc
pacote: no início do apêndice, você pode usar o comando, digamos,
\appendix
\startcontents[appendices]
\section{CFD Results}
…
\section{Some super other different thing}
\stopcontents[appendices]
e imprima onde quiser com o comando:
\printcontents[appendices]{Appendix}{1}{}