如何將lettrine 與parallel 一起使用?或者我應該使用其他東西?

如何將lettrine 與parallel 一起使用?或者我應該使用其他東西?

我正在嘗試並排設定文字的兩個版本,並已經弄清楚如何使用並行來做到這一點。

我還想在第一行使用首字下沉。

然而,當我這樣做時,並行似乎不再適用於該段落。這是我正在嘗試的程式碼,它首先設定正確,然後不正確:

\documentclass[11pt]{book}
\usepackage{parallel,lettrine}

\begin{document}

\begin{Parallel}{}{}
    \ParallelLText{\noindent\emph{Wycliffe Bible}, 1382}
    \ParallelRText{\noindent\emph{Green's Literal Translation}, 1993}
    \ParallelPar

    \ParallelLText{In the bigynnyng God made of nouyt heuene and erthe.}
    \ParallelRText{In the beginning God created the heavens and the earth;}
    \ParallelPar

    \ParallelLText{$^{2}$Forsothe the erthe was idel and voide, and derknessis weren on the face of depthe; and the Spiryt of the Lord was borun on the watris.}
    \ParallelRText{$^{2}$and the earth being without form and empty, and darkness on the face of the deep, and the Spirit of God moving gently on the face of the waters,}
    \ParallelPar

\end{Parallel}
\vspace{2 cm}


\begin{Parallel}{}{}
    \ParallelLText{\noindent\emph{Wycliffe Bible}, 1382}
    \ParallelRText{\noindent\emph{Green's Literal Translation}, 1993}
    \ParallelPar

    \ParallelLText{\lettrine{I}{n} the bigynnyng God made of nouyt heuene and erthe.}
    \ParallelRText{\lettrine{I}{n} the beginning God created the heavens and the earth;}
    \ParallelPar

    \ParallelLText{$^{2}$Forsothe the erthe was idel and voide, and derknessis weren on the face of depthe; and the Spiryt of the Lord was borun on the watris.}
    \ParallelRText{$^{2}$and the earth being without form and empty, and darkness on the face of the deep, and the Spirit of God moving gently on the face of the waters,}
    \ParallelPar

\end{Parallel}

\end{document}

這個例子的結果:

微量元素

有人能告訴我哪裡出錯了嗎?

答案1

\linewidth(由 所使用\lettrine)的值不正確。

\documentclass[11pt]{book}
\usepackage{parallel}
\usepackage{lettrine}

\begin{document}

\begin{Parallel}{}{}
    \ParallelLText{\noindent\emph{Wycliffe Bible}, 1382}
    \ParallelRText{\noindent\emph{Green's Literal Translation}, 1993}
    \ParallelPar

    \ParallelLText{In the bigynnyng God made of nouyt heuene and erthe.}
    \ParallelRText{In the beginning God created the heavens and the earth;}
    \ParallelPar

    \ParallelLText{$^{2}$Forsothe the erthe was idel and voide, and derknessis weren on the face of depthe; and the Spiryt of the Lord was borun on the watris.}
    \ParallelRText{$^{2}$and the earth being without form and empty, and darkness on the face of the deep, and the Spirit of God moving gently on the face of the waters,}
    \ParallelPar

\end{Parallel}
\vspace{2 cm}


\begin{Parallel}{}{}
    \ParallelLText{\noindent\emph{Wycliffe Bible}, 1382}
    \ParallelRText{\noindent\emph{Green's Literal Translation}, 1993}
    \ParallelPar

    \ParallelLText{\setlength{\linewidth}{\hsize}\lettrine{I}{n} the bigynnyng God made of nouyt heuene and erthe. }
    \ParallelRText{\setlength{\linewidth}{\hsize}\lettrine{I}{n} the beginning God created the heavens and the earth;}
    \ParallelPar


    \ParallelLText{$^{2}$Forsothe the erthe was idel and voide, and derknessis weren on the face of depthe; and the Spiryt of the Lord was borun on the watris.}
    \ParallelRText{$^{2}$and the earth being without form and empty, and darkness on the face of the deep, and the Spirit of God moving gently on the face of the waters,}
    \ParallelPar

\end{Parallel}

\end{document}

在此輸入影像描述

答案2

某種手動解決方法,使用minipages.

\documentclass[11pt]{book}
\usepackage{parallel,lettrine}

\begin{document}

\begin{Parallel}{}{}
    \ParallelLText{\noindent\emph{Wycliffe Bible}, 1382}
    \ParallelRText{\noindent\emph{Green's Literal Translation}, 1993}
    \ParallelPar

    \ParallelLText{In the bigynnyng God made of nouyt heuene and erthe.}
    \ParallelRText{In the beginning God created the heavens and the earth;}
    \ParallelPar

    \ParallelLText{$^{2}$Forsothe the erthe was idel and voide, and derknessis weren on the face of depthe; and the Spiryt of the Lord was borun on the watris.}
    \ParallelRText{$^{2}$and the earth being without form and empty, and darkness on the face of the deep, and the Spirit of God moving gently on the face of the waters,}
    \ParallelPar

\end{Parallel}
\vspace{2 cm}


\begin{Parallel}{}{}
    \ParallelLText{\noindent\emph{Wycliffe Bible}, 1382}
    \ParallelRText{\noindent\emph{Green's Literal Translation}, 1993}
    \ParallelPar

    \ParallelLText{\noindent\begin{minipage}[t]{2.4in}\lettrine{I}{n}
 the bigynnyng God made of nouyt heuene and erthe.\end{minipage}}
    \ParallelRText{\noindent\begin{minipage}[t]{2.4in}\lettrine{I}{n}
 the beginning God created the heavens and the earth;\end{minipage}}
    \ParallelPar

    \ParallelLText{$^{2}$Forsothe the erthe was idel and voide, and derknessis weren on the face of depthe; and the Spiryt of the Lord was borun on the watris.}
    \ParallelRText{$^{2}$and the earth being without form and empty, and darkness on the face of the deep, and the Spirit of God moving gently on the face of the waters,}
    \ParallelPar

\end{Parallel}

\end{document}

在此輸入影像描述

答案3

編輯:我明白了

手冊lettrine提供了解決方法的提示(第 4 頁)

如果清單必須包含在以「lettrine」開頭的段落中,則需要\parshape=0在清單末尾之後新增該命令。

簡單地寫

 \ParallelLText{\lettrine{I}{n} the bigynnyng God made of nouyt heuene and erthe.\parshape=0}

相當工作,因為首字下沉最終位於邊距/裝訂線中: 在此輸入影像描述

這看起來很像 中的一個錯誤lettrine,與 無關parallel,因為添加parshape=0將首字下沉放在邊距中,在微不足道的使用中(並且設置lhang被忽略parshape=0):

\lettrine{T}{est} this is some long text that should wrap onto a second line.  It will end with \texttt{parshape=0}. \parshape=0
\lettrine{T}{est} this is some long text that should wrap onto a second line.  It \emph{does not} end with \texttt{parshape=0}.

在此輸入影像描述

相反,我們建立兩個新指令:\ParallelLtextL和 ,\ParallelRTextL它們接受 3 個參數:2 個 for\Lettrine和平行文字的其餘部分。還有一個新的長度\LWidth用於保持首字下沉的寬度。

\newlength{\LWidth}
\newcommand{\ParallelLTextL}[3]{\settowidth{\LWidth}{\LettrineFont{#1}}%
    \ParallelLText{\lettrine{#1}{#2}#3\parshape=1 \LWidth \dimexpr\ParallelLWidth - \ParallelMainMidSkip\relax}%
}
\newcommand{\ParallelRTextL}[3]{\settowidth{\LWidth}{\LettrineFont{#1}}%
    \ParallelRText{\lettrine{#1}{#2}#3\parshape=1 0pt \dimexpr\ParallelRWidth - \LWidth\relax}%
}

我們使用如下:

\ParallelLTextL{I}{n}{ the bigynnyng God made of nouyt heuene and erthe.}
\ParallelRTextL{I}{n}{ the beginning God created the heavens and the earth;}

在此輸入影像描述

相關內容