
Estoy creando una muestra de un texto interlineal en dos idiomas producido con LaTeX. Todo está terminado y el texto consta de tres cosas: una glosa en inglés (fila superior); un texto hebreo (tenga en cuenta que es un idioma que se escribe de derecha a izquierda); y una traducción gratuita debajo de ellos.
Pero para el producto final me gustaría agregar una nota al margen en el lado derecho de la línea hebrea que indique el número del versículo. El problema es que ni \marginpar
ni el marginnotes
paquete funcionan muy bien con el entorno interlineal, apareciendo la nota en la parte superior o inferior del entorno.
¿Cuáles son algunas soluciones para alinear una nota al margen con la mitad de un texto interlineal?
\documentclass[draft, a4paper]{article}
\usepackage[a4paper, left=3.5cm, right=3.5cm, top=2.5cm,bottom=4cm]{geometry}
\setlength{\parindent}{0em}
\setlength{\parskip}{1em}
\linespread{1.1}
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\newfontfamily\hebrewfont[Script=Hebrew]{Arial}
\newfontfamily\englishfont[Script=Latin]{Calibri}
\usepackage{expex}
\lingset{everygla=\footnotesize\englishfont\beginL, everyglb=\large\hebrewfont, everyglft=\large\englishfont\beginL,
glwordalign=center,
aboveglftskip=-.15cm,
glspace=1em,
}
\newcommand{\vsd}{\vspace{0.8cm}}
\begin{document}
\setLR
\begin{center} \LARGE
Demonstration of \LaTeX\ Layout
\end{center}
\begin{flushleft}
\section*{Book of Deuteronomy}
\subsection*{ Chapter 8 \textemdash\ The Seven Species of the Land of Israel}
\end{flushleft}
\setRL
\begingl
\gla {And you will keep} {the commandments} {the LORD} {your God} {to walk} {in his ways} {and to fear} him //
\glb וְשָׁמַרְתָּ, אֶת-מִצְוֹת השם אֱלֹהֶיךָ, לָלֶכֶת בִּדְרָכָיו, וּלְיִרְאָה אֹתוֹ //
\glft And you will keep the commandments of the LORD your God, to walk in his ways and to fear him.//
\endgl
\vsd %command for vertical space
\setLR
\section*{Textual Analysis}
\raggedright \large \englishfont
The verses above are taken from the Biblical Book of Deuteronomy.
\end{document}
Quiero algo como esto: (insertado mediante comentario en PDF).
Respuesta1
Nota: No tengo Arial ni Calibri así que estoy usandolibertine
en el siguiente ejemplo.
Necesita marginnote
la versión 1.2b del 22 de abril de 2017 (o posterior). Las versiones anteriores no admiten la composición tipográfica de derecha a izquierda. Pero a partir de la versión 1.2b aparece el siguiente ejemplo:
\documentclass[draft, a4paper]{article}
\usepackage[a4paper, left=3.5cm, right=3.5cm, top=2.5cm,bottom=4cm]{geometry}
\usepackage{parskip}
%\setlength{\parindent}{0em}
\setlength{\parskip}{1em}
\linespread{1.1}
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\usepackage{libertine}
\usepackage{expex}
\lingset{everygla=\footnotesize\beginL, everyglft=\large\beginL,
glwordalign=center,
aboveglftskip=-.15cm,
glspace=1em,
}
\newcommand{\vsd}{\vspace{0.8cm}}
\usepackage{marginnote}[2017/04/22]% at least marginnote 1.2b needed
\reversemarginpar
\begin{document}
\setLR
\begin{center} \LARGE
Demonstration of \LaTeX\ Layout
\end{center}
\begin{flushleft}
\section*{Book of Deuteronomy}
\subsection*{ Chapter 8 \textemdash\ The Seven Species of the Land of Israel}
\end{flushleft}
\setRL
\begingl
\gla {And you will keep} {the commandments} {the LORD} {your God} {to walk} {in his ways} {and to fear} him //
\glb\marginnote{6 Verse}וְשָׁמַרְתָּ, אֶת-מִצְוֹת השם אֱלֹהֶיךָ, לָלֶכֶת בִּדְרָכָיו, וּלְיִרְאָה אֹתוֹ //
\glft And you will keep the commandments of the LORD your God, to walk in his ways and to fear him.//
\endgl
\vsd %command for vertical space
\setLR
\section*{Textual Analysis}
\raggedright \large
The verses above are taken from the Biblical Book of Deuteronomy.
\end{document}
da como resultado:
marginnote
1.2b ya forma parte de la prueba preliminar de TL 2017 (pero no de TL 2016) y está disponible para MiKTeX.
Si no puede actualizar a marginnote
1.2b, eche un vistazo ami respuesta a:Notas de margen en Unicode RTL.