
Estou tentando definir duas versões de um texto lado a lado e descobri como fazer isso usando paralelo.
Eu também gostaria de usar letras maiúsculas na primeira linha.
Quando o faço, no entanto, o paralelo parece parar de funcionar para esse parágrafo. Aqui está o código que estou tentando, com ele configurado primeiro corretamente e depois não:
\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}
E o resultado deste exemplo:
Alguém pode me mostrar onde estou errando?
Responder1
\linewidth
(usado por \lettrine
) não tem o valor correto.
\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}
Responder2
Uma espécie de solução alternativa manual, usando minipage
s.
\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}
Responder3
Editar: eu descobri
O lettrine
manual tem uma sugestão de solução alternativa (p.4)
Se for necessário incluir uma lista num parágrafo que comece por 'lettrine', é necessário adicionar o comando
\parshape=0
logo após o final da lista.
Simplesmente escrevendo
\ParallelLText{\lettrine{I}{n} the bigynnyng God made of nouyt heuene and erthe.\parshape=0}
nãobastantefunciona, já que a capitular acaba na margem/calha:
Isso parece um bug no lettrine
, e não tem nada a ver com o parallel
, pois a adição parshape=0
coloca a capitulação na margem no uso trivial (e a configuração lhang
é ignorada com 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}.
Em vez disso, criamos dois novos comandos: \ParallelLtextL
e \ParallelRTextL
que aceitam 3 argumentos: os 2 para \Lettrine
e o resto do texto paralelo. Há também um novo comprimento \LWidth
usado para manter a largura da capitulação.
\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}%
}
Que usamos da seguinte forma:
\ParallelLTextL{I}{n}{ the bigynnyng God made of nouyt heuene and erthe.}
\ParallelRTextL{I}{n}{ the beginning God created the heavens and the earth;}