Commit bb2fbcac authored by Ingo Heimbach's avatar Ingo Heimbach

Added a `lang` option to specify a Babel language

parent 644a49b6
__version_info__ = (0, 1, 1)
__version_info__ = (0, 1, 2)
__version__ = '.'.join(map(str, __version_info__))
......@@ -22,7 +22,7 @@ TEMPLATE_LATEX = u"""
\\usepackage[utf8]{inputenc}
\\usepackage[T1]{fontenc}
\\usepackage{lmodern}
\\usepackage{babel}
\\usepackage[{%- if lang -%}{{ lang }}{%- else -%}english{%- endif -%}]{babel}
\\usepackage[usenames, dvipsnames, svgnames, table]{xcolor}
\\usepackage[pdftex]{graphicx}
{% endif -%}
......@@ -146,6 +146,7 @@ class Tikz(Directive):
"target": directives.unchanged_required,
"class": directives.class_option,
"document_options": directives.unchanged,
"lang": directives.unchanged,
"do_not_use_default_packages": directives.flag,
"extra_packages": directives.unchanged,
"tikz_libs": directives.unchanged,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment