Add multilanguage support (polyglossia package)

master
zool 9 years ago
parent f311ca6c1e
commit 274a8a503d

@ -3,5 +3,3 @@
1. Add support for `microtype`
2. Add icons for the links
3. Add ability to expand on the single jobs
4. Add support for different languages
5. Add single packages dependencies

@ -50,4 +50,6 @@ education:
mainfont: Hoefler Text # Any font installed on your system should work
fontsize: 10pt # possible values: 10pt, 11pt, 12pt
geometry: a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in # See how the package geometry works at https://www.sharelatex.com/learn/Page_size_and_margins
mainlang: English
# otherlang: German
---

@ -2,7 +2,6 @@
%!TEX encoding = UTF-8 Unicode
\documentclass[$fontsize$, a4paper]{article}
\usepackage{fontspec}
% LAYOUT
%--------------------------------
@ -15,8 +14,17 @@
% No page numbers
\pagenumbering{gobble}
% LANGUAGE
%--------------------------------
$if(lang)$
\usepackage{polyglossia}
\setmainlanguage{$mainlang$}
\setotherlanguages{$for(otherlang)$$otherlang$$sep$,$endfor$}
$endif$
% TYPOGRAPHY
%--------------------------------
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}

Loading…
Cancel
Save