vspace 和 hfill 導致的對齊問題

vspace 和 hfill 導致的對齊問題

面對對齊問題(3 和 4 未對齊),我懷疑這與 vspace 和 hfill 問題有關。請協助。

\begin{enumerate}[\textbf{(\roman*)}]
\item Using a scale of 1 cm to 0.1 unit on each axis, plot $\lg y$ against $\lg x$ and draw a straight line graph. \hfill [3]
\item Use your graph to estimate the value of $k$ and of $n$. \hfill [4]
\vspace{\baselineskip}\newline\vspace{0.000001cm} \hfill [$k=84.2$, $n=1.35$]
\end{enumerate}

對齊問題

答案1

只需添加一個空行而不是應用 a\vspace即可解決該問題:

在此輸入影像描述

代碼:

\documentclass{article}

\begin{document}
\begin{enumerate}
\item Using a scale of 1 cm to 0.1 unit on each axis, plot $\lg y$ against $\lg x$ and draw a straight line graph. \hfill [3]
\item Use your graph to estimate the value of $k$ and of $n$. \hfill [4]

\hfill [$k=84.2$, $n=1.35$]
\end{enumerate}
\end{document}

答案2

\\這看起來像是(在 之後)實際上是合理的情況[4]

\item Use your graph to estimate the value of $k$ and of $n$. \hfill [4]\\
\hfill [$k=84.2$, $n=1.35$]

相關內容