Skip to content

Using thresholdtype=words results in error #57

@titanic-jb

Description

@titanic-jb

As seen on TeX.SE csquotes will give an error message, when using the thresholdtype=word option.

\documentclass[a4paper,11pt, oneside, parskip=false]{scrbook}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% \usepackage[autostyle=true, german]{csquotes}
%% This gives an error!
\usepackage[autostyle=true, german, threshold=2, thresholdtype=words]{csquotes}
%% Same here!
% \ExecuteQuoteOptions{thresholdtype=words}
%% This works as expected!
% \ExecuteQuoteOptions{thresholdtype=lines}

\begin{document}

%% This works:
\blockquote{
  \begin{enumerate}
  \item Wiederholte Einwirkungen
  \item Impulse mit längerer Einwirkungsdauer, z.\,B.\ Fußauftritte
  \item Impulse mit kürzerer Einwirkungsdauer.
  \end{enumerate}
}

%% ... while this gives an error, but only, if the option thresholdtype=words is used!
\blockquote{7.3.3 Wohnungsdecken
  \begin{enumerate}
  \item Wiederholte Einwirkungen
  \item Impulse mit längerer Einwirkungsdauer, z.\,B.\ Fußauftritte
  \item Impulse mit kürzerer Einwirkungsdauer.
  \end{enumerate}
}

\end{document}

LaTeX throws an error about a missing \item.

I consider this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions