mrzool / cv-boilerplate Goto Github PK
View Code? Open in Web Editor NEWProgrammatic generation of high-quality CVs
Home Page: http://mrzool.cc/tex-boilerplates/
Programmatic generation of high-quality CVs
Home Page: http://mrzool.cc/tex-boilerplates/
When a variable includes a number directly followed by a period, Pandoc fails at compiling the template. This seems to be caused by Pandoc recognizing the content of that variable as a list, specifically a \tightlist.
In the "details.yml" I have this section:
education:
- year: 2003-2007
institute: 91. Grundschule "Am Sand"
city: Dresden
when I run make
, I get:
! Undefined control sequence.
<argument> ... \setcounter {enumi}{90} \tightlist
\item Grundschule ``Am San...
l.114 \end{enumerate}}
pandoc: Error producing PDF
make: *** [output.pdf] Error 43
I've read through countless threads about it on the Pandoc issues page and on http://tex.stackexchange.com. I implemented the changes in "template.tex" suggested there:
\begin{document}
...
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
...
$if(education)$
\section*{Schulbildung}
\begingroup
\let\tightlist\relax
\noindent
$for(education)$
\note{$education.year$}$if(education.subject)$\emph{$education.subject$}$if(education.degree)$, $education.degree$$endif$\\$endif$\textsc{$education.institute$}$if(education.city)$, $education.city$$endif$\\[.2cm]
$endfor$
\endgroup
$endif$
...
\end{document}
This way Pandoc ran without error. But it still produced the variable's content as a list including line breaks and indentation:
You can see by the first of the two entries how it is usually formatted. The second one is all messed up.
I've been meddling with this for one and a half days now. If someone knows how to make sure that Pandoc does not treat a variable's content as list, please share your insights. I really appreciate it.
I created a question about this on stack overflow :) its about the make file
thought maybe you could help out, as its your code initially ;)
it basically tells the following:
Say i have the following files:
makefile
file1_ENG.yaml
file2_NL.yaml
template.tex
I would like to have the makefile output pdf files from all the yaml files.
So in this case, 2 pdf's with the same names, file1_ENG.pdf & file2_NL.pdf.
Currently I have:
TEX = pandoc
src = template.tex $(wildcard *.yml)
FLAGS = --latex-engine=xelatex
file1_ENG.pdf : $(src)
$(TEX) $(filter-out $<,$^ ) --verbose -o $@ --template=$< $(FLAGS)
.PHONY: clean
clean :
rm file1_ENG.pdf
dont know if the wildcard thing is working.. also how to get the names of the imported files and use these as output filenames?
Hi, great repo. I'm looking for some help editing the template.tex file, I'm very likely doing something wrong but I can't seem to get the formatting that I want.
I want to have optional items within a category. See below: I'd like to differentiate between an undergrad degree project and a graduate thesis. But when I make the pdf, if a category doesn't have a given entry (here, either "thesis" or "capstone"), it still produces a new line.
I've tried moving around or removing the \\
items, but can't get it to work.
Any advice on getting consistent formatting? Thanks!
education:
- year: 2018--Present
subject: Engineering
degree: PhD
institute: University of Somewhere
department: Department of Engineering
city: City
thesis: Study of something.
supervisor: Prof Jack
- year: 2016--2018
subject: Engineering
degree: MSc
institute: University of Somewhere Else
department: Department of Engineering
city: Town
thesis: Research about topic.
supervisor: Prof Jill
- year: 2011--2015
subject: Engineering
minor: Art
degree: BASc
institute: University of Nowhere
department: Department of Engineering
city: Nowhere.
capstone: Undergrad project title.
supervisor: Prof Bob
$if(education)$
\section*{Education}
\noindent
$for(education)$
\note{$education.year$}\textbf{$education.subject$}$if(education.degree)$, $education.degree$\\$endif$
$education.department$, \emph{$education.institute$}\\
$if(education.thesis)$Thesis: $education.thesis$\\$endif$
$if(education.capstone)$Capstone project: $education.capstone$\\$endif$
$if(education.supervisor)$Supervisor: $education.supervisor$$endif$\\[.2cm]
Hi Mattia,
I have published the following Medium post | gitlab repo
Please give it a read :) and maybe refer to it on this repo readme.md :)
thanks for your time
I get the following
$ make
pandoc details.yml -o output.pdf --latex-engine=xelatex --template=template.tex
pandoc: Could not parse YAML header: mapping values are not allowed in this context "source" (line 40, column 40)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.33 ...[Ligatures={Common}, Numbers={OldStyle}]{}
pandoc: Error producing PDF from TeX source
make: *** [output.pdf] Error 43
my details.yml
looks something like
---
# Personal details
# Insert URLs without http://
urls:
# Sections
skills:
experience:
education:
# Settings
mainfont: Times New Roman
fontsize: 10pt
lang: English
geometry: a4paper, left=35mm, right=35mm, top=51mm, bottom=17mm
---
Sorry if I'm missing something obvious but I can't seem to get the "experience" section to show up. I cloned the repo and ran make
again but it doesn't have it included. If I delete the if statement in the template.tex file, it works.
Thanks!
This clone command doesn't work for me:
git clone [email protected]:mrzool/cv-boilerplate.git && cd cv-boilerplate && rm -rf .git
Cloning into 'cv-boilerplate'...
Warning: Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I think you want:
git clone https://github.com/mrzool/cv-boilerplate.git && cd cv-boilerplate && rm -rf .git
Hello. I'm following the readme on osx. And I installed the BasicTEX distribution. But the tlmgr
cli tool is not available yet. Any thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.