I work in humanities, so please forgive my lack of competence and the weirdness of my computing needs. Is there a way to make this work? I need to use three (for starters) languages in the same document. Lithuanian (L7x), polish (LaTeX seems to render it fine without stating \usepackage{polski}) and russian (T2A). I get the error message below as soon as I introduce any third language-specific symbol into the document.
! TeX capacity exceeded, sorry [input stack size=5000].\L ->\L7x-cmd \L
\L7x\L
l.9 ĄąĆćĘęŁ
łŃńÓóŻż
! ==> Fatal error occurred, no output PDF file produced!
Russian+lithuanian works fine, but a single "ł" triggers an error. The same with russian+polish and a "ė". A cyrillic character only causes non-fatal error (msg. below) for each symbol and cyrillic text is simply ignored in the output file.
! Package inputenc Error: Unicode char \u8:ц not set up for use with LaTeX.
Here is a MWE
\documentclass{article}
\usepackage[L7x,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[lithuanian,russian]{babel}
\begin{document}
%lithuanian
ĄąČčĘęĖėĮįŠšŲųŪūŽž
%russian
БбЖжЬьЯяЭэЩщШшПпЦц
%polish
ĄąĆćĘꣳŃńÓóŻż
\end{document}
\selectlanguage{XVY}) so that latex can e.g. change font encodings. Perhaps the errors disappears then. But before everyone try to debug your example: Did you consider to use xelatex? – Ulrike Fischer Feb 3 '12 at 8:26