This repository contains the LaTeX code for my CV.
-
Prerequisites:
- Install Docker on your system.
-
Building and Running Docker Container:
- Ensure Docker is installed and running on your system.
- Open a terminal or command prompt.
- Build the Docker image using the provided Dockerfile:
docker build . --file .devcontainer/Dockerfile --tag latex-compiler
- Run the Docker container to compile the LaTeX code (Linux):
docker run --rm \ --volume $(pwd):/latex \ latex-compiler /bin/bash -c \ "cd /latex && make clean && make"
- Run the Docker container to compile the LaTeX code (Windows):
docker run --rm ` --volume ${PWD}:/latex ` latex-compiler /bin/bash -c ` "cd /latex && make clean && make"
When you first run Docker with the provided configuration, it may take more time as the Docker engine builds the container based on the Dockerfile in the .devcontainer
directory. Subsequent runs should be faster as Docker caches the built container.
-
Prerequisites:
- Install LaTeX distribution (e.g., TeX Live or MiKTeX) on your system. You can install TeX Live on Ubuntu using the following command:
sudo apt-get -y install \ texlive-latex-base \ texlive-latex-extra \ texlive-extra-utils \ texlive-fonts-extra \ texlive-fonts-recommended \ texlive-xetex \ texlive-pstricks \ biber chktex latexmk make python3-pygments python3-pkg-resources
- Install LaTeX distribution (e.g., TeX Live or MiKTeX) on your system. You can install TeX Live on Ubuntu using the following command:
-
Compilation:
- Open a terminal or command prompt.
- Navigate to the directory containing the LaTeX files.
- Run the following command to compile the LaTeX code using
xelatex
:xelatex -output-directory=build ariccio_cv.tex
- On Linux, you can use the provided script:
make
The Docker configuration provided in this repository is compatible with the LaTeX Workshop extension for Visual Studio Code. To use the Docker configuration effectively, ensure you have the following extensions installed in Visual Studio Code:
-
Docker Extension: Install the Docker extension for VS Code to manage Docker containers and images directly from the editor.
-
Remote - Containers Extension: Install the Remote - Containers extension for VS Code to enable development in containers. This extension allows you to seamlessly develop inside Docker containers, providing a consistent environment across different machines.
With these extensions installed, you can use the Docker configuration provided in this repository with the LaTeX Workshop extension for editing and compiling LaTeX documents directly within VS Code.
To set up the Docker configuration with the LaTeX Workshop extension:
- Install the Docker extension and the Remote-Containers extension in Visual Studio Code.
- Open your LaTeX project in VS Code.
- Ensure Docker is installed and running on your system.
- Execute
Remote-Containers: Reopen in Container
in the VS Code Command Palette.
When you first run Docker with the provided configuration, it may take more time as the Docker engine builds the container based on the Dockerfile in the .devcontainer
directory. Subsequent runs should be faster as Docker caches the built container.
This repository is configured to use GitHub Actions for automated LaTeX compilation whenever a new tag is created. The workflow includes the following steps:
- Check out the code from the repository.
- Build Docker image for LaTeX compilation.
- Compile LaTeX code using the Docker container.
- Create a release with the generated PDF as an asset.
The PDF file corresponding to each tagged release can be found in the releases section.
The compiled PDF file for the latest release can be found in the releases section.
- https://github.com/spagnuolocarmine/TwentySecondsCurriculumVitae-LaTex
- https://www.overleaf.com/articles/sonu-kumars-cv/zbfzwzctwptn
- https://github.com/James-Yu/LaTeX-Workshop/wiki/Install#using-docker
- https://code.visualstudio.com/docs/devcontainers/create-dev-container
- https://code.visualstudio.com/docs/containers/overview