gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] navidoc/navidoc/directives latex.py


From: Asko Soukka
Subject: [Gzz-commits] navidoc/navidoc/directives latex.py
Date: Mon, 12 May 2003 06:30:06 -0400

CVSROOT:        /cvsroot/navidoc
Module name:    navidoc
Changes by:     Asko Soukka <address@hidden>    03/05/12 06:30:06

Modified files:
        navidoc/directives: latex.py 

Log message:
        bibliography style option

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/navidoc/navidoc/navidoc/directives/latex.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: navidoc/navidoc/directives/latex.py
diff -u navidoc/navidoc/directives/latex.py:1.2 
navidoc/navidoc/directives/latex.py:1.3
--- navidoc/navidoc/directives/latex.py:1.2     Fri Mar 28 08:08:57 2003
+++ navidoc/navidoc/directives/latex.py Mon May 12 06:30:06 2003
@@ -19,7 +19,7 @@
 # MA  02111-1307  USA
 # 
 
-# $Id: latex.py,v 1.2 2003/03/28 13:08:57 humppake Exp $
+# $Id: latex.py,v 1.3 2003/05/12 10:30:06 humppake Exp $
 
 #
 # Written by Benja Fallenstein
@@ -29,10 +29,14 @@
 
 def bibliography_directive(name, arguments, options, content, lineno,
         content_offset, block_text, state, state_machine):
+    if options.has_key('style') and len(options['style']) > 0:
+        style = options['style']
+    else: style = 'abbrv'
     return [docutils.nodes.raw(
-        text='\n\\bibliographystyle{abbrv}\n\\bibliography{%s}\n' % 
','.join(arguments),
+        text='\n\\bibliographystyle{%s}\n\\bibliography{%s}\n' % (style, 
','.join(arguments)),
         format='latex')]
 
 bibliography_directive.arguments = (1, 100, 0)
-bibliography_directive.options = {}
+bibliography_directive.options = {'style': directives.unchanged,
+                         }
 bibliography_directive.content = 0




reply via email to

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