diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-10 22:35:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-10 22:35:47 +0000 |
commit | 6380d0315e1132891b4735999c26b0a41e6d1aaa (patch) | |
tree | bbd947c4e4d9a7a1a16aeb1caba5e39954fee094 | |
parent | 24c665a0318bee395de0d1f35c1174119174e644 (diff) |
resumecls (10mar13)
git-svn-id: svn://tug.org/texlive/trunk@29332 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/xelatex/resumecls/Makefile | 120 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/resumecls/README | 116 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/resumecls/config-sample.mk | 16 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/resumecls/example-en.tex | 96 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/resumecls/example-zh.tex | 96 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/resumecls/example.bib | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/resumecls/resumecls.pdf | bin | 0 -> 74326 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/xelatex/resumecls/resumecls.dtx | 386 | ||||
-rw-r--r-- | Master/texmf-dist/source/xelatex/resumecls/resumecls.ins | 62 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls | 104 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 3 | ||||
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-publishers.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/resumecls.tlpsrc | 0 |
14 files changed, 1012 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/xelatex/resumecls/Makefile b/Master/texmf-dist/doc/xelatex/resumecls/Makefile new file mode 100644 index 00000000000..7dc22dcbc7e --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/resumecls/Makefile @@ -0,0 +1,120 @@ +# +----------------------------------------------------------------------------- +# | File: Makefile +# | Author: huxuan +# | E-mail: i(at)huxuan.org +# | Created: 2012-12-18 +# | Last modified: 2012-12-19 +# | Description: +# | Makefile for resumecls +# | +# | Copyrgiht (c) 2012 by huxuan. All rights reserved. +# | License GPLv3 +# +----------------------------------------------------------------------------- + +include config.mk +EXAMPLE=example +EXAMPLEZH=example-zh +EXAMPLEEN=example-en + +PACKAGE=resumecls + +.PHONY: all cls doc example example-zh example-en resume resume-zh resume-en +.PHONY: clean distclean + +all: doc example-zh example-en + +# cls + +cls: $(PACKAGE).cls + +$(PACKAGE).cls: $(PACKAGE).ins $(PACKAGE).dtx + latex $(PACKAGE).ins + +# doc + +doc: $(PACKAGE).pdf + +$(PACKAGE).pdf: $(PACKAGE).cls + xelatex $(PACKAGE).dtx + makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx + makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo + xelatex $(PACKAGE).dtx + xelatex $(PACKAGE).dtx + +# example + +example: example-zh example-en + +# example-zh + +example-zh: $(EXAMPLEZH).pdf + +$(EXAMPLEZH).pdf: $(PACKAGE).cls $(EXAMPLEZH).tex $(EXAMPLEZH).bbl + xelatex $(EXAMPLEZH).tex + xelatex $(EXAMPLEZH).tex + +$(EXAMPLEZH).bbl: + xelatex $(EXAMPLEZH).tex + -bibtex $(EXAMPLEZH) + +# example-en + +example-en: $(EXAMPLEEN).pdf + +$(EXAMPLEEN).pdf: $(PACKAGE).cls $(EXAMPLEEN).tex $(EXAMPLEEN).bbl + xelatex $(EXAMPLEEN).tex + xelatex $(EXAMPLEEN).tex + +$(EXAMPLEEN).bbl: + xelatex $(EXAMPLEEN).tex + -bibtex $(EXAMPLEEN) + +# resume + +resume: resume-zh resume-en + +# resume-zh + +resume-zh: $(RESUMEZH).pdf + +$(RESUMEZH).pdf: $(PACKAGE).cls $(RESUMEZH).tex $(RESUMEZH).bbl + xelatex $(RESUMEZH).tex + xelatex $(RESUMEZH).tex + +$(RESUMEZH).bbl: + xelatex $(RESUMEZH).tex + -bibtex $(RESUMEZH) + +# resume-en + +resume-en: $(RESUMEEN).pdf + +$(RESUMEEN).pdf: $(PACKAGE).cls $(RESUMEEN).tex $(RESUMEEN).bbl + xelatex $(RESUMEEN).tex + xelatex $(RESUMEEN).tex + +$(RESUMEEN).bbl: + xelatex $(RESUMEEN).tex + -bibtex $(RESUMEEN) + +# dist & clean + +clean: + -@rm -f \ + *~ \ + *.aux \ + *.bbl \ + *.blg \ + *.dvi \ + *.glo \ + *.gls \ + *.idx \ + *.ilg \ + *.ind \ + *.log \ + *.out + +distclean: clean + -@rm -f \ + *.cls \ + *.pdf diff --git a/Master/texmf-dist/doc/xelatex/resumecls/README b/Master/texmf-dist/doc/xelatex/resumecls/README new file mode 100644 index 00000000000..5194a040fde --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/resumecls/README @@ -0,0 +1,116 @@ +# resumecls + +A LaTeX cls for resume, simply, support English and Chinese natively. + +## Workflow + +```shell +git clone https://github.com/huxuan/resumecls.git +cd resumecls +# Copy sample/example files +cp config-sample.mk config.mk +cp example-zh.tex resume-zh.tex +cp example-en.tex resume-en.tex +cp example.bib resume.bib +# Edit resume-zh.tex resume-en.tex and resume.bib +# Compile via the way (Makefile or LaTeX) listed in the following section +``` +## Compile + +### Compile via Makefile (Recommended if your os support) +First you need `cp config-sample.mk config.mk` to make Makefile script work. +You can change the variable in `config.mk` corresponding to the your file name. +Default and recommended value is `RESUME=resume`, `RESUMEZH=resume-zh`, +`RESUMEEN=resume-en` which means you need to name your files as +`resume-zh.tex`, `resume-en.tex` and `resume.bib` to make `make` work. + +#### Get resumecls.cls +```shell +make cls +``` + +#### Get resumecls.pdf +```shell +make doc +``` + +#### Get example-zh.pdf & example-en.pdf +```shell +make example # Get both below +make example-zh +make example-en +``` + +#### Get all files above +```shell +make all +``` + +#### Get resume-zh.pdf & resume-en.pdf +```shell +make resume # Get both below +make resume-zh +make resume-en +``` + +#### Clean +Clean all generated files except for cls and pdf +```shell +make clean +``` + +#### DistClean +Clean all generated files +```shell +make distclean +``` + +### Compile by raw LaTeX command + +#### Get resumecls.cls +```shell +latex resumecls.ins +``` + +#### Get resumecls.pdf +```shell +xelatex resumecls.dtx +makeindex -s gind.ist -o resumecls.ind resumecls.idx +makeindex -s gglo.ist -o resumecls.gls resumecls.glo +xelatex resumecls.dtx +xelatex resumecls.dtx +``` + +#### Get example-zh.pdf & example-en.pdf +First, you need to get the cls file as described above. +Then you also need to replace `example` in code snippet +to `example-en` or `example-zh` as you want. + +- if has bib +```shell +xelatex example.tex +bibtex example +``` + +- And then or if has no bib +```shell +xelatex example.tex +xelatex example.tex +``` + +#### Get resume-zh.pdf & resume-en.pdf +First, you need to get the cls file as described above. +Then you also need to replace `resume` in code snippet +corresponding to your own tex file. + +- if has bib +```shell +xelatex resume.tex +bibtex resume +``` + +- And then or if has no bib +```shell +xelatex resume.tex +xelatex resume.tex +``` diff --git a/Master/texmf-dist/doc/xelatex/resumecls/config-sample.mk b/Master/texmf-dist/doc/xelatex/resumecls/config-sample.mk new file mode 100644 index 00000000000..cca0fec636b --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/resumecls/config-sample.mk @@ -0,0 +1,16 @@ +# +----------------------------------------------------------------------------- +# | File: config +# | Author: huxuan +# | E-mail: i(at)huxuan.org +# | Created: 2012-12-18 +# | Last modified: 2012-12-18 +# | Description: +# | Configuration for Makefile +# | +# | Copyrgiht (c) 2012 by huxuan. All rights reserved. +# | License GPLv3 +# +----------------------------------------------------------------------------- + +RESUME=resume +RESUMEZH=resume-zh +RESUMEEN=resume-en diff --git a/Master/texmf-dist/doc/xelatex/resumecls/example-en.tex b/Master/texmf-dist/doc/xelatex/resumecls/example-en.tex new file mode 100644 index 00000000000..0cf38daa4bf --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/resumecls/example-en.tex @@ -0,0 +1,96 @@ +% !Mode:: "TeX:UTF-8" +% +----------------------------------------------------------------------------- +% | File: example-zh +% | Author: huxuan +% | E-mail: i(at)huxuan.org +% | Created: 2012/12/18 +% | Last modified: 2012/12/19 +% | Description: +% | A English Resume Example in LaTeX based on resumecls +% | +% | Copyrgiht (c) 2012 by huxuan. All rights reserved. +% | License GPLv3 +% +----------------------------------------------------------------------------- + +\documentclass[en,color]{resumecls} + +\name{Name} +\organization{unit, school or organization} +\address{address, zip code} +\mobile{+1 XXX XXXX XXXX} +\mail{i@example.com} +\homepage{http://example.com} +\resumeurl{http://example.com/resume-en.pdf} + +\begin{document} + +\begin{table} + +\maketitle + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{Education} +\entry{2em}{Xrp{8em}}{ + \heiti{School} & City & Time Period \\ +} +\entry{4em}{lXX}{ + Degree & College of XXX & Major in XX \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{Research Experience} +\entry{2em}{Xp{8em}}{ + \heiti{Insitute} & Time Period \\ +} +\entry{4em}{X}{Lab \quad Position} +\entry{6em}{X}{ + Research Fields and Specific Content \\ + Publication (You can also use bibtex, like \cite{label}, see end of doc) \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{Working Experience} +\entry{2em}{Xp{8em}}{ + \heiti{Unit} & Time Period \\ +} +\entry{4em}{X}{Department \quad Position} +\entry{6em}{X}{ + Specific Issues Responsible for \\ + Specific Content of Your Work \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{School Experience} +\entry{2em}{Xp{8em}}{ + Experience 1 & Time Period \\ + Experience 2 & Time Period \\ +} + +\heading{Awards} +\entry{2em}{Xr}{ + Award 1 & Time \\ + Award 2 & Time \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{Professional Skill} +\entry{2em}{lX}{ + Proficient in & XXX \\ + Experienced in & XXX \\ + Familiar with & XXX \\ + Use & XXX \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{Other listings, such as hobby, network profile and so on} +\entry{2em}{lX}{ + Label 1 & Content 1 \\ + Label 2 & Content 2 \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{Appendix: Publications} +\vspace{-6em} +\bibliography{example} +\end{table} +\end{document} diff --git a/Master/texmf-dist/doc/xelatex/resumecls/example-zh.tex b/Master/texmf-dist/doc/xelatex/resumecls/example-zh.tex new file mode 100644 index 00000000000..ff2586c286f --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/resumecls/example-zh.tex @@ -0,0 +1,96 @@ +% !Mode:: "TeX:UTF-8" +% +----------------------------------------------------------------------------- +% | File: example-zh +% | Author: huxuan +% | E-mail: i(at)huxuan.org +% | Created: 2012/12/18 +% | Last modified: 2012/12/19 +% | Description: +% | A Chinese Resume Example in LaTeX based on resumecls +% | +% | Copyrgiht (c) 2012 by huxuan. All rights reserved. +% | License GPLv3 +% +----------------------------------------------------------------------------- + +\documentclass[zh,color]{resumecls} + +\name{姓名} +\organization{单位、学校或组织} +\address{地址,邮编} +\mobile{+86 XXX XXXX XXXX} +\mail{i@example.com} +\homepage{http://example.com} +\resumeurl{http://example.com/resume-zh.pdf} + +\begin{document} + +\begin{table} + +\maketitle + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{教育经历} +\entry{2em}{Xrp{8em}}{ + \heiti{学校} & 城市 & 起止时间 \\ +} +\entry{4em}{lXX}{ + 学位 & XX学院 & XX专业 \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{科研经历} +\entry{2em}{Xp{8em}}{ + \heiti{地点} & 起止时间 \\ +} +\entry{4em}{X}{实验室名称 \quad 职位} +\entry{6em}{X}{ + 研究方向和具体内容 \\ + 发表成果(亦可使用bibtex,像这样\cite{label},见文档最后注释内容) \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{工作经历} +\entry{2em}{Xp{8em}}{ + \heiti{单位名称} & 起止时间 \\ +} +\entry{4em}{X}{部门 \quad 职位} +\entry{6em}{X}{ + 负责的具体事项 \\ + 工作的具体内容 \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{校园经历} +\entry{2em}{Xp{8em}}{ + 经历1 & 起止时间 \\ + 经历2 & 起止时间 \\ +} + +\heading{获得荣誉} +\entry{2em}{Xr}{ + 荣誉1 & 颁发时间 \\ + 荣誉2 & 颁发时间 \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{专业技能} +\entry{2em}{lX}{ + 精通 & XXX \\ + 熟悉 & XXX \\ + 掌握 & XXX \\ + 使用 & XXX \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{其他列举事项-如个人爱好,网络资料等} +\entry{2em}{lX}{ + 标签1 & 标签对应内容 \\ + 标签2 & 标签对应内容 \\ +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\heading{附:发表成果} +\vspace{-6em} +\bibliography{example} +\end{table} +\end{document} diff --git a/Master/texmf-dist/doc/xelatex/resumecls/example.bib b/Master/texmf-dist/doc/xelatex/resumecls/example.bib new file mode 100644 index 00000000000..4cce48feef7 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/resumecls/example.bib @@ -0,0 +1,12 @@ +@inproceedings{label, + title={Title}, + author={Author}, + booktitle={Booktitle}, + year={Year}, + series={Series}, + pages={Pages}, + organization={Organization}, + month={Month}, + address={Address}, + publisher={Publisher} +} diff --git a/Master/texmf-dist/doc/xelatex/resumecls/resumecls.pdf b/Master/texmf-dist/doc/xelatex/resumecls/resumecls.pdf Binary files differnew file mode 100644 index 00000000000..98ebcee50a8 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/resumecls/resumecls.pdf diff --git a/Master/texmf-dist/source/xelatex/resumecls/resumecls.dtx b/Master/texmf-dist/source/xelatex/resumecls/resumecls.dtx new file mode 100644 index 00000000000..a0853403803 --- /dev/null +++ b/Master/texmf-dist/source/xelatex/resumecls/resumecls.dtx @@ -0,0 +1,386 @@ +% \iffalse meta-comment +% +% resumecls.dtx +% Copyright 2012-2013 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 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is huxuan <i@huxuan.org>. +% +% This work consists of the files resumecls.dtx and resumecls.ins +% and the derived file resumecls.cls. +% +% \fi + +% \iffalse +%<cls>\NeedsTeXFormat{LaTeX2e}[2011/06/27] +%<cls>\ProvidesClass{resumecls} +%<cls>[2013/03/07 v0.2 First try to upload to CTAN] +% +%<*driver> +\documentclass{ltxdoc} +\usepackage[adobefonts]{ctex} + +\usepackage{color} +\definecolor{dkgreen}{rgb}{0,0.6,0} +\definecolor{gray}{rgb}{0.5,0.5,0.5} +\definecolor{mauve}{rgb}{0.58,0,0.82} + +\usepackage[xetex,unicode,colorlinks]{hyperref} + +\usepackage{listings} +\lstset{ + backgroundcolor=\color{white}, + basicstyle=\zihao{5}\ttfamily, + columns=flexible, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + frame=single, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + stepnumber=1, + rulecolor=\color{black}, + tabsize=2, + texcl=true, + title=\lstname, + escapeinside={(*}{*)}, + extendedchars=false, + mathescape=true, + xleftmargin=3em, + xrightmargin=3em, + numberstyle=\color{gray}, + keywordstyle=\color{blue}, + commentstyle=\color{dkgreen}, + stringstyle=\color{mauve}, + language={[LaTeX]TeX}, + morekeywords={setmainfont,setCJKmainfont}, +} +\EnableCrossrefs +\CodelineIndex +\RecordChanges +%\OnlyDescription +\begin{document} + \DocInput{\jobname.dtx} +\end{document} +%</driver> +% \fi +% +% \CheckSum{139} +% +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% \changes{v0.1}{2012/12/19}{Initial version with dtx} +% \changes{v0.1.1}{2012/12/19}{Minor bug fix} +% \changes{v0.1.2}{2012/12/19}{Customization part in documentation} +% \changes{v0.1.3}{2012/12/19}{Add reference settings} +% \changes{v0.1.4}{2012/12/20}{Use bfseries for better English support} +% \changes{v0.2}{2013/03/07}{First try to upload to CTAN} +% +% \GetFileInfo{\jobname.dtx} +% +% \DoNotIndex{\\,\begin,\colorbox,\CTEXoptions,\CurrentOptionn,\def} +% \DoNotIndex{\definecolor,\else,\end,\fancyfoot,\fancyhf,\fi,\footnotesize} +% \DoNotIndex{\footrulewidth,\headrulewidth,\heiti,\href,\hspace,\hypersetup} +% \DoNotIndex{\ifrcls@color,\ifrcls@en,\ifrcls@zh,\LoadClass,\maketitle} +% \DoNotIndex{\newcommand,\newif,\pagestyle,\parbox,\PassOptionsToClass} +% \DoNotIndex{\ProcessOptions,\refname,\relax,\renewcommand,\RequirePackage} +% \DoNotIndex{\textwidth,\today,\url,\zihao} +% \DoNotIndex{} +% +% \def\resumecls{\textsf{resumecls}\ } +% +% \title{The \resumecls package\thanks{This document +% corresponds to \resumecls~\fileversion, +% dated~\filedate.}} +% \author{huxuan \\ \texttt{i@huxuan.org}} +% +% \maketitle +% +% \begin{abstract} +% \resumecls is a latex cls to create a resume or cv more easily. +% Especially it supports Chinese as well as English at the same time. +% \end{abstract} +% +% \section{Introduction} +% +% There do exist many resume cls files already. But from my experience, +% most of them are too complicated or lack of flexibility. +% +% \resumecls make all contents consists of heading/entry based on tabularx. +% You can easily design the style and many recommended ones are also listed +% in example files. +% +% What's more, \resumecls already has ctex package imported which make it +% support Chinese natively. The example-zh.tex and example-en.tex is almost +% the same (in \LaTeX{} Code, not the content). You need no more work +% to make your resume both in English and Chinese. +% +% \section{Usage} +% +% \DescribeMacro{\heading} +% The heading part for each section. +% +% \DescribeMacro{\entry} +% All contents except for heading. +% +% \DescribeMacro{\name} +% Your Name. +% +% \DescribeMacro{\organization} +% Your unit, shcool or organization. +% +% \DescribeMacro{\address} +% Your address and zip code. +% +% \DescribeMacro{\mobile} +% Your phone number. +% +% \DescribeMacro{\mail} +% Your mail address. +% +% \DescribeMacro{\homepage} +% Your homepage. +% +% \DescribeMacro{\resumeurl} +% The url for the resume. +% It will locate at the right of footer. +% If you don't want it, just leave it blank. +% +% \StopEventually{\PrintChanges\PrintIndex} +% +% \section{Implementation} +% +% \subsection{Options} +% \begin{macrocode} +\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} +% \end{macrocode} +% +% \subsection{Import article class} +% \begin{macrocode} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions\relax +\LoadClass[a4paper,12pt]{article} +% \end{macrocode} +% +% \subsection{Import packages} +% \begin{macrocode} +\RequirePackage[top=.5in,bottom=.5in,left=.5in,right=.5in]{geometry} +\RequirePackage[xetex,unicode]{hyperref} +\RequirePackage[noindent,adobefonts]{ctex} +\RequirePackage{tabularx} +\RequirePackage{color} +\RequirePackage{fancyhdr} +% \end{macrocode} +% +% \subsection{Color Settings} +% +% \subsubsection{Background color for heading} +% \begin{macrocode} +\definecolor{heading}{gray}{0.85} +% \end{macrocode} +% +% \subsubsection{Color for hyperlink} +% \begin{macrocode} +\ifrcls@color + \hypersetup{colorlinks} +\else + \hypersetup{hidelinks} +\fi +% \end{macrocode} +% +% \subsection{Reference Settings} +% +% \begin{macrocode} +\RequirePackage[sort&compress]{natbib} +\bibliographystyle{unsrt} +\setlength{\bibsep}{0pt} +% \end{macrocode} +% +% \subsection{Content Variable} +% +% \begin{macro}{\name} +% \begin{macrocode} +\def\rcls@name{} +\newcommand\name[1]{\def\rcls@name{#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\organization} +% \begin{macrocode} +\def\rcls@organization{} +\newcommand\organization[1]{\def\rcls@organization{#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\address} +% \begin{macrocode} +\def\rcls@address{} +\newcommand\address[1]{\def\rcls@address{#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\mobile} +% \begin{macrocode} +\def\rcls@mobile{} +\newcommand\mobile[1]{\def\rcls@mobile{#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\mail} +% \begin{macrocode} +\def\rcls@mail{} +\newcommand\mail[1]{\def\rcls@mail{#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\homepage} +% \begin{macrocode} +\def\rcls@homepage{} +\newcommand\homepage[1]{\def\rcls@homepage{#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\resumeurl} +% \begin{macrocode} +\def\rcls@resumeurl{} +\newcommand\resumeurl[1]{\def\rcls@resumeurl{#1}} +% \end{macrocode} +% \end{macro} +% +% \subsection{Custom commands} +% +% \begin{macro}{\heading} +% \begin{macrocode} +\newcommand{\heading}[1]{ + \colorbox{heading}{ + \parbox{.96\textwidth}{ + \bfseries\zihao{4}#1 + } + } \\ +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\entry} +% \begin{macrocode} +\newcommand{\entry}[3]{ + \begin{tabularx}{\textwidth}{@{\hspace{#1}}#2} + #3 + \end{tabularx} +} +% \end{macrocode} +% \end{macro} +% +% \subsection{Style settings} +% +% \subsubsection{Redefine maketitle} +% \begin{macrocode} +\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} \\ + } +} +% \end{macrocode} +% +% \subsubsection{Header and footer settings} +% \begin{macrocode} +\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}} +% \end{macrocode} +% +% \subsubsection{Empty refname} +% +% \begin{macrocode} +\renewcommand{\refname}{} +% \end{macrocode} +% +% \subsection{Customization} +% +% \subsubsection{Font settings} +% +% Cause we recommend use Xe\LaTeX{} to compile, so you can easily setting +% the font to whatever you like only if it exists on you computer. +% Just add something like following code before |\begin{document}|. +% +% \iffalse +%<*lst> +% \fi +\begin{lstlisting} +\setmainfont{Times New Roman} +\setCJKmainfont[BoldFont=(*黑体*)]{(*宋体*)} +\end{lstlisting} +% \iffalse +%</lst> +% \fi +% +% \subsubsection{Multiple pages} +% +% Currently, \resumecls doesn't support multiple pages very well. Before +% showing the method for customization I want you relize that only one page +% for resume is enough. \resumecls use |\begin{table}| and |\end{table}| to +% enclose all contents so that the whole resume will be limited in one page. +% But if you really want to have multiple pages, you can set multiple table +% environments in your tex fhile and judge the place for new page yourself. +% the code within document environment for two pages resume will looks like: +% +% \iffalse +%<*lst> +% \fi +\begin{lstlisting} +\begin{table} +Contents for Page 1 +\end{table} +\newpage +\begin{table} +Contents for Page 2 +\end{table} +\end{lstlisting} +% \iffalse +%</lst> +% \fi +% +% \Finale +\endinput diff --git a/Master/texmf-dist/source/xelatex/resumecls/resumecls.ins b/Master/texmf-dist/source/xelatex/resumecls/resumecls.ins new file mode 100644 index 00000000000..3cdb7c61e10 --- /dev/null +++ b/Master/texmf-dist/source/xelatex/resumecls/resumecls.ins @@ -0,0 +1,62 @@ +%% resumecls.ins +%% Copyright 2012-2013 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 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is huxuan <i@huxuan.org>. +% +% This work consists of the files resumecls.dtx and resumecls.ins +% and the derived file resumecls.cls. + +\input docstrip.tex +\keepsilent + +\usedir{tex/latex/resumecls} + +\preamble + +This is a generated file. + +Copyright 2012-2013 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 +of this license or (at your option) any later version. +The latest version of this license is in + http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of LaTeX +version 2005/12/01 or later. + +This work has the LPPL maintenance status `maintained'. + +The Current Maintainer of this work is huxuan <i@huxuan.org>. + +This work consists of the files resumecls.dtx and resumecls.ins +and the derived file resumecls.cls. + +\endpreamble + +\generate{\file{\jobname.cls}{\from{\jobname.dtx}{cls}}} + +\Msg{*********************************************************} +\Msg{*} +\Msg{* To finish the installation you have to move the} +\Msg{* following file into a directory searched by TeX:} +\Msg{*} +\Msg{* \space\space resumecls.cls} +\Msg{*} +\Msg{* To produce the documentation run the file resumecls.cls} +\Msg{* through LaTeX.} +\Msg{*} +\Msg{* Happy TeXing!} +\Msg{*********************************************************} + +\endbatchfile diff --git a/Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls b/Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls new file mode 100644 index 00000000000..fad376f8234 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/resumecls/resumecls.cls @@ -0,0 +1,104 @@ +%% +%% This is file `resumecls.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% resumecls.dtx (with options: `cls') +%% +%% This is a generated file. +%% +%% Copyright 2012-2013 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 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is huxuan <i@huxuan.org>. +%% +%% This work consists of the files resumecls.dtx and resumecls.ins +%% and the derived file resumecls.cls. +%% + +\NeedsTeXFormat{LaTeX2e}[2011/06/27] +\ProvidesClass{resumecls} +[2013/03/07 v0.2 First try to upload to 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} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions\relax +\LoadClass[a4paper,12pt]{article} +\RequirePackage[top=.5in,bottom=.5in,left=.5in,right=.5in]{geometry} +\RequirePackage[xetex,unicode]{hyperref} +\RequirePackage[noindent,adobefonts]{ctex} +\RequirePackage{tabularx} +\RequirePackage{color} +\RequirePackage{fancyhdr} +\definecolor{heading}{gray}{0.85} +\ifrcls@color + \hypersetup{colorlinks} +\else + \hypersetup{hidelinks} +\fi +\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}{ + \bfseries\zihao{4}#1 + } + } \\ +} +\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} \\ + } +} +\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}} +\renewcommand{\refname}{} +\endinput +%% +%% End of file `resumecls.cls'. diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 27dbb694791..f90f613b215 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -361,7 +361,8 @@ my @TLP_working = qw( r_und_s ran_toks randbild randomwalk randtext rccol rcs rcs-multi rcsinfo realboxes realscripts rec-thy recipe recipecard recycle rectopma refcheck refman refstyle regcount regexpatch register regstats - relenc relsize reotex repeatindex resphilosophica resumemac reverxii revtex + relenc relsize reotex repeatindex resphilosophica + resumecls resumemac reverxii revtex rjlparshap rlepsf rmpage robustcommand robustindex romanbar romande romanneg romannum romansh rotating rotfloat rotpages diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 3f7b11b87d2..01a07625069 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1972,6 +1972,7 @@ $standardsource='\.(bat|c|drv|dtx|fea|fdd|ins|sfd)$|configure.*|install-sh'; 'paper', 'install', 'papermas', "$package.dtx", 'parrun', 'parrun.ins', + 'poetrytex', "$package.dtx", 'ran_toks', "$package.dtx", 'seuthesis', 'NULL', # don't want to run iconv, etc. 'statrep', "$package.dtx", diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc index c8c6b1fe596..795b8d819c5 100644 --- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc @@ -73,6 +73,7 @@ depend proposal depend ptptex depend psu-thesis depend resphilosophica +depend resumecls depend revtex depend revtex4 depend ryethesis diff --git a/Master/tlpkg/tlpsrc/resumecls.tlpsrc b/Master/tlpkg/tlpsrc/resumecls.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/resumecls.tlpsrc |