错误消息:!LaTeX 错误:未找到文件“etoolbox.sty”

错误消息:!LaTeX 错误:未找到文件“etoolbox.sty”

我在另一篇文章中看到了这个表格。我想模仿它。尝试编译代码时收到一条错误消息。

The required file `tex\latex\etoolbox\etoolbox.sty` is missing. It is part of the package `etoolbox`.
!LaTeX Error: File `etoolbox.sty` not found. 

当我忽略该错误时,出现停止编译的错误:

`Undefined control sequence \newtoggle`.

我需要包裹siunitxadjustbox吗?

\documentclass{amsart}
\usepackage{mathtools}
\usepackage{array}

\usepackage{makecell}
\usepackage{stackengine}\setstackEOL{\cr} %EOL is abbreviation for "end of line."
\usepackage{adjustbox}
\usepackage{siunitx}

\begin{document}

\noindent \begin{minipage}[t]{3.5in}
\textbf{16.) }\raggedright{The table shows certain function values of \textit{f}. \\If $g(x) = f(3x + 1)$, what is the value of $g(2)$?}
\begin{tabbing}
\hspace*{3em} \= \kill
\> \textbf{a.) }$-5$ \\
\> \textbf{b.) }$-1$ \\
\> \textbf{c.) }0 \\
\> \textbf{d.) }2 \\
\> \textbf{e.) }4
\end{tabbing}
\end{minipage}
%
\hspace{0.75cm}
%
\setlength\extrarowheight{2pt}
\belowbaseline[-7pt]{\stackunder{\bfseries\Longstack{Certain Function\cr Values of \textit{f}}{%
\begin{tabular}{|| c | S[table-format=-1.0] ||} \hline
    \textit{x}  &   {$f(x)$} \\ \Xhline{0.8pt}
    2           &   -1 \\ \hline
    3           &   0 \\ \hline
    4           &   2 \\ \hline
    5           &   -3 \\ \hline
    6           &   4 \\ \hline
    7           &   -5 \\ \hline
    8           &   6 \\ \hline
\end{tabular}
}}

\end{document}

相关内容