
Estoy intentando configurar dos versiones de un texto una al lado de la otra y he descubierto cómo hacerlo usando paralelo.
También me gustaría usar mayúsculas en la primera línea.
Sin embargo, cuando lo hago, el paralelo parece dejar de funcionar en ese párrafo. Aquí está el código que estoy probando, configurándolo primero correctamente y luego no:
\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}
Y el resultado de este ejemplo:
¿Alguien puede mostrarme dónde me estoy equivocando?
Respuesta1
\linewidth
(usado por \lettrine
) no tiene el valor correcto.
\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}
Respuesta2
Algo así como una solución 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}
Respuesta3
Editar: lo descubrí
El lettrine
manual tiene una sugerencia de solución alternativa (p.4)
Si se debe incluir una lista en un párrafo que comienza con una 'letrina', es necesario agregar el comando
\parshape=0
justo después del final de la lista.
simplemente escribiendo
\ParallelLText{\lettrine{I}{n} the bigynnyng God made of nouyt heuene and erthe.\parshape=0}
nobastantefunciona, ya que la letra capitular termina en el margen/canalón:
Esto parece más bien un error en lettrine
, y no tiene nada que ver con parallel
, en el sentido de que al agregar parshape=0
se coloca la letra mayúscula en el margen en un uso trivial (y la configuración lhang
se ignora con 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}.
En lugar de eso, creamos dos nuevos comandos: \ParallelLtextL
y \ParallelRTextL
que aceptan 3 argumentos: los 2 para \Lettrine
y el resto del texto paralelo. También hay una nueva longitud \LWidth
que se utiliza para mantener el ancho de la letra capitular.
\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 utilizamos de la siguiente manera:
\ParallelLTextL{I}{n}{ the bigynnyng God made of nouyt heuene and erthe.}
\ParallelRTextL{I}{n}{ the beginning God created the heavens and the earth;}