我正在使用 中的数学方程式multicols
,但方程式似乎没有对齐(即 (a)、(c) 和 (e) 没有水平对齐)。有没有简单的解决方法?
\documentclass[12pt,lettersize]{article}
\usepackage[top=0.75in, bottom=0.55in, left=0.5in, right=0.5in]{geometry}
\usepackage{multicol}
\usepackage{amsmath,amssymb,amsthm,stmaryrd}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item
Sketch the graph of each function.
\begin{multicols}{3}
\begin{enumerate}
\item $y=\dfrac{1}{2}x^2-5$
\item $y=-9|x+1|$
\item $y=\left(\dfrac{5}{3}x^3\right)^3+2$
\item $y=4+2\sqrt{x-3}$
\item $y=\dfrac{1}{|x|}$
\item $y=\llbracket|x|-4 \rrbracket$
\end{enumerate}
\end{multicols}
\end{enumerate}
\end{document}
答案1
该tasks
包的使用更加简单:
\documentclass[12pt,lettersize]{article}
\usepackage[top=0.75in, bottom=0.55in, left=0.5in, right=0.5in, showframe]{geometry}
\usepackage{amsmath,amssymb,amsthm,stmaryrd}
\usepackage{enumitem, tasks}
\settasks{counter-format=(tsk[a]), label-offset = 1em, column-sep = 1.5em}
\begin{document}
\begin{enumerate}
\item
Sketch the graph of each function.
\begin{tasks}[](3)
\task $y=\dfrac{1}{2}x^2-5$
\task $y=-9|x+1|$
\task $y=\left(\dfrac{5}{3}x^3\right)^3+2$
\task $y=4+2\sqrt{x-3}$
\task $y=\dfrac{1}{|x|}$
\task $y=\llbracket|x|-4 \rrbracket$
\end{tasks}
\end{enumerate}
\end{document}