Как мне использовать lettrine с parallel? Или мне следует использовать что-то другое?

Как мне использовать lettrine с parallel? Или мне следует использовать что-то другое?

Я пытаюсь разместить две версии текста рядом и придумал, как это сделать с помощью parallel.

Я бы также хотел использовать буквицы в первой строке.

Однако, когда я это делаю, 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;}

введите описание изображения здесь

Связанный контент