テキストを揃えたいのですが、上付き文字とドロップキャップが押し出されているように見えます。これを修正するには何が必要かわかりません。また、最初の行が上部で始まるドロップキャップの周りを段落が折り返すようにしたいです。誰か助けてくれませんか? ありがとうございます!
\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}