- LaTeX Cookbook
- Stefan Kottwitz
- 640字
- 2021-07-09 21:24:58
Designing a curriculum vitae
Tabular layouts are very common today for the Curriculum Vitae (CV). When applying for a job, inform yourself about the typical requirements of the content of a CV. You can then create a simple document with tables, consistently and clearly readable.
If it needs to be made quickly or if you would like to base it upon a proven modern layout, you can use a template. In this recipe, we will use the moderncv
class and its template to quickly produce a CV.
Getting ready
If it's not already installed on your computer, download and install moderncv
from CTAN (http://ctan.org/tex-archive/macros/latex/contrib/moderncv).
If your TeX installation provides a package manager, use it for the installation.
There's a directory of examples, containing templates which you can use. Either locate it in the documentation branch of your TeX directory tree, or visit the preceding CTAN link for downloading.
How to do it...
We will start using a sample file provided by the moderncv
package. Perform these steps:
- Copy the file
template.tex
, into your document directory and rename it. Choose any name you like. I named it asMyCV.tex
. - Open that document, that is,
MyCV.tex
, and look around to understand the template. Luckily, it is full of comments on how to use it. Compile it to ensure that this document works. - Review and edit the class and package options in
MyThesis.tex
. - Remove the filler text and type in your own data. At the beginning, your document may look like this:
\documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry} \name{John}{Doe} \title{CV title} \address{street and number}{postcode city}{country} \phone[mobile]{+1~(234)~567~890} \phone[fixed]{+2~(345)~678~901} \email{john@doe.org} \homepage{www.johndoe.com} \photo[64pt][0.4pt]{ctanlion.pdf} \begin{document} \makecvtitle \section{Education} \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}% {Description} \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}% {Description} \section{Experience} \subsection{Vocational} \cventry{year--year}{Job title}{Employer}{City}{}% {General description\newline{}Detailed achievements:% \begin{itemize}% \item Achievement 1; \item Achievement 2, with sub-achievements: \begin{itemize}% \item Sub-achievement (a) \item Sub-achievement (b) \end{itemize} \item Achievement 3. \end{itemize}} \cventry{year--year}{Job title}{Employer}{City}{} {Description line 1\newline{}Description line 2} \subsection{Miscellaneous} \cventry{year--year}{Job title}{Employer}{City}{}{Description} \section{Languages} \cvitemwithcomment{Language 1}{Skill level}{Comment} \cvitemwithcomment{Language 2}{Skill level}{Comment} \end{document}
- Compile and take a look at the following result:
How it works...
We loaded the moderncv
package. We used 11 pt as the base font size; 10 pt and 12 pt are also supported. We selected A4 paper; other paper size options are a5paper
, letterpaper
, legalpaper
, and executivepaper
. You can also add the landscape
option. We chose a sans serif font, which is fine for such lists; alternatively, you could write Roman alphabets for a serif font.
We selected the classic
style. Other available styles are casual
, oldstyle
, and banking
.
Our color style is blue
. Other color options are orange
, green
, red
, purple
, gray
, and black
.
We loaded the geometry
package with a scaling factor for reducing the margins.
Using macros such as the \name
and \address
, we entered our personal data.
The \photo
command includes our photo; the size options are the height to which it is scaled and the thickness of the frame around the photo. In this recipe, we used the CTAN lion drawn by Duane Bibby for the photo.
The document body is divided into sections and subsections, just with a special design.
Then, the \cventry
command makes a typical resume entry for job or education. Use it as follows:
\cventry[spacing]{years}{job title} {employer}{localization}{detail}{job description}
Otherwise, you can use the following:
\cventry[spacing]{years}{degree} {institution}{localization}{grade}{comment}
You can leave the last four arguments empty if you don't need them.
A simpler line is created using \cvitem
, as follows:
\cvitem[optional spacing length{header}{text}
The \cvitemwithcomment
command works in a similar way, just with another argument that is printed at the right.
If you are looking for deeper information beyond this quick start guide, some more commands and options are explained in the very well-documented template.tex
file, as well as in the class file moderncv.cls
itself.
See also
The template file contains a letter template that you can use for an application. Another approach is explained in the next recipe.
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- 基于粒計算模型的圖像處理
- Visual Studio 2012 Cookbook
- Java異步編程實戰
- Learning Real-time Processing with Spark Streaming
- Servlet/JSP深入詳解
- 深入淺出Android Jetpack
- Xamarin.Forms Projects
- Python機器學習經典實例
- 劍指大數據:企業級數據倉庫項目實戰(在線教育版)
- HTML5+CSS3+jQuery Mobile APP與移動網站設計從入門到精通
- Clojure Polymorphism
- Application Development with Parse using iOS SDK
- C語言從入門到精通
- Spring Boot從入門到實戰