Example #1
0
 def _explanation(self, **kw):
     if not self.explanation:
         yield ""
         return
     yield "\\item \\textbf{Description:} \\\\"
     format_prec = max(int(kw["format_prec"]), 4)
     wrapper = textwrap.TextWrapper(width=format_prec)
     yield from wrapper.wrap(TFL.tex_quoted(self.explanation))
Example #2
0
File: Macro.py Project: Tapyr/tapyr
 def _explanation (self, ** kw) :
     if not self.explanation :
         yield ""
         return
     yield "\\item \\textbf{Description:} \\\\"
     format_prec = max (int (kw ["format_prec"]), 4)
     wrapper     = textwrap.TextWrapper (width = format_prec)
     for l in wrapper.wrap (TFL.tex_quoted (self.explanation)) :
         yield l
Example #3
0
 def _tex_description(self, **kw):
     for l in self._description(**kw):
         yield TFL.tex_quoted(l)
Example #4
0
 def _tex_description (self, ** kw) :
     for l in self._description (** kw) :
         yield TFL.tex_quoted (l)