LaTeX forum ⇒ Page LayoutSmall poems in a Chapter's first page Topic is solved

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

Re: Small poems in a Chapter's first page  Topic is solved

Postby localghost » Fri Jul 12, 2013 9:35 am

"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.
  1. \documentclass[12pt]{book}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{epigraph}
  4. \usepackage{lmodern}
  5. \usepackage{microtype}
  6.  
  7. \setlength{\epigraphrule}{0pt}
  8. \setlength{\epigraphwidth}{0.5\textwidth}
  9.  
  10. \newcommand*{\chancery}{\usefont{T1}{qzc}{m}{n}\selectfont}
  11.  
  12. \begin{document}
  13. \chapter{Foo}
  14. \epigraphhead[30]{\epigraph{\chancery We cannot solve our problems with the same thinking we used when we created them.}{\medskip Albert Einstein}}
  15. \end{document}

Note that you will get a warning regarding unavailable font shapes.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Tags:

User avatar
Cham
Posts: 904
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Fri Jul 12, 2013 3:59 pm

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

Why the microtype package, in this case ?

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Fri Jul 12, 2013 5:35 pm

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).
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

User avatar
Cham
Posts: 904
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Fri Jul 12, 2013 5:57 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Fri Jul 12, 2013 6:04 pm

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.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 6 guests