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 # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
*$py.class *$py.class
# C extensions # C extensions
*.so *.so
# Distribution / packaging # Distribution / packaging
.Python .Python
build/ build/
develop-eggs/ develop-eggs/
dist/ dist/
downloads/ downloads/
eggs/ eggs/
.eggs/ .eggs/
lib/ lib/
lib64/ lib64/
parts/ parts/
sdist/ sdist/
var/ var/
wheels/ wheels/
share/python-wheels/ share/python-wheels/
*.egg-info/ *.egg-info/
.installed.cfg .installed.cfg
*.egg *.egg
MANIFEST MANIFEST
# PyInstaller # PyInstaller
# Usually these files are written by a python script from a template # 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. # before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest *.manifest
*.spec *.spec
# Installer logs # Installer logs
pip-log.txt pip-log.txt
pip-delete-this-directory.txt pip-delete-this-directory.txt
# Unit test / coverage reports # Unit test / coverage reports
htmlcov/ htmlcov/
.tox/ .tox/
.nox/ .nox/
.coverage .coverage
.coverage.* .coverage.*
.cache .cache
nosetests.xml nosetests.xml
coverage.xml coverage.xml
*.cover *.cover
*.py,cover *.py,cover
.hypothesis/ .hypothesis/
.pytest_cache/ .pytest_cache/
cover/ cover/
# Translations # Translations
*.mo *.mo
*.pot *.pot
# Django stuff: # Django stuff:
*.log *.log
local_settings.py local_settings.py
db.sqlite3 db.sqlite3
db.sqlite3-journal db.sqlite3-journal
# Flask stuff: # Flask stuff:
instance/ instance/
.webassets-cache .webassets-cache
# Scrapy stuff: # Scrapy stuff:
.scrapy .scrapy
# Sphinx documentation # Sphinx documentation
docs/_build/ docs/_build/
# PyBuilder # PyBuilder
.pybuilder/ .pybuilder/
target/ target/
# Jupyter Notebook # Jupyter Notebook
.ipynb_checkpoints .ipynb_checkpoints
# IPython # IPython
profile_default/ profile_default/
ipython_config.py ipython_config.py
# pyenv # pyenv
# For a library or package, you might want to ignore these files since the code is # 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: # intended to run in multiple environments; otherwise, check them in:
# .python-version # .python-version
# pipenv # pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # 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 # 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 # having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies. # install all needed dependencies.
#Pipfile.lock #Pipfile.lock
# poetry # poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. # 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 # This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries. # commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock #poetry.lock
# pdm # pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock #pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control. # in version control.
# https://pdm.fming.dev/#use-with-ide # https://pdm.fming.dev/#use-with-ide
.pdm.toml .pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/ __pypackages__/
# Celery stuff # Celery stuff
celerybeat-schedule celerybeat-schedule
celerybeat.pid celerybeat.pid
# SageMath parsed files # SageMath parsed files
*.sage.py *.sage.py
# Environments # Environments
.env .env
.venv .venv
env/ env/
venv/ venv/
ENV/ .venv/
env.bak/ ENV/
venv.bak/ env.bak/
venv.bak/
# Spyder project settings
.spyderproject # Spyder project settings
.spyproject .spyderproject
.spyproject
# Rope project settings
.ropeproject # Rope project settings
.ropeproject
# mkdocs documentation
/site # mkdocs documentation
/site
# mypy
.mypy_cache/ # mypy
.dmypy.json .mypy_cache/
dmypy.json .dmypy.json
dmypy.json
# Pyre type checker
.pyre/ # Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/ # pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/ # Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can # PyCharm
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# and can be added to the global gitignore or merged into this file. For a more nuclear # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # and can be added to the global gitignore or merged into this file. For a more nuclear
#.idea/ # 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 Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions. 1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, "License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document. and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by "Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License. the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all "Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition, control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the "control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity. outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity "You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License. exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, "Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation including but not limited to software source code, documentation
source, and configuration files. source, and configuration files.
"Object" form shall mean any form resulting from mechanical "Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation, not limited to compiled object code, generated documentation,
and conversions to other media types. and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or "Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work copyright notice that is included in or attached to the work
(an example is provided in the Appendix below). (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object "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 form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of, separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof. the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including "Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner 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 or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted" the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems, communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution." designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity "Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work. subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of 2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual, this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of, copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form. Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of 3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual, this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made, (except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work, use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s) Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate granted to You under this License for that Work shall terminate
as of the date such litigation is filed. as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the 4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You modifications, and in Source or Object form, provided that You
meet the following conditions: meet the following conditions:
(a) You must give any other recipients of the Work or (a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices (b) You must cause any modified files to carry prominent notices
stating that You changed the files; and stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works (c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work, attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of excluding those notices that do not pertain to any part of
the Derivative Works; and the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its (d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or, documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed that such additional attribution notices cannot be construed
as modifying the License. as modifying the License.
You may add Your own copyright statement to Your modifications and You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use, for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License. the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, 5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions. this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions. with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade 6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor, names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file. origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or 7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS, Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License. risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, 8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise, whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special, liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the 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 (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages. has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing 9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer, the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity, and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify, of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability. of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work. APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]" boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright [yyyy] [name of copyright owner] Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.

View File

@ -1,2 +1,2 @@
# RenderCV # RenderCV
A Python application that creates CVs in PDF, HTML, LaTeX, etc., from a JSON/YAML input file. 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 import BaseModel, HttpUrl
from pydantic_extra_types.phone_numbers import PhoneNumber from pydantic_extra_types.phone_numbers import PhoneNumber
from typing import Literal from typing import Literal
from datetime import date as Date from datetime import date as Date
class Location(BaseModel): class Location(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
city: str city: str
country: str country: str
# 2) Optional user inputs: # 2) Optional user inputs:
state: str = None state: str = None
class Skill(BaseModel): class Skill(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
name: str name: str
# 2) Optional user inputs: # 2) Optional user inputs:
details: str = None details: str = None
class Activity(BaseModel): class Activity(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
organization: str organization: str
position: str position: str
location: Location location: Location
# 2) Optional user inputs: # 2) Optional user inputs:
start_date: Date = None start_date: Date = None
end_date: Date = None end_date: Date = None
company_url: HttpUrl = None company_url: HttpUrl = None
highlights: list[str] = None highlights: list[str] = None
class TestScore(BaseModel): class TestScore(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
name: str name: str
score: str score: str
# 2) Optional user inputs: # 2) Optional user inputs:
url: HttpUrl = None url: HttpUrl = None
date: Date = None date: Date = None
class Project(BaseModel): class Project(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
name: str name: str
location: Location location: Location
# 2) Optional user inputs: # 2) Optional user inputs:
start_date: Date= None start_date: Date= None
end_date: Date = None end_date: Date = None
url: HttpUrl = None url: HttpUrl = None
highlights: list[str] = None highlights: list[str] = None
class WorkExperience(BaseModel): class WorkExperience(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
company: str company: str
position: str position: str
start_date: Date start_date: Date
location: Location location: Location
# 2) Optional user inputs: # 2) Optional user inputs:
end_date: Date = None end_date: Date = None
highlights: list[str] = None highlights: list[str] = None
class Education(BaseModel): class Education(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
institution: str institution: str
area: str area: str
location: Location location: Location
start_date: Date start_date: Date
# 2) Optional user inputs: # 2) Optional user inputs:
end_date: Date = None end_date: Date = None
study_type: str = None study_type: str = None
gpa: str = None gpa: str = None
transcript_url: HttpUrl = None transcript_url: HttpUrl = None
highlights: list[str] = None highlights: list[str] = None
class SocialNetwork(BaseModel): class SocialNetwork(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
network: Literal["LinkedIn", "GitHub", "Twitter", "Facebook", "Instagram"] network: Literal["LinkedIn", "GitHub", "Twitter", "Facebook", "Instagram"]
username: str username: str
url: HttpUrl url: HttpUrl
class CurriculumVitae(BaseModel): class CurriculumVitae(BaseModel):
# 1) Mandotory user inputs: # 1) Mandotory user inputs:
name: str name: str
# 2) Optional user inputs: # 2) Optional user inputs:
email: str = None email: str = None
phone: PhoneNumber = None phone: PhoneNumber = None
website: HttpUrl = None website: HttpUrl = None
location: Location = None location: Location = None
social_networks: list[SocialNetwork] = None social_networks: list[SocialNetwork] = None
education: list[Education] = None education: list[Education] = None
work_experience: list[WorkExperience] = None work_experience: list[WorkExperience] = None
academic_projects: list[Project] = None academic_projects: list[Project] = None
extracurricular_activities: list[Activity] = None extracurricular_activities: list[Activity] = None
test_scores: list[TestScore] = None test_scores: list[TestScore] = None
skills: list[Skill] = None skills: list[Skill] = None

View File

@ -1,23 +1,30 @@
from jinja2 import Environment, FileSystemLoader from jinja2 import Environment, FileSystemLoader
from data.content import CurriculumVitae from data.content import CurriculumVitae
import os import os
import json import json
workspace = os.path.dirname(os.path.dirname(__file__)) workspace = os.path.dirname(os.path.dirname(__file__))
environment = Environment(loader=FileSystemLoader(os.path.join(workspace, "rendercv", "templates"))) environment = Environment(loader=FileSystemLoader(os.path.join(workspace, "rendercv", "templates")))
environment.block_start_string = "((*" environment.block_start_string = "((*"
environment.block_end_string = "*))" environment.block_end_string = "*))"
environment.variable_start_string = "(((" environment.variable_start_string = "((("
environment.variable_end_string = ")))" environment.variable_end_string = ")))"
environment.comment_start_string = "((=" environment.comment_start_string = "((="
environment.comment_end_string = "=))" environment.comment_end_string = "=))"
template = environment.get_template("template1.tex.j2") template = environment.get_template("template1.tex.j2")
input_file_path = os.path.join(workspace, "tests", "inputs", "test.json") input_file_path = os.path.join(workspace, "tests", "inputs", "test.json")
with open(input_file_path) as file: with open(input_file_path) as file:
raw_json = json.load(file) raw_json = json.load(file)
data = CurriculumVitae(**raw_json) data = CurriculumVitae(**raw_json)
output_latex_file = template.render(data=data) 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} \documentclass[10pt, a4paper]{memoir}
% =========== % ===========
% =========== % ===========
% USER INPUTS: % USER INPUTS:
\newcommand{\AUTHOR}{Sina Atalay} \newcommand{\AUTHOR}{Sina Atalay}
\newcommand{\PRIMARYCOLOR}{0,79,144} % In RGB out of 255 \newcommand{\PRIMARYCOLOR}{0,79,144} % In RGB out of 255
\newcommand{\PageXMargin}{0.53in} \newcommand{\PageXMargin}{0.53in}
\newcommand{\PageYMargin}{0.53in} \newcommand{\PageYMargin}{0.53in}
\newcommand{\TopMarginOfSections}{0.13cm} \newcommand{\TopMarginOfSections}{0.13cm}
\newcommand{\BottomMarginOfSections}{0.13cm} \newcommand{\BottomMarginOfSections}{0.13cm}
\newcommand{\YMarginBetweenEntries}{0.12cm} \newcommand{\YMarginBetweenEntries}{0.12cm}
\newcommand{\YMarginBetweenBullets}{0.07cm} \newcommand{\YMarginBetweenBullets}{0.07cm}
\newcommand{\LeftMarginOfBullets}{0.7cm} \newcommand{\LeftMarginOfBullets}{0.7cm}
\newcommand{\DateandLocationWidth}{3.7cm} \newcommand{\DateandLocationWidth}{3.7cm}
% =========== % ===========
% =========== % ===========
\input{preamble} \input{preamble}
\begin{document} \begin{document}
% Test out the 4 main entry types with the commands below: % Test out the 4 main entry types with the commands below:
% \Header{a}{b}{c}{d}{e}{f} % \Header{a}{b}{c}{d}{e}{f}
% \section{EducationEntry} % \section{EducationEntry}
% \EducationEntry{a}{b}{c}{d}{e}{f}{g}{j} % \EducationEntry{a}{b}{c}{d}{e}{f}{g}{j}
% \section{ExperienceEntry} % \section{ExperienceEntry}
% \ExperienceEntry{a}{b}{c}{d}{e}{f}{g}{j} % \ExperienceEntry{a}{b}{c}{d}{e}{f}{g}{j}
% \section{NormalEntry} % \section{NormalEntry}
% \NormalEntry{a}{b}{c}{d}{e}{f} % \NormalEntry{a}{b}{c}{d}{e}{f}
% \section{OneLineEntry} % \section{OneLineEntry}
% \OneLineEntry{a}{b} % \OneLineEntry{a}{b}
% To create the header manually (insted of \Header command), use the code below: % To create the header manually (insted of \Header command), use the code below:
% \begin{header}[0pt] % \begin{header}[0pt]
% \Huge % \Huge
% \textbf{\directlua{tex.print(json.basics.name)}} % \textbf{\directlua{tex.print(json.basics.name)}}
% \normalsize % \normalsize
% \faPhone\hspace{0.13cm}\directlua{tex.print(json.basics.phone)} \hspace{0.5cm} % \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{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://\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.linkedin.com/in/williamhgates}{\faLinkedin\hspace{0.13cm}williamhgates} \hspace{0.5cm}
% \href{https://www.github.com/sinaatalay}{\faGithub\hspace{0.13cm}sinaatalay} % \href{https://www.github.com/sinaatalay}{\faGithub\hspace{0.13cm}sinaatalay}
% \end{header} % \end{header}
\directlua{require("parser.lua")} \directlua{require("parser.lua")}
\makeoddhead{headings}{}{}{\small\color{gray}\linespread{0}\emph{Last updated on {\printdayon\today}}\hspace*{0.2cm}} \makeoddhead{headings}{}{}{\small\color{gray}\linespread{0}\emph{Last updated on {\printdayon\today}}\hspace*{0.2cm}}
\directlua{printHeader()} \directlua{printHeader()}
\section{Education} \section{Education}
((* for education in data.education *)) ((* for education in data.education *))
\EducationEntry{(((education.institution)))}{(((education.area)))}{(((education.studyType)))}{(((education.startDate)))}{(((education.endDate)))}{(((education.gpa)))}{(((education.courses)))}{(((education.location)))} \EducationEntry{(((education.institution)))}{(((education.area)))}{(((education.studyType)))}{(((education.startDate)))}{(((education.endDate)))}{(((education.gpa)))}{(((education.courses)))}{(((education.location)))}
((* endfor *)) ((* endfor *))
\section{Work Experience} \section{Work Experience}
\directlua{printExperience()} \directlua{printExperience()}
\section{Academic Projects} \section{Academic Projects}
\directlua{printAcademicProjects()} \directlua{printAcademicProjects()}
\section{Certificates} \section{Certificates}
\directlua{printCertificates()} \directlua{printCertificates()}
\section{Skills} \section{Skills}
\directlua{printSkills()} \directlua{printSkills()}
\section{Test Scores} \section{Test Scores}
\directlua{printTestScores()} \directlua{printTestScores()}
\section{Personal Projects (test)} \section{Personal Projects (test)}
\directlua{printPersonalProjects()} \directlua{printPersonalProjects()}
\section{Extracurricular Activities} \section{Extracurricular Activities}
\directlua{printExtracurricularActivities()} \directlua{printExtracurricularActivities()}
\end{document} \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", "name": "John Doe",
"url": "https://sinaatalay.com", "url": "https://sinaatalay.com",
"location": { "location": {
"city": "Geneva", "city": "Geneva",
"country": "Switzerland" "country": "Switzerland"
}, },
"social_networks": [ "social_networks": [
{ {
"network": "LinkedIn", "network": "LinkedIn",
"username": "sinaatalay", "username": "sinaatalay",
"url": "https://www.linkedin.com/in/sinaatalay" "url": "https://www.linkedin.com/in/sinaatalay"
}, },
{ {
"network": "GitHub", "network": "GitHub",
"username": "sinaatalay", "username": "sinaatalay",
"url": "https://github.com/sinaatalay" "url": "https://github.com/sinaatalay"
} }
], ],
"education": [ "education": [
{ {
"institution": "Boğaziçi University", "institution": "Boğaziçi University",
"url": "https://boun.edu.tr", "url": "https://boun.edu.tr",
"area": "Mechanical Engineering", "area": "Mechanical Engineering",
"study_type": "BS", "study_type": "BS",
"location": { "location": {
"city": "Istanbul", "city": "Istanbul",
"country": "Turkey" "country": "Turkey"
}, },
"start_date": "2017-09-01", "start_date": "2017-09-01",
"end_date": "2023-01-01", "end_date": "2023-01-01",
"gpa": "3.80/4.00", "gpa": "3.80/4.00",
"highlights": [ "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.",
"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." "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", "institution": "The University of Texas at Austin",
"url": "https://utexas.edu", "url": "https://utexas.edu",
"area": "Mechanical Engineering, Student Exchange Program", "area": "Mechanical Engineering, Student Exchange Program",
"studyType": "BS", "studyType": "BS",
"location": { "location": {
"city": "Austin", "city": "Austin",
"state": "Texas", "state": "Texas",
"country": "USA" "country": "USA"
}, },
"start_date": "2021-08-01", "start_date": "2021-08-01",
"end_date": "2022-01-15", "end_date": "2022-01-15",
"gpa": "4.00/4.00", "gpa": "4.00/4.00",
"highlights": [] "highlights": []
} }
], ],
"work_experience": [ "work_experience": [
{ {
"company": "CERN", "company": "CERN",
"position": "Mechanical Engineer (Technical Student)", "position": "Mechanical Engineer (Technical Student)",
"location": { "location": {
"city": "Geneva", "city": "Geneva",
"country": "Switzerland" "country": "Switzerland"
}, },
"url": "https://home.cern", "url": "https://home.cern",
"start_date": "2023-02-01", "start_date": "2023-02-01",
"highlights": [ "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.",
"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." "Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
] ]
}, },
{ {
"company": "Turkish Aerospace Industries", "company": "Turkish Aerospace Industries",
"position": "Mechanical Engineering Intern", "position": "Mechanical Engineering Intern",
"location":{ "location":{
"city": "Ankara", "city": "Ankara",
"country": "Turkey" "country": "Turkey"
}, },
"url": "https://tusas.com", "url": "https://tusas.com",
"start_date": "2022-08-01", "start_date": "2022-08-01",
"end_date": "2022-09-01", "end_date": "2022-09-01",
"highlights": [ "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.",
"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." "Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
] ]
}, },
{ {
"company": "Simularge", "company": "Simularge",
"position": "Mechanical Engineering Intern", "position": "Mechanical Engineering Intern",
"location": { "location": {
"city": "Istanbul", "city": "Istanbul",
"country": "Turkey" "country": "Turkey"
}, },
"url": "https://simularge.com", "url": "https://simularge.com",
"start_date": "2022-06-15", "start_date": "2022-06-15",
"end_date": "2022-08-01", "end_date": "2022-08-01",
"highlights": [ "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.",
"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." "Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
] ]
}, },
{ {
"company": "Aselsan", "company": "Aselsan",
"position": "Mechanical Engineering Intern", "position": "Mechanical Engineering Intern",
"location":{ "location":{
"city": "Ankara", "city": "Ankara",
"country": "Turkey" "country": "Turkey"
}, },
"url": "https://aselsan.com.tr", "url": "https://aselsan.com.tr",
"start_date": "2021-07-26", "start_date": "2021-07-26",
"end_date": "2021-08-20", "end_date": "2021-08-20",
"highlights": [ "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.",
"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." "Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
] ]
} }
], ],
"academic_projects": [ "academic_projects": [
{ {
"name": "An Ion Thruster Simulation Program: Ionizer", "name": "An Ion Thruster Simulation Program: Ionizer",
"location": { "location": {
"city": "Istanbul", "city": "Istanbul",
"country": "Turkey" "country": "Turkey"
}, },
"start_date": "2022-04-08", "start_date": "2022-04-08",
"highlights": [ "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.",
"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." "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" "url": "https://github.com/sinaatalay/Ionizer"
}, },
{ {
"name": "Design and Construction of a Dynamometer", "name": "Design and Construction of a Dynamometer",
"location": { "location": {
"city": "Istanbul", "city": "Istanbul",
"country": "Turkey" "country": "Turkey"
}, },
"highlights": [ "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.",
"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." "Id leo in vitae turpis massa sed, posuere aliquam ultrices sagittis orci a scelerisque, lorem ipsum dolor sit amet."
] ]
} }
], ],
"certificates": [ "certificates": [
{ {
"name": "Machine Learning by Stanford University", "name": "Machine Learning by Stanford University",
"date": "2022-09-01", "date": "2022-09-01",
"highlights": [], "highlights": [],
"url": "https://coursera.org/verify/MZDLHBUQSULA" "url": "https://coursera.org/verify/MZDLHBUQSULA"
} }
], ],
"skills": [ "skills": [
{ {
"name": "Programming", "name": "Programming",
"details": "C++, C, Python, JavaScript, MATLAB, Lua, LaTeX" "details": "C++, C, Python, JavaScript, MATLAB, Lua, LaTeX"
}, },
{ {
"name": "CAE", "name": "CAE",
"details": "GMSH, GetDP, CalculiX ——— show these in GitHub!!!" "details": "GMSH, GetDP, CalculiX ——— show these in GitHub!!!"
}, },
{ {
"name": "CAD", "name": "CAD",
"details": "FreeCAD, Siemens NX, SolidWorks ——— draw your projects with these to show on your website" "details": "FreeCAD, Siemens NX, SolidWorks ——— draw your projects with these to show on your website"
}, },
{ {
"name": "OS", "name": "OS",
"details": "Windows, Ubuntu, !!!macOS!!!" "details": "Windows, Ubuntu, !!!macOS!!!"
}, },
{ {
"name": "Other tools", "name": "Other tools",
"details": "Git, Premake, !!!CMake!!!, !!!PyTorch!!!, HTML, CSS, React" "details": "Git, Premake, !!!CMake!!!, !!!PyTorch!!!, HTML, CSS, React"
}, },
{ {
"name": "Languages", "name": "Languages",
"details": "English (Advanced), !!!French (Lower Intermediate)!!!, Turkish (Native)" "details": "English (Advanced), !!!French (Lower Intermediate)!!!, Turkish (Native)"
} }
], ],
"test_scores": [ "test_scores": [
{ {
"name": "TOEFL", "name": "TOEFL",
"date": "2022-10-01", "date": "2022-10-01",
"score": "113/120 — Reading: 29/30, Listening: 30/30, Speaking: 27/30, Writing: 27/30" "score": "113/120 — Reading: 29/30, Listening: 30/30, Speaking: 27/30, Writing: 27/30"
}, },
{ {
"name": "GRE", "name": "GRE",
"score": "Verbal Reasoning: 160/170, Quantitative Reasoning: 170/170, Analytical Writing: 5/6" "score": "Verbal Reasoning: 160/170, Quantitative Reasoning: 170/170, Analytical Writing: 5/6"
} }
], ],
"personalProjects": [ "personalProjects": [
{ {
"name": "Teaching Videos", "name": "Teaching Videos",
"highlights": [ "highlights": [
"Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date." "Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date."
], ],
"url": "https://youtube.com/c/SinaAtalay" "url": "https://youtube.com/c/SinaAtalay"
}, },
{ {
"name": "Teaching Videos", "name": "Teaching Videos",
"highlights": [ "highlights": [
"Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date." "Instructed the entire \"Engineering Mechanics: Dynamics\" course on YouTube that has garnered over 300,000 views to date."
], ],
"url": "https://youtube.com/c/SinaAtalay" "url": "https://youtube.com/c/SinaAtalay"
} }
], ],
"extracurricular_activities": [ "extracurricular_activities": [
{ {
"organization": "Alacati Surf Paradise Club (ASPC)", "organization": "Alacati Surf Paradise Club (ASPC)",
"position": "Windsurfing Instructor", "position": "Windsurfing Instructor",
"location":{ "location":{
"city": "Izmir", "city": "Izmir",
"country": "Turkey" "country": "Turkey"
}, },
"highlights": [ "highlights": [
"Taught windsurfing during summers as a Turkish Sailing Federation certified windsurfing instructor." "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}