lettrine
在这里我遇到了数字与文本重叠的问题,通常数字150
和起始文本应该保持一定距离,但这里它们重叠而没有保持分离距离,这里我使用parallel
包将一种语言的翻译排版成英文并行,所以在这里我使用了parallel
包,这里左栏是另一种语言(即 Karbi),右栏是英文,这是我的 MWE
\documentclass[twoside,letterpaper]{book}
\usepackage[margin=1.5cm]{geometry}
\usepackage{hyphenat}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{lettrine}
\usepackage{fancyhdr}
%\usepackage{fixltx2e}
\usepackage[perpage]{footmisc} %%% To restart footnote numbering on every new pages
\newcommand{\jLChapter}[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{\jBracketWord}[1]{\emph{#1}}
\newcommand{\jParaSymbol}[0]{{}}
\setlength{\columnseprule}{0.0pt}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RO]{\leftmark}
\fancyhead[LE]{\rightmark}
\renewcommand{\headrulewidth}{0pt}
\setlength{\headwidth}{\textwidth}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\newcommand{\chaplabel}{}
\newcommand{\jnumChapters}{0}
\newcommand{\jnumVerses}{0}
\usepackage{parallel}
\newcommand \prelude[1] {\makebox[9.4cm][l]{#1}}
\newcommand{\jRChapter}[1]{\lettrine[ante={\prelude{}}]{\textcolor{red}{#1}}{}}
\usepackage{titlesec}
\titleformat{\chapter}
{\normalfont\Huge\bfseries}
{}
{0pt}
{}
\titlespacing*{\chapter}{0pt}{*11.5}{*8}
\renewcommand{\chaptermark}[1]{\markright{\MakeUppercase{#1}}}
\usepackage[colorlinks]{hyperref}
\begin{document}
\renewcommand{\thefootnote}{\emph{\alph{footnote}}}
\frontmatter
\title{The Holy Bible}
\date{}
\author{}
\setlength{\columnseprule}{0pt}
\maketitle
%\renewcommand*\contentsname{The Old Testament}
\tableofcontents
\mainmatter
\pagenumbering{gobble}
\part*{The Old Testament}
\setlength{\columnseprule}{0.0pt}
\renewcommand{\jnumChapters}{0}
\pagenumbering{arabic}
\chapter{Genesis}
\renewcommand{\chaplabel}{Kecheng}
\begin{Parallel}{9.1cm}{9.1cm}
\ParallelLText{\jverse{}{\jLChapter{150}}{}{Kechengsi, Arnam sining-heihei lapen pirthe kepinchong ahut, }}
\ParallelRText{\jverse{}{\jRChapter{150}}{}{In the beginning when God created the heavens and the earth, }}
\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
似乎没有得到充分利用,尤其是首字下沉(的第二个参数\lettrine
,留空)。因此,可以使用更简单的方法,以便进行更多控制。
这里尝试一下tabularx
。想法是制作一个表格,左边是数字,右边是第一段。
有一些间距调整:表格填充设置为 0,以\setlength\tabcolsep{0pt}
减少数字左侧的空间,并在数字右侧添加一个小空间以弥补这一侧 colsep 的不足。此外,右侧的文本略微向上移动以与数字顶部对齐。
MWE(我稍微减少了原始代码):
\documentclass{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage[none]{hyphenat}
\usepackage[usenames]{xcolor}
\usepackage{tabularx}
\usepackage{parallel}
\newcommand{\jverse}[2]{\noindent{\textcolor{cyan}{\textbf{#1}}} {#2}\par\smallskip}
\setlength\tabcolsep{0pt}
\newcommand{\printChapNum}[2]{%
\noindent%
\begin{tabularx}{9.1cm}{lX}{%
\Huge\color{red} #1}\hspace{1mm} &%
\vspace{-6mm}#2\\
\end{tabularx}%
}
\begin{document}
\begin{Parallel}{9.1cm}{9.1cm}
\ParallelLText{\printChapNum{150}{Kechengsi, Arnam sining-heihei lapen pirthe kepinchong ahut,}}
\ParallelRText{\printChapNum{150}{In the beginning when God created the heavens and the earth,}}
\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}
结果: