1
0
Fork 0

Clean readme a bit more and use my git repo for template

This commit is contained in:
Óscar Nájera 2018-05-01 20:44:16 +02:00
parent fdfae8168f
commit dbf1d5c611
6 changed files with 56 additions and 12 deletions

View File

@ -10,5 +10,4 @@ test:
artifacts: artifacts:
paths: paths:
- org-cv-exports
- doc/public - doc/public

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "doc/themes/project-landing-page"] [submodule "doc/themes/project-landing-page"]
path = 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

11
doc/content/post/goal.md Normal file
View File

@ -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.

View File

@ -26,8 +26,13 @@ When exporting you can call the following function to get the latex file.
```emacs-lisp ```emacs-lisp
(org-export-to-file 'moderncv "moderncv.tex") (org-export-to-file 'moderncv "moderncv.tex")
(org-latex-compile "moderncv.tex")
``` ```
<object data="/moderncv.org.pdf" type="application/pdf" width="100%" height="500px">
<p>Alternative text - include a link <a href="/moderncv.org.pdf">to the PDF!</a></p>
</object>
## Using alta-cv {#using-alta-cv} ## Using alta-cv {#using-alta-cv}
@ -57,7 +62,7 @@ need to enclose it in the `\marginpar{}` command as shown next.
- Free food - Free food
- Free beer - Free beer
* Programming Languages * Programming
- Python - Python
- C/C++ - C/C++
- EmacsLisp - 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. When exporting you can call the following function to get the latex file.
```emacs-lisp ```emacs-lisp
(org-export-to-file 'moderncv "moderncv.tex") (org-export-to-file 'altacv "altacv.tex")
(org-latex-compile "altacv.tex")
``` ```
<object data="/altacv.org.pdf" type="application/pdf" width="100%" height="500px">
<p>Alternative text - include a link <a href="/altacv.org.pdf">to the PDF!</a></p>
</object>

View File

@ -26,9 +26,8 @@
(org-mode) (org-mode)
(org-export-to-file backend outfile) (org-export-to-file backend outfile)
(shell-command (format "pdflatex %s" outfile) "*Messages*" "*Messages*") (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 'altacv "altacv.org")
(export-latex 'moderncv "moderncv.org") (export-latex 'moderncv "moderncv.org")
(copy-directory workdir cwd)

View File

@ -6,6 +6,10 @@
#+HUGO_SECTION: post #+HUGO_SECTION: post
#+HUGO_WEIGHT: auto #+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 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 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 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. When exporting you can call the following function to get the latex file.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(org-export-to-file 'moderncv "moderncv.tex") (org-export-to-file 'moderncv "moderncv.tex")
(org-latex-compile "moderncv.tex")
#+END_SRC #+END_SRC
#+BEGIN_EXPORT md
<object data="/moderncv.org.pdf" type="application/pdf" width="100%" height="500px">
<p>Alternative text - include a link <a href="/moderncv.org.pdf">to the PDF!</a></p>
</object>
#+END_EXPORT
** Using alta-cv ** Using alta-cv
[[https://github.com/liantze/AltaCV][AltaCV]] is another project to generate a CV, you will need to install it [[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 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 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. to the right is to allow for a second column.
#+BEGIN_SRC org :tangle 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} ,#+LATEX_HEADER: \geometry{left=1cm,right=9cm,marginparwidth=7cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm}
#+END_SRC #+END_SRC
# Next block is to generate exports # Next block is to generate exports
#+BEGIN_SRC org :exports none :tangle altacv.org #+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 food
- Free beer - Free beer
,* Programming Languages ,* Programming
- Python - Python
- C/C++ - C/C++
- EmacsLisp - 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. When exporting you can call the following function to get the latex file.
#+BEGIN_SRC emacs-lisp #+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 #+END_SRC
#+BEGIN_EXPORT md
<object data="/altacv.org.pdf" type="application/pdf" width="100%" height="500px">
<p>Alternative text - include a link <a href="/altacv.org.pdf">to the PDF!</a></p>
</object>
#+END_EXPORT
* Docker container
* Update readme * Update readme
** TODO examples [0/2] ** TODO examples [2/2]
*** TODO pictures *** DONE pictures
*** TODO scripts - 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 * TODO Make a package
Complete the file with license and how to load it. Complete the file with license and how to load it.
* DONE Base environment * DONE Base environment