How to separate each section in moderncv to different .tex files and include it in main file so that it becomes handy. Consider separating each sections Education to Education.tex, Experience to Experience.tex etc and include in main file.

How can this be accomplished?


This is quite easy with help of standalone package:

main document:

 % other package which you use

Files Education, Experience you write as

.. other used packages
    <content of your file>

On this way you can compile each file independently and use in the main file (as stated David Carlisle in his answer, when you like to form complete document.

Edit: For details, how to use standalone package, see the manual of package. There is describe more scenarios, how to use them. Of course, you can make simple text files without of possibilities of their compilation outside of main document.

The CV is usually short document, so its dividing into more (sub)files is not very sensible, however, if you do so, than their direct compilation become handy.

| improve this answer | |

As for any tex file, just place the sections in separate files and then in your main file have


to input the contents of Experience.tex at that point.

| improve this answer | |

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.