我希望文本保持齐平,但看起来上标和首字下沉被推开了。我不知道该如何修复它。另外,我希望段落围绕首字下沉,第一行从其顶部开始。有人能帮我吗?谢谢!
\documentclass{article}
\usepackage{times}
\usepackage{lettrine} % For creating drop caps
\usepackage{yfonts} % For Goudy Initialen font
\usepackage{xcolor} % Provides \textcolor
% Set the page geometry with default text width
\usepackage{geometry}
\geometry{
paperwidth=9.4in,
paperheight=6.8in,
headheight=0pt, % Remove header
headsep=0pt, % Remove space for header
footskip=0pt, % Remove footer
marginparwidth=0pt, % Remove marginal notes
marginparsep=0pt, % Remove separation for marginal notes
textwidth=50mm,
textheight=130mm,
top=71.86614pt,
inner=35mm,
}
\pagestyle{empty}
\definecolor{maroon}{RGB}{128,0,0}
% Define a new command for the verse number that allows for future styling
% Define a new command for the verse number that allows for future styling
\newcommand{\versenum}[1]{%
\kern1pt% Negative kern to reduce space before the verse number
\textsuperscript{\textbf{\textcolor{maroon}{#1}}}%
\kern0.5pt% Negative kern to reduce space after the verse number
}
\begin{document}
\setlength{\baselineskip}{9.5pt}
\setlength{\parskip}{.75pt}
\lettrine[lines=4, findent=0pt, nindent=0pt, loversize=-0.99]{\initfamily \textcolor{maroon}{B}}lessed be the God and father of our Lord Jesus Christ.
\versenum{2}According to his great mercy, He has caused us to be born again, to a living hope through the resurrection of Jesus Christ from the dead.
\versenum{3}To an inheritance that is imperishable, undefiled, and unfading, kept in heaven for you and here is some more text to make the pushed text up top more noticeable
\end{document}
\end{document}
答案1
我永远不会使用 Times 来处理这样的文本;但它newtxtext
绝对是比过时的包更好的选择times
。
我做了一些改变:对于如此窄的列,字体应该更小,这是通过以 90% 的比例缩放来实现的,同时相应减少基线跳过。
\versenum
我修改了你插入的 :的定义积极的字距而不是负数。最后,microtype
效果很好。
为了允许在诗句编号后面使用连字符,我使用了\nobreak\hspace{0pt}
。
\documentclass{article}
\usepackage[scale=0.9]{newtxtext}
\usepackage{microtype}
\usepackage{lettrine} % For creating drop caps
\usepackage{yfonts} % For Goudy Initialen font
\usepackage{xcolor} % Provides \textcolor
% Set the page geometry with default text width
\usepackage{geometry}
\geometry{
paperwidth=9.4in,
paperheight=6.8in,
headheight=0pt, % Remove header
headsep=0pt, % Remove space for header
footskip=0pt, % Remove footer
marginparwidth=0pt, % Remove marginal notes
marginparsep=0pt, % Remove separation for marginal notes
textwidth=50mm,
textheight=130mm,
top=71.86614pt,
inner=35mm,
}
\pagestyle{empty}
\definecolor{maroon}{RGB}{128,0,0}
\renewcommand{\LettrineFontHook}{\initfamily\color{maroon}}
\newcommand{\versenum}[1]{%
\textsuperscript{\textbf{\textcolor{maroon}{#1}}}%
\nobreak\hspace{0pt}\ignorespaces
}
\newcommand{\dropcap}[1]{%
\lettrine[
lines=4,
findent=0pt,
nindent=0pt,
loversize=-0.99
]{#1}{}%
}
\linespread{0.9}
\begin{document}
\dropcap{B}lessed be the God and father of our Lord Jesus Christ.
\versenum{2}
According to his great mercy, He has caused us to be born again,
to a living hope through the resurrection of Jesus Christ from the dead.
\versenum{3}To an inheritance that is imperishable, undefiled, and
unfading, kept in heaven for you and here is some more text to make
the pushed text up top more noticeable
\end{document}
答案2
您可以在空白处留出更多灵活性,以便文本对齐
但正如你所见,诗句数字破坏了基线间距,所以我还隐藏了上标的高度
\documentclass{article}
\usepackage{times}
\usepackage{lettrine} % For creating drop caps
\usepackage{yfonts} % For Goudy Initialen font
\usepackage{xcolor} % Provides \textcolor
% Set the page geometry with default text width
\usepackage{geometry}
\geometry{
paperwidth=9.4in,
paperheight=6.8in,
headheight=0pt, % Remove header
headsep=0pt, % Remove space for header
footskip=0pt, % Remove footer
marginparwidth=0pt, % Remove marginal notes
marginparsep=0pt, % Remove separation for marginal notes
textwidth=50mm,
textheight=130mm,
top=71.86614pt,
inner=35mm,
}
\pagestyle{empty}
\definecolor{maroon}{RGB}{128,0,0}
% Define a new command for the verse number that allows for future styling
% Define a new command for the verse number that allows for future styling
\newcommand{\versenum}[1]{%
\leavevmode % make sure the following is horizontal not vertical
\kern1pt% Negative kern to reduce space before the verse number
\smash{\textsuperscript{\textbf{\textcolor{maroon}{#1}}}}% hide the height
\kern0.5pt% Negative kern to reduce space after the verse number
}
\usepackage{microtype}
\setlength\emergencystretch{1cm}
\begin{document}
\setlength{\baselineskip}{9.5pt}
\setlength{\parskip}{.75pt}
\lettrine[lines=4, findent=0pt, nindent=0pt, loversize=-0.99]{\initfamily \textcolor{maroon}{B}}lessed be the God and father of our Lord Jesus Christ.
\versenum{2}According to his great mercy, He has caused us to be born again, to a living hope through the resurrection of Jesus Christ from the dead.
\versenum{3}To an inheritance that is imperishable, undefiled, and unfading, kept in heaven for you and here is some more text to make the pushed text up top more noticeable
\end{document}