Add multilanguage support (polyglossia package)
This commit is contained in:
parent
f311ca6c1e
commit
274a8a503d
2
TODO.md
2
TODO.md
@ -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
|
||||
---
|
||||
|
10
template.tex
10
template.tex
@ -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…
Reference in New Issue
Block a user