/[navidoc]/navidoc/navidoc/directives/latex.py
ViewVC logotype

Diff of /navidoc/navidoc/directives/latex.py

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

revision 1.2 by humppake, Fri Mar 28 13:08:57 2003 UTC revision 1.3 by humppake, Mon May 12 10:30:06 2003 UTC
# Line 29  import docutils.nodes Line 29  import docutils.nodes
29    
30  def bibliography_directive(name, arguments, options, content, lineno,  def bibliography_directive(name, arguments, options, content, lineno,
31          content_offset, block_text, state, state_machine):          content_offset, block_text, state, state_machine):
32        if options.has_key('style') and len(options['style']) > 0:
33            style = options['style']
34        else: style = 'abbrv'
35      return [docutils.nodes.raw(      return [docutils.nodes.raw(
36          text='\n\\bibliographystyle{abbrv}\n\\bibliography{%s}\n' % ','.join(arguments),          text='\n\\bibliographystyle{%s}\n\\bibliography{%s}\n' % (style, ','.join(arguments)),
37          format='latex')]          format='latex')]
38    
39  bibliography_directive.arguments = (1, 100, 0)  bibliography_directive.arguments = (1, 100, 0)
40  bibliography_directive.options = {}  bibliography_directive.options = {'style': directives.unchanged,
41                             }
42  bibliography_directive.content = 0  bibliography_directive.content = 0

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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