I've written my CV in moderncv
template.
Now I'm looking for a fast way to create an HTML version of my CV in order to use it in my website.
Any idea?
conversionhtmllatex2htmlmoderncv
I've written my CV in moderncv
template.
Now I'm looking for a fast way to create an HTML version of my CV in order to use it in my website.
Any idea?
Best Answer
I'm afraid there's no easy solution. As Marco stated, a CV requires attention and better control. I'll present a solution I use, though it's not totally LaTeX based. Here comes
sphinx
.According to the website,
sphinx
is a tool that makes it easy to create intelligent and beautiful documentation, written by Georg Brandl and licensed under the BSD license. It requires Python.sphinx
is mainly used for documentation, but it's generic enough to be used everywhere.It's a very straighforward process. Let's say I want to create an online CV for John Doe. I simply run
sphinx-quickstart
and answer a few questions. After running it, you will haveindex.rst
- we put the content here - andconf.py
- the configuration file.sphinx
also creates bothMakefile
andmake.bat
for generating the outputs we want.The
rst
format stands for reStructuredText, plain text markup syntax, very similar to Markdown. You will see, there's no secret.Now, I'll open my
index.rst
file and type the following content:That's it, plain and simple. Now I just need to run
make html
. The output:If you want to change the theme, there are some predefined ones, say,
nature
. Openconf.py
and find the following line:Simply replace
default
bynature
. The new output:Note: You can tweak all elements of the page, e.g. removing the search box, but I can't remember right now.
:)
sphinx
can also generate atex
file. Go withmake latex
and the.tex
file (and other styles) will be generated:OK, LaTeX output doesn't look so great.
:)
As I said, the most common use ofsphinx
is to generate documentation, but we can easily tweak ourtex
file to look more pleasant to the eye.I've seen entire sites written with
sphinx
. You can create great looking HTML pages with ease. Use one of the predefined themes or come up with our own.:)