如何對齊項目標籤?

如何對齊項目標籤?

當我嘗試回答作業中的配對問題時,我發現上面顯示的四個答案的最終 PDF 彼此不一致。看來小寫「b」比「a」、「c」、「d」佔用更多空間。

有人知道我該如何解決這個問題嗎?

Latex 中奇怪的格式模式

答案1

請始終發布程式碼,而不僅僅是程式碼圖像。

您只展示了一個很小的片段,但它表明您缺少 Latex 的大部分功能來自動編號、佈局和交叉引用。

可能像下面這樣的東西是一個合理的標記,然後如果需要,可以在不更改標記的情況下調整佈局,這是像乳膠這樣的系統的主要優點,但如果您有顯式的字體更改和間距命令以及手動編號,則會失敗在文件中。

在此輸入影像描述

\documentclass{article}
\renewcommand\theenumi{\alph{enumi}}% a b c 
\newtheorem{problem}{Problem}
\renewcommand\figurename{Plot}
\renewcommand\thefigure{\Alph{figure}}% A B C
\begin{document}

\begin{problem}
Pick one of these:
\begin{enumerate}
\item B
\item C
\item D
\item A
\end{enumerate}
\end{problem}

\begin{problem}
something\ldots

In Plot~\ref{zz} which shows\ldots

in Plot~\ref{www} which shows\ldots

\begin{figure}[htp]
\centering
\begin{picture}(10,10)
\put(0,10){\line(1,-1){10}}
\end{picture}
\caption{something\label{zz}}
\end{figure}

\begin{figure}[htp]
\centering
\begin{picture}(10,10)
\put(0,0){\line(1,1){10}}
\end{picture}

\caption{something\label{www}}
\end{figure}

\end{problem}

\end{document}

相關內容