I'm in the process of writing a LaTeX style for thesis dissertations, and would like to automatically transform the first word of a chapter to dropcaps. This is trivial to do manually using the lettrine package and corresponding command (see the code sample and example output following). What I would like however, is to,
- automatically parse out the first word of a chapter,
- separate the first letter from the first word,
- pass the resulting tokens to
\lettrine{...}{...} - insert the result back into the token stream
In particular, I would like to skip any environments (such as the leading quote) so that only the first letter of the chapter body is dropped.
I'm unfamiliar with token parsing in LaTeX, so some guidance would be really appreciated.
Sample Input (with manual \lettrine)
\begin{document}
\chapter{Introduction}
\begin{quote}[Katie Makkai][flushright]
``The word pretty is unworthy of everything you will be. And no child of mine
will be contained in five letters. You will be pretty intelligent, pretty
creative, pretty amazing. But you will never be merely pretty.''
\end{quote}
\lettrine[nindent=0em]{W}{hen} I was just a little girl, I asked my mother,
``What will I be? Will I be pretty, will I be pretty, will I be pretty?!''
What comes next? Oh right, will I be rich -- which is almost pretty depending
on where you shop. And the pretty question infects from conception passing
blood and breathe into cells. The word hangs from our mothers hearts in a
shrill fluorescent floodlight of worry. Will I be wanted? Worthy? Pretty?
\end{document}


chapterpreamble. Then you consistently usechapterpreambleafter\chapterwith the requirement that the drop-cap always follows thechapterpreambleenvironment. This consistency will allow you to capture the contents and do some magic. – Werner Oct 09 '14 at 21:05