From 5c798b9068e7700ca89b6a5568a59f70f8d599ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Thu, 19 Apr 2018 03:07:52 +0200 Subject: [PATCH] building the cv files --- doc/content/post/basic_config.md | 2 +- doc/smile.png | Bin 0 -> 4946 bytes genfiles.el | 33 +++++++++++++++++++++++++++++++ readme.org | 24 +++++++++++----------- 4 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 doc/smile.png create mode 100644 genfiles.el diff --git a/doc/content/post/basic_config.md b/doc/content/post/basic_config.md index 5b4d1d4..73e96ed 100644 --- a/doc/content/post/basic_config.md +++ b/doc/content/post/basic_config.md @@ -36,7 +36,7 @@ foreseen job. #+GITHUB: Titan-C #+GITLAB: Titan-C #+LINKEDIN: oscar-najera -#+PHOTO: smile.jpg +#+PHOTO: smile.png ``` You can use org-modes hierarchical structure to describe your CV. To make a diff --git a/doc/smile.png b/doc/smile.png new file mode 100644 index 0000000000000000000000000000000000000000..96ca071b6a3f4bd657ef279056d949a84a632981 GIT binary patch literal 4946 zcmV-Y6RqrtP)t&=$%jo2f?4GT*3Nvz)!&5>f;1pR zz-nLw4g4}T)Q@)pW&tyRI8Po>t5tMp6F|%68bX34q9fIW21^76sxTTYla}_M`)!0BeC%um6pYsBa?l0u})eAm)6R2nm)L(l3PJ14HPZ7(|zZ zKoaA%XahZOuEA&_InBU@G$ZFzDmZYYoP)>9Dc9FH1DSvgz*69}$3NyH>Wc^ifyKc6 z?tZgp*B~a2iD2ZAPzLo0AuvGsrWq?O96nLbzJq0K`cB803l;8ewE$azSAe66H^c${ zCPFjdd0;+b{kxUyO#jpV(er}30&L$gJzom#zHW!keTjlB&3-BrM43Oim zcKC}367U$}O={+Nu}7C67R+hRl(CU$)D6#|RhcY&wWFBjD|0!UY;bi;0q|GgBmBTo z`J)FCfX{%zju-m(3TENlSneMcfvVyA-U((iY~QV8*$25CKdpCl%P+um#6qqZliA>V)}%rM%nqUuwzdNPdtBxt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U2y>CHh;%c}5W#dq5dpIz5MqN;psf0PK0>H=9%0s*1Y{r<+(w802VlTxFeIwh Q6aWAK07*qoM6N<$g51kn)&Kwi literal 0 HcmV?d00001 diff --git a/genfiles.el b/genfiles.el new file mode 100644 index 0000000..754df70 --- /dev/null +++ b/genfiles.el @@ -0,0 +1,33 @@ +;; remember the current directory, find-file changes it +(defvar cwd default-directory) +(defvar workdir "/tmp/org-cv-exports/") +(find-file "/tmp/install-org.el") +(eval-buffer) + +(add-to-list 'load-path cwd) + +(require 'ox-moderncv) + +(require 'ox-altacv) + +(let ((readme (concat cwd "readme.org"))) + (find-file readme) + (make-directory workdir t) + (cd workdir) + (org-babel-tangle)) + +(copy-file (concat cwd "doc/smile.png") workdir) + +(defun export-latex (file) + (let ((workfile (concat workdir file)) + (outfile (concat workdir file ".tex"))) + (message (format "%s exists: %s" workfile (file-exists-p workfile))) + (find-file workfile) + (org-mode) + (org-export-to-file 'altacv outfile) + (org-latex-compile outfile) + )) + +(export-latex "altacv.org") +(message "yo") +(copy-directory workdir cwd) diff --git a/readme.org b/readme.org index f239b28..098cf57 100644 --- a/readme.org +++ b/readme.org @@ -51,7 +51,7 @@ foreseen job. | LINKEDIN | Linkedin username | | PHOTO | path to photo file | -#+BEGIN_SRC org :tangle doc/basic_cv.org +#+BEGIN_SRC org :tangle basic_cv.org ,#+TITLE: My dream job ,#+AUTHOR: John Doe @@ -62,7 +62,7 @@ foreseen job. ,#+GITHUB: Titan-C ,#+GITLAB: Titan-C ,#+LINKEDIN: oscar-najera -,#+PHOTO: smile.jpg +,#+PHOTO: smile.png #+END_SRC You can use org-modes hierarchical structure to describe your CV. To make a @@ -70,7 +70,7 @@ specific subtree an item describing an experience point (Job you have, degree you pursued, etc.) you use the org properties drawer and with the =:CV_ENV: cventry= property. You should also include the =FROM= and =TO= properties defining the span of the event, as =LOCATION= and =EMPLOYER=. -#+BEGIN_SRC org :tangle doc/workcontent.org +#+BEGIN_SRC org :tangle workcontent.org ,* Employement ,** One job :PROPERTIES: @@ -111,7 +111,7 @@ Feel free to use any or even your personal fork for your desired use case. To configure the export for moderncv you need the addition options in your org file. -#+BEGIN_SRC org :tangle doc/moderncv.org +#+BEGIN_SRC org :tangle moderncv.org # CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking' ,#+CVSTYLE: banking # CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black' @@ -119,7 +119,7 @@ org file. #+END_SRC # Next block is to generate exports -#+BEGIN_SRC org :exports none :tangle doc/moderncv.org +#+BEGIN_SRC org :exports none :tangle moderncv.org #+include: basic_cv.org #+include: sideactivities.org #+include: workcontent.org @@ -137,19 +137,19 @@ sections branch. 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 doc/altacv.org +#+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} #+END_SRC # Next block is to generate exports -#+BEGIN_SRC org :exports none :tangle doc/altacv.org +#+BEGIN_SRC org :exports none :tangle altacv.org #+include: basic_cv.org #+END_SRC Content on the right column has the same structure of a org file, but you need to enclose it in the =\marginpar{}= command as shown next. -#+BEGIN_SRC org :tangle doc/altacv.org +#+BEGIN_SRC org :tangle altacv.org ,#+latex: \marginpar{ #+END_SRC -#+BEGIN_SRC org :tangle doc/sideactivities.org +#+BEGIN_SRC org :tangle sideactivities.org ,* Main Interests - Free/Libre and Open Source Software (FLOSS) - Free food @@ -171,14 +171,14 @@ need to enclose it in the =\marginpar{}= command as shown next. - *French* Intermediate #+END_SRC # Next block is to generate exports -#+BEGIN_SRC org :exports none :tangle doc/altacv.org +#+BEGIN_SRC org :exports none :tangle altacv.org #+include: sideactivities.org #+END_SRC -#+BEGIN_SRC org :tangle doc/altacv.org +#+BEGIN_SRC org :tangle altacv.org ,#+latex: } #+END_SRC # Next block is to generate exports -#+BEGIN_SRC org :exports none :tangle doc/altacv.org +#+BEGIN_SRC org :exports none :tangle altacv.org #+include: workcontent.org #+END_SRC