示例#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)