Page LayoutText overflow in the heading

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text overflow in the heading

Post by AleCes »

Why the hell am I getting those freaky overflows in the headings???
Still, the serbian-cyrillic hyphenation works well in the text!!!

P.S.
I use XeLatex packages (mainly fontspec & polyglossia), so I put this topic in this topic, hope it's the correct location.
Attachments
Историја Византиског Царства.tex
History of the Byzantine Empire
(43.99 KiB) Downloaded 255 times
Last edited by AleCes on Sat Nov 20, 2010 2:04 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text overflow in the heading

Post by AleCes »

Maybe because XeLaTex processes headings before it loads Polyglossia??? So that strings that are correctly hyphenated in the main text happen not to be so in the headings.
How to work this out??? Somebody knows? :?:
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Text overflow in the heading

Post by frabjous »

Do you mean in the headers? Headers aren't usually wrapped. Instead, people typically use the optional option to \chapter, \section, etc., to specify a shorter version of the chapter title that will fit in the header:

Code: Select all

\chapter[short chapter title]{full chapter title}
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text overflow in the heading

Post by AleCes »

Yeah, heading, header, headline, whatever you might call it! But what do you mean by wrapped? You mean they are not hyphenated by default?
Regardless, thanks to your workaround, I don't get overflows any more!!! :o

Regards
Attachments
Историја Византиског Царства.pdf
No more overflows!
(107.99 KiB) Downloaded 295 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Text overflow in the heading

Post by frabjous »

AleCes wrote:Yeah, heading, header, headline, whatever you might call it!
In the vocabulary I use, a "header" is the part printed at the top o the page, on every page, and often contains the current chapter name and page number. A "heading" or 'title" on the other hand is printed at the beginning of a chapter or section where it first begins. A section heading may be in the middle of the page. These are different things and are treated using different commands, so it's important to be clear.

"Headline" is even more ambiguous.
But what do you mean by wrapped? You mean they are not hyphenated by default?
I mean they are printed on a single line, and not broken onto multiple lines. Obviously, there's no question of hyphenation if it's all on a single line.

If you wanted then wrapped onto multiple lines (hyphenated or not), you could perhaps use a parbox in the headers. Let us know if that's something you want to pursue. It's tricky though since it seems as if the header would have to be different sizes on different pages.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Text overflow in the heading

Post by AleCes »

Thank you for your clarifications! :o You'd understand that, since I'm not a native speaker, my english is not so good! :? So if you are an administrator, please replace heading by header in the topic title, since my problem was about headers properly speaking, not headings.
As far as headers wrapped in two lines are concerned, this would be a rather fancy typographical solution, never seen it in a printed book.
What actually happens in printed books, it's that headers are not small caps as in the standard LaTex document class book, but rather regular text in a very tiny size (around 6pt maybe) in order to be contained in a single line.
That would interest me, but I think it'd be better to start a new topic about it.
Post Reply