包 parskip 中无法识别选项“skip”和“indent”

包 parskip 中无法识别选项“skip”和“indent”

skip每当我尝试在包中使用选项“ ”时,都会出现以下错误parskip

! LaTeX Error: Unknown option `skip=10ptplus1pt' for package `parskip'.See the LaTeX manual 
or LaTeX Companion for explanation.Type H <return> for immediate help....

! LaTeX Error: Unknown option `indent=40pt' for package `parskip'.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help....

这是一个最小的例子,取自 Overleaf 网站,它运行良好(在他们的 LaTeX 引擎中):

\documentclass{article}
% Choose a conveniently small page size
\usepackage[paperheight=18cm,paperwidth=14cm,textwidth=12cm]{geometry}
% Load blindtext package for dummy text
\usepackage{blindtext}
% Load the parskip package with skip and indent options
\usepackage[skip=10pt plus1pt, indent=40pt]{parskip}
\begin{document}

\blindtext[1]\par % Use \par to force a new paragraph
\blindtext[1]

The value of \verb|\parindent| was set via the \texttt{indent} option, so it is now \texttt{\the\parindent}. The other values are:

\begin{itemize}
\item \verb|\baselineskip| is \texttt{\the\baselineskip}
\item \verb|\parskip| was set via the \texttt{skip} option, so its value is \texttt{\the\parskip}
\end{itemize}
\end{document}

如果我只是使用没有选项的包,例如\usepackage[]{parskip},则不会出现任何错误。

请注意,我使用 TexMaker 作为 LaTeX 编辑器。我并没有真正摆弄过环境变量等,所以我认为我没有改变任何重要的东西。是否有其他软件包以某种方式破坏了parskip(该软件包)?

还有其他方法吗\package{parskip}?我只想缩小文档中段落之间的间距。

相关内容