Page LayoutSmall poems in a Chapter's first page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Small poems in a Chapter's first page

Post by localghost »

"TeX Gyre Chorus" and "Zapf Chancery" are basically the same. To enable the font you have to take a look at the respective package files (*.sty). There you can find the relevant definitions. Applied to your example this looks like this.

Code: Select all

\documentclass[12pt]{book}
\usepackage[T1]{fontenc}
\usepackage{epigraph}
\usepackage{lmodern}
\usepackage{microtype}

\setlength{\epigraphrule}{0pt}
\setlength{\epigraphwidth}{0.5\textwidth}

\newcommand*{\chancery}{\usefont{T1}{qzc}{m}{n}\selectfont}

\begin{document}
  \chapter{Foo}
  \epigraphhead[30]{\epigraph{\chancery We cannot solve our problems with the same thinking we used when we created them.}{\medskip Albert Einstein}}
\end{document}
Note that you will get a warning regarding unavailable font shapes.

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

Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Small poems in a Chapter's first page

Post by Cham »

It's working, but it wasn't obvious at all !

Why the microtype package, in this case ?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Small poems in a Chapter's first page

Post by localghost »

Cham wrote:[…] Why the microtype package, in this case ?
For micro-typographic corrections in the typesetting process. Very useful in narrow columns (the epigraph here).
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Small poems in a Chapter's first page

Post by Cham »

Ok, thanks for the explanation.

I was already using the microtype package anyway.

I think that my case is now completely solved. Thanks again for your help.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Small poems in a Chapter's first page

Post by localghost »

Cham wrote:[…]I think that my case is now completely solved. Thanks again for your help.
Good to hear that. Just for your information, we mark topics as solved by accepting the answer that led to the solution and not the initial post. In the overview of topics this small checkmark then will be the direct link to the corresponding resolving post in that thread.
Post Reply