diff options
author | kballou <kballou@devnulllabs.io> | 2016-03-15 10:31:21 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2016-03-15 10:31:21 -0600 |
commit | fe9252aaa45f7480bd1daffca3f1a6c471e63c53 (patch) | |
tree | 5864cfd29c71c261b1c0ac121a895ce90fcc7f62 | |
parent | 04858438bcde92b806e823d5deef6532c683521d (diff) | |
download | func-w-elixir-fe9252aaa45f7480bd1daffca3f1a6c471e63c53.tar.gz func-w-elixir-fe9252aaa45f7480bd1daffca3f1a6c471e63c53.tar.xz |
Fix CJK and Unicode character support
[1]: https://www.sharelatex.com/learn/Japanese#CJK_with_XeLaTeX
[2]: https://en.wikibooks.org/wiki/LaTeX/Special_Characters
[3]: https://en.wikibooks.org/wiki/LaTeX/Fonts#Font_encoding
[4]: https://en.wikibooks.org/wiki/LaTeX/Internationalization
[5]: https://yoo2080.wordpress.com/2014/03/09/how-to-use-unicode-in-latex-by-luatex-or-xetex/
-rw-r--r-- | src/func-w-elixir.tex | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/func-w-elixir.tex b/src/func-w-elixir.tex index ee6e739..476045b 100644 --- a/src/func-w-elixir.tex +++ b/src/func-w-elixir.tex @@ -1,21 +1,28 @@ \documentclass[english]{beamer} -\usetheme{Berlin} -\usecolortheme[light,accent=blue]{solarized} +\usepackage{babel} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{unicode-math} \usepackage{fontspec} \usepackage{xunicode} \usepackage{xltxtra} -\setmainfont{DejaVuSans} +\usepackage{xeCJK} \usepackage{booktabs} \usepackage{lmodern} \usepackage{listings} \usepackage{color} -\usepackage{babel} \usepackage{tikz} \usetikzlibrary{trees, shapes.misc, arrows} \usepackage{pgfkeys} \usepackage{graphicx} + +\setmainfont{DejaVuSans} +\setCJKmainfont{HanaMinA} +\setCJKsansfont{HanaMinA} +\setCJKmonofont{HanaMinA} +\usetheme{Berlin} +\usecolortheme[light,accent=blue]{solarized} \graphicspath{{./images/}} \setbeamertemplate{headline}{} |