gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/metacode latex2e.py


From: Asko Soukka
Subject: [Gzz-commits] gzz/metacode latex2e.py
Date: Tue, 11 Feb 2003 09:59:42 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Asko Soukka <address@hidden>    03/02/11 09:59:42

Modified files:
        metacode       : latex2e.py 

Log message:
        Hmmm.....

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/latex2e.py.diff?tr1=1.13&tr2=1.14&r1=text&r2=text

Patches:
Index: gzz/metacode/latex2e.py
diff -u gzz/metacode/latex2e.py:1.13 gzz/metacode/latex2e.py:1.14
--- gzz/metacode/latex2e.py:1.13        Tue Feb 11 09:00:51 2003
+++ gzz/metacode/latex2e.py     Tue Feb 11 09:59:42 2003
@@ -3,8 +3,8 @@
 """
 :Author: Engelbert Gruber (hacked by the Gzz project)
 :Contact: address@hidden
-:Revision: $Revision: 1.13 $
-:Date: $Date: 2003/02/11 14:00:51 $
+:Revision: $Revision: 1.14 $
+:Date: $Date: 2003/02/11 14:59:42 $
 :Copyright: This module has been placed in the public domain.
 
 LaTeX2e document tree Writer.
@@ -196,7 +196,8 @@
     d_stylesheet_path = 'style.tex'
     # for pdflatex some other package. pslatex
 
-    latex_head = '\\documentclass[%s]{%s}\n'
+#    latex_head = '\\documentclass[%s]{%s}\n'
+    latex_head = '\\documentclass{%s}\n'
 #    encoding = '\\usepackage[latin1]{inputenc}\n'
     linking = '\\usepackage{hyperref}\n'
 #    geometry = '\\usepackage[%s,margin=%s,nohead]{geometry}\n'
@@ -230,10 +231,11 @@
 #            self.d_options += ',%s' % \
 #                    _ISO639_TO_BABEL[settings.language_code]
         self.head_prefix = [
-              self.latex_head % (self.d_options,self.d_class),
+#              self.latex_head % (self.d_options,self.d_class),
+              self.latex_head % (self.d_class),
 #/cite didn't work with babel (jvk)
 #              '\\usepackage{babel}\n',     # language is in documents 
settings.
-              '\\usepackage{shortvrb}\n',  # allows verb in footnotes.
+#              '\\usepackage{shortvrb}\n',  # allows verb in footnotes.
 #              self.encoding,
               # * tabularx: for docinfo, automatic width of columns, always on 
one page.
               '\\usepackage{tabularx}\n',
@@ -245,19 +247,19 @@
               #
               # extra space between text in tables and the line above them
               '\\setlength{\\extrarowheight}{2pt}\n',
-              '\\usepackage{amsmath}\n',   # what fore amsmath. 
+#              '\\usepackage{amsmath}\n',   # what fore amsmath. 
               '\\usepackage{graphicx}\n',
               '\\usepackage{multirow}\n',
               self.linking,
-              # geometry and fonts might go into style.tex.
+#              # geometry and fonts might go into style.tex.
 #              self.geometry % (self.d_paper, self.d_margins),
-              #
-              self.generator,
-              # admonition width and docinfo tablewidth
-              
'\\newlength{\\admwidth}\n\\addtolength{\\admwidth}{0.9\\textwidth}\n',
+#              #
+#              self.generator,
+#              # admonition width and docinfo tablewidth
+#              
'\\newlength{\\admwidth}\n\\addtolength{\\admwidth}{0.9\\textwidth}\n',
 #             # optionlist environment
-              '\\newcommand{\\optionlistlabel}[1]{\\bf #1 \\hfill}\n'
-              '\\newenvironment{optionlist}[1]\n',
+#              '\\newcommand{\\optionlistlabel}[1]{\\bf #1 \\hfill}\n'
+#              '\\newenvironment{optionlist}[1]\n',
 #              '{\\begin{list}{}\n'
 #              '  {\\setlength{\\labelwidth}{#1}\n'
 #              '   \\setlength{\\rightmargin}{1cm}\n'
@@ -266,8 +268,8 @@
 #              '   \\addtolength{\\leftmargin}{\\labelsep}\n'
 #              '   \\renewcommand{\\makelabel}{\\optionlistlabel}}\n'
 #              '}{\\end{list}}\n',
-              ## stylesheet is last: so it might be possible to overwrite 
defaults.
-              self.stylesheet % (self.d_stylesheet_path),
+#              ## stylesheet is last: so it might be possible to overwrite 
defaults.
+#              self.stylesheet % (self.d_stylesheet_path),
                             ]
         if self.linking: # and maybe check for pdf
             self.pdfinfo = [ ]
@@ -276,7 +278,8 @@
         else:
             self.pdfinfo = None
         self.head = []
-        self.body_prefix = ['\\raggedbottom\n']
+        self.body_prefix = ['']
+#        self.body_prefix = ['\\raggedbottom\n']
         # separate title, so we can appen subtitle.
         self.title = ""
         self.body = []
@@ -836,7 +839,7 @@
         href = atts['uri']
         self.body.append('\n\\centering\n')
         if atts.has_key('width'):
-            self.body.append('\n\\includegraphics[width on %s]{%s}\n' % 
(atts['width'], href))
+            self.body.append('\n\\includegraphics[width=%s]{%s}\n' % 
(atts['width'], href))
         else:
             self.body.append('\n\\includegraphics{%s}\n' % href)
         ##self.body.append('\\end{center}\n')




reply via email to

[Prev in Thread] Current Thread [Next in Thread]