![需要内联矩阵和标记分配方面的帮助](https://linux22.com/image/419203/%E9%9C%80%E8%A6%81%E5%86%85%E8%81%94%E7%9F%A9%E9%98%B5%E5%92%8C%E6%A0%87%E8%AE%B0%E5%88%86%E9%85%8D%E6%96%B9%E9%9D%A2%E7%9A%84%E5%B8%AE%E5%8A%A9.png)
我是 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}
(红线表示页面布局)