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 |