\pagestyle{headings} 因章节名称过长而导致 \hbox 警告

\pagestyle{headings} 因章节名称过长而导致 \hbox 警告

在类 LaTeX 文档\pagestyle{headings}上使用时,系统提示我出现以下错误:book

Overfull \hbox (240.44835pt too wide) has occurred while \output is active
\OT1/cmr/m/sl/12 CHAPTER 1. THE CITY OF CARTHAGE WAS THE CENTRE OF THE ANCIENT
CARTHAGINIAN CIVILIZATION \OT1/cmr/m/n/12 2

以下是有问题的代码:

\documentclass[12pt,letterpaper,oneside]{book}

\pagestyle{headings}


\begin{document}

\pagenumbering{arabic}

\chapter{The city of Carthage was the centre of the ancient Carthaginian civilization}
The city of Carthage was the centre of the ancient Carthaginian civilization. The city developed from a Phoenician colony of the 1st millennium BC into the capital of an ancient empire.[2] The area of Carthage was before inhabited by Berber people who also became the bulk of Carthage's population and constituted a significant part of its army, economy and administration. Native Berbers and settling Phoenicians in Carthage mixed in different ways including religion and language, creating the Punic language and culture.

The name of Carthage, Latin: Carthago or Karthago,  meaning "New City" 

The first civilization that developed within the city's sphere of influence is referred to as Punic (a form of the word "Phoenician") or Carthaginian. The city of Carthage is located on the eastern side of Lake Tunis across from the centre of Tunis. According to Greek historians, Carthage was founded by Canaanite-speaking Phoenician colonists from Tyre (in modern Lebanon) under the leadership of Queen Elissa or Dido. It became a large and rich city and thus a major power in the Mediterranean. The resulting rivalry with Syracuse, Numidia, and Rome was accompanied by several wars with respective invasions of each other's homeland.

Hannibal's invasion of Italy in the Second Punic War culminated in the Carthaginian victory at Cannae and led to a serious threat to the continuation of Roman rule over Italy; however, the Romans gained the upper hand by invading Africa and defeating Carthage at the Battle of Zama in 202 BC. Following the Third Punic War, the city was destroyed by the Romans in 146 BC. However, the Romans refounded Carthage, which became the empire's fourth most important city and the second most important city in the Latin West. It later became the capital of the short-lived Vandal kingdom. It remained one of the most important Roman cities until the Muslim conquest, when it was destroyed a second time in 698.

The ancient Greek philosopher Aristotle wrote extensively on Carthaginian politics, and he considered the city to have one of the best governing institutions in the world, along with those of the Greek states of Sparta and Crete.[5][6]

\section{Topography}
Carthage was built on a promontory with sea inlets to the north and the south. The city's location made it master of the Mediterranean's maritime trade. All ships crossing the sea had to pass between Sicily and the coast of Tunisia, where Carthage was built, affording it great power and influence.

\end{document} 

\hbox的是:

标题太宽

长章节名称

我该如何使用解决这个问题\pagestyle{myheadings}?或者我该如何解决这个问题并保持图书类标题格式?

答案1

标题太长不是一个好主意。您可以使用\chapter宏的可选参数。

 \chapter[optional]{mandatory}

用于optional运行目录和标题等内容,

\chapter[The city of Carthage]{The city of Carthage was the centre of the ancient Carthaginian civilization}

给出

在此处输入图片描述

此外,最好使用microtype包(\usepackage{microtype}),以便间距得到很大改善。

相关内容