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)
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
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