我是 Latex 新手。我需要一些有关 LaTeX 编辑的帮助。
我的课程导师要求我抄几道考试题目作为练习。以下是题目(有些题目被隐藏了,以免引起麻烦):
以下是我的问题:
我怎样才能输入如图所示的内联矩阵方程?我尝试过 Overleaf 解决方案,但输出结果很糟糕。
Trying to typeset an inline matrix here $\begin{pmatrix} a & b\\ c & d \end{pmatrix}$ but it looks too big, so let's try $\big(\begin{smallmatrix} a & b\\ c & d \end{smallmatrix}\big)$ instead.
另外,我怎样才能像图片中那样输入标记指示(即圆圈
[6 points]
)?我问了我的导师,他告诉我“\hfill”可能会有帮助。然而,它不起作用。
我使用以下格式列出清单:
如果有人能帮助我将不胜感激。
答案1
这可能会帮助你:
\documentclass{article}
\usepackage{mathtools}
\usepackage{nccmath}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum}
\begin{document}
\begin{enumerate}
\item Trying to typeset an inline matrix here as \verb+pmatrix+: $\begin{pmatrix} a & b\\ c & d \end{pmatrix}$ but it looks too big, so let's try to use \verb+psmallmatrix+: $\begin{psmallmatrix} a & b\\ c & d \end{psmallmatrix}$ instead.
\hfill [6 points]
\item
Trying
\marginpar{[6 points]}
to typeset an inline matrix as \verb+psmallmatrix+ defined in the package here $\begin{psmallmatrix} a & b\\ c & d \end{psmallmatrix}$ gives hopefully satisfactory result. Here the point achieved solving this task is in page margin. Instruction for it should be inserted after firs word in theparagraph/item.
\item
One
\marginpar{[6 points]}
more possibilities id us \verb+mpamtrix+ defined in the \verb+nccmath+ package: $\Bigl(\begin{mmatrix} a&b\\c&d\end{mmatrix}\Bigr)$ which gives medium sized matrix which you may liked :-). Here the point achieved at solving this task is in page margin as in previous case. Instruction for it should be inserted after firs word in the paragraph.
\end{enumerate}
\end{document}
(红线表示页面布局)