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
Cham
Posts: 591
Joined: Sat Apr 02, 2011 4:06 pm

Small poems in a Chapter's first page

Postby Cham » Thu Jul 11, 2013 5:45 pm

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 :
  1. \documentclass[12pt,letterpaper,twoside]{book}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{lmodern}
  4. \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
  5. \usepackage{lipsum}
  6.  
  7. \begin{document}
  8.  
  9. \tableofcontents
  10.  
  11. \chapter{Test chapter one}
  12. \lipsum[1-7]
  13. \clearpage
  14.  
  15. \chapter{Test chapter two}
  16. \lipsum[1-30]
  17.  
  18. \end{document}


How should I do this ? Any suggestion ?

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Thu Jul 11, 2013 6:06 pm

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


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

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby Cham » Thu Jul 11, 2013 6:29 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby Cham » Thu Jul 11, 2013 6:55 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby Cham » Thu Jul 11, 2013 7:08 pm

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) ?

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Thu Jul 11, 2013 7:29 pm

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.
  1. \documentclass[12pt]{book}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{epigraph}
  4. \usepackage{lmodern}
  5. \usepackage{aurical}
  6. \usepackage{microtype}
  7.  
  8. \setlength{\epigraphrule}{0pt}
  9. \setlength{\epigraphwidth}{0.5\textwidth}
  10.  
  11. \begin{document}
  12. \chapter{Foo}
  13. \epigraphhead[30]{\epigraph{\Fontlukas We cannot solve our problems with the same thinking we used when we created them.}{\medskip Albert Einstein}}
  14. \end{document}
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


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

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby Cham » Thu Jul 11, 2013 7:35 pm

Hahaa ! It's working great !

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

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Thu Jul 11, 2013 7:39 pm

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


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

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby Cham » Thu Jul 11, 2013 7:41 pm

Ok, thanks a lot for your invaluable help !

My first query was answered.

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby Cham » Thu Jul 11, 2013 8:17 pm

Well, there's something I don't understand with fonts. Here's a working example, from the suggestions above :
  1. \documentclass[12pt,letterpaper,twoside]{book}
  2. \usepackage[T1]{fontenc}
  3. \usepackage{lmodern}
  4. \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
  5. \usepackage{lipsum}
  6.  
  7. % For the epigraph :
  8. \usepackage{aurical}
  9. \usepackage{epigraph}
  10. %\renewcommand{\sourceflush}{flushleft}
  11. \renewcommand{\textflush}{flushleft}
  12. \setlength{\epigraphrule}{0pt}
  13.  
  14. \begin{document}
  15.  
  16. \tableofcontents
  17.  
  18. \chapter{Test chapter one}
  19. \epigraphhead[70]{\epigraph{\Fontlukas\textsl{Bla bla bla bla bla bla.}}{\textit{Someone}}}
  20.  
  21. \lipsum[1-7]
  22. \clearpage
  23.  
  24. \chapter{Test chapter two}
  25. \lipsum[1-30]
  26.  
  27. \end{document}


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

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 3 guests