我想在問題右側標記分數,但我不知道該使用什麼命令。下圖就是我想要的結果。我希望 [5] 與問題對齊並位於右側。誰能幫我?
答案1
這是使用類別的範例程式碼exam
。
\documentclass[10pt,addpoints,answers]{exam}
\begin{document}
\uplevel{\centering\bfseries\underline{PART -- A} \\Answer all questions}
\begin{questions}
\pointsinrightmargin
\pointsdroppedatright
\marksnotpoints
%\marginpointname{mark}
\pointpoints{mark}{marks}
\pointformat{\themarginpoints}
\bracketedpoints
\question[4]
Some question here you would like to ask your students.
\droppoints
\question[4]
Some question here you would like to ask your students.
\droppoints
\uplevel{\centering OR}
\question
What are
\begin{parts}
\part[5]
marks
\droppoints
\part[5]
good answers
\droppoints
\end{parts}
\end{questions}
\end{document}
答案2
是的。使用 \text 的程式碼如下:
\documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \text{$3. Using ~{} the~{} substitution$ $x$ $$=$$ $2sec~\sl{t},$}\\ \text{~{}show that} \\ \text{~{}$\int_{2}^{4} \frac{\sqrt{x^2-4}}{x^4}dx$ $=$ $\frac{\sqrt{3}}{32}$ $\qquad \qquad$ $(5) $} \end{equation*} \end{document
答案3
您可以得到如下所示的解決方案
代碼:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
3.~{}By~{} using~{} the~{} substitution~{} x &= 2sec~\sl{t},\\
show that \\
\int_{2}^{4} \frac{\sqrt{x^2-4}}{x^4}dx &= \frac{\sqrt{3}}{32} \qquad \qquad (5)
\end{align*}
\end{document}
輸出: