diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c03d630..dec25a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,5 +10,4 @@ test: artifacts: paths: - - org-cv-exports - doc/public diff --git a/.gitmodules b/.gitmodules index 60df6fe..33c882c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "doc/themes/project-landing-page"] path = doc/themes/project-landing-page - url = https://github.com/nsomar/github-project-landing-page.git + url = https://github.com/Titan-C/github-project-landing-page.git diff --git a/doc/content/post/goal.md b/doc/content/post/goal.md new file mode 100644 index 0000000..c47b50e --- /dev/null +++ b/doc/content/post/goal.md @@ -0,0 +1,11 @@ ++++ +title = "Goal: Export backend for CV" +author = ["Óscar Nájera"] +draft = false +weight = 1001 ++++ + +This project aims to generate from an org-mode file with reasonably ordered +items a latex file which compiles into a reasonably nice CV. In the same +spirit the org-mode file must export to markdown so that it can be uses for +web based CV. diff --git a/doc/content/post/latex_export.md b/doc/content/post/latex_export.md index f9df014..d02078a 100644 --- a/doc/content/post/latex_export.md +++ b/doc/content/post/latex_export.md @@ -26,8 +26,13 @@ When exporting you can call the following function to get the latex file. ```emacs-lisp (org-export-to-file 'moderncv "moderncv.tex") +(org-latex-compile "moderncv.tex") ``` + +

Alternative text - include a link to the PDF!

+
+ ## Using alta-cv {#using-alta-cv} @@ -57,7 +62,7 @@ need to enclose it in the `\marginpar{}` command as shown next. - Free food - Free beer -* Programming Languages +* Programming - Python - C/C++ - EmacsLisp @@ -80,5 +85,10 @@ need to enclose it in the `\marginpar{}` command as shown next. When exporting you can call the following function to get the latex file. ```emacs-lisp -(org-export-to-file 'moderncv "moderncv.tex") +(org-export-to-file 'altacv "altacv.tex") +(org-latex-compile "altacv.tex") ``` + + +

Alternative text - include a link to the PDF!

+
diff --git a/genfiles.el b/genfiles.el index 7710088..6564263 100644 --- a/genfiles.el +++ b/genfiles.el @@ -26,9 +26,8 @@ (org-mode) (org-export-to-file backend outfile) (shell-command (format "pdflatex %s" outfile) "*Messages*" "*Messages*") - (copy-file (concat file ".pdf") cwd) + (copy-file (concat file ".pdf") (concat cwd "/doc/static")) )) (export-latex 'altacv "altacv.org") (export-latex 'moderncv "moderncv.org") -(copy-directory workdir cwd) diff --git a/readme.org b/readme.org index ae68eae..299b3f6 100644 --- a/readme.org +++ b/readme.org @@ -6,6 +6,10 @@ #+HUGO_SECTION: post #+HUGO_WEIGHT: auto +* Goal: Export backend for CV + :PROPERTIES: + :EXPORT_FILE_NAME: goal + :END: This project aims to generate from an org-mode file with reasonably ordered items a latex file which compiles into a reasonably nice CV. In the same spirit the org-mode file must export to markdown so that it can be uses for @@ -128,7 +132,14 @@ org file. When exporting you can call the following function to get the latex file. #+BEGIN_SRC emacs-lisp (org-export-to-file 'moderncv "moderncv.tex") +(org-latex-compile "moderncv.tex") #+END_SRC + +#+BEGIN_EXPORT md + +

Alternative text - include a link to the PDF!

+
+#+END_EXPORT ** Using alta-cv [[https://github.com/liantze/AltaCV][AltaCV]] is another project to generate a CV, you will need to install it yourself. I maintain a fork too at https://github.com/Titan-C/AltaCV.git @@ -139,7 +150,7 @@ The style of this CV is more involved and you need some configuration in your org file to get it to work. First define the margins, the large margin to the right is to allow for a second column. #+BEGIN_SRC org :tangle altacv.org -,#+LATEX_HEADER: \geometry{left=1cm,right=9cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm} +,#+LATEX_HEADER: \geometry{left=1cm,right=9cm,marginparwidth=7cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm} #+END_SRC # Next block is to generate exports #+BEGIN_SRC org :exports none :tangle altacv.org @@ -156,7 +167,7 @@ need to enclose it in the =\marginpar{}= command as shown next. - Free food - Free beer -,* Programming Languages +,* Programming - Python - C/C++ - EmacsLisp @@ -185,13 +196,27 @@ need to enclose it in the =\marginpar{}= command as shown next. When exporting you can call the following function to get the latex file. #+BEGIN_SRC emacs-lisp -(org-export-to-file 'moderncv "moderncv.tex") +(org-export-to-file 'altacv "altacv.tex") +(org-latex-compile "altacv.tex") #+END_SRC +#+BEGIN_EXPORT md + +

Alternative text - include a link to the PDF!

+
+#+END_EXPORT + + +* Docker container * Update readme -** TODO examples [0/2] -*** TODO pictures -*** TODO scripts +** TODO examples [2/2] +*** DONE pictures +- State "DONE" from "TODO" [2018-05-01 Tue 20:41] +The website generates the output pdfs, and the orgmode logo is just taken +from wikipedia commons by link. +*** DONE scripts +- State "DONE" from "TODO" [2018-05-01 Tue 20:40] +Now I can completely build a website from this readme and get the targeted CVs. * TODO Make a package Complete the file with license and how to load it. * DONE Base environment