LaTeX users online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 3 guests

LaTeX Friends

Sponsored by DANTE e.V.: The German speaking TeX Users Group

Small poems in a Chapter's first page

LaTeX Forum: Page Layout

epigraphsAdd tags Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
I would like to add a small poem or citation on the first page of each chapter, just above the chapter's title, on the upper-right side of the page. Of course, the poem is different for all chapters ! The Poem should be stylized with some "hand-looking" script font.

Many large books are doing this kind of stuff.

Here's a working code to start the idea :
Code: Select all  •  Open in online LaTeX editor
\documentclass[12pt,letterpaper,twoside]{book}\usepackage[T1]{fontenc}\usepackage{lmodern}\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}\usepackage{lipsum}\begin{document}\tableofcontents\chapter{Test chapter one}\lipsum[1-7]\clearpage\chapter{Test chapter two}\lipsum[1-30]\end{document}

How should I do this ? Any suggestion ?

Cham

Posts: 565
Joined: Sat Apr 2nd, 2011

You are probably looking for epigraph. Regarding the font you should choose one from »The LaTeX Font Catalogue« (perhaps calligraphical or handwritten).

Thorsten
LaTeX Community Moderator

¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

localghost
Site Moderator

Posts: 9218
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Hmm, thanks for the package ! (there are so much of them !).

Currently, the default implementation places the epigraph below the chapter's title, which make a huge space between the title and the content.

I would like to put the epigraph above the chapter title (there's much unused space up there !), without changing any spacing.

EDIT : Ah ! The fun begins ! Epigraph is now above the chapter's title. I need to remove that pesky bar, and change the text font.

Cham

Posts: 565
Joined: Sat Apr 2nd, 2011

Sorry if I sound dumb, but I can't find an option to remove the rule in the documentation.

What command (or package option) should I add to remove the horizontal bar ?

EDIT : I've found this command to give the rule a thickness of 0pt :

\setlength{\epigraphrule}{0pt}

However, I find it pretty strange that there isn't a simple package option to turn the rule ON/OFF.

Cham

Posts: 565
Joined: Sat Apr 2nd, 2011

Now, I'm having problems with the font. The whole document is using standard font, like lmodern. But then, how can I use another font just for the epigraphs (Vicentino, for example) ?

Cham

Posts: 565
Joined: Sat Apr 2nd, 2011

I can't provide an example with "Vicentino", because I don't have the corresponding files on my system and I don't know where to get them at the moment. But "Lukas Swatba" from aurical looks nice.
Code: Select all  •  Open in online LaTeX editor
\documentclass[12pt]{book}\usepackage[T1]{fontenc}\usepackage{epigraph}\usepackage{lmodern}\usepackage{aurical}\usepackage{microtype}\setlength{\epigraphrule}{0pt}\setlength{\epigraphwidth}{0.5\textwidth}\begin{document}  \chapter{Foo}  \epigraphhead[30]{\epigraph{\Fontlukas We cannot solve our problems with the same thinking we used when we created them.}{\medskip Albert Einstein}}\end{document}
LaTeX Community Moderator

¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

localghost
Site Moderator

Posts: 9218
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Hahaa ! It's working great !

Now a last question (AFAIK ! ) : where can I find a list of the standard (default) fonts in LaTeX ?

Cham

Posts: 565
Joined: Sat Apr 2nd, 2011

Cham wrote:[…] where can I find a list of the standard (default) fonts in LaTeX ?

You should read what people write here and follow given links. In my very first response you can find a link to the available fonts for PDFLaTeX. If you want to use other fonts (OTF and TTF), you may take a look at another typesetting engine like XeLaTeX or LuaLaTeX.
LaTeX Community Moderator

¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

localghost
Site Moderator

Posts: 9218
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Ok, thanks a lot for your invaluable help !

Cham

Posts: 565
Joined: Sat Apr 2nd, 2011

Well, there's something I don't understand with fonts. Here's a working example, from the suggestions above :
Code: Select all  •  Open in online LaTeX editor

But then, how can I use the TEX Gyre Chorus or Zapf Chancery fonts, instead of aurical and without changing the whole document ?

Cham

Posts: 565
Joined: Sat Apr 2nd, 2011

Next

epigraphs

LaTeX users online

Users browsing this forum: No registered users and 3 guests