/[gzz]/gzz/metacode/umldoc.py
ViewVC logotype

Diff of /gzz/metacode/umldoc.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by humppake, Thu Feb 6 21:57:42 2003 UTC revision 1.21 by benja, Sat Feb 8 23:21:25 2003 UTC
# Line 111  def rst2latex(path): Line 111  def rst2latex(path):
111      settings['context'] = path      settings['context'] = path
112      #the first pass - converts rst into latex      #the first pass - converts rst into latex
113      if path.endswith(".rst"): path = path[0:len(path)-4]      if path.endswith(".rst"): path = path[0:len(path)-4]
114      args = path+'.rst '+path+'.gen.latex'      dir = os.path.dirname(path)
115        classes = [f for f in os.listdir(dir) if os.path.splitext(f)[1] == '.cls']
116        if classes:
117            documentclass = '--documentclass %s ' % (os.path.splitext(classes[0])[0])
118        else:
119            documentclass = ''
120        args = documentclass+path+'.rst '+path+'.gen.latex'
121        ##print classes, args
122      docutils.core.publish_cmdline(writer_name='latex', argv=args.split())      docutils.core.publish_cmdline(writer_name='latex', argv=args.split())
123    
124    

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26