upload TinyTeX binaries

This commit is contained in:
Sina Atalay 2023-09-01 21:56:05 +02:00
parent c7a07f272d
commit 9ddbb5306f
15 changed files with 1115 additions and 790 deletions

321
.gitignore vendored
View File

@ -1,160 +1,161 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
.venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

402
LICENSE
View File

@ -1,201 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,2 +1,2 @@
# RenderCV
A Python application that creates CVs in PDF, HTML, LaTeX, etc., from a JSON/YAML input file.
# RenderCV
A Python application that creates CVs in PDF, HTML, LaTeX, etc., from a JSON/YAML input file.

View File

@ -1,100 +1,100 @@
from pydantic import BaseModel, HttpUrl
from pydantic_extra_types.phone_numbers import PhoneNumber
from typing import Literal
from datetime import date as Date
class Location(BaseModel):
# 1) Mandotory user inputs:
city: str
country: str
# 2) Optional user inputs:
state: str = None
class Skill(BaseModel):
# 1) Mandotory user inputs:
name: str
# 2) Optional user inputs:
details: str = None
class Activity(BaseModel):
# 1) Mandotory user inputs:
organization: str
position: str
location: Location
# 2) Optional user inputs:
start_date: Date = None
end_date: Date = None
company_url: HttpUrl = None
highlights: list[str] = None
class TestScore(BaseModel):
# 1) Mandotory user inputs:
name: str
score: str
# 2) Optional user inputs:
url: HttpUrl = None
date: Date = None
class Project(BaseModel):
# 1) Mandotory user inputs:
name: str
location: Location
# 2) Optional user inputs:
start_date: Date= None
end_date: Date = None
url: HttpUrl = None
highlights: list[str] = None
class WorkExperience(BaseModel):
# 1) Mandotory user inputs:
company: str
position: str
start_date: Date
location: Location
# 2) Optional user inputs:
end_date: Date = None
highlights: list[str] = None
class Education(BaseModel):
# 1) Mandotory user inputs:
institution: str
area: str
location: Location
start_date: Date
# 2) Optional user inputs:
end_date: Date = None
study_type: str = None
gpa: str = None
transcript_url: HttpUrl = None
highlights: list[str] = None
class SocialNetwork(BaseModel):
# 1) Mandotory user inputs:
network: Literal["LinkedIn", "GitHub", "Twitter", "Facebook", "Instagram"]
username: str
url: HttpUrl
class CurriculumVitae(BaseModel):
# 1) Mandotory user inputs:
name: str
# 2) Optional user inputs:
email: str = None
phone: PhoneNumber = None
website: HttpUrl = None
location: Location = None
social_networks: list[SocialNetwork] = None
education: list[Education] = None
work_experience: list[WorkExperience] = None
academic_projects: list[Project] = None
extracurricular_activities: list[Activity] = None
test_scores: list[TestScore] = None
skills: list[Skill] = None
from pydantic import BaseModel, HttpUrl
from pydantic_extra_types.phone_numbers import PhoneNumber
from typing import Literal
from datetime import date as Date
class Location(BaseModel):
# 1) Mandotory user inputs:
city: str
country: str
# 2) Optional user inputs:
state: str = None
class Skill(BaseModel):
# 1) Mandotory user inputs:
name: str
# 2) Optional user inputs:
details: str = None
class Activity(BaseModel):
# 1) Mandotory user inputs:
organization: str
position: str
location: Location
# 2) Optional user inputs:
start_date: Date = None
end_date: Date = None
company_url: HttpUrl = None
highlights: list[str] = None
class TestScore(BaseModel):
# 1) Mandotory user inputs:
name: str
score: str
# 2) Optional user inputs:
url: HttpUrl = None
date: Date = None
class Project(BaseModel):
# 1) Mandotory user inputs:
name: str
location: Location
# 2) Optional user inputs:
start_date: Date= None
end_date: Date = None
url: HttpUrl = None
highlights: list[str] = None
class WorkExperience(BaseModel):
# 1) Mandotory user inputs:
company: str
position: str
start_date: Date
location: Location
# 2) Optional user inputs:
end_date: Date = None
highlights: list[str] = None
class Education(BaseModel):
# 1) Mandotory user inputs:
institution: str
area: str
location: Location
start_date: Date
# 2) Optional user inputs:
end_date: Date = None
study_type: str = None
gpa: str = None
transcript_url: HttpUrl = None
highlights: list[str] = None
class SocialNetwork(BaseModel):
# 1) Mandotory user inputs:
network: Literal["LinkedIn", "GitHub", "Twitter", "Facebook", "Instagram"]
username: str
url: HttpUrl
class CurriculumVitae(BaseModel):
# 1) Mandotory user inputs:
name: str
# 2) Optional user inputs:
email: str = None
phone: PhoneNumber = None
website: HttpUrl = None
location: Location = None
social_networks: list[SocialNetwork] = None
education: list[Education] = None
work_experience: list[WorkExperience] = None
academic_projects: list[Project] = None
extracurricular_activities: list[Activity] = None
test_scores: list[TestScore] = None
skills: list[Skill] = None

View File

@ -1,23 +1,30 @@
from jinja2 import Environment, FileSystemLoader
from data.content import CurriculumVitae
import os
import json
workspace = os.path.dirname(os.path.dirname(__file__))
environment = Environment(loader=FileSystemLoader(os.path.join(workspace, "rendercv", "templates")))
environment.block_start_string = "((*"
environment.block_end_string = "*))"
environment.variable_start_string = "((("
environment.variable_end_string = ")))"
environment.comment_start_string = "((="
environment.comment_end_string = "=))"
template = environment.get_template("template1.tex.j2")
input_file_path = os.path.join(workspace, "tests", "inputs", "test.json")
with open(input_file_path) as file:
raw_json = json.load(file)
data = CurriculumVitae(**raw_json)
output_latex_file = template.render(data=data)
from jinja2 import Environment, FileSystemLoader
from data.content import CurriculumVitae
import os
import json
workspace = os.path.dirname(os.path.dirname(__file__))
environment = Environment(loader=FileSystemLoader(os.path.join(workspace, "rendercv", "templates")))
environment.block_start_string = "((*"
environment.block_end_string = "*))"
environment.variable_start_string = "((("
environment.variable_end_string = ")))"
environment.comment_start_string = "((="
environment.comment_end_string = "=))"
template = environment.get_template("template1.tex.j2")
input_file_path = os.path.join(workspace, "tests", "inputs", "test.json")
with open(input_file_path) as file:
raw_json = json.load(file)
data = CurriculumVitae(**raw_json)
output_latex_file = template.render(data=data)
# Create an output file and write the rendered LaTeX code to it:
output_file_path = os.path.join(workspace, "tests", "outputs", "test.tex")
with open(output_file_path, "w") as file:
file.write(output_latex_file)

View File

@ -1,83 +1,83 @@
\documentclass[10pt, a4paper]{memoir}
% ===========
% ===========
% USER INPUTS:
\newcommand{\AUTHOR}{Sina Atalay}
\newcommand{\PRIMARYCOLOR}{0,79,144} % In RGB out of 255
\newcommand{\PageXMargin}{0.53in}
\newcommand{\PageYMargin}{0.53in}
\newcommand{\TopMarginOfSections}{0.13cm}
\newcommand{\BottomMarginOfSections}{0.13cm}
\newcommand{\YMarginBetweenEntries}{0.12cm}
\newcommand{\YMarginBetweenBullets}{0.07cm}
\newcommand{\LeftMarginOfBullets}{0.7cm}
\newcommand{\DateandLocationWidth}{3.7cm}
% ===========
% ===========
\input{preamble}
\begin{document}
% Test out the 4 main entry types with the commands below:
% \Header{a}{b}{c}{d}{e}{f}
% \section{EducationEntry}
% \EducationEntry{a}{b}{c}{d}{e}{f}{g}{j}
% \section{ExperienceEntry}
% \ExperienceEntry{a}{b}{c}{d}{e}{f}{g}{j}
% \section{NormalEntry}
% \NormalEntry{a}{b}{c}{d}{e}{f}
% \section{OneLineEntry}
% \OneLineEntry{a}{b}
% To create the header manually (insted of \Header command), use the code below:
% \begin{header}[0pt]
% \Huge
% \textbf{\directlua{tex.print(json.basics.name)}}
% \normalsize
% \faPhone\hspace{0.13cm}\directlua{tex.print(json.basics.phone)} \hspace{0.5cm}
% \href{mailto:\directlua{tex.print(json.basics.email)}}{\faEnvelopeO\hspace{0.13cm}\directlua{tex.print(json.basics.email)}} \hspace{0.5cm}
% \href{https://\directlua{tex.print(json.basics.url)}}{\faLaptop\hspace{0.13cm}\directlua{tex.print(json.basics.url)}} \hspace{0.5cm}
% \href{https://www.linkedin.com/in/williamhgates}{\faLinkedin\hspace{0.13cm}williamhgates} \hspace{0.5cm}
% \href{https://www.github.com/sinaatalay}{\faGithub\hspace{0.13cm}sinaatalay}
% \end{header}
\directlua{require("parser.lua")}
\makeoddhead{headings}{}{}{\small\color{gray}\linespread{0}\emph{Last updated on {\printdayon\today}}\hspace*{0.2cm}}
\directlua{printHeader()}
\section{Education}
((* for education in data.education *))
\EducationEntry{(((education.institution)))}{(((education.area)))}{(((education.studyType)))}{(((education.startDate)))}{(((education.endDate)))}{(((education.gpa)))}{(((education.courses)))}{(((education.location)))}
((* endfor *))
\section{Work Experience}
\directlua{printExperience()}
\section{Academic Projects}
\directlua{printAcademicProjects()}
\section{Certificates}
\directlua{printCertificates()}
\section{Skills}
\directlua{printSkills()}
\section{Test Scores}
\directlua{printTestScores()}
\section{Personal Projects (test)}
\directlua{printPersonalProjects()}
\section{Extracurricular Activities}
\directlua{printExtracurricularActivities()}
\documentclass[10pt, a4paper]{memoir}
% ===========
% ===========
% USER INPUTS:
\newcommand{\AUTHOR}{Sina Atalay}
\newcommand{\PRIMARYCOLOR}{0,79,144} % In RGB out of 255
\newcommand{\PageXMargin}{0.53in}
\newcommand{\PageYMargin}{0.53in}
\newcommand{\TopMarginOfSections}{0.13cm}
\newcommand{\BottomMarginOfSections}{0.13cm}
\newcommand{\YMarginBetweenEntries}{0.12cm}
\newcommand{\YMarginBetweenBullets}{0.07cm}
\newcommand{\LeftMarginOfBullets}{0.7cm}
\newcommand{\DateandLocationWidth}{3.7cm}
% ===========
% ===========
\input{preamble}
\begin{document}
% Test out the 4 main entry types with the commands below:
% \Header{a}{b}{c}{d}{e}{f}
% \section{EducationEntry}
% \EducationEntry{a}{b}{c}{d}{e}{f}{g}{j}
% \section{ExperienceEntry}
% \ExperienceEntry{a}{b}{c}{d}{e}{f}{g}{j}
% \section{NormalEntry}
% \NormalEntry{a}{b}{c}{d}{e}{f}
% \section{OneLineEntry}
% \OneLineEntry{a}{b}
% To create the header manually (insted of \Header command), use the code below:
% \begin{header}[0pt]
% \Huge
% \textbf{\directlua{tex.print(json.basics.name)}}
% \normalsize
% \faPhone\hspace{0.13cm}\directlua{tex.print(json.basics.phone)} \hspace{0.5cm}
% \href{mailto:\directlua{tex.print(json.basics.email)}}{\faEnvelopeO\hspace{0.13cm}\directlua{tex.print(json.basics.email)}} \hspace{0.5cm}
% \href{https://\directlua{tex.print(json.basics.url)}}{\faLaptop\hspace{0.13cm}\directlua{tex.print(json.basics.url)}} \hspace{0.5cm}
% \href{https://www.linkedin.com/in/williamhgates}{\faLinkedin\hspace{0.13cm}williamhgates} \hspace{0.5cm}
% \href{https://www.github.com/sinaatalay}{\faGithub\hspace{0.13cm}sinaatalay}
% \end{header}
\directlua{require("parser.lua")}
\makeoddhead{headings}{}{}{\small\color{gray}\linespread{0}\emph{Last updated on {\printdayon\today}}\hspace*{0.2cm}}
\directlua{printHeader()}
\section{Education}
((* for education in data.education *))
\EducationEntry{(((education.institution)))}{(((education.area)))}{(((education.studyType)))}{(((education.startDate)))}{(((education.endDate)))}{(((education.gpa)))}{(((education.courses)))}{(((education.location)))}
((* endfor *))
\section{Work Experience}
\directlua{printExperience()}
\section{Academic Projects}
\directlua{printAcademicProjects()}
\section{Certificates}
\directlua{printCertificates()}
\section{Skills}
\directlua{printSkills()}
\section{Test Scores}
\directlua{printTestScores()}
\section{Personal Projects (test)}
\directlua{printPersonalProjects()}
\section{Extracurricular Activities}
\directlua{printExtracurricularActivities()}
\end{document}

View File

View File

@ -0,0 +1 @@
C:\GIT\rendercv\rendercv\tinytex\vendor\TinyTeX\bin\windows\latexmk.exe -lualatex -c test.tex

View File

@ -0,0 +1,99 @@
\usepackage[ignoreheadfoot, top=\PageYMargin, bottom=\PageYMargin, left=\PageXMargin, right=\PageXMargin, headsep=0.3cm]{geometry}
\usepackage{fontspec}
\usepackage[explicit]{titlesec}
\usepackage{tabularx}
\usepackage{array}
\usepackage{xifthen}
\usepackage[dvipsnames]{xcolor}
\definecolor{primaryColor}{RGB}{\PRIMARYCOLOR}
\usepackage{enumitem}
\usepackage{fontawesome}
\usepackage[pdftitle={\AUTHOR's CV}, pdfauthor={\AUTHOR}, colorlinks=true, urlcolor=primaryColor]{hyperref} % Linking
% \setmainfont{SourceSansPro}[
% Path= fonts/,
% Extension = .ttf,
% UprightFont = *-Regular,
% ItalicFont = *-Italic,
% BoldFont = *-Bold,
% BoldItalicFont = *-BoldItalic]
% Calculate last update top margin:
\newlength\A
\newlength\B
\setlength\A{\PageYMargin}
\setlength\B{\dimexpr \numexpr \A / 1 \relax sp\relax}
\setcounter{secnumdepth}{0} % No section numbering
\setlength{\parindent}{0pt} % No indentation
\setlength{\topskip}{0pt} % No top skip
\pagenumbering{gobble} % No page numbering
\titleformat{\section}{\LARGE\color{primaryColor}}{}{}{\textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]}[] % New section title format
\titlespacing{\section}{0pt}{\TopMarginOfSections}{\BottomMarginOfSections} % New section title spacing
% Date format (from: https://web.library.yale.edu/cataloging/months):
% \makeatletter
% \def\month@english{\ifcase\month\or
% Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or
% July\or Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi}
% \makeatother
% \origdate
% New column types:
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
% New commands/environments:
\newenvironment{highlights}{\begin{itemize}[topsep=0pt, parsep=\YMarginBetweenBullets, partopsep=0pt, itemsep=0pt, after=\vspace*{-\baselineskip}, leftmargin=\LeftMarginOfBullets]}{\end{itemize}} % New environment for highlights
\newenvironment{header}[1][\topsep]{\setlength{\topsep}{#1}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5}}{\par\kern\topsep} % New environment for the header
% New commands:
\newcommand{\hrefExternal}[2]{\href{#1}{#2\, \faExternalLink}}
\newcommand{\Header}[6]{
\begin{header}[0pt]
\Huge
\textbf{#1}
\normalsize
\faPhone\hspace{0.13cm}#2 \hspace{0.5cm}
\href{mailto:#3}{\faEnvelopeO\hspace{0.13cm}#3} \hspace{0.5cm}
\href{https://#4}{\faLaptop\hspace{0.13cm}#4} \hspace{0.5cm}
\href{https://www.linkedin.com/in/#5}{\faLinkedin\hspace{0.13cm}#5} \hspace{0.5cm}
\href{https://www.github.com/#6}{\faGithub\hspace{0.13cm}#6}
\end{header}
}
\newcommand{\EducationEntry}[8]{
\begin{tabularx}{\textwidth}{p{0.55cm} >{\raggedright}X R{\DateandLocationWidth}}
\textbf{#1} & \textbf{#2}, #3 \ifthenelse{\isempty{#6}}{}{\vspace{\YMarginBetweenBullets}\begin{highlights} \item #6 \ifthenelse{\isempty{#7}}{\end{highlights}}{\item #7 \ifthenelse{\isempty{#8}}{\end{highlights}}{\item #8 \end{highlights}}}} & \ifthenelse{\isempty{#4}}{#5}{#4\newline #5} \\
\end{tabularx}
\vspace{\YMarginBetweenEntries}
}
\newcommand{\ExperienceEntry}[8]{
\begin{tabularx}{\textwidth}{X R{\DateandLocationWidth}}
\textbf{#1}, #2 \ifthenelse{\isempty{#6}}{}{\vspace{\YMarginBetweenBullets}\begin{highlights} \item #6 \ifthenelse{\isempty{#7}}{\end{highlights}}{\item #7 \ifthenelse{\isempty{#8}}{\end{highlights}}{\item #8 \end{highlights}}}} & \ifthenelse{\isempty{#3}}{#4\newline #5}{#3\newline #4\newline #5} \\
\end{tabularx}
\vspace{\YMarginBetweenEntries}
}
\newcommand{\NormalEntry}[6]{
\begin{tabularx}{\textwidth}{X R{\DateandLocationWidth}}
\textbf{#1} \ifthenelse{\isempty{#4}}{}{\vspace{\YMarginBetweenBullets}\begin{highlights} \item #4 \ifthenelse{\isempty{#5}}{\end{highlights}}{\item #5 \ifthenelse{\isempty{#6}}{\end{highlights}}{\item #6 \end{highlights}}}} & \ifthenelse{\isempty{#2}}{#3}{#2\newline #3} \\
\end{tabularx}
\vspace{\YMarginBetweenEntries}
}
\newcommand{\OneLineEntry}[2]{
\setlength{\leftskip}{0.2cm}
\textbf{#1:} #2
\vspace{\YMarginBetweenEntries}
\setlength{\leftskip}{0cm}
}

BIN
rendercv/tinytex/test.pdf Normal file

Binary file not shown.

39
rendercv/tinytex/test.tex Normal file
View File

@ -0,0 +1,39 @@
\documentclass[10pt, a4paper]{memoir}
% ===========
% ===========
% USER INPUTS:
\newcommand{\AUTHOR}{Sina Atalay}
\newcommand{\PRIMARYCOLOR}{0,79,144} % In RGB out of 255
\newcommand{\PageXMargin}{0.53in}
\newcommand{\PageYMargin}{0.53in}
\newcommand{\TopMarginOfSections}{0.13cm}
\newcommand{\BottomMarginOfSections}{0.13cm}
\newcommand{\YMarginBetweenEntries}{0.12cm}
\newcommand{\YMarginBetweenBullets}{0.07cm}
\newcommand{\LeftMarginOfBullets}{0.7cm}
\newcommand{\DateandLocationWidth}{3.7cm}
% ===========
% ===========
\input{preamble}
\begin{document}
% Test out the 4 main entry types with the commands below:
\Header{a}{b}{c}{d}{e}{f}
\section{EducationEntry}
\EducationEntry{a}{b}{c}{d}{e}{f}{g}{j}
\section{ExperienceEntry}
\ExperienceEntry{a}{b}{c}{d}{e}{f}{g}{j}
\section{NormalEntry}
\NormalEntry{a}{b}{c}{d}{e}{f}
\section{OneLineEntry}
\OneLineEntry{a}{b}
\end{document}

40
rendercv/tinytex/vendor/README.md vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,222 +1,222 @@
{
"name": "John Doe",
"url": "https://sinaatalay.com",
"location": {
"city": "Geneva",
"country": "Switzerland"
},
"social_networks": [
{
"network": "LinkedIn",
"username": "sinaatalay",
"url": "https://www.linkedin.com/in/sinaatalay"
},
{
"network": "GitHub",
"username": "sinaatalay",
"url": "https://github.com/sinaatalay"
}
],
"education": [
{
"institution": "Boğaziçi University",
"url": "https://boun.edu.tr",
"area": "Mechanical Engineering",
"study_type": "BS",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"start_date": "2017-09-01",
"end_date": "2023-01-01",
"gpa": "3.80/4.00",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"institution": "The University of Texas at Austin",
"url": "https://utexas.edu",
"area": "Mechanical Engineering, Student Exchange Program",
"studyType": "BS",
"location": {
"city": "Austin",
"state": "Texas",
"country": "USA"
},
"start_date": "2021-08-01",
"end_date": "2022-01-15",
"gpa": "4.00/4.00",
"highlights": []
}
],
"work_experience": [
{
"company": "CERN",
"position": "Mechanical Engineer (Technical Student)",
"location": {
"city": "Geneva",
"country": "Switzerland"
},
"url": "https://home.cern",
"start_date": "2023-02-01",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"company": "Turkish Aerospace Industries",
"position": "Mechanical Engineering Intern",
"location":{
"city": "Ankara",
"country": "Turkey"
},
"url": "https://tusas.com",
"start_date": "2022-08-01",
"end_date": "2022-09-01",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"company": "Simularge",
"position": "Mechanical Engineering Intern",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"url": "https://simularge.com",
"start_date": "2022-06-15",
"end_date": "2022-08-01",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"company": "Aselsan",
"position": "Mechanical Engineering Intern",
"location":{
"city": "Ankara",
"country": "Turkey"
},
"url": "https://aselsan.com.tr",
"start_date": "2021-07-26",
"end_date": "2021-08-20",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
}
],
"academic_projects": [
{
"name": "An Ion Thruster Simulation Program: Ionizer",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"start_date": "2022-04-08",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
],
"url": "https://github.com/sinaatalay/Ionizer"
},
{
"name": "Design and Construction of a Dynamometer",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
}
],
"certificates": [
{
"name": "Machine Learning by Stanford University",
"date": "2022-09-01",
"highlights": [],
"url": "https://coursera.org/verify/MZDLHBUQSULA"
}
],
"skills": [
{
"name": "Programming",
"details": "C++, C, Python, JavaScript, MATLAB, Lua, LaTeX"
},
{
"name": "CAE",
"details": "GMSH, GetDP, CalculiX ——— show these in GitHub!!!"
},
{
"name": "CAD",
"details": "FreeCAD, Siemens NX, SolidWorks ——— draw your projects with these to show on your website"
},
{
"name": "OS",
"details": "Windows, Ubuntu, !!!macOS!!!"
},
{
"name": "Other tools",
"details": "Git, Premake, !!!CMake!!!, !!!PyTorch!!!, HTML, CSS, React"
},
{
"name": "Languages",
"details": "English (Advanced), !!!French (Lower Intermediate)!!!, Turkish (Native)"
}
],
"test_scores": [
{
"name": "TOEFL",
"date": "2022-10-01",
"score": "113/120 — Reading: 29/30, Listening: 30/30, Speaking: 27/30, Writing: 27/30"
},
{
"name": "GRE",
"score": "Verbal Reasoning: 160/170, Quantitative Reasoning: 170/170, Analytical Writing: 5/6"
}
],
"personalProjects": [
{
"name": "Teaching Videos",
"highlights": [
"Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date."
],
"url": "https://youtube.com/c/SinaAtalay"
},
{
"name": "Teaching Videos",
"highlights": [
"Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date."
],
"url": "https://youtube.com/c/SinaAtalay"
}
],
"extracurricular_activities": [
{
"organization": "Alacati Surf Paradise Club (ASPC)",
"position": "Windsurfing Instructor",
"location":{
"city": "Izmir",
"country": "Turkey"
},
"highlights": [
"Taught windsurfing during summers as a Turkish Sailing Federation certified windsurfing instructor."
]
}
]
}
{
"name": "John Doe",
"url": "https://sinaatalay.com",
"location": {
"city": "Geneva",
"country": "Switzerland"
},
"social_networks": [
{
"network": "LinkedIn",
"username": "sinaatalay",
"url": "https://www.linkedin.com/in/sinaatalay"
},
{
"network": "GitHub",
"username": "sinaatalay",
"url": "https://github.com/sinaatalay"
}
],
"education": [
{
"institution": "Boğaziçi University",
"url": "https://boun.edu.tr",
"area": "Mechanical Engineering",
"study_type": "BS",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"start_date": "2017-09-01",
"end_date": "2023-01-01",
"gpa": "3.80/4.00",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"institution": "The University of Texas at Austin",
"url": "https://utexas.edu",
"area": "Mechanical Engineering, Student Exchange Program",
"studyType": "BS",
"location": {
"city": "Austin",
"state": "Texas",
"country": "USA"
},
"start_date": "2021-08-01",
"end_date": "2022-01-15",
"gpa": "4.00/4.00",
"highlights": []
}
],
"work_experience": [
{
"company": "CERN",
"position": "Mechanical Engineer (Technical Student)",
"location": {
"city": "Geneva",
"country": "Switzerland"
},
"url": "https://home.cern",
"start_date": "2023-02-01",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"company": "Turkish Aerospace Industries",
"position": "Mechanical Engineering Intern",
"location":{
"city": "Ankara",
"country": "Turkey"
},
"url": "https://tusas.com",
"start_date": "2022-08-01",
"end_date": "2022-09-01",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"company": "Simularge",
"position": "Mechanical Engineering Intern",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"url": "https://simularge.com",
"start_date": "2022-06-15",
"end_date": "2022-08-01",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
},
{
"company": "Aselsan",
"position": "Mechanical Engineering Intern",
"location":{
"city": "Ankara",
"country": "Turkey"
},
"url": "https://aselsan.com.tr",
"start_date": "2021-07-26",
"end_date": "2021-08-20",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
}
],
"academic_projects": [
{
"name": "An Ion Thruster Simulation Program: Ionizer",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"start_date": "2022-04-08",
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
],
"url": "https://github.com/sinaatalay/Ionizer"
},
{
"name": "Design and Construction of a Dynamometer",
"location": {
"city": "Istanbul",
"country": "Turkey"
},
"highlights": [
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
]
}
],
"certificates": [
{
"name": "Machine Learning by Stanford University",
"date": "2022-09-01",
"highlights": [],
"url": "https://coursera.org/verify/MZDLHBUQSULA"
}
],
"skills": [
{
"name": "Programming",
"details": "C++, C, Python, JavaScript, MATLAB, Lua, LaTeX"
},
{
"name": "CAE",
"details": "GMSH, GetDP, CalculiX ——— show these in GitHub!!!"
},
{
"name": "CAD",
"details": "FreeCAD, Siemens NX, SolidWorks ——— draw your projects with these to show on your website"
},
{
"name": "OS",
"details": "Windows, Ubuntu, !!!macOS!!!"
},
{
"name": "Other tools",
"details": "Git, Premake, !!!CMake!!!, !!!PyTorch!!!, HTML, CSS, React"
},
{
"name": "Languages",
"details": "English (Advanced), !!!French (Lower Intermediate)!!!, Turkish (Native)"
}
],
"test_scores": [
{
"name": "TOEFL",
"date": "2022-10-01",
"score": "113/120 — Reading: 29/30, Listening: 30/30, Speaking: 27/30, Writing: 27/30"
},
{
"name": "GRE",
"score": "Verbal Reasoning: 160/170, Quantitative Reasoning: 170/170, Analytical Writing: 5/6"
}
],
"personalProjects": [
{
"name": "Teaching Videos",
"highlights": [
"Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date."
],
"url": "https://youtube.com/c/SinaAtalay"
},
{
"name": "Teaching Videos",
"highlights": [
"Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date."
],
"url": "https://youtube.com/c/SinaAtalay"
}
],
"extracurricular_activities": [
{
"organization": "Alacati Surf Paradise Club (ASPC)",
"position": "Windsurfing Instructor",
"location":{
"city": "Izmir",
"country": "Turkey"
},
"highlights": [
"Taught windsurfing during summers as a Turkish Sailing Federation certified windsurfing instructor."
]
}
]
}

View File

@ -0,0 +1,99 @@
\usepackage[ignoreheadfoot, top=\PageYMargin, bottom=\PageYMargin, left=\PageXMargin, right=\PageXMargin, headsep=0.3cm]{geometry}
\usepackage{fontspec}
\usepackage[explicit]{titlesec}
\usepackage{tabularx}
\usepackage{array}
\usepackage{xifthen}
\usepackage[dvipsnames]{xcolor}
\definecolor{primaryColor}{RGB}{\PRIMARYCOLOR}
\usepackage{enumitem}
\usepackage{fontawesome}
\usepackage[pdftitle={\AUTHOR's CV}, pdfauthor={\AUTHOR}, colorlinks=true, urlcolor=primaryColor]{hyperref} % Linking
% \setmainfont{SourceSansPro}[
% Path= fonts/,
% Extension = .ttf,
% UprightFont = *-Regular,
% ItalicFont = *-Italic,
% BoldFont = *-Bold,
% BoldItalicFont = *-BoldItalic]
% Calculate last update top margin:
\newlength\A
\newlength\B
\setlength\A{\PageYMargin}
\setlength\B{\dimexpr \numexpr \A / 1 \relax sp\relax}
\setcounter{secnumdepth}{0} % No section numbering
\setlength{\parindent}{0pt} % No indentation
\setlength{\topskip}{0pt} % No top skip
\pagenumbering{gobble} % No page numbering
\titleformat{\section}{\LARGE\color{primaryColor}}{}{}{\textbf{#1}\hspace{0.15cm}\titlerule[0.8pt]}[] % New section title format
\titlespacing{\section}{0pt}{\TopMarginOfSections}{\BottomMarginOfSections} % New section title spacing
% Date format (from: https://web.library.yale.edu/cataloging/months):
% \makeatletter
% \def\month@english{\ifcase\month\or
% Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or
% July\or Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi}
% \makeatother
% \origdate
% New column types:
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
% New commands/environments:
\newenvironment{highlights}{\begin{itemize}[topsep=0pt, parsep=\YMarginBetweenBullets, partopsep=0pt, itemsep=0pt, after=\vspace*{-\baselineskip}, leftmargin=\LeftMarginOfBullets]}{\end{itemize}} % New environment for highlights
\newenvironment{header}[1][\topsep]{\setlength{\topsep}{#1}\par\kern\topsep\centering\color{primaryColor}\linespread{1.5}}{\par\kern\topsep} % New environment for the header
% New commands:
\newcommand{\hrefExternal}[2]{\href{#1}{#2\, \faExternalLink}}
\newcommand{\Header}[6]{
\begin{header}[0pt]
\Huge
\textbf{#1}
\normalsize
\faPhone\hspace{0.13cm}#2 \hspace{0.5cm}
\href{mailto:#3}{\faEnvelopeO\hspace{0.13cm}#3} \hspace{0.5cm}
\href{https://#4}{\faLaptop\hspace{0.13cm}#4} \hspace{0.5cm}
\href{https://www.linkedin.com/in/#5}{\faLinkedin\hspace{0.13cm}#5} \hspace{0.5cm}
\href{https://www.github.com/#6}{\faGithub\hspace{0.13cm}#6}
\end{header}
}
\newcommand{\EducationEntry}[8]{
\begin{tabularx}{\textwidth}{p{0.55cm} >{\raggedright}X R{\DateandLocationWidth}}
\textbf{#1} & \textbf{#2}, #3 \ifthenelse{\isempty{#6}}{}{\vspace{\YMarginBetweenBullets}\begin{highlights} \item #6 \ifthenelse{\isempty{#7}}{\end{highlights}}{\item #7 \ifthenelse{\isempty{#8}}{\end{highlights}}{\item #8 \end{highlights}}}} & \ifthenelse{\isempty{#4}}{#5}{#4\newline #5} \\
\end{tabularx}
\vspace{\YMarginBetweenEntries}
}
\newcommand{\ExperienceEntry}[8]{
\begin{tabularx}{\textwidth}{X R{\DateandLocationWidth}}
\textbf{#1}, #2 \ifthenelse{\isempty{#6}}{}{\vspace{\YMarginBetweenBullets}\begin{highlights} \item #6 \ifthenelse{\isempty{#7}}{\end{highlights}}{\item #7 \ifthenelse{\isempty{#8}}{\end{highlights}}{\item #8 \end{highlights}}}} & \ifthenelse{\isempty{#3}}{#4\newline #5}{#3\newline #4\newline #5} \\
\end{tabularx}
\vspace{\YMarginBetweenEntries}
}
\newcommand{\NormalEntry}[6]{
\begin{tabularx}{\textwidth}{X R{\DateandLocationWidth}}
\textbf{#1} \ifthenelse{\isempty{#4}}{}{\vspace{\YMarginBetweenBullets}\begin{highlights} \item #4 \ifthenelse{\isempty{#5}}{\end{highlights}}{\item #5 \ifthenelse{\isempty{#6}}{\end{highlights}}{\item #6 \end{highlights}}}} & \ifthenelse{\isempty{#2}}{#3}{#2\newline #3} \\
\end{tabularx}
\vspace{\YMarginBetweenEntries}
}
\newcommand{\OneLineEntry}[2]{
\setlength{\leftskip}{0.2cm}
\textbf{#1:} #2
\vspace{\YMarginBetweenEntries}
\setlength{\leftskip}{0cm}
}

39
tests/outputs/test.tex Normal file
View File

@ -0,0 +1,39 @@
\documentclass[10pt, a4paper]{memoir}
% ===========
% ===========
% USER INPUTS:
\newcommand{\AUTHOR}{Sina Atalay}
\newcommand{\PRIMARYCOLOR}{0,79,144} % In RGB out of 255
\newcommand{\PageXMargin}{0.53in}
\newcommand{\PageYMargin}{0.53in}
\newcommand{\TopMarginOfSections}{0.13cm}
\newcommand{\BottomMarginOfSections}{0.13cm}
\newcommand{\YMarginBetweenEntries}{0.12cm}
\newcommand{\YMarginBetweenBullets}{0.07cm}
\newcommand{\LeftMarginOfBullets}{0.7cm}
\newcommand{\DateandLocationWidth}{3.7cm}
% ===========
% ===========
\input{preamble}
\begin{document}
% Test out the 4 main entry types with the commands below:
\Header{a}{b}{c}{d}{e}{f}
\section{EducationEntry}
\EducationEntry{a}{b}{c}{d}{e}{f}{g}{j}
\section{ExperienceEntry}
\ExperienceEntry{a}{b}{c}{d}{e}{f}{g}{j}
\section{NormalEntry}
\NormalEntry{a}{b}{c}{d}{e}{f}
\section{OneLineEntry}
\OneLineEntry{a}{b}
\end{document}