Skip to content

Commit

Permalink
Break URLs if too long (#6)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
RobPasMue authored Jul 3, 2022
1 parent 514a3f3 commit 219c78a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-cv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
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!
6 changes: 5 additions & 1 deletion src/cv/ROBERTO-PASTOR.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
%----------------------------------------------------------------------------------------
Expand All @@ -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{[email protected]} % Email address

%----------------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/cv/out/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 219c78a

Please sign in to comment.