1
0

rst2latex.py 836 B

1234567891011121314151617181920212223242526
  1. #!/Users/sasha/Desktop/sharix-open-webapp-base/venv/bin/python3
  2. # $Id: rst2latex.py 8956 2022-01-20 10:11:44Z milde $
  3. # Author: David Goodger <goodger@python.org>
  4. # Copyright: This module has been placed in the public domain.
  5. """
  6. A minimal front end to the Docutils Publisher, producing LaTeX.
  7. """
  8. try:
  9. import locale
  10. locale.setlocale(locale.LC_ALL, '')
  11. except:
  12. pass
  13. from docutils.core import publish_cmdline
  14. description = ('Generates LaTeX documents from standalone reStructuredText '
  15. 'sources. '
  16. 'Reads from <source> (default is stdin) and writes to '
  17. '<destination> (default is stdout). See '
  18. '<https://docutils.sourceforge.io/docs/user/latex.html> for '
  19. 'the full reference.')
  20. publish_cmdline(writer_name='latex', description=description)