From cb00118e698eeebcb601543046d5023d33fa8046 Mon Sep 17 00:00:00 2001 From: grubert Date: Mon, 24 Feb 2003 14:20:02 +0000 Subject: + moved latex writer into main line. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1202 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2latex.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/rst2latex.py (limited to 'tools/rst2latex.py') diff --git a/tools/rst2latex.py b/tools/rst2latex.py new file mode 100755 index 000000000..23cfa9a8c --- /dev/null +++ b/tools/rst2latex.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +""" +:Author: David Goodger +:Contact: goodger@users.sourceforge.net +:Revision: $Revision$ +:Date: $Date$ +:Copyright: This module has been placed in the public domain. + +A minimal front end to the Docutils Publisher, producing HTML. +""" + +#import locale +#locale.setlocale(locale.LC_ALL, '') + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates LaTeX documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='latex', description=description) -- cgit v1.2.1 From 9d713d43255a855b5d0eec15200d018d8c3bea8a Mon Sep 17 00:00:00 2001 From: goodger Date: Sun, 29 Jun 2003 23:35:51 +0000 Subject: corrections git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1529 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2latex.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tools/rst2latex.py') diff --git a/tools/rst2latex.py b/tools/rst2latex.py index 23cfa9a8c..998813c2f 100755 --- a/tools/rst2latex.py +++ b/tools/rst2latex.py @@ -1,17 +1,20 @@ #!/usr/bin/env python -""" :Author: David Goodger :Contact: goodger@users.sourceforge.net :Revision: $Revision$ :Date: $Date$ :Copyright: This module has been placed in the public domain. -A minimal front end to the Docutils Publisher, producing HTML. +""" +A minimal front end to the Docutils Publisher, producing LaTeX. """ -#import locale -#locale.setlocale(locale.LC_ALL, '') +import locale +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass from docutils.core import publish_cmdline, default_description -- cgit v1.2.1 From 0430323819cf04826c336f9e1bfe5dafe46083de Mon Sep 17 00:00:00 2001 From: grubert Date: Tue, 1 Jul 2003 07:21:51 +0000 Subject: Docstring must start before the reST docinfo. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1539 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/rst2latex.py') diff --git a/tools/rst2latex.py b/tools/rst2latex.py index 998813c2f..640fb27d4 100755 --- a/tools/rst2latex.py +++ b/tools/rst2latex.py @@ -1,12 +1,12 @@ #!/usr/bin/env python +""" :Author: David Goodger :Contact: goodger@users.sourceforge.net :Revision: $Revision$ :Date: $Date$ :Copyright: This module has been placed in the public domain. -""" A minimal front end to the Docutils Publisher, producing LaTeX. """ -- cgit v1.2.1 From b5aa670f3a25011f151fef6d2efb4961daabb96b Mon Sep 17 00:00:00 2001 From: goodger Date: Tue, 1 Jul 2003 13:19:02 +0000 Subject: put docinfo into comments git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1543 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2latex.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/rst2latex.py') diff --git a/tools/rst2latex.py b/tools/rst2latex.py index 640fb27d4..3b7fdae82 100755 --- a/tools/rst2latex.py +++ b/tools/rst2latex.py @@ -1,12 +1,12 @@ #!/usr/bin/env python -""" -:Author: David Goodger -:Contact: goodger@users.sourceforge.net -:Revision: $Revision$ -:Date: $Date$ -:Copyright: This module has been placed in the public domain. +# Author: David Goodger +# Contact: goodger@users.sourceforge.net +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. +""" A minimal front end to the Docutils Publisher, producing LaTeX. """ -- cgit v1.2.1 From f877afc0916de9f9177df646b34f4d6157808693 Mon Sep 17 00:00:00 2001 From: orutherfurd Date: Sun, 28 Mar 2004 15:39:27 +0000 Subject: moved locale imports into try blocks, for Jython compatibility git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1896 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/rst2latex.py') diff --git a/tools/rst2latex.py b/tools/rst2latex.py index 3b7fdae82..62b3e46d4 100755 --- a/tools/rst2latex.py +++ b/tools/rst2latex.py @@ -10,8 +10,8 @@ A minimal front end to the Docutils Publisher, producing LaTeX. """ -import locale try: + import locale locale.setlocale(locale.LC_ALL, '') except: pass -- cgit v1.2.1 From b96b6f32f54c14a01705b0c13c36f8e25d7a93f6 Mon Sep 17 00:00:00 2001 From: wiemann Date: Sun, 29 Aug 2004 20:04:53 +0000 Subject: converted tabs to whitespace git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2548 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/rst2latex.py') diff --git a/tools/rst2latex.py b/tools/rst2latex.py index 62b3e46d4..5f51f34e2 100755 --- a/tools/rst2latex.py +++ b/tools/rst2latex.py @@ -20,6 +20,6 @@ from docutils.core import publish_cmdline, default_description description = ('Generates LaTeX documents from standalone reStructuredText ' - 'sources. ' + default_description) + 'sources. ' + default_description) publish_cmdline(writer_name='latex', description=description) -- cgit v1.2.1