排版考虑:
在当前的一个项目中,我遇到了这样的情况:我想使用字母,但要使用它的段落以罗马数字开头。当这种情况发生时,我总是不太确定如何处理:数字是否应该放在普通(或特殊)字体的字母顶部;数字是否应该放在字母左侧的页边距外(或内);数字是否应该以某种方式用在(或其他)字母中;等等?
因此,我要求考虑代码:
\documentclass[foolscap]{octavo}
\usepackage{lettrine,xcolor}
\usepackage[tracking=true]{microtype}
\input GoudyIn.fd
\renewcommand{\LettrineFontHook}{\usefont{U}{GoudyIn}{xl}{n}}
\fboxsep=0pt % padding thickness
\fboxrule=0pt % border thickness
\begin{document}
\thispagestyle{empty}
\noindent Paragraph in which a lettrine is to be incorporated:\\[10pt]
\noindent I. This is a paragraph which makes use of a lettrine; however, it is preceded by a Roman Numeral. \textbf{What is the proper way to handle a situation like this?}\\[10pt]
\lettrine[lines=3,loversize=.30,findent=.21em,nindent=2.5pt]{\fcolorbox{black}{red!70}{T\kern-.04em}}{his} is a paragraph which makes use of a lettrine; however, it is preceded by a Roman Numeral. \textbf{What is the proper way to handle a situation like this?}
\end{document}
产生输出
问题:当有人想用字母开头的段落开始时,应如何处理以罗马数字开头的段落?
答案1
我不能说我喜欢这里的任何布局,但至少 TeX 不会因为盒子未满而尖叫。
\documentclass[foolscap]{octavo}
\usepackage{lettrine,xcolor,parskip,lmodern}
\usepackage[tracking=true]{microtype}
\DeclareFontFamily{U}{GoudyIn}{}
\DeclareFontShape{U}{GoudyIn}{xl}{n}{
<-> GoudyIn
}{}
\NewDocumentCommand\PP{}{%
\refstepcounter{enumi}%
\raisebox{20pt}[0pt]{%
\makebox[0pt]{\normalfont\large\textbf{\Roman{enumi}.}\hspace{25pt}}}}
\renewcommand{\LettrineFontHook}{\usefont{U}{GoudyIn}{xl}{n}}
\fboxsep=0pt % padding thickness
\fboxrule=0pt % border thickness
\begin{document}
\thispagestyle{empty}
Paragraph in which a lettrine is to be incorporated:
I. This is a paragraph which makes use of a lettrine; however, it is preceded by a Roman Numeral.
\textbf{What is the proper way to handle a situation like this?}
\lettrine[lines=3,loversize=.30,findent=.21em,nindent=2.5pt]{\fcolorbox{black}{red!70}{T\kern-.04em}}{his}
is a paragraph which makes use of a lettrine; however, it is preceded
by a Roman Numeral. \textbf{What is the proper way to handle a
situation like this?}
\lettrine[lines=3,loversize=.30,findent=.21em,nindent=2.5pt]{\PP\fcolorbox{black}{red!70}{T\kern-.04em}}{his}
is a paragraph which makes use of a lettrine; however, it is
preceded by a Roman Numeral. \textbf{What is the proper way to
handle a situation like this?}
\lettrine[lines=3,loversize=.30,findent=.21em,nindent=2.5pt]{\PP\fcolorbox{black}{red!70}{S\kern-.04em}}{econd}
paragraph which makes use of a lettrine; however, it is
preceded by a Roman Numeral. \textbf{What is the proper way to
handle a situation like this?}
\end{document}
答案2
根据印刷术的先例,实际上有两种可能的方法。
一种方法是让列表优先于首字下沉,因此你会得到类似这样的结果:
章节标题
I. 此处的编号列表。
II. 因为这就是编号项的作用。即使我们不使用 来
enumerate
生成它们,它们也是一个列表。
这类似于您不会将首字下沉应用于紧随章节之后的章节标题,因为通常首字下沉会出现在章节的第一段。¹
第二种选择是省略第一段中的数字,类似于当开头的引号是首字下沉的一部分时通常会省略它。²
请注意,在这种情况下,你会不是通常将首字下沉放在章节的第一段,除非章节也采用首字下沉。
有一篇文章衬线详细讨论了首字下沉的排版,包括引号的大小写。不幸的是,这本书在网上找不到,不过我读完 LaTeX 书后,正在考虑整理一本最好的衬线如果我能得到作者的批准,汇编很可能就会包含该文章。³
作者签约衬线确实明确包括了对最佳选集重印的许可,但出于礼貌,假设这样的事情真的发生,我仍然会与所有相关作者核实,并给他们机会进行他们可能想要做的任何修改/更新。