
Я вставляю \blockquote
в свой документ, но при добавлении цитаты в его конец (с , \hfill
чтобы выровнять ее по правому краю) я получаю Overfull \hbox
.
Это происходит только с использованием xelatex
того, что я использую. Плохой ящик появляется/исчезает, когда я активирую/комментирую пакет geometry
со всеми связанными определениями полей. Есть ли способ сказать 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}