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

Contents of /navidoc/navidoc/directives/latex.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download) (as text)
Wed Nov 5 19:14:41 2003 UTC (20 years, 5 months ago) by tjl
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
File MIME type: text/x-python
Sync

1 #
2 # Copyright (c) 2003 Benja Fallenstein
3 #
4 # This file is part of Navidoc.
5 #
6 # Navidoc is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU Lesser General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # Navidoc is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
14 # Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General
17 # Public License along with Navidoc; if not, write to the Free
18 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19 # MA 02111-1307 USA
20 #
21
22 # $Id: latex.py,v 1.4 2003/05/12 10:32:36 humppake Exp $
23
24 #
25 # Written by Benja Fallenstein
26 #
27
28 import docutils.nodes
29 from docutils.parsers.rst import directives
30
31 def bibliography_directive(name, arguments, options, content, lineno,
32 content_offset, block_text, state, state_machine):
33 if options.has_key('style') and len(options['style']) > 0:
34 style = options['style']
35 else: style = 'abbrv'
36 return [docutils.nodes.raw(
37 text='\n\\bibliography{%s}\n' % (','.join(arguments)),
38 format='latex')]
39
40 bibliography_directive.arguments = (1, 100, 0)
41 bibliography_directive.options = {'style': directives.unchanged,
42 }
43 bibliography_directive.content = 0

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