我怎样才能制作一本每个部分的第一个字母都比其他字母大的书?我试图制作以下书籍格式,但文本看起来像 SUmmer 而不是 Summer:
\documentclass[10pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[finnish]{babel}
\usepackage{blindtext}
\usepackage[a5paper]{geometry}
%\usepackage[a5paper, top=2in, bottom=1.5in, left=1in, right=1in]{geometry}
\usepackage{scrextend}
\changefontsizes{10.0pt} % Change base font size
\usepackage{lettrine}
\usepackage{fancyhdr}
\fancyhead[LE,RO]{\thepage}
\fancyfoot{}
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\rightmark}
\cfoot{} % get rid of the page number
\begin{document}
\tableofcontents
\newpage
\section*{Summer 1972}
\addcontentsline{toc}{section}{Summer72}
\lettrine[loversize=-0.4, lines=1, nindent=0em, slope=0em]{S}ummer 1972 was hot.
\newpage
\section*{Summer 1973}
\addcontentsline{toc}{section}{Summer73}
\lettrine[loversize=-0.4, lines=1, nindent=0em, slope=0em]{S}ummer 1973 was hot.
\end{document}
答案1
请注意,您可以在序言或配置文件中配置 lettrine 的默认值,这样您就不需要在每个部分开始时重新指定它们。
我已尽量简化您的示例,因为其中的大部分与您的问题的关键无关:
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{lettrine}
\setcounter{DefaultLines}{1}
\renewcommand{\DefaultLoversize}{0.4}
\setlength{\DefaultNindent}{0em}
\input MorrisIn.fd% only required for the typographical nightmare mentioned below
\begin{document}
\section*{Summer 1972}
\lettrine{S}{ummer} 1972 was hot.
\renewcommand{\LettrineFontHook}{% if you like typographical nightmares, you could even reconfigure midway through your document...
\fontencoding{U}%
\fontseries{xl}%
\fontshape{n}%
\fontfamily{MorrisIn}}
\section*{The Winter of Our Discontent}
\lettrine{N}{ow} is the Winter of our Discontent\\
Made glorious summer by this son of York\dots
\end{document}
如果您不想让第一个单词的其余部分以小写形式显示,您可以这样做:
\renewcommand{\LettrineTextFont}{\upshape}% or whatever
答案2
代替
\lettrine[loversize=-0.4, lines=1, nindent=0em, slope=0em]{S}ummer
经过
\lettrine[loversize=-0.4, lines=1, nindent=0em, slope=0em]{S}{}ummer