\blockquote 输出不可预测

\blockquote 输出不可预测

我正在 Overleaf 中撰写一篇论文,其中用到了很多引文。为了很好地输出这些引文,我决定使用以下\blockquote命令:\usepackage{csquotes}

 {\footnotesize\blockquote[\citet{source}]{quote} \par }

这几乎总是输出相同的好看的引文,除了某些块引用没有从文本中脱颖而出的情况。

下面是一个使用 SC 输出的工作示例。错误的输出是中间的引文,无论我将它放在文本中的什么位置,它都会输出错误。

    \documentclass[11pt, twocolumn]{paper}
    
    \usepackage[natbib=true, style=authoryear-comp]{biblatex}
    \usepackage{filecontents}
    \usepackage{csquotes}
    \usepackage{lipsum}
    
    \begin{filecontents*}{database.bib}
     @article{Kanlantari2018,
    author = {Kanlantari, Fatemeh},
    year = {2018}
    }
    @article{Benke2017,
    author = {Benke, K and Tomkins, B},
    year = {2017}
    }
    @article{Al-chalabi2015,
    author = {Al-chalabi, Malek},
    year = {2015}
    }
    \end{filecontents*}
    \bibliography{database.bib}
    \begin{document}
    \lipsum[1]
    {\footnotesize \blockquote[\citet{Kanlantari2018}]{As the world population continues to grow at a rapid rate, accompanied by a substantial
    growth in food demand which is expected to transpire in the next 50 years, 80\% of the population will be living in urban areas} \par }
    
    {\footnotesize \blockquote[\citet{Al-chalabi2015}]{It is predicted that the world population will reach 9 billion by 2050, of which 70\% will live in urban centres.}\par }
    
    {\footnotesize \blockquote[\citet{Benke2017}]{The unremitting trends of increasing population, urbanization, diminishing water supply, and continuing climate change have contributed to declining stocks of arable land per person. }\par }
    \lipsum[2]
    \printbibliography
    
    \end{document}

在此处输入图片描述

我的文档中有几个引文的输出很奇怪,我正在寻找我做错的地方。

也欢迎任何强力修复,我还没有成功使用简单\vspace\hspace

答案1

文档csquotes对该命令的解释\blockquote如下

\blockquote[<cite>][<punct>]{<text>}<tpunct> 此命令确定 的长度<text>。如果长度超过某个阈值, 将<text>在显示模式下排版,即作为块引用。如果没有,\blockquote则将表现为\textquote

包含上述引文的文档截图

因此,结果很容易解释,因为第二个引文没有超过设定的阈值,而第一个和第三个则超过了。(如果排版,默认设置会检查文本是否长于三行。)

您可以将其设置threshold为零,以使它\blockquote始终以块引用的形式出现。令人惊讶的是,没有选项可以禁用threshold测试,也没有专用的“始终块引用”命令csquotes

\documentclass[11pt, twocolumn]{article}
\usepackage[threshold=0]{csquotes}
\usepackage[natbib=true, style=authoryear-comp]{biblatex}

\usepackage{lipsum}

\bibliography{biblatex-examples.bib}

\begin{document}
\lipsum[1]
{\footnotesize \blockquote[\citet{sigfridsson}]{As the world population continues to grow at a rapid rate, accompanied by a substantial
growth in food demand which is expected to transpire in the next 50 years, 80\% of the population will be living in urban areas} \par }

{\footnotesize \blockquote[\citet{sigfridsson}]{It is predicted that the world population will reach 9 billion by 2050, of which 70\% will live in urban centres.}\par }

{\footnotesize \blockquote[\citet{sigfridsson}]{The unremitting trends of increasing population, urbanization, diminishing water supply, and continuing climate change have contributed to declining stocks of arable land per person. }\par }
\lipsum[2]


\printbibliography
\end{document}

所有三段引言均格式化为块引言

csquotes自动添加可能会更优雅\footnotesize。对于引用,您还可以考虑使用\blockcquote

\documentclass[11pt, twocolumn]{article}
\usepackage[threshold=0]{csquotes}
\usepackage[natbib=true, style=authoryear-comp]{biblatex}

\usepackage{lipsum}

\newenvironment{footnotesizequote}
  {\quote\footnotesize}
  {\endquote}

\SetBlockEnvironment{footnotesizequote}

\SetCiteCommand{\autocite}

\bibliography{biblatex-examples.bib}

\begin{document}
\lipsum[1]

\blockcquote{sigfridsson}{As the world population continues to grow at a rapid rate, accompanied by a substantial
growth in food demand which is expected to transpire in the next 50 years, 80\% of the population will be living in urban areas}

\blockcquote{sigfridsson}{It is predicted that the world population will reach 9 billion by 2050, of which 70\% will live in urban centres.}

\blockquote[\citet{sigfridsson}]{The unremitting trends of increasing population, urbanization, diminishing water supply, and continuing climate change have contributed to declining stocks of arable land per person.}


\lipsum[2]

\printbibliography
\end{document}

所有三段引言均格式化为块引言

为了以防万一它有用,这里有一个\blokcquote-like 命令的定义,它不进行任何threshold测试并且始终默认为块引用样式。

\documentclass[11pt, twocolumn]{article}
\usepackage{csquotes}
\usepackage[natbib=true, style=authoryear-comp]{biblatex}

\usepackage{lipsum}

\makeatletter
\newrobustcmd*{\bblockquote}{%
  \csq@getcargs{\bblockquote@i{}{}}}

\newrobustcmd*{\bblockcquote}{%
  \csq@getccargs{\bblockquote@i{}{}}}

\def\bblockquote@i#1#2#3#4#5#6{%
  \csq@getpunct{\csq@bquote@iii{#1}{#2}{#3}{#4}{#5}{#6}}}
\makeatother

\newenvironment{footnotesizequote}
  {\quote\footnotesize}
  {\endquote}

\SetBlockEnvironment{footnotesizequote}

\SetCiteCommand{\autocite}


\bibliography{biblatex-examples.bib}

\begin{document}
\lipsum[1]

\bblockcquote{sigfridsson}{As the world population continues to grow at a rapid rate, accompanied by a substantial
growth in food demand which is expected to transpire in the next 50 years, 80\% of the population will be living in urban areas}

\bblockquote[\citet{sigfridsson}]{It is predicted that the world population will reach 9 billion by 2050, of which 70\% will live in urban centres.}

\bblockcquote{sigfridsson}{The unremitting trends of increasing population, urbanization, diminishing water supply, and continuing climate change have contributed to declining stocks of arable land per person.}


\lipsum[2]

\printbibliography
\end{document}

相关内容