summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-06-16 21:21:16 +0000
committerKarl Berry <karl@freefriends.org>2015-06-16 21:21:16 +0000
commit7c7be827c2068be528056c5f516ed9f14f35883e (patch)
tree041078bda652c75eb5c1e15bd77b5e0cc5268d9d /Master/texmf-dist/tex/xelatex
parentf2920717a15bfb890a45194a8d4441b975b42b53 (diff)
resumecls (16jun15)
git-svn-id: svn://tug.org/texlive/trunk@37570 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
-rw-r--r--Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls72
1 files changed, 32 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls b/Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls
index 25f3b72a895..8cdada2693f 100644
--- a/Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls
+++ b/Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2012-2013 by huxuan <i@huxuan.org>
+%% Copyright (C) 2012-2015 by huxuan <i@huxuan.org>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -28,13 +28,9 @@
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesClass{resumecls}
- [2013/03/17 v0.2.1 Celebrate for being included in CTAN]
-\newif\ifrcls@zh\rcls@zhtrue
-\newif\ifrcls@en\rcls@enfalse
-\newif\ifrcls@color\rcls@colorfalse
-\DeclareOption{zh}{\rcls@zhtrue\rcls@enfalse}
-\DeclareOption{en}{\rcls@entrue\rcls@zhfalse}
-\DeclareOption{color}{\rcls@colortrue}
+ [2015/06/17 v0.3 Long time no see, resumecls]
+\newif\ifrclscolor\rclscolorfalse
+\DeclareOption{color}{\rclscolortrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass[a4paper,12pt]{article}
@@ -45,7 +41,7 @@
\RequirePackage{color}
\RequirePackage{fancyhdr}
\definecolor{heading}{gray}{0.85}
-\ifrcls@color
+\ifrclscolor
\hypersetup{colorlinks}
\else
\hypersetup{hidelinks}
@@ -53,51 +49,47 @@
\RequirePackage[sort&compress]{natbib}
\bibliographystyle{unsrt}
\setlength{\bibsep}{0pt}
-\def\rcls@name{}
-\newcommand\name[1]{\def\rcls@name{#1}}
-\def\rcls@organization{}
-\newcommand\organization[1]{\def\rcls@organization{#1}}
-\def\rcls@address{}
-\newcommand\address[1]{\def\rcls@address{#1}}
-\def\rcls@mobile{}
-\newcommand\mobile[1]{\def\rcls@mobile{#1}}
-\def\rcls@mail{}
-\newcommand\mail[1]{\def\rcls@mail{#1}}
-\def\rcls@homepage{}
-\newcommand\homepage[1]{\def\rcls@homepage{#1}}
-\def\rcls@resumeurl{}
-\newcommand\resumeurl[1]{\def\rcls@resumeurl{#1}}
-\newcommand{\heading}[1]{
- \colorbox{heading}{
- \parbox{.96\textwidth}{
+\def\rclsname{}
+\newcommand\name[1]{\def\rclsname{#1}}
+\def\rclsorganization{}
+\newcommand\organization[1]{\def\rclsorganization{#1}}
+\def\rclsaddress{}
+\newcommand\address[1]{\def\rclsaddress{#1}}
+\def\rclsmobile{}
+\newcommand\mobile[1]{\def\rclsmobile{#1}}
+\def\rclsmail{}
+\newcommand\mail[1]{\def\rclsmail{#1}}
+\def\rclshomepage{}
+\newcommand\homepage[1]{\def\rclshomepage{#1}}
+\def\rclsleftfooter{}
+\newcommand\leftfooter[1]{\def\rclsleftfooter{#1}}
+\def\rclsrightfooter{}
+\newcommand\rightfooter[1]{\def\rclsrightfooter{#1}}
+\newcommand{\heading}[1]{%
+ \colorbox{heading}{%
+ \parbox{.98\textwidth}{%
\bfseries\zihao{4}#1
}
} \\
}
-\newcommand{\entry}[3]{
+\newcommand{\entry}[3]{%
\begin{tabularx}{\textwidth}{@{\hspace{#1}}#2}
#3
\end{tabularx}
}
-\renewcommand{\maketitle}{
- \entry{0em}{Xr}{
- \bfseries\zihao{4}\rcls@name & \rcls@mobile \\
- \rcls@organization & \href{mailto:\rcls@mail}{\rcls@mail} \\
- \rcls@address & \url{\rcls@homepage} \\
+\renewcommand{\maketitle}{%
+ \entry{0em}{Xr}{%
+ \bfseries\zihao{4}\rclsname & \rclsmobile \\
+ \rclsorganization & \href{mailto:\rclsmail}{\rclsmail} \\
+ \rclsaddress & \url{\rclshomepage} \\
}
}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
-\ifrcls@zh
- \CTEXoptions[today=small]
- \fancyfoot[L]{\footnotesize 最后更新:\today}
-\else
- \CTEXoptions[today=old]
- \fancyfoot[L]{\footnotesize Last Modified: \today}
-\fi
-\fancyfoot[R]{\footnotesize \url{\rcls@resumeurl}}
+\fancyfoot[L]{\footnotesize \rclsleftfooter}
+\fancyfoot[R]{\footnotesize \rclsrightfooter}
\renewcommand{\refname}{}
\endinput
%%