I have my CV on LyX/Latex. It contains many different sections like publications, conferences, proceedings, etc. I would like to export it to HTML in order to create a website, so that each of the sections can be a sub-page of the website, is this possible?


Sure, it is possible using tex4ht. Here is a simple MWE:


\section{Hello world}


\section{Another section}


It can be compiled using

make4ht sample.tex 2

The option 2 after TeX file does the trick. It specifies the sectioning level, which should be used for page splitting. Section is second level, therefore we need to use 2, levels 1-4 are supported.

The example produces three html documents, first contains table of contents, the other two are for contents of the sections.


enter image description here

the first section:

enter image description here

The links at the top can be removed if you want.

  • thanks a lot! Last thing, can this be integrated into LyX? – Open the way Feb 8 '17 at 8:09
  • @flow I don't know about LyX, it should be possible to integrate it if it is possible to add custom compiler – michal.h21 Feb 8 '17 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.