Пример #1
0
 def latex(self, *args, **kwargs):
     for (key, value, units) in self.subcalc.latex(*args, **kwargs):
         if key == "Equation":
             for eqnstr in latextools.call(self.func, self.unitses[0], self.description, value):
                 yield eqnstr
         else:
             yield (key, value, units)
Пример #2
0
    def latex(self, *args, **kwargs):
        for (key, value, units) in self.subcalc.latex(*args, **kwargs):
            if key == "Equation":
                for eqnstr in latextools.call(self.func, self.unitses[0], "Scaling function", value, self.latexpair[0]):
                    yield eqnstr
            else:
                yield (key, value, units)

        fulllatexpair = (self.latexpair[0], self.latexpair[1], self.from_units + ' -> ' + self.unitses[0])
        yield fulllatexpair
Пример #3
0
 def latexhandler(self, equation, baseyear, func, skip_on_missing):
     for eqnstr in latextools.call(func, self.unitses[0], "Re-basing function", equation, r"\left[%s\right]_{t = %d}" % (equation, baseyear)):
         yield eqnstr