Am Donnerstag, den 11.08.2016, 11:16 -0400 schrieb Marshall Feldman: > I'm using the memoir class to produce a LyX document that's mainly > written in U.S. English but has several quotes that use British (UK) > English. So when I put the document through LyX's spell check and > came > to words like "behaviours," I just marked them as UK English. But > when I > tried to compile the document, LaTeX threw an error saying the > command > "\foreignlanguage{british}{behaviours}" was undefined.
This is strange. Can you post a minimal example (LyX) file? > > No problem, I thought. I'll just put a command in the document > preface > to load babel with both languages: > \usepackage[british,american]{babel}. > But this didn't work because LaTeX threw an error saying babel had > already been loaded. But for the life of me, I can't find where babel > is > being loaded. The memoir manual says it does not duplicate the > functionality of packages like babel, and babel is not in the list of > packages memoir loads. So by a process of elimination, I can only > guess > that LyX is surreptitiously loading babel. But if so, shouldn't it be > doing so with options for all the languages used in the document? > (I.e., > is this a bug in LyX?) No, it's a feature. LyX loads babel when needed. Jürgen
signature.asc
Description: This is a digitally signed message part