
Estou criando uma amostra de um texto interlinear em dois idiomas produzido usando LaTeX. Tudo está finalizado e o texto consiste em três coisas: uma glosa em inglês (linha superior); um texto hebraico (observe que é um idioma da direita para a esquerda); e uma tradução gratuita abaixo deles.
Mas para o produto final eu gostaria de adicionar uma nota na margem do lado direito da linha hebraica dando o número do versículo. O problema é que nem o pacote \marginpar
nem o marginnotes
pacote funcionam muito bem com o ambiente interlinear, com a nota aparecendo na parte superior ou inferior do ambiente.
Quais são algumas soluções para alinhar uma nota de margem com o meio de um texto interlinear?
\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}
Quero algo assim: (inserido via comentário em PDF).
Responder1
Obs: não tenho Arial nem Calibri então estou usandolibertine
no exemplo a seguir.
Você precisa marginnote
da versão 1.2b de 22 de abril de 2017 (ou mais recente). As versões anteriores não suportam a composição tipográfica da direita para a esquerda. Mas a partir da versão 1.2b o seguinte exemplo:
\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}
resulta em:
marginnote
1.2b já faz parte do pré-teste do TL 2017 (mas não do TL 2016) e está disponível para MiKTeX.
Se você não conseguir atualizar para marginnote
1.2b, dê uma olhada emminha resposta para:Notas de margem em Unicode RTL.