Skip to main content

The PreTeXt Guide

Subsection 4.36.3 Multilingual Documents

As of the start of 2023, we are improving support to allow for parts of a document to be in different languages. Much as you place an @xml:lang attribute on the overall <pretext> element, you can place this attribute, with a different supported language onto any element, and all of the content within that element should react according to the new language. A division would be most natural, but perhaps also a block or a paragraph? Development continues, and in particular not every part of an HTML page always reacts.