行間環境の余白の注釈はソーステキストと揃えられます

行間環境の余白の注釈はソーステキストと揃えられます

私は LaTeX を使用して作成された二言語の行間テキストのサンプルを作成しています。すべて完了しており、テキストは 3 つの要素で構成されています。英語の注釈 (上の行)、ヘブライ語のテキスト (右から左に記述する言語であることに注意)、およびその下の自由翻訳です。

しかし、最終製品では、ヘブライ語の行の右側に詩番号を示す余白注釈を追加したいと考えています。問題は、注釈が環境の上部または下部に表示される行間環境では、パッケージ\marginparもパッケージもmarginnotesあまりうまく機能しないことです。

欄外注釈を行間テキストの中央に揃えるには、どのような解決策がありますか?

\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}

次のようなものが欲しいです: (PDF コメント経由で挿入)。

余白メモ付きのターゲットレイアウトの画像

答え1

注: ArialやCalibriを持っていないので、libertine次の例では。

2017 年 4 月 22 日以降のリリース 1.2b (またはそれ以降)が必要ですmarginnote。以前のリリースでは、右から左へのタイプセットは処理されません。ただし、リリース 1.2b では次の例になります。

\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}

結果は次のようになります:

ここに画像の説明を入力してください

marginnote1.2b はすでに TL 2017 プレテストの一部であり (TL 2016 ではありません)、MiKTeX で利用できます。

marginnote1.2bにアップデートできない場合は、私の答え:Unicode RTL の欄外注釈

関連情報