我正在使用 LaTex 为微积分课程制作一组问题,但遇到了一个问题。
我的代码如下:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=0.5in]{geometry}
\usepackage{setspace}
\usepackage{xsim}
\usepackage{calc}
\newlength\modparskip
\newlength\modbaselineskip
\def\baselinestretch{1} % this parameter will be redefined at start of 'spacing' environment
\setlength\modparskip{\parskip/\real{\baselinestretch}}%
\setlength\modbaselineskip{\baselineskip/\real{\baselinestretch}}%
\makeatletter
\renewenvironment{spacing}[1]{\par%
\def\baselinestretch{#1}%
\ifx\@currsize\normalsize\@normalsize\else\@currsize\fi%
}%
{\par%
\vskip \modparskip% % originally: \vskip \parskip
\vskip \modbaselineskip% % originally: \vskip \baselineskip
}
\makeatother
\title{Power Rule Mini Quiz}
\author{Zachary Taylor Warde }
\date{June 2022}
\begin{document}
\maketitle
\begin{spacing}{3.0}
\textbf{For Questions 1-10, use the power rule to find the derivative of each function. Show all work.}
\large
\textbf{1.} $f(x) = 3x^{3}$
\end{spacing}
\large
\begin{spacing}{6.5}\textbf{2.} \( f(x) = 2x^{4} + x + 5 \) \hspace{2.55in}\textbf{6.} \( f(x) = \displaystyle e^{5\ln{x}} - e^{-3\ln{x}} \)
\textbf{3.} \( f(x) = \displaystyle \frac{x^2 + 5x + 4}{x+4} \) \hspace{2.55in}\textbf{7.}
\textbf{4.} \( f(x) = \displaystyle \frac{1}{x^4} + 3x + 2 \)
\textbf{5.} \( f(x) = \displaystyle \frac{1}{x^{13}}\)
\end{spacing}
\end{document}
我希望第二列问题之间的水平间距相等,但设置固定差值无法实现这一点,因为问题的长度不同。我怎样才能让接下来的 5 个练习像前 5 个练习一样出现在一列中?感谢您的阅读。