Xelatex Resume Template – xelatex resume template
LaTeX is a book arrangement which lets you aftermath .pdf from antecedent code. This abstraction of alleviative ‘documents as source-code’ has some able benefits. You can abundance LaTeX markup in a VCS athenaeum to administer assorted versions of your document. This column is about how to automate your LaTeX workflow, which is accumulation the antecedent cipher and breeding pdf file, application Jenkins Pipeline.
So why do we charge to actualize a workflow rather than aloof accumulation the LaTeX certificate and archetype the .pdf to your Drive/Dropbox/Email? If you accept been application LaTeX, you would apperceive the affliction of advancement the latest adaptation of it. Allowances of creating a Jenkins server to automate the LaTeX workflow:
Let’s get the affair started.
I am application Overleaf, an online LaTeX editor with compiler, which is affiliated with my GitHub annual to let me accomplish changes anon from Overleaf. This adviser ability advice you set it up.
You charge to apperceive a little bit about Jenkins activity workflow. There is an accomplished tutorial on Jenkins docs which helps you accept how Jenkins activity works central a docker.
Minimum accouterments requirements:
Download and install Docker and Jenkins/Blueocean alembic — see this.
The aloft command: 1) Maps the /var/jenkins_home agenda in the alembic to the Docker aggregate with the name jenkins-data. If this aggregate does not exist, again this docker run command will automatically actualize the aggregate for you.
2) Maps the $HOME agenda on the host (i.e. your local) apparatus (usually the /Users/<your-username> directory) to the /home agenda in the container.
Save your activity cipher as ‘Jenkinsfile’ in the basis agenda of your LaTeX athenaeum and accomplish the changes. The activity cipher should be cocky allegorical if you accept gone through the Jenkins tutorial.
Now Blue Ocean will automatically body your activity for you based on your Jenkinsfile.
Select adept (if that is the annex absolute Jenkinsfile) to appearance the process.
The Body action ability booty a little time as the docker alembic of XeLaTeX is about ~3 GB.
After the Body footfall you should acquisition your sample.pdf placed into the workspace agenda (within the/var/jenkins_home/workspace/overleaf-resume_master agenda in the Jenkins container).
Basically, lets you admission the Jenkins/Blue Ocean alembic (through a abstracted terminal/command alert window) with a docker exec command.
After accepting the Docker back-bite prompt:
Now accessible a terminal on your bounded apparatus and if you are application Ubuntu:
to see your generated pdf.
To ascertain installed plugins:
Go to http://localhost:8080/about and acquisition Broadcast Over Dropbox from the account of License and annex advice for plugins to ensure the plugin is accurately installed.
You charge to specify the area you ambition to accelerate the consistent sample.pdf to.
You charge a Groovy calligraphy to assassinate the plugin, you can accredit to the doc actuality or utilise the atom architect to get the Groovy calligraphy for accomplish of pipeline.
Get Atom Generator:
Snippet Architect generates the script:
You may now archetype the aloft Calligraphy and annul this Job (or Item).
Modify your Jenkinsfile to add the arrange stage:
Commit the changes to your SCM.
Rebuild your activity in Jenkins Archetypal or Blueocean whichever makes you feel comfortable. The sample.pdfis generated and appear to your Dropbox folder.
You can host this Jenkins server on Heroku or Digital Ocean for the workflow to automatically body the athenaeum and broadcast the .pdfto your Dropbox everytime you accomplish changes to your repository.
Leave a few catch if this helps 😃