在 blockquote 中插入引文时 \hbox 溢出

在 blockquote 中插入引文时 \hbox 溢出

我正在我的文档中插入一个\blockquote,但是当在其末尾添加引文时(使用一个\hfill使其右对齐),我得到了一个Overfull \hbox

这只发生在xelatex我正在使用的时候。当我激活/注释掉geometry包含所有相关边距定义的包时,badbox 会出现/消失。有没有办法告诉 Latex 将引文右对齐而不转到新行?为什么它不只是填充可用空间?我不明白发生了什么。

以下是 MWE:

\documentclass[12pt, twoside]{article}
\usepackage[a4paper, margin=2.5cm, bindingoffset=1.5cm]{geometry} % <--- this one provokes the overfull \hbox
\usepackage{polyglossia}
    \setdefaultlanguage{italian}
\usepackage[citestyle=authoryear,backend=biber,style=authoryear,firstinits=true,uniquename=init]{biblatex}
\usepackage{setspace}
\usepackage[autostyle]{csquotes}
\usepackage{lipsum}

\setmainfont{Linux Libertine O}

\begin{filecontents*}{bibl.bib}
@book{seiler,
  title={Possession as an Operational Dimension of Language},
  author={Seiler, Hansjakob},
  publisher={TÃŒbingen: Gunter Narr},
  year={1983}
}
\end{filecontents*}

\addbibresource{bibl.bib}

\begin{document}\doublespacing
\lipsum[2]

\blockquote{\singlespacing Semantically, the domain of POSSESSION can be described as bio-cultural. It is the relationship between a human being, his kinsmen, his body parts, his material belongings, his cultural and intellectual products. In a more extended view, it is the relationship between parts and whole of an organism.\hfill \parencite[4]{seiler}}

\lipsum[3]
\end{document}

答案1

使用

bio-cul\-tu\-ral.

然后就可以用连字符连接,而不用使用多余的方框。使用此选项,draft您可以看到此单词的问题。或者,激活德语快捷方式并输入bio"=cultural。TeX 的一个限制是,如果没有指定,带连字符的单词不能有其他连字符点。下面是我将如何解决这个问题的序言。我总是使用 babel:

\documentclass[12pt, twoside,draft]{article}
\usepackage[a4paper, margin=2.5cm, bindingoffset=1.5cm]{geometry}
\usepackage{fontspec}
\usepackage{libertine}
\usepackage[ngerman,italian]{babel}% the last one is active
\useshorthands{"}
\addto\extrasitalian{\languageshorthands{ngerman}}
\usepackage[style=authoryear,firstinits=true,uniquename=init]{biblatex}
\usepackage{setspace}
\usepackage[autostyle]{csquotes}

\begin{document}

\blockquote{\singlespacing Semantically, the domain of POSSESSION can be described as 
    bio"=cultural. It is the relationship between a human being, his kinsmen, his body 
    parts, his material belongings, his cultural and intellectual products. In a more 
    extended view, it is the relationship between parts and whole of an organism.}

\end{document}

答案2

经过多次搜索和测试,我最终决定放弃该\blockquote{}命令,使用自定义命令来实现相同的结果,因为我在搜索中找到了类似的结果。不用说,一切都运行得非常完美,就像人们对 Latex 的期望一样。

输出

在此处输入图片描述

代码

\documentclass[12pt, twoside]{article}
\usepackage[a4paper, margin=2.5cm, bindingoffset=1.5cm]{geometry}
\usepackage{polyglossia}
    \setdefaultlanguage{italian}
\usepackage[citestyle=authoryear,backend=biber,style=authoryear,firstinits=true,uniquename=init]{biblatex}
\usepackage{setspace}
\usepackage[autostyle]{csquotes}

\setmainfont{Linux Libertine O}

\begin{filecontents*}{bibl.bib}
@book{seiler,
  title={Possession as an Operational Dimension of Language},
  author={Seiler, Hansjakob},
  publisher={TÃŒbingen: Gunter Narr},
  year={1983}
}
\end{filecontents*}

\addbibresource{bibl.bib}

\newcommand\myquote[1]{%
\par
\begingroup
\leftskip4em
\rightskip\leftskip
\singlespacing
\noindent
#1
\par
\endgroup
}

\begin{document}\doublespacing
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. Suspendisse ut massa.

\myquote{Semantically, the domain of POSSESSION can be described as bio-cultural. It is the relationship between a human being, his kinsmen, his body parts, his material belongings, his cultural and intellectual products. In a more extended view, it is the relationship between parts and whole of an organism.\hfill \parencite[4]{seiler}}

Nulla malesuada por itor diam. Donec felis erat, congue non, volutpat at, tin- cidunt tristique, libero. Vivamus viverra fermentum felis. Donec nonummy pellen- tesque ante. Phasellus adipiscing semper elit. Proin fermentum massa ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ip- sum ligula, eleifend at, accumsan nec, suscipit a, ipsum.
\end{document}

相关内容