[texhax] style latex

William Adams will.adams at frycomm.com
Tue Feb 7 13:41:39 CET 2012


On Feb 7, 2012, at 6:14 AM, Mohamed HOUSSNI wrote:

> Can someone help me ? I need a Style LaTeX to automatically put the first letter of a title in capitals.
> 
> Any one have an idea ?

This is called a ``drop cap'' for short (long version would be ``dropped capital'').

The usual package for doing this is lettrine:

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{type1cm, lettrine, blindtext}
\begin{document}
\lettrine[lines=3, findent=3pt, nindent=0pt]{O}{n} the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain.
\end{document}

(example modified from http://texblog.org/2011/05/21/drop-caps-with-lettrine/ )

William


-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.




More information about the texhax mailing list