How can I use the Goudy Initialen font with Lettrine for the first drop letter of a paragraph? I can't understand from the documentation how to use LettrineFontHook or LettrineFont to do this?
[Tex/LaTex] How to Use Goudy Initialen in Lettrine
drop-capfontsfontspeclettrinetypography
Related Solutions
I asked the exact same question yesterday: Make apostrophe closer to letter
With the apostrophe in dropcap
This was my initial attempt, playing with \kern
to adjust the apostrophe back inside the capital L:
\lettrine[lines=3,lhang=0.33,lraise=0,loversize=0.15]%
{L\kern-12pt{'}}{objectif}
In my case, this setting gives me this:
Your request: apostrophe in small caps
I have chosen to include the apostrophe in the lettrine. Whether this is good practice is subject to debate among French typographists. If you wish to keep the apostroph in the text and get the text inside the lettrine as in your example, you can use the findent
and nindent
parameters of the lettrine instead.
For example, with:
\lettrine[lines=3,lhang=0.33,lraise=0,loversize=0.15,findent=-0.7em,nindent=1em]%
{L}{'Esprit-Saint ...}
I get the following:
Using slope to achieve the exact result you desire
In the previous example, I used nindent
but this put the second and third lines to the right of the dropcap. In your example, you wanted the second line in the L and the third line to its right. You can achieve that by using slope
instead of nindent
, although that work with 3 lines (as in your situation).
\lettrine[lines=3,lhang=0.33,lraise=0,loversize=0.15,findent=-0.7em,slope=0.5em]%
{L}{'Esprit-Saint ...}
gives me:
Adjusting oversize to align on top
Finally, you might want to adjust the oversize
parameter so the top of the lettrine fits with the apostrophe.
\lettrine[lines=3,lhang=0.33,lraise=0,loversize=0.08,findent=-0.9em,slope=0.5em]%
{L}{'Esprit-Saint ...}
You'll have to adapt the values to your own font.
Note:
After doing all this, I actually settled for this last solution for my own document, instead of the first solution I gave above.
Hint:
To make things easier, to can add your defaults to a local lettrine.cfg
file, for example:
\setcounter{DefaultLines}{3}
%%
%% These are *decimal* numbers:
\renewcommand{\DefaultLoversize}{0.25}
\renewcommand{\DefaultLraise}{0}
\renewcommand{\DefaultLhang}{0.33}
% Define default options per letter
\renewcommand{\DefaultOptionsFile}{optfile.cfl}
and then you can set the default options per letter in optfile.cfl
:
% options per letter
\LettrineOptionsFor{A}{slope=5pt,findent=-0.5em}
\LettrineOptionsFor{J}{lraise=0.20,nindent=0em}
\LettrineOptionsFor{L}{lraise=0,loversize=0.08,findent=-0.9em,nindent=1em}
\LettrineOptionsFor{P}{findent=0.1em,nindent=0.1em}
\LettrineOptionsFor{Q}{lraise=0.30,loversize=0.15}
You can use the pandoc-lettrine filter. In your markdown document, simply mark the first character of a paragraph with square brackets, and include \usepackage{lettrine}
in your metadata block. For example:
---
header-includes: \usepackage{lettrine}
...
[L]orem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sollicitudin dignissim ligula ac ultricies. Donec in dictum sapien. Suspendisse sed eros nec risus facilisis eleifend. In lorem metus, laoreet et quam at, accumsan blandit odio. Quisque porttitor porttitor massa, vitae ultrices turpis mattis quis. Sed eu cursus arcu, id pulvinar urna. Aliquam sit amet varius ipsum, non tincidunt sapien. Maecenas a pretium dui. Fusce porta lobortis suscipit.
Now invoke pandoc with a call to the filter:
pandoc demo.md -s --filter lettrine demo.tex
Output is available in TeX, pdf, and html formats.
Best Answer
Your question is a bit vague without an MWE, but if the problem is what I think it is, the answer would be something like:
This uses the TrueType version of the font, as provided by Dieter Steffmann himself. I think someone did a conversion to Type1 once, for use with pdfTeX, but since you seem to be on Xe/LuaTeX, you might as well use the original version.