summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.tex')
-rw-r--r--Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.tex32
1 files changed, 22 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.tex b/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.tex
index 964645a664c..fbdf5c8b911 100644
--- a/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.tex
+++ b/Master/texmf-dist/doc/latex/reledmac/examples/2-reledmac-right-to-left.tex
@@ -1,12 +1,24 @@
-\documentclass[12pt]{article}
-\usepackage{libertineotf}
+\documentclass{article}
+\usepackage[osf,p]{libertinus}
+\usepackage{microtype}
+\usepackage[pdfusetitle,hidelinks]{hyperref}
\usepackage[noend,nofamiliar,noeledsec,series={A}]{reledmac}
-\usepackage{fontspec}
-\usepackage{polyglossia}
-\setmainlanguage{english}
-\setotherlanguage{hebrew}
-\newfontfamily{\hebrewfont}[Scale=0.9]{Ezra SIL}
+\usepackage{ifluatex}
+\ifluatex
+ \usepackage[main=english,bidi=basic]{babel}
+ \babelprovide[import=he]{hebrew}
+ \babelfont{rm}{Libertinus Serif}
+ \babelfont[hebrew]{rm}{Ezra SIL}
+ \newcommand{\texthebrew}[2][]{\foreignlanguage{hebrew}{#2}}
+ \newenvironment{hebrew}[2][]{\begin{otherlanguage}{hebrew}}{\end{otherlanguage}}
+ \usepackage{metalogo}
+\else
+ \usepackage{polyglossia}
+ \setmainlanguage{english}
+ \setotherlanguage{hebrew}
+ \newfontfamily{\hebrewfont}[Scale=0.9]{Ezra SIL}
+\fi
\Xarrangement{paragraph}
\Xbeforeinserting{\LTR}
@@ -30,9 +42,9 @@ In this file, we provide an example of an edition with right-to-left text and le
\begin{itemize}
\item The `hebrew' environment allows us to write Hebrew right-to-left.
- \item The \verb+\Xbeforeinserting{\LTR}+ makes the critical notes to be typeset left-to-right.
- \item The \verb+\Xwraplemma{\RL}+ assures the lemmas, which are in Hebrew, be typeset right-to-left.
- \item The \verb+\Xwrapcontent{\textenglish}+ assures the content of the note is marked as English text.
+ \item \verb+\Xbeforeinserting{\LTR}+ makes the critical notes to be typeset left-to-right.
+ \item \verb+\Xwraplemma{\RL}+ assures the lemmas, which are in Hebrew, be typeset right-to-left.
+ \item \verb+\Xwrapcontent{\textenglish}+ assures the content of the note is marked as English text.
\item As the `Ezra SIL' font transforms a `]' to a `[', we use a `[' as lemma separator, that will be typeset as `]' by `Ezra SIL'. So the need for \verb+\Xlemmaseparator+ is not directly linked to reledmac.
\end{itemize}