
テキストの 2 つのバージョンを並べて設定しようとしており、並列を使用してそれを実行する方法を見つけました。
最初の行でもドロップキャップを使用したいと思います。
ただし、そうすると、その段落では並列処理が機能しなくなるようです。以下は、最初に正しく設定され、その後正しく設定されていない、私が試しているコードです。
\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
sを使用した手動の回避策のようなものminipage
。
\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
には回避策のヒントが記載されています(p.4)
\parshape=0
「lettrine」で始まる段落にリストを含める必要がある場合は、リストの終わりの直後にコマンドを追加する必要があります。
単に書く
\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}.
代わりに、 と の 2 つの新しいコマンドを作成します。\ParallelLtextL
これら\ParallelRTextL
は、 2 つの for\Lettrine
と残りの並列テキストの 3 つの引数を受け入れます。また、ドロップ キャップの幅を保持するために使用される新しい長さもあります\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;}