使用 lettrine 调整引号的大小和对齐方式

使用 lettrine 调整引号的大小和对齐方式

的文档lettrine描述了\ante=在首字母缩略之前使用引号。这会产生与普通文本大小相同的引号:

\documentclass[12pt]{article}
\usepackage{lettrine}
\begin{document}
\lettrine[ante=‘]{C}{uriouser} and curiouser!’\ cried Alice (she was
so much surprised, that for the moment she quite forgot how to speak
good English); ‘now I’m opening out like the largest telescope that
ever was! Good-bye, feet!’\ (for when she looked down at her feet,
they seemed to be almost out of sight, they were getting so far off).
\end{document}

输出

然而,在凸起和下降的首字母艾伦·哈利 (Allan Haley) 写道:“使用引号时,开头的引号的大小应介于初始大小和文本副本的点大小之间,但其对齐方式应保持在字母的光学顶部。” 而遵循这个建议并不容易。

在与初始 () 相同的参数中包含引号\lettrine{‘C}{uriouser}可以实现完美对齐,但引号太大:

输出

使用\ante=大小改变命令 ( \lettrine[ante=\LARGE ‘]{C}{uriouser}) 会生成大小合理但未对齐的引号:

输出

在与初始参数相同的参数中包含引号,但使用大小改变命令 ( \lettrine{{\LARGE ‘}C}{uriouser}),也会产生大小合理但未对齐的引号,尽管现在它太低而不是太高:

输出

手动调整(\lettrine{\raisebox{.46ex}{\LARGE ‘}C}{uriouser})给出的结果似乎可以接受:

输出

这是反复试验的结果,如果我决定让开头占据三到四行,那么很多步骤就需要重复。我的问题是否存在更优雅的方法 1)找到介于首字母和文本引号大小之间的引号大小,以及 2)正确对齐它。

我进行编译luatex,以防万一出现可能的解决方案。

答案1

\loq在这里,我通过缩放用于 lettrine 的字体并将开头的引号提高到必要的量来定义(lettrine 开头的引号)。

\RequirePackage{fix-cm}
\documentclass[12pt]{article}
\usepackage{lettrine}

\newcommand\loq{%
  \sbox0{T}%
  \sbox2{%
    \dimen0=\csname f@size\endcsname pt
    \dimen0=0.5\dimen0 % adjust the factor to suit
    \fontsize{\dimen0}{0}\selectfont`%
  }%
  \raisebox{\dimexpr\ht0-\ht2}{\usebox{2}}%
}

\begin{document}

\lettrine{\loq C}{uriouser} and curiouser!’\ cried Alice (she was
so much surprised, that for the moment she quite forgot how to speak
good English); ‘now I’m opening out like the largest telescope that
ever was! Good-bye, feet!’\ (for when she looked down at her feet,
they seemed to be almost out of sight, they were getting so far off).

\end{document}

在此处输入图片描述

我添加了fix-cm可任意缩放的字体;使用 LuaLaTeX 您将不需要它。

按照芭芭拉·比顿 (Barbara Beeton) 的建议,这里介绍如何将开场引语移动到左边距。

\RequirePackage{fix-cm}
\documentclass[12pt]{article}
\usepackage{lettrine}

\newcommand\loq{%
  \sbox0{T}%
  \sbox2{%
    \dimen0=\csname f@size\endcsname pt
    \dimen0=0.5\dimen0 % adjust the factor to suit
    \fontsize{\dimen0}{0}\selectfont`%
  }%
  \llap{\raisebox{\dimexpr\ht0-\ht2}{\usebox{2}}}%
}

\begin{document}

\lettrine{\loq C}{uriouser} and curiouser!’\ cried Alice (she was
so much surprised, that for the moment she quite forgot how to speak
good English); ‘now I’m opening out like the largest telescope that
ever was! Good-bye, feet!’\ (for when she looked down at her feet,
they seemed to be almost out of sight, they were getting so far off).

\end{document}

在此处输入图片描述

相关内容