
LaTeX를 사용하여 생성된 행간 이중 언어 텍스트 샘플을 만들고 있습니다. 모든 것이 완료되었으며 텍스트는 세 가지로 구성됩니다. 영어 광택(맨 위 행); 히브리어 텍스트(오른쪽에서 왼쪽으로 쓰는 언어입니다) 그 아래에는 무료 번역이 있습니다.
그러나 최종 결과물의 경우 히브리어 줄 오른쪽에 절 번호를 나타내는 여백 메모를 추가하고 싶습니다. 문제는 환경의 상단이나 하단에 메모가 나타나는 Interlinear 환경에서는 패키지 \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
다음 예에서는.
marginnote
2017년 4월 22일(또는 그 이후) 릴리스 1.2b가 필요합니다 . 이전 릴리스에서는 오른쪽에서 왼쪽으로 조판을 처리하지 않습니다. 그러나 릴리스 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}
결과는 다음과 같습니다.
marginnote
1.2b는 이미 TL 2017 사전 테스트의 일부이며(TL 2016은 아님) MiKTeX에서 사용할 수 있습니다.
1.2b 로 업데이트할 수 없다면 marginnote
다음을 살펴보십시오.내 대답은:유니코드 RTL의 여백 참고 사항.