posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
23.03k stars 4.79k forks source link

Support loading as submodule/directory #189

Open Thaodan opened 6 years ago

Thaodan commented 6 years ago

Currently its only possible to load the class when its loaded from the same dir as the tex file, even setting TEXINPUTS wont work. I tried to use "TEXINPUTS=.:./Awesome-CV: xelatex coverletter.tex" But it stops at

`Package hyperref Message: Driver (autodetected): hxetex.

(/usr/share/texmf-dist/tex/latex/hyperref/hxetex.def (/usr/share/texmf-dist/tex/generic/oberdiek/stringenc.sty) (/usr/share/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))) (./basis_info.tex) (./coverletter.aux) ABD: EverySelectfont initializing macros geometry driver: auto-detecting geometry detected driver: xetex ABD: EveryShipout initializing macros (/usr/share/texmf-dist/tex/latex/hyperref/nameref.sty (/usr/share/texmf-dist/tex/generic/oberdiek/gettitlestring.sty)) (./coverletter.out) (./coverletter.out)

Package hyperref Warning: Rerun to get /PageLabels entry.

Overfull \hbox (1.46pt too wide) in paragraph at lines 88--89 []$[]$ $[]$$[]$

Underfull \hbox (badness 10000) in paragraph at lines 88--89

! LaTeX Error: There's no line here to end. `

Thaodan commented 6 years ago

Ignore this it was my fault. But anyway, the class and the document itself should be better seperated. So that a import via git-submodule is eaysier. EDIT: the fontdir is still relativ to the class so it always needs to be in the dir where latex is run.

OJFord commented 6 years ago
% mycv.cls
\ProvidesClass{mycv}
\LoadClass{<name-of-subdir>/awesome-cv}

is all you need to load from a subdirectory.