mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
31 lines
735 B
Python
31 lines
735 B
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
|
|
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
|
__docformat__ = 'restructuredtext en'
|
|
|
|
from sphinx.builders.latex import LaTeXBuilder
|
|
from sphinx.util.logging import getLogger
|
|
from sphinx.writers.latex import LaTeXTranslator
|
|
|
|
|
|
def info(*a):
|
|
getLogger(__name__).info(*a)
|
|
|
|
|
|
class FixedLaTeXTranslator(LaTeXTranslator):
|
|
# see https://github.com/sphinx-doc/sphinx/issues/8936
|
|
|
|
def visit_substitution_definition(self, node):
|
|
pass
|
|
|
|
def depart_substitution_definition(self, node):
|
|
pass
|
|
|
|
|
|
class LaTeXHelpBuilder(LaTeXBuilder):
|
|
name = 'mylatex'
|
|
default_translator_class = FixedLaTeXTranslator
|