如何改变对齐方式?

如何改变对齐方式?

我想将“考虑可能的三角形...”上面的部分 (b) 移动到与原始问题“在三角形 PQR 中,...”对齐。我尝试了 \noindent,但没有用。

\documentclass[11pt]{exam}
\special{papersize=8.5in,11in}
\usepackage{indentfirst}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage[margin=1in]{geometry}
\usepackage[utf8]{inputenc}
\setlength{\parskip}{1.5em}

\begin{document}

\begin{questions}

\question In triangle PQR, $\textrm{PR} = 12 \hspace{1mm} \textrm{cm} \hspace{1mm}, \textrm{QR} = p \hspace{1mm} \textrm{cm} \hspace{1mm}, \textrm{PQ} = r \hspace{1mm} \textrm{cm}$ and $\textrm{Q} \hat{\textrm{P}} \textrm{R} = 30 \degree \hspace{1mm} \textrm{cm}$

\vspace{\stretch{.05}}

\begin{parts}
\part Use the cosine rule to show that $r^{2} - 12 \sqrt{3} r + 144 - p^{2} = 0$

\vspace{\stretch{.5}}

\noindent
Consider the possible triangles with $\textrm{QR} = 8 \hspace{1mm} \textrm{cm}$.

\vspace{\stretch{.05}}

\part Calculate the two corresponding values of $\textrm{PQ}$.

\vspace{\stretch{.5}}

\end{parts}

\end{questions}

\end{document}

谢谢。

答案1

您可以使用\uplevel

\uplevel{Consider the possible triangles with $\textrm{QR} = 8 \hspace{1mm} \textrm{cm}$.}

在此处输入图片描述

代码:

\documentclass[11pt]{exam}
\special{papersize=8.5in,11in}
\usepackage{indentfirst}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage[margin=1in]{geometry}
\usepackage[utf8]{inputenc}
\setlength{\parskip}{1.5em}

\begin{document}

\begin{questions}

\question In triangle PQR, $\textrm{PR} = 12 \hspace{1mm} \textrm{cm} \hspace{1mm}, \textrm{QR} = p \hspace{1mm} \textrm{cm} \hspace{1mm}, \textrm{PQ} = r \hspace{1mm} \textrm{cm}$ and $\textrm{Q} \hat{\textrm{P}} \textrm{R} = 30 \degree \hspace{1mm} \textrm{cm}$

\vspace{\stretch{.05}}

\begin{parts}
\part Use the cosine rule to show that $r^{2} - 12 \sqrt{3} r + 144 - p^{2} = 0$

\vspace{\stretch{.5}}

\uplevel{Consider the possible triangles with $\textrm{QR} = 8 \hspace{1mm} \textrm{cm}$.}

\vspace{\stretch{.05}}

\part Calculate the two corresponding values of $\textrm{PQ}$.

\vspace{\stretch{.5}}

\end{parts}

\end{questions}

\end{document}

相关内容