Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Background

Looking to change the appearance of quotations at the start of each Chapter (or Part). The book is using KOMA Script v2. (Most searches for the quote command come back with results for typesetting quotation marks, rather than aphorisms.)

Problem

Currently, the quotation resembles:

enter image description here

Am looking for something similar to:

Good code is short, simple, and symmetrical -- the challenge is figuring out how to get there. ~Sean Parent

(A double line border, a background colour, but using a serif font with the author name right-justified.)

Source Code

The quotation is defined as follows:

\setchapterpreamble{\dictum[Sean Parent]{Good code...}}

I have altered the style of the dictum settings as follows:

\renewcommand*{\dictumwidth}{.75\textwidth}
\renewcommand*{\dictumauthorformat}[1]{\textsc{#1}\bigskip}

Questions

  • What packages allow such fine control over quotations (or quotes)? (Neither fncychap nor quotchap offer sufficient sophistication.)
  • How can the aphorism be placed in a \colorbox? (Using \dictumtext?)
  • What is a good way to add double lines to the box?

Related

share|improve this question
1  
the epigraph package might be useful, but better check the way Knuth defined quotations at the end of his Chapters in the TeXBook and adapt it to your class. Is there a fine distinction between aphorisms and quotations linguistically speaking? –  Yiannis Lazarides Dec 12 '10 at 20:04
    
@Yiannis: Easier said than done. ;-) I'm using LyX. –  Dave Jarvis Dec 12 '10 at 23:49

2 Answers 2

up vote 9 down vote accepted

I did not use epigraph. I wrote my own version:

\usepackage{times}

\definecolor{quotationcolour}{HTML}{F0F0F0}
\definecolor{quotationmarkcolour}{HTML}{1F3F81}

% Double-line for start and end of epigraph.
\newcommand{\epiline}{\hrule \vskip -.2em \hrule}
% Massively humongous opening quotation mark.
\newcommand{\hugequote}{%
  \fontsize{42}{48}\selectfont \color{quotationmarkcolour} \textbf{``}
  \vskip -.5em
}

% Beautify quotations.
\newcommand{\epigraph}[2]{%
  \bigskip
  \begin{flushright}
  \colorbox{quotationcolour}{%
    \parbox{.60\textwidth}{%
    \epiline \vskip 1em {\hugequote} \vskip -.5em
    \parindent 2.2em
    #1\begin{flushright}\textsc{#2}\end{flushright}
    \epiline
    }
  }
  \end{flushright}
  \bigskip
}

The result:

enter image description here

Suggestions for improvement are welcome.

share|improve this answer

One package worth looking at is epigraph, which includes a few options for setting this sort of thing.

share|improve this answer
    
A hearty thanks! Epigraph doesn't do Parts as naturally as Chapters, but it lists a work-around that I should be able to leverage. –  Dave Jarvis Dec 12 '10 at 23:16
    
I wrote my own; there were a number of issues I had getting epigraph to work. –  Dave Jarvis Dec 13 '10 at 1:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.