[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ff-cvs] navidoc ./gzz.css navidoc/writers/latex2e.py
From: |
Benja Fallenstein |
Subject: |
[ff-cvs] navidoc ./gzz.css navidoc/writers/latex2e.py |
Date: |
Wed, 05 Nov 2003 12:33:23 -0500 |
CVSROOT: /cvsroot/navidoc
Module name: navidoc
Branch:
Changes by: Benja Fallenstein <address@hidden> 03/11/05 12:33:23
Modified files:
. : gzz.css
navidoc/writers: latex2e.py
Log message:
make changes to latex output that tuomas requested. i don't see them
doing anything.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/navidoc/navidoc/gzz.css.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/navidoc/navidoc/navidoc/writers/latex2e.py.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
Patches:
Index: navidoc/gzz.css
diff -u navidoc/gzz.css:1.3 navidoc/gzz.css:1.4
--- navidoc/gzz.css:1.3 Wed Jun 11 12:50:01 2003
+++ navidoc/gzz.css Wed Nov 5 12:33:22 2003
@@ -4,7 +4,7 @@
body {
color: black;
background: white;
- margin: 0.5em 5% 0.5em 15%;
+ margin: 0.5em 1em 0.5em 1em;
text-align: left;
font-size: medium;
font-family: sans-serif;
@@ -42,8 +42,8 @@
dfn { font-weight: bold; }
code { font-family: monospace; }
-.figure { clear: both; float: right; padding: 1em; padding-bottom: 0em;
- border: 1pt solid black; margin-left: 1.5em; margin-right: -5%; }
+.figure { clear: both; padding: 1em; padding-bottom: 0em;
+ margin-left: 1.5em; margin-right: 1.5em; text-align: center; }
.figureimg { text-align: center; }
.wideimg { margin-left: -18%; margin-right: -6%; }
.abstract { width: 60%; text-align: center; }
Index: navidoc/navidoc/writers/latex2e.py
diff -u navidoc/navidoc/writers/latex2e.py:1.8
navidoc/navidoc/writers/latex2e.py:1.9
--- navidoc/navidoc/writers/latex2e.py:1.8 Sat May 17 09:47:44 2003
+++ navidoc/navidoc/writers/latex2e.py Wed Nov 5 12:33:23 2003
@@ -19,7 +19,7 @@
# MA 02111-1307 USA
#
-# $Id: latex2e.py,v 1.8 2003/05/17 13:47:44 benja Exp $
+# $Id: latex2e.py,v 1.9 2003/11/05 17:33:23 benja Exp $
#
# Modified by Janne Kujala, Asko Soukka, Benja Fallenstein, Vesa Kaihlavirta
@@ -28,8 +28,8 @@
"""
:Author: Engelbert Gruber (hacked by the Gzz project)
:Contact: address@hidden
-:Revision: $Revision: 1.8 $
-:Date: $Date: 2003/05/17 13:47:44 $
+:Revision: $Revision: 1.9 $
+:Date: $Date: 2003/11/05 17:33:23 $
:Copyright: This module has been placed in the public domain.
LaTeX2e document tree Writer.
@@ -263,25 +263,25 @@
# '\\usepackage{shortvrb}\n', # allows verb in footnotes.
# self.encoding,
# * tabularx: for docinfo, automatic width of columns, always on
one page.
- '\\usepackage{tabularx}\n',
- '\\usepackage{longtable}\n',
+# '\\usepackage{tabularx}\n',
+# '\\usepackage{longtable}\n',
# possible other packages.
# * fancyhdr
# * ltxtable is a combination of tabularx and longtable
(pagebreaks).
# but ??
#
# extra space between text in tables and the line above them
- '\\setlength{\\extrarowheight}{2pt}\n',
+# '\\setlength{\\extrarowheight}{2pt}\n',
# '\\usepackage{amsmath}\n', # what fore amsmath.
'\\usepackage{graphicx}\n',
- '\\usepackage{multirow}\n',
- self.linking,
+# '\\usepackage{multirow}\n',
+# self.linking,
# # 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',
+#
'\\newlength{\\admwidth}\n\\addtolength{\\admwidth}{0.9\\textwidth}\n',
# # optionlist environment
# '\\newcommand{\\optionlistlabel}[1]{\\bf #1 \\hfill}\n'
# '\\newenvironment{optionlist}[1]\n',
@@ -378,7 +378,8 @@
if self.pdfinfo:
if self.pdfauthor:
self.pdfinfo.append('pdfauthor={%s}' % self.pdfauthor)
- pdfinfo = '\\hypersetup{\n' + ',\n'.join(self.pdfinfo) + '\n}\n'
+ #pdfinfo = '\\hypersetup{\n' + ',\n'.join(self.pdfinfo) + '\n}\n'
+ pdfinfo = ''
else:
pdfinfo = ''
title = '\\title{%s}\n' % self.title
@@ -1200,7 +1201,7 @@
def visit_target(self, node):
if not (node.has_key('refuri') or node.has_key('refid')
or node.has_key('refname')):
- self.body.append('\\hypertarget{%s}{' % node['name'])
+ #self.body.append('\\hypertarget{%s}{' % node['name'])
self.context.append('}')
else:
self.context.append('')
@@ -1274,7 +1275,8 @@
if isinstance(node.parent, nodes.topic):
# section titles before the table of contents.
if node.parent.hasattr('id'):
- self.body.append('\\hypertarget{%s}{}' % node.parent['id'])
+ pass
+ #self.body.append('\\hypertarget{%s}{}' % node.parent['id'])
self.body.append('\\begin{center}\n')
self.context.append('\\end{center}\n')
## should this be section subsection or
@@ -1291,7 +1293,8 @@
self.body.append('%' + '_' * 75)
self.body.append('\n\n')
if node.parent.hasattr('id'):
- self.body.append('\\hypertarget{%s}{}\n' % node.parent['id'])
+ pass
+ #self.body.append('\\hypertarget{%s}{}\n' % node.parent['id'])
# section_level 0 is title and handled above.
# BUG: latex has no deeper sections (actually paragrah is no
section either).
# if self.use_latex_toc:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ff-cvs] navidoc ./gzz.css navidoc/writers/latex2e.py,
Benja Fallenstein <=