예제 #1
0
 def postArgument(self, arg, value, tex):
     if arg.name == 'lang':
         doc = self.ownerDocument
         doc.userdata.setPath('babel/previouslanguage',
                              doc.context.currentLanguage)
         doc.context.loadLanguage(value, doc)
     else:
         Command.postArgument(self, arg, value, tex)
예제 #2
0
 def postArgument(self, arg, value, tex):
     res = Command.postArgument(self, arg, value, tex)
     self.alph = self.ownerDocument.context.counters[self.counter].alph
     self.roman = self.ownerDocument.context.counters[
         self.counter].roman
     self.Alph = self.ownerDocument.context.counters[self.counter].Alph
     return res