Ausrichtungsprobleme aufgrund von vspace und hfill

Ausrichtungsprobleme aufgrund von vspace und hfill

Ich habe Probleme mit der Ausrichtung (3 und 4 sind nicht ausgerichtet), ich vermute, es hat mit dem vspace- und hfill-Problem zu tun. Bitte helfen Sie.

\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}

Ausrichtungsprobleme

Antwort1

\vspaceDas Problem lässt sich einfach lösen, indem Sie anstelle von eine Leerzeile hinzufügen :

Bildbeschreibung hier eingeben

Code:

\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}

Antwort2

dies sieht nach einer Situation aus, in der \\(nach dem [4]) tatsächlich gerechtfertigt ist:

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

verwandte Informationen