Navigation Menu

Skip to content

Commit

Permalink
Improve non-english languages support
Browse files Browse the repository at this point in the history
 Add tex_babel and tex_fontenc instructions
 to metas to control TeX's babel and fontenc
 packages.

Signed-off-by: Arthur Koziel <arthur@arthurkoziel.com>
  • Loading branch information
Yury Yurevich authored and arthurk committed Apr 19, 2009
1 parent 3a701e3 commit 572711e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yml2tex/__init__.py
Expand Up @@ -149,6 +149,10 @@ def header(metas):

out = "\documentclass[slidestop,red]{beamer}"
out += "\n\usepackage[utf8]{inputenc}"
if metas.get('tex_babel'):
out += "\n\usepackage[%s]{babel}" % metas['tex_babel']
if metas.get('tex_fontenc'):
out += "\n\usepackage[%s]{fontenc}" % metas['tex_fontenc']
out += "\n\usepackage{fancyvrb,color}\n\n"

# generate style definitions for pygments syntax highlighting
Expand Down

0 comments on commit 572711e

Please sign in to comment.