
我在文檔中插入了 a,\blockquote
但是在其末尾添加引用時(使用 a\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 的一個限制是,如果未指定,帶有連字符的單字不能有其他連字符點。這是我將如何解決該問題的序言。我總是使用巴貝爾:
\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}