Parallel
使用 时,如何避免包中的文本重叠lettrine
?我正在编写平行文本,其中左列文本翻译与右列文本平行书写。但是使用 时文本重叠letrrine
。我需要lettrine
在每个新章节编号的开头使用。
以下是我迄今为止尝试过的 MWE:
\documentclass[twoside,letterpaper]{book}
\usepackage[margin=1.5cm]{geometry}
\usepackage{hyphenat}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{lettrine}
\usepackage{fancyhdr}
\usepackage[perpage]{footmisc} %%% To restart footnote numbering on every new pages
\usepackage{parallel}
\newcommand{\jChapter}[1]{\par\bigskip\lettrine{{\textcolor{red}{#1}}}{}\markboth{\chaplabel\ #1:1}{\chaplabel\ #1:1}\renewcommand{\jnumChapters}{#1}}
\newcommand{\jverseFormat}[1]{#1}
\newcommand{\jChapterNumFormat}[1]{\textcolor{cyan}{\textbf{#1}}}
\newcommand{\jverse}[3]{\noindent{\jChapterNumFormat{#1}\markboth{\chaplabel\ \jnumChapters :#1}{\chaplabel\ \jnumChapters :#1}} #2{\jverseFormat{#3}}\par\smallskip\renewcommand{\jnumVerses}{#1}}
\newcommand{\chaplabel}{}
\newcommand{\jnumChapters}{0}
\newcommand{\jnumVerses}{0}
\begin{document}
\pagenumbering{gobble}
\begin{Parallel}{9.1cm}{9.1cm}
\ParallelLText{\bf\large\textit{Kethip-ketheng Atomo}}
\ParallelRText{\bf\large\textit{The Story of Creation}}
\ParallelPar
\ParallelLText{\lettrine{1}{}{Kechengsi, Arnam sining-heihei lapen pirthe kepinchong ahut,}}
\ParallelRText{\lettrine{1}{}{In the beginning, when God created the universe,}}
\ParallelPar
\ParallelLText{\jverse{2}{}{pirthe arje avelang lapen thangnatta ave, lapen lang-lom athak kangtingsi dolang; lapen Arnam Akarjong lang-heihei athak damlo.}}
\ParallelRText{\jverse{2}{}{the earth was a formless void and darkness covered the face of the deep, while a wind from God swept over the face of the waters.}}
\ParallelPar
\end{Parallel}
\end{document}
答案1
对于左侧文本,我使用了\lettrine
如下命令:
\ParallelLText{\jverse{}{\lettrine{1}}{}{Kechengsi, Arnam sining-heihei lapen pirthe kepinchong ahut,}}
对于正确的文本,我使用以下方式添加第一个字母:
\newcommand \prelude[1] {\makebox[9.4cm][l]{#1}}
用法如下:
\ParallelRText{\jverse{}{\lettrine[ante={\prelude{}}]{1}}{}{In the beginning, when God created the universe,}}
该9.4cm
值来自您的Parallel
设置(即 9.1cm)。
完整代码:
\documentclass[twoside,letterpaper]{book}
\usepackage[margin=1.5cm]{geometry}
\usepackage{hyphenat}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{lettrine}
\usepackage{fancyhdr}
\usepackage[perpage]{footmisc} %%% To restart footnote numbering on every new pages
\usepackage{parallel}
\newcommand{\jChapter}[1]{\par\bigskip\lettrine{{\textcolor{red}{#1}}}{}\markboth{\chaplabel\ #1:1}{\chaplabel\ #1:1}\renewcommand{\jnumChapters}{#1}}
\newcommand{\jverseFormat}[1]{#1}
\newcommand{\jChapterNumFormat}[1]{\textcolor{cyan}{\textbf{#1}}}
\newcommand{\jverse}[3]{\noindent{\jChapterNumFormat{#1}\markboth{\chaplabel\ \jnumChapters :#1}{\chaplabel\ \jnumChapters :#1}} #2{\jverseFormat{#3}}\par\smallskip\renewcommand{\jnumVerses}{#1}}
\newcommand{\chaplabel}{}
\newcommand{\jnumChapters}{0}
\newcommand{\jnumVerses}{0}
\newcommand \prelude[1] {\makebox[9.4cm][l]{#1}}
\begin{document}
\pagenumbering{gobble}
\begin{Parallel}{9.1cm}{9.1cm}
\ParallelLText{\bf\large\textit{Kethip-ketheng Atomo}}
\ParallelRText{\bf\large\textit{The Story of Creation}}
\ParallelPar
\ParallelLText{\jverse{}{\lettrine{1}}{}{Kechengsi, Arnam sining-heihei lapen pirthe kepinchong ahut,}}
\ParallelRText{\jverse{}{\lettrine[ante={\prelude{}}]{1}}{}{In the beginning, when God created the universe,}}
\ParallelPar
\ParallelLText{\jverse{2}{}{pirthe arje avelang lapen thangnatta ave, lapen lang-lom athak kangtingsi dolang; lapen Arnam Akarjong lang-heihei athak damlo.}}
\ParallelRText{\jverse{2}{}{the earth was a formless void and darkness covered the face of the deep, while a wind from God swept over the face of the waters.}}
\ParallelPar
\end{Parallel}
\end{document}