4

I want to align the two starting words in two sentences with each other ('ROM' in the first line with 'may' in the second line)

enter image description here

How could I do that? Here is the working code:

\usepackage{lettrine}
\begin{document}
\lettrine[lines=2]{\textbf{F}}{rom} they fine john he give of rich he. They age and draw  mrs like. Improving end distrusts may instantly was household applauded incommode. Why kept very ever home mrs. Considered sympathize ten uncommonly occasional assistance sufficient not. Letter of on become he tended active enable to. Vicinity relation sensible sociable surprise screened no up as.

\end{document} 

After using the fix-cm package

\documentclass[a4paper,11pt]{report}
\usepackage{lettrine}
\usepackage{fix-cm}
\begin{document}
\lettrine[lines=2]{\textbf{F}}{rom} they fine john he give of rich he. They age and draw  mrs like. Improving end distrusts may instantly was household applauded incommode. Why kept very ever home mrs. Considered sympathize ten uncommonly occasional assistance sufficient not. Letter of on become he tended active enable to. Vicinity relation sensible sociable surprise screened no up as.
  \end{document} 

enter image description here

But still two words (ROM and Improving) are not aligned.

3
  • Do you have \usepackage{fix-cm} in your document?
    – egreg
    Commented Dec 21, 2014 at 23:07
  • Your document is incomplete, if I add `\documentclass{article} the F is correctly aligned. also your image appears double spaced. Please post the image made from running the code as posted. Commented Dec 21, 2014 at 23:09
  • @DavidCarlisle I have \documentclass{report}
    – Harry
    Commented Dec 21, 2014 at 23:11

2 Answers 2

5

In order to work, lettrine needs a set of fully scalable fonts. The default Computer Modern aren't, for historical reasons.

You can make them fully scalable by loading fix-cm

\RequirePackage{fix-cm} % should be here
\documentclass{article}

\usepackage{setspace}
\usepackage{lettrine}

\setlength{\DefaultNindent}{0pt} % read the doc about it
\onehalfspacing

\begin{document}

\lettrine[lines=2]{\textbf{F}}{rom} they fine john he give of rich he. They age and draw
mrs like. Improving end distrusts may instantly was household applauded incommode. Why kept
very ever home mrs. Considered sympathize ten uncommonly occasional assistance sufficient
not. Letter of on become he tended active enable to. Vicinity relation sensible sociable
surprise screened no up as.

\end{document}

enter image description here

Alternatively, add \usepackage{lmodern}.

2
  • but 'ROM' and 'proving' are not aligned
    – Harry
    Commented Dec 21, 2014 at 23:15
  • @Harry That's another problem. I'll add how to cope with it.
    – egreg
    Commented Dec 21, 2014 at 23:17
2

You should also use the provided \LettrineFontHook to specify the series for the dropped capital, I think. That is, my solution is very like egreg's but with that one difference:

\documentclass[a4paper,11pt]{report}
\usepackage{lettrine}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\renewcommand\LettrineFontHook{\bfseries}
\setlength{\DefaultNindent}{0pt}
\begin{document}
  \lettrine[lines=2]{F}{rom} they fine john he give of rich he. They age and draw  mrs like. Improving end distrusts may instantly was household applauded incommode. Why kept very ever home mrs. Considered sympathize ten uncommonly occasional assistance sufficient not. Letter of on become he tended active enable to. Vicinity relation sensible sociable surprise screened no up as.
\end{document}

Aligned lettrine

2
  • Is there anyway we can use simple characters after the big capital letter as an example 'rom' instead of 'ROM'?
    – Harry
    Commented Dec 21, 2014 at 23:48
  • @Harry You can use \renewcommand\LettrineTextFont{\normalfont} but it will not look right IMHO.
    – cfr
    Commented Dec 21, 2014 at 23:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .