예제 #1
0
파일: Macro.py 프로젝트: JPilarr/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)
     yield from wrapper.wrap(TFL.tex_quoted(self.explanation))
예제 #2
0
파일: Macro.py 프로젝트: 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
예제 #3
0
 def _tex_description(self, **kw):
     for l in self._description(**kw):
         yield TFL.tex_quoted(l)
예제 #4
0
파일: Comment.py 프로젝트: Tapyr/tapyr
 def _tex_description (self, ** kw) :
     for l in self._description (** kw) :
         yield TFL.tex_quoted (l)