To me there are two issues: - one is that it's quite legitimate to do dir=rtl for e.g. HTML as the intended output, and this probably shouldn't generate LaTeX code that will fail in LuaLaTeX or XeLaTeX given those are the best LaTeX engines to use for bidi text - the other is that Babel really doesn't have a way to change text direction, so the only way to do this in a babel-compliant way is to define a dummy language. I could potentially ask the babel maintainer for help doing this, as they've been very helpful to me in the past. An alternative would be to have dummy definitions of the macros that pandoc generates LaTeX calls to for dir=rtl so that at least it would all then fail silently. For my own use I can just specify the actual language but I think it would make sense to avoid being able to generate error-producing LaTeX code? On Monday, 25 April 2022 at 08:52:09 UTC+12 Albert Krewinkel wrote: > > John MacFarlane writes: > > > Does anyone out there know about RTL support in LaTeX? > > I tried to read up on it, but didn't really get any smarter. The only > interesting thing I came across is this quote from the babel manual: > > > No macros to select the writing direction are provided, either – > > writing direction is intrinsic to each script and therefore it is best > > set by the language (which can be a dummy one). Furthermore, there are > > in fact two right-to-left modes, depending on the language, which > > differ in the way ‘weak’ numeric characters are ordered (eg, Arabic > > %123 vs Hebrew 123%). > > From the sound of it, defining a placeholder languages could be an > option to select direction. > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c507fb57-c98e-4cdc-a82d-c70d485d59b4n%40googlegroups.com.