Latex: 列挙環境で単語のグループを右端に押し出す

Latex: 列挙環境で単語のグループを右端に押し出す

私は、列挙された環境でいくつかの単語を他の単語から右端に押し出す必要があるドキュメントを準備しています。hfill関数を使用してこれをアーカイブしますが、行が十分に長い場合は、次のページにオーバーフローし、 で終了しますleft edge。以下は私の MWE です。

\begin{document}
    \begin{enumerate}
        \item \textbf{Indicate Option where applicable}: \hfill Not Applicable
        \item \textbf{Approval of Course-Work Examination Results by Board of Postgraduate Studies:} \hfill Not applicable  
        
        \item \textbf{Ratification of Course-Work Examination Results by Senate:} \hfill Not applicable
    \end{enumerate}
\end{document}

これが私の試用出力次のようになります:

最初の項目は見栄えが良いことがわかりますitemが、2 番目と 3 番目の項目を最初の項目のように見えるようにするには、単語Not applicableを に押し込みますright edge

私が欲しいもの

right edgeこうしたあふれた単語はあふれた行の末尾に押し出してほしい。

答え1

私は自分の解決策の試みを提供しました。TeXが次の行の先頭ですべてのグルーを消費しないようにするに\hspace*は、 の代わりにを使用する必要があります。これにより、3 番目の項目でテキストが正しく表示されます。\hspaceNot~Applicable

\documentclass{article}
%
\usepackage{microtype}%added to fix bad boxes
%
\usepackage{enumitem}
%
\begin{document}
%
\begin{enumerate}
%
\item
\textbf{Indicate Option where applicable}:
\hspace*{\fill}Not~Applicable
%
\item
\textbf{Approval of Course-Work Examination Results by Board of Postgraduate Studies:}
\hspace*{\fill}Not~Applicable  
%
\item
\textbf{Ratification of Course-Work Examination Results by Senate:}
\hspace*{\fill}Not~Applicable
%
\end{enumerate}
%
\end{document}

関連情報