diff options
author | Aaron LI <aly@aaronly.me> | 2018-04-17 16:14:00 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-04-17 16:14:00 +0800 |
commit | ae05563a06943a111d98c937ff4945c746d62f78 (patch) | |
tree | 8174b532199fb60dd13d35e64d9df0a696dc8bd2 | |
parent | 999dce2518db9f0a83f870d877dd0600fc0228e7 (diff) | |
download | resume-ae05563a06943a111d98c937ff4945c746d62f78.tar.bz2 |
resume.cls: cleanup, add position/location, bump to version v2.1.0class-v2.1.0
* Move 'a4paper' option to 'gemoetry' package
* Enhance 'geometry' options to drop the 'fullpage' package
* Do not use 'ulem' package (underline is not recommended in general)
* Do not setup xeCJK when 'zh' option not specified
* Add position & location support
* Bump to version 2.1.0
-rw-r--r-- | resume.cls | 37 |
1 files changed, 24 insertions, 13 deletions
@@ -12,8 +12,8 @@ %% https://www.latextemplates.com/template/plasmati-graduate-cv %% -\ProvidesClass{resume}[2018/04/11 v2.0.0 'Resume' Class] -\LoadClass[a4paper]{article} +\ProvidesClass{resume}[2018/04/17 v2.1.0 Resume Class] +\LoadClass{article} %% %% Class options @@ -28,13 +28,16 @@ %% Packages %% +\RequirePackage[% + a4paper,% + margin=1.5cm,% + includefoot, +]{geometry} \RequirePackage{xparse} \RequirePackage{etoolbox} \RequirePackage{fontspec} \RequirePackage{fontawesome} -\RequirePackage{parskip} -\RequirePackage{fullpage} -\RequirePackage[margin=1.5cm]{geometry} +\RequirePackage{parskip} % auto adjust parskip and items skip \RequirePackage{titlesec} \RequirePackage{enumitem} \RequirePackage{setspace} @@ -43,14 +46,13 @@ \RequirePackage{makecell} % multirowcell \RequirePackage{longtable} \RequirePackage[usenames,dvipsnames]{xcolor} -\RequirePackage[skins]{tcolorbox} \RequirePackage{tikz} -\RequirePackage{ulem} -%\ifdef{\@zh}{ +\RequirePackage[skins]{tcolorbox} % required by tikz to make the header +\RequirePackage{csquotes} +\RequirePackage{microtype} +\ifdef{\@zh}{ \RequirePackage{xeCJK} - \RequirePackage{CJKulem} - \RequirePackage{csquotes} -%}{} +}{} % % Hyperref @@ -91,12 +93,12 @@ \setmonofont{M+ 1mn} % Chinese setup -%\ifdef{\@zh}{ +\ifdef{\@zh}{ \xeCJKsetup{PunctStyle=hangmobanjiao} \setCJKmainfont{Noto Serif CJK SC}[BoldFont=Noto Sans CJK SC] \setCJKsansfont{Noto Sans CJK SC} \setCJKmonofont{Noto Sans Mono CJK SC} -%}{} +}{} % Color setup \ifdef{\@monochrome}% @@ -216,6 +218,15 @@ } %% +%% Position and location +%% + +\newcommand*{\setposition}[1]{\def\@position{#1}} +\newcommand*{\getposition}{\@position} +\newcommand*{\setlocation}[1]{\def\@location{#1}} +\newcommand*{\getlocation}{\@location} + +%% %% Header %% |