[texhax] style latex
Uwe Ziegenhagen
ziegenhagen at gmail.com
Tue Feb 7 13:50:48 CET 2012
Am 07.02.2012 um 13:41 schrieb William Adams <will.adams at frycomm.com>:
> 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
>
If you had e.g. to modify the first word in each paragraph, the chickenize package for luaTeX could be helpful. The author, Arno Trautmann, showed really nice examples for luaTeX at the last Dante meeting here in Germany.
Uwe
More information about the texhax
mailing list