Commit bb2fbcac authored by Ingo Meyer's avatar Ingo Meyer

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__)) __version__ = '.'.join(map(str, __version_info__))
...@@ -22,7 +22,7 @@ TEMPLATE_LATEX = u""" ...@@ -22,7 +22,7 @@ TEMPLATE_LATEX = u"""
\\usepackage[utf8]{inputenc} \\usepackage[utf8]{inputenc}
\\usepackage[T1]{fontenc} \\usepackage[T1]{fontenc}
\\usepackage{lmodern} \\usepackage{lmodern}
\\usepackage{babel} \\usepackage[{%- if lang -%}{{ lang }}{%- else -%}english{%- endif -%}]{babel}
\\usepackage[usenames, dvipsnames, svgnames, table]{xcolor} \\usepackage[usenames, dvipsnames, svgnames, table]{xcolor}
\\usepackage[pdftex]{graphicx} \\usepackage[pdftex]{graphicx}
{% endif -%} {% endif -%}
...@@ -146,6 +146,7 @@ class Tikz(Directive): ...@@ -146,6 +146,7 @@ class Tikz(Directive):
"target": directives.unchanged_required, "target": directives.unchanged_required,
"class": directives.class_option, "class": directives.class_option,
"document_options": directives.unchanged, "document_options": directives.unchanged,
"lang": directives.unchanged,
"do_not_use_default_packages": directives.flag, "do_not_use_default_packages": directives.flag,
"extra_packages": directives.unchanged, "extra_packages": directives.unchanged,
"tikz_libs": 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