From 5e92187c88b622c3f4186cc4ebcc4372c56445f5 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sat, 23 Aug 2025 18:41:24 +0100 Subject: common.latex: add RTL support for LuaTeX engine --- data/templates/common.latex | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'data') diff --git a/data/templates/common.latex b/data/templates/common.latex index cb745941d..5f32758ed 100644 --- a/data/templates/common.latex +++ b/data/templates/common.latex @@ -234,6 +234,12 @@ $if(dir)$ \newenvironment{RTL}{\beginR}{\endR} \newenvironment{LTR}{\beginL}{\endL} \fi +\ifluatex + \newcommand{\RL}[1]{\bgroup\textdir TRT#1\egroup} + \newcommand{\LR}[1]{\bgroup\textdir TLT#1\egroup} + \newenvironment{RTL}{\textdir TRT\pardir TRT\bodydir TRT}{} + \newenvironment{LTR}{\textdir TLT\pardir TLT\bodydir TLT}{} +\fi $endif$ $-- $-- bibliography support support for natbib and biblatex -- cgit v1.2.3