텍스트를 그대로 유지하고 싶지만 위쪽 첨자와 드롭 캡이 밀려나는 것처럼 보입니다. 그 문제를 해결하려면 무엇이 필요한지 모르겠습니다. 또한 첫 번째 줄이 맨 위에서 시작되는 드롭 캡 주위에 단락을 감싸고 싶습니다. 누군가 나를 도와줄 수 있나요? 감사합니다!
\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}