curriculum-generator 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.ruby-version +1 -0
- data/CGen.gemspec +35 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +62 -0
- data/Rakefile +3 -0
- data/bin/cgen.rb +86 -0
- data/lib/CGen.rb +27 -0
- data/lib/cgen/compiler.rb +96 -0
- data/lib/cgen/curriculum.rb +57 -0
- data/lib/cgen/data_loader/yaml_data_loader.rb +31 -0
- data/lib/cgen/data_loader.rb +6 -0
- data/lib/cgen/generator/basic_generator.rb +37 -0
- data/lib/cgen/generator/cv_column.rb +32 -0
- data/lib/cgen/generator/cv_double_item.rb +42 -0
- data/lib/cgen/generator/cv_entry.rb +33 -0
- data/lib/cgen/generator/cv_item.rb +29 -0
- data/lib/cgen/generator/cv_item_with_comment.rb +32 -0
- data/lib/cgen/generator/cv_list_double_item.rb +31 -0
- data/lib/cgen/generator/cv_list_item.rb +23 -0
- data/lib/cgen/generator/list.rb +25 -0
- data/lib/cgen/generator/macro_substitution.rb +11 -0
- data/lib/cgen/generator/specific/education.rb +95 -0
- data/lib/cgen/generator/specific/self_assessment.rb +61 -0
- data/lib/cgen/generator/specific/work_experience.rb +81 -0
- data/lib/cgen/generator.rb +10 -0
- data/lib/cgen/util/latex_to_pdf.rb +61 -0
- data/lib/cgen/util/logging.rb +27 -0
- data/lib/cgen/util/shell_command.rb +48 -0
- data/lib/cgen/util.rb +6 -0
- data/lib/cgen/version.rb +6 -0
- data/static/bundled_templates/moderncv/.gitkeep +0 -0
- data/static/bundled_templates/moderncv/deps.yml +15 -0
- data/static/bundled_templates/moderncv/main.tex +208 -0
- data/static/bundled_templates/moderncv/publications.bib +40 -0
- data/static/bundled_templates/moderncv/resources/AuthorPhoto.png +0 -0
- metadata +194 -0
@@ -0,0 +1,208 @@
|
|
1
|
+
\documentclass[11pt,a4paper,sans]{moderncv}
|
2
|
+
|
3
|
+
|
4
|
+
% ==> Document management
|
5
|
+
|
6
|
+
\usepackage{import}
|
7
|
+
|
8
|
+
|
9
|
+
% ==> Character, Language, Encoding settings
|
10
|
+
|
11
|
+
% Unicode support
|
12
|
+
\usepackage{xunicode}
|
13
|
+
\usepackage{xltxtra}
|
14
|
+
% Internationalization
|
15
|
+
\usepackage[english]{babel}
|
16
|
+
% Character encoding
|
17
|
+
\usepackage[utf8]{inputenc}
|
18
|
+
% Facilities for inline and display quotations
|
19
|
+
\usepackage[babel]{csquotes}
|
20
|
+
|
21
|
+
|
22
|
+
% ==> Layout
|
23
|
+
|
24
|
+
% Change the page layout in the middle of a document
|
25
|
+
\usepackage{chngpage}
|
26
|
+
|
27
|
+
|
28
|
+
% ==> Math
|
29
|
+
|
30
|
+
\usepackage{amsmath,unicode-math}
|
31
|
+
|
32
|
+
|
33
|
+
% ==> Miscellaneous additional features
|
34
|
+
|
35
|
+
% Allow colors
|
36
|
+
\usepackage{xcolor}
|
37
|
+
|
38
|
+
|
39
|
+
% ==> Miscellaneous Additional elements
|
40
|
+
|
41
|
+
% Capabilities for highlight and underline
|
42
|
+
\usepackage[normalem]{ulem}
|
43
|
+
% Create hyperlinks
|
44
|
+
\usepackage{url}
|
45
|
+
\usepackage[colorlinks=true, unicode, pdfencoding=auto]{hyperref}
|
46
|
+
% Todos
|
47
|
+
\usepackage[colorinlistoftodos, textwidth=4cm, shadow]{todonotes}
|
48
|
+
% Typeset relevant quotations
|
49
|
+
\usepackage{epigraph}
|
50
|
+
% Code inclusion with syntax highlighting
|
51
|
+
\usepackage{minted}
|
52
|
+
% Beautiful frames
|
53
|
+
\usepackage{framed}
|
54
|
+
|
55
|
+
|
56
|
+
% ==> Theme
|
57
|
+
|
58
|
+
% Theme style
|
59
|
+
\moderncvstyle{casual}
|
60
|
+
% Theme color (used for decorations)
|
61
|
+
\moderncvcolor{blue}
|
62
|
+
|
63
|
+
|
64
|
+
% ==> Page settings
|
65
|
+
|
66
|
+
% Adjust the page margins
|
67
|
+
\usepackage[scale=0.8]{geometry}
|
68
|
+
% Adjust the columns margin for the tabular
|
69
|
+
\setlength\arrayrulewidth{.4pt}
|
70
|
+
\setlength\tabcolsep{2pt}
|
71
|
+
|
72
|
+
|
73
|
+
% ==> Author data
|
74
|
+
|
75
|
+
% First name
|
76
|
+
\firstname{<= global.first_name =>}
|
77
|
+
% Second name
|
78
|
+
\familyname{<= global.sur_name =>}
|
79
|
+
% Address
|
80
|
+
\address%
|
81
|
+
{<= global.address.street =>}%
|
82
|
+
{<= global.address.postal_code =>}%
|
83
|
+
{<= global.address.city =>}
|
84
|
+
% Mobile phone
|
85
|
+
\mobile{<= global.mobile_phone =>}
|
86
|
+
% Main phone
|
87
|
+
\phone{<= global.phone =>}
|
88
|
+
% Fax
|
89
|
+
\fax{<= global.fax =>}
|
90
|
+
% Email
|
91
|
+
\email{<= global.email =>}
|
92
|
+
% Homepage for personal website
|
93
|
+
\homepage{<= global.homepage =>}
|
94
|
+
% Additional informations
|
95
|
+
\extrainfo{<= global.additional_informations =>}
|
96
|
+
% Photo of the author
|
97
|
+
\photo[64pt][0.4pt]{./resources/AuthorPhoto}
|
98
|
+
|
99
|
+
|
100
|
+
% ==> Document informations
|
101
|
+
|
102
|
+
% Document title
|
103
|
+
\title{<= global.title =>}
|
104
|
+
% A quote to recap my point of view
|
105
|
+
\quote{<= global.quote =>}
|
106
|
+
|
107
|
+
|
108
|
+
% ==> Bibliography
|
109
|
+
|
110
|
+
\makeatletter
|
111
|
+
\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}
|
112
|
+
\makeatother
|
113
|
+
|
114
|
+
|
115
|
+
% ==> Content
|
116
|
+
|
117
|
+
\begin{document}
|
118
|
+
|
119
|
+
\makecvtitle
|
120
|
+
|
121
|
+
|
122
|
+
% ==> Personal Information
|
123
|
+
|
124
|
+
\section{<= titles.S_1.personal_info =>}
|
125
|
+
% Fullname
|
126
|
+
\cvitem{<= titles.S_1.name =>}{<= global.first_name =>~<= global.sur_name =>}
|
127
|
+
% Address
|
128
|
+
\cvitem{<= titles.S_1.address =>}{%
|
129
|
+
<= global.address.street =>~--~%
|
130
|
+
<= global.address.postal_code =>~--~%
|
131
|
+
<= global.address.city =>%
|
132
|
+
}
|
133
|
+
% Telephone
|
134
|
+
\cvitem{<= titles.S_1.telephone =>}{<= global.mobile_phone =>}
|
135
|
+
% Fax
|
136
|
+
\cvitem{<= titles.S_1.fax =>}{<= global.fax =>}
|
137
|
+
% Email
|
138
|
+
\cvitem{<= titles.S_1.email =>}{<= global.email =>}
|
139
|
+
% Nationality
|
140
|
+
\cvitem{<= titles.S_1.nationality =>}{<= global.nationality =>}
|
141
|
+
% Birthdate
|
142
|
+
\cvitem{<= titles.S_1.date_birth =>}{<= global.date_birth =>}
|
143
|
+
% Gender
|
144
|
+
\cvitem{<= titles.S_1.sex =>}{<= global.sex =>}
|
145
|
+
|
146
|
+
|
147
|
+
% ==> Desired Employment
|
148
|
+
|
149
|
+
\section{<= titles.S_2.desired_employment => }
|
150
|
+
<= generate(cvlistitem, desired_employments) =>
|
151
|
+
|
152
|
+
|
153
|
+
% ==> Education and training
|
154
|
+
|
155
|
+
\section{<= titles.S_4.education_and_training =>}
|
156
|
+
<= generate(education, education) =>
|
157
|
+
|
158
|
+
|
159
|
+
% ==> Work Experience
|
160
|
+
|
161
|
+
\section{<= titles.S_3.work_experience =>}
|
162
|
+
<= generate(work_experience, work_experience) =>
|
163
|
+
|
164
|
+
|
165
|
+
% ==> Personal skills and competences
|
166
|
+
|
167
|
+
\section{<= titles.S_5.personal_skills =>}
|
168
|
+
% Mother tongue
|
169
|
+
\cvitem{<= titles.S_5.mother_tongue =>}{<= language_skills.mother_tongue =>}
|
170
|
+
% Other languages
|
171
|
+
\cvitem{<= titles.S_5.other_languages =>}{<= generate(list, language_skills.other_languages) =>}
|
172
|
+
% Self assessment
|
173
|
+
<= generate(self_assessment, self_assessment) =>
|
174
|
+
% Driving license
|
175
|
+
\cvitem{<= titles.S_5.driving_license =>}{<= driving_license =>}
|
176
|
+
% Social skills
|
177
|
+
\cvitem{<= titles.S_5.social_skills =>}{<= generate(list, social_skills) =>}
|
178
|
+
% Organisational skills
|
179
|
+
\cvitem{<= titles.S_5.organisational_skills =>}{<= generate(list, organisational_skills) =>}
|
180
|
+
% Analysis skills
|
181
|
+
\subsection{<= titles.S_5.analysis_skills =>}
|
182
|
+
<= generate(cvitemwithcomment, technical_skills.analysis) =>
|
183
|
+
% Design skills
|
184
|
+
\subsection{<= titles.S_5.design_skills =>}
|
185
|
+
<= generate(cvitemwithcomment, technical_skills.design) =>
|
186
|
+
% Programming skills
|
187
|
+
\subsection{<= titles.S_5.programming_skills =>}
|
188
|
+
<= generate(cvitemwithcomment, technical_skills.programming) =>
|
189
|
+
% Other skills
|
190
|
+
\subsection{<= titles.S_5.other_skills =>}
|
191
|
+
<= generate(cvitemwithcomment, other_skills) =>
|
192
|
+
|
193
|
+
% ==> Additional Informations
|
194
|
+
%\section{<= titles.S_6.additional_information =>}
|
195
|
+
|
196
|
+
% \cvitem{<= titles.S_6.publications =>}{<= generate(list, publications) =>}
|
197
|
+
|
198
|
+
|
199
|
+
% ==> Bibliography
|
200
|
+
|
201
|
+
% The heading string
|
202
|
+
\renewcommand{\refname}{Articles}
|
203
|
+
\nocite{*}
|
204
|
+
\bibliographystyle{plain}
|
205
|
+
% Bibliography is from that BibTeX file
|
206
|
+
\bibliography{publications}
|
207
|
+
|
208
|
+
\end{document}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
% == Bibliography =============================================================
|
2
|
+
|
3
|
+
|
4
|
+
@BOOK{book1,
|
5
|
+
author = {John Doe and Author 1},
|
6
|
+
title = {Title},
|
7
|
+
publisher = {Publisher},
|
8
|
+
edition = {edition},
|
9
|
+
year = {year},
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
@BOOK{book2,
|
14
|
+
author = {John Doe and Author 2},
|
15
|
+
title = {Title},
|
16
|
+
publisher = {Publisher},
|
17
|
+
edition = {edition},
|
18
|
+
year = {year},
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
@MISC{misc1,
|
23
|
+
author = {John Doe},
|
24
|
+
title = {Title},
|
25
|
+
year = {year},
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
@MISC{misc2,
|
30
|
+
author = {John Doe and Author 3},
|
31
|
+
title = {Title},
|
32
|
+
year = {year},
|
33
|
+
}
|
34
|
+
|
35
|
+
|
36
|
+
@MISC{misc3,
|
37
|
+
author = {John Doe},
|
38
|
+
title = {Title},
|
39
|
+
year = {year},
|
40
|
+
}
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: curriculum-generator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alessandro Molari
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: hash-deep-merge
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: monadic
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: awesome_print
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: colorize
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: highline
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: erubis
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
- molari.alessandro@gmail.com
|
128
|
+
executables:
|
129
|
+
- cgen.rb
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".ruby-version"
|
135
|
+
- CGen.gemspec
|
136
|
+
- Gemfile
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- bin/cgen.rb
|
141
|
+
- lib/CGen.rb
|
142
|
+
- lib/cgen/compiler.rb
|
143
|
+
- lib/cgen/curriculum.rb
|
144
|
+
- lib/cgen/data_loader.rb
|
145
|
+
- lib/cgen/data_loader/yaml_data_loader.rb
|
146
|
+
- lib/cgen/generator.rb
|
147
|
+
- lib/cgen/generator/basic_generator.rb
|
148
|
+
- lib/cgen/generator/cv_column.rb
|
149
|
+
- lib/cgen/generator/cv_double_item.rb
|
150
|
+
- lib/cgen/generator/cv_entry.rb
|
151
|
+
- lib/cgen/generator/cv_item.rb
|
152
|
+
- lib/cgen/generator/cv_item_with_comment.rb
|
153
|
+
- lib/cgen/generator/cv_list_double_item.rb
|
154
|
+
- lib/cgen/generator/cv_list_item.rb
|
155
|
+
- lib/cgen/generator/list.rb
|
156
|
+
- lib/cgen/generator/macro_substitution.rb
|
157
|
+
- lib/cgen/generator/specific/education.rb
|
158
|
+
- lib/cgen/generator/specific/self_assessment.rb
|
159
|
+
- lib/cgen/generator/specific/work_experience.rb
|
160
|
+
- lib/cgen/util.rb
|
161
|
+
- lib/cgen/util/latex_to_pdf.rb
|
162
|
+
- lib/cgen/util/logging.rb
|
163
|
+
- lib/cgen/util/shell_command.rb
|
164
|
+
- lib/cgen/version.rb
|
165
|
+
- static/bundled_templates/moderncv/.gitkeep
|
166
|
+
- static/bundled_templates/moderncv/deps.yml
|
167
|
+
- static/bundled_templates/moderncv/main.tex
|
168
|
+
- static/bundled_templates/moderncv/publications.bib
|
169
|
+
- static/bundled_templates/moderncv/resources/AuthorPhoto.png
|
170
|
+
homepage: http://github.com/alem0lars/cgen
|
171
|
+
licenses:
|
172
|
+
- Apache 2
|
173
|
+
metadata: {}
|
174
|
+
post_install_message:
|
175
|
+
rdoc_options: []
|
176
|
+
require_paths:
|
177
|
+
- lib
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
requirements: []
|
189
|
+
rubyforge_project:
|
190
|
+
rubygems_version: 2.2.2
|
191
|
+
signing_key:
|
192
|
+
specification_version: 4
|
193
|
+
summary: Curriculum Vitae generator
|
194
|
+
test_files: []
|