我正在使用该\lettrine
包,并希望能够将左双引号添加到带有字母的段落开头。但是,我还没有找到一种方便的方法来实现这一点——将常规的左引号放在自然位置并不能产生所需的结果,如以下代码和输出所示:
\documentclass{book}
\usepackage{lettrine}
\usepackage{xcolor}
\input GoudyIn.fd
\newcommand*\initfamily{\usefont{U}{GoudyIn}{xl}{n}}
\begin{document}
\thispagestyle{empty}
``\lettrine[lines=3]{\color{red}\initfamily{T}}{\color{red}\textbf{his}} is one sentence in the paragraph. This is one sentence in the paragraph. This is one sentence in the paragraph. This is one sentence in the paragraph. This is one sentence in the paragraph. This is one sentence in the paragraph. This is one sentence in the paragraph. This is one sentence in the paragraph. This is one sentence in the paragraph. {\textcolor{red}{I would like to add appropriately sized \textit{opening double quotes} to the Lettrine `T'}.} ''
\end{document}
\initfamily{
此外,在之后和之前立即添加双引号T
没有任何作用。
问题:是否有可能以方便的方式在段落中包含适当大小的开头引号(在本例中为红色) - 而不必在文档的其他地方生成它们,然后通过一组 \hskip(s) 和 \vskip(s) 将它们移动到位?
谢谢。
答案1
这看起来就像您想要实现的目标吗?
\documentclass{book}
\usepackage{lettrine}
\usepackage{xcolor}
\input GoudyIn.fd
\newcommand*\initfamily{\usefont{U}{GoudyIn}{xl}{n}}
\begin{document}
\thispagestyle{empty}
\def\frenchquote{\raisebox{-\baselineskip}{\Large «\,}}
\def\curlyquote{\Large “\,}
\lettrine[ante=\frenchquote, lines=3, findent=.5em, nindent=0em]
{\color{red}\initfamily{T}}{\color{red}\textbf{his}}
is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
\rule{\textwidth}{1pt}
\lettrine[ante=\curlyquote, lines=3, findent=.5em, nindent=0em]
{\color{red}\initfamily{T}}{\color{red}\textbf{his}}
is one sentence in the paragraph. This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
This is one sentence in the paragraph.
\end{document}