我正在制作一个备忘单,尝试使用 LaTeX 进行练习。我的问题是,使用 itemize + multicols 后,它显示如下,一定是因为分数处于 displaystyle 中。我希望中间的项目符号与第一行上的另外两个项目符号对齐。有人可以告诉我怎么做吗?
\documentclass[a4paper]{article}
\usepackage[a4paper,
left=2cm,right=2cm,
top=2cm,bottom=1.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm}
%\usepackage[utf8]{vietnam}
\usepackage{enumitem}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{multicol}
\begin{multicols}{3}
\begin{itemize}[itemsep = 5pt]
\item $\bar{\bar{z}}=z$
\item $\overline{z_1\pm\overline{z_2}}=\overline{z_1}\pm \overline{z_2}$
\item $\overline{\displaystyle\left(\frac{z_1}{z_2}\right)}=\displaystyle\frac{\overline{z_1}}{\overline{z_2}}$
\item $\overline{z_1\cdot z_2}=\overline{z_1}\cdot\overline{z_2}$
\item $z\bar{z}=|z|^2=a^2+b^2$
\item
\end{itemize}
\end{multicols}
\end{document}
答案1
下面是带有 的代码tasks
。我冒昧地稍微简化了一下你的序言:
\documentclass[a4paper]{article}
\usepackage[a4paper, margin=2cm,bottom=1.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm}
%\usepackage[utf8]{vietnam}
\usepackage{enumitem}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{multicol}
\usepackage{tasks}
\begin{document}
\begin{tasks}[style=itemize](3)
\task $\bar{\bar{z}}=z$
\task $\overline{z_1\pm\overline{z_2}}=\overline{z_1}\pm \overline{z_2}$
\task $\overline{\Bigl(\dfrac{z_1}{z_2}\Bigr)}=\dfrac{\overline{z_1}}{\overline{z_2}}$
\task $\overline{z_1\cdot z_2}=\overline{z_1}\cdot\overline{z_2}$
\task $z\bar{z}=|z|^2=a^2+b^2$
\task
\end{tasks}
\end{document}
答案2
只是为了好玩:
\documentclass[a4paper]{article}
\usepackage[showframe,
left=2cm,right=2cm,
top=2cm,bottom=1.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm}
%\usepackage[utf8]{vietnam}
%\usepackage{enumitem}
%usepackage{xcolor}
%\usepackage{tcolorbox}
%\usepackage{tabularx}
%\usepackage{tikz}
%\usepackage{multicol}
\newlength{\cellwidth}
\newcommand{\fakeitem}[1]{% text as argument
\hskip 0pt plus 0.001fil\allowbreak
\makebox[\dimexpr \leftmargini-\labelsep][r]{\textbullet}%\nobreak
\hskip\labelsep%\nobreak
\makebox[\cellwidth][l]{#1}\ignorespaces}
\begin{document}
\medskip\noindent
\setlength{\cellwidth}{\dimexpr \textwidth/3-\leftmargini}% 3 columns
\fakeitem{$\bar{\bar{z}}=z$}
\fakeitem{$\overline{z_1\pm\overline{z_2}}=\overline{z_1}\pm \overline{z_2}$}
\fakeitem{$\overline{\displaystyle\left(\frac{z_1}{z_2}\right)}=\displaystyle\frac{\overline{z_1}}{\overline{z_2}}$}
\fakeitem{$\overline{z_1\cdot z_2}=\overline{z_1}\cdot\overline{z_2}$}
\fakeitem{$z\bar{z}=|z|^2=a^2+b^2$}
\par\medskip
\noindent next line of text
\end{document}