我想将两个句子中的两个起始词对齐(第一行中的“ROM”与第二行中的“may”)
我该怎么做呢?以下是工作代码:
\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}
使用 fix-cm 包之后
\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}
但是仍然有两个词(ROM 和 Improving)没有对齐。
答案1
为了工作,lettrine
需要一组完全可扩展的字体。由于历史原因,默认的 Computer Modern 字体不是。
您可以通过加载使它们完全可扩展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}
或者,添加\usepackage{lmodern}
。
答案2
我认为,您还应该使用提供的\LettrineFontHook
来指定删除资本的系列。也就是说,我的解决方案非常像埃格雷格的但有一点不同:
\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}