Skip to content

Instantly share code, notes, and snippets.

@xudifsd
Created August 9, 2022 17:49
Show Gist options
  • Save xudifsd/ceabc75343c8202b293a3e89609ae915 to your computer and use it in GitHub Desktop.
Save xudifsd/ceabc75343c8202b293a3e89609ae915 to your computer and use it in GitHub Desktop.
use `xelatex cv.tex` to build
%# -*- coding:utf-8 -*-
\documentclass[11pt,a4paper]{moderncv}
\usepackage{fontspec,xunicode}
%\usepackage[slantfont,boldfont]{xeCJK}
\usepackage{xcolor} % replace by the encoding you are using
%\defaultfontfeatures{Mapping=tex-text}
%\XeTeXlinebreaklocale "zh"
%\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
% moderncv themes
\moderncvtheme[blue]{classic} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
\setmainfont{Lato}
%\moderncvtheme[green]{classic} % idem
%\moderncvtheme[blue,roman]{hht}
% character encoding
% indent first line in paragraph
% \usepackage{indentfirst}
% \parindent 2em
% adjust the page margins
\usepackage[scale=0.8, top=1.8cm, bottom=1.8cm, left=1.8cm, right=1.8cm]{geometry}
\setlength{\hintscolumnwidth}{1.5cm} % if you want to change the width of the column with the dates
%\AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}} % only for the classic theme, if you want to change the width of your name placeholder (to leave more space for your address details
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
% personal data
\firstname{Foo}
\familyname{Bar}
\address{XXX}{USA} % optional, remove the line if not wanted
\mobile{xxx} % optional, remove the line if not wanted
\email{xxx} % optional, remove the line if not wanted
\homepage{xxx}
%\photo{picture}
\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
\newcommand{\uhref}[2]{\underline{\href{#1}{#2}}}
\begin{document}
\maketitle
\vspace{-7mm}
\section{Working Experience}
\subsection{Title, Location}
\cvline{date}
{
Build XXX platform
\begin{description}
\item[$\bullet$] yyy
\item[$\bullet$] zzz
\end{description}
}
\subsection{Title, Location}
\cvline{date}
{
Build YYY service
\begin{description}
\item[$\bullet$] yyy
\item[$\bullet$] zzz
\end{description}
}
\section{Education}
\cvline{date}
{
M.S. in xxx school
}
\cvline{2009/09 \newline 2013/06}
{
B.S. in yyy school
}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment