From 219c78aeea30344f984345cafc99e1a52d143405 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela Date: Sun, 3 Jul 2022 01:45:42 -0700 Subject: [PATCH] Break URLs if too long (#6) * Use hyperref package + change to URL * Only run the Makefile stage if not on main * Configure font style for URLs to be the same * Update README * Remove leading spaces in lines of code * Update Makefile to work properly when cleaning --- .github/workflows/build-cv.yml | 1 + Makefile | 6 +++--- README.md | 32 ++++++++++++++++++++++++++++++-- src/cv/ROBERTO-PASTOR.tex | 6 +++++- src/cv/out/.gitignore | 2 ++ 5 files changed, 41 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-cv.yml b/.github/workflows/build-cv.yml index c1cb5a1..ce68e3e 100644 --- a/.github/workflows/build-cv.yml +++ b/.github/workflows/build-cv.yml @@ -16,6 +16,7 @@ concurrency: jobs: make_linux: name: Build with Makefile - Linux + if: github.ref != 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Set up Git repository diff --git a/Makefile b/Makefile index a2fd7b8..97ba8d1 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # The first rule in a Makefile is the one executed by default ("make"). It # should always be the "all" rule, so that "make" and "make all" are identical. -all: ROBERTO-PASTOR.pdf +all: clean ROBERTO-PASTOR.pdf # MAIN LATEXMK RULE @@ -17,7 +17,7 @@ all: ROBERTO-PASTOR.pdf # missing file reference and interactively asking you for an alternative. ROBERTO-PASTOR.pdf: src/cv/ROBERTO-PASTOR.tex - latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make ./src/cv/ROBERTO-PASTOR.tex -cd -auxdir=out -outdir=out + latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make src/cv/ROBERTO-PASTOR.tex -cd -auxdir=out -outdir=out clean: - latexmk -CA -outdir=src/cv/out -auxdir=src/cv/out + latexmk -CA src/cv/ROBERTO-PASTOR.tex -cd -auxdir=out -outdir=out diff --git a/README.md b/README.md index 804ec79..5c1691d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,35 @@ Project containing my one-page resume in LaTeX. The project consists on a main `tex` file named `ROBERTO-PASTOR.tex` which makes use of a template class `twentysecondcv.cls`. -This project also contains a Makefile for automating the build of the resume, and a GitHub workflow +This project also contains a `Makefile` for locally building the resume, and a GitHub workflow for automating its build, upload as an artifact and official release (when tags are used). -For more information, please contact its owner: [**RobPasMue**](https://github.com/RobPasMue). \ No newline at end of file +For more information, please contact its owner: [**RobPasMue**](https://github.com/RobPasMue). + +## Local build on Linux + +A `Makefile` for allowing local builds of the resume is provided. In order to use it, the following +requirements are needed: + +* The package `latexmk` +* The package `texlive-fonts-extra` + +For installing them, just run the following commands on Ubuntu: + +```bash +sudo apt-get update -y +sudo apt-get install -y latexmk texlive-fonts-extra +``` + +Once installed, go to the root directory of the repository and run: + +```bash +make all +``` + +This will automatically generate the resume at the `src/cv/out` folder. This command also cleans up +pre-existing compilations. If you want to clean it manually you can also run `make clean`. However, +`make all` will first clean the output directory and then run the compilation, so that there are no +conflicts with old files. + +Enjoy building your resume locally! diff --git a/src/cv/ROBERTO-PASTOR.tex b/src/cv/ROBERTO-PASTOR.tex index ca2e1e1..a6bf816 100644 --- a/src/cv/ROBERTO-PASTOR.tex +++ b/src/cv/ROBERTO-PASTOR.tex @@ -21,6 +21,10 @@ \documentclass[hidelinks,letterpaper]{twentysecondcv} % a4paper for A4 +\usepackage{hyperref} + +\urlstyle{same} % Force URLs to have the same font style as the rest of the document + %---------------------------------------------------------------------------------------- % PERSONAL INFORMATION %---------------------------------------------------------------------------------------- @@ -35,7 +39,7 @@ \cvdate{25 April 1995} % Date of birth \cvaddress{Madrid, Spain} % Short address/location, use \newline if more than 1 line is required \cvnumberphone{+34 671 22 66 52} % Phone number -\cvsite{https://www.linkedin.com/ in/RobertoPastorMuela} % Personal website +\cvsite{\url{https://www.linkedin.com/in/RobertoPastorMuela}} % Personal website \cvmail{roberpm1995@gmail.com} % Email address %---------------------------------------------------------------------------------------- diff --git a/src/cv/out/.gitignore b/src/cv/out/.gitignore index e69de29..c96a04f 100644 --- a/src/cv/out/.gitignore +++ b/src/cv/out/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file