Jean-Marc Lasgouttes wrote: >>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> >>>>>> writes: > > Angus> Why not pass 'buffer' to LaTeX::run() ? That would enable you > Angus> to proceed without jumping through hoops. > > Or add the language to runparams.
Good idea. Incidentally, I don't understand the comment here: struct OutputParams { /** the babel name of the language at the point where the inset is */ std::string lang; }; Won't the language change as one goes through the document? If 'lang' is actually the language of the document, then can't Martin extract the language with Language const * const lang_ptr = languages(runparams.lang); ? -- Angus