From 6380d0315e1132891b4735999c26b0a41e6d1aaa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 10 Mar 2013 22:35:47 +0000 Subject: resumecls (10mar13) git-svn-id: svn://tug.org/texlive/trunk@29332 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/xelatex/resumecls/Makefile | 120 +++++++++++++++++++++ Master/texmf-dist/doc/xelatex/resumecls/README | 116 ++++++++++++++++++++ .../doc/xelatex/resumecls/config-sample.mk | 16 +++ .../doc/xelatex/resumecls/example-en.tex | 96 +++++++++++++++++ .../doc/xelatex/resumecls/example-zh.tex | 96 +++++++++++++++++ .../texmf-dist/doc/xelatex/resumecls/example.bib | 12 +++ .../texmf-dist/doc/xelatex/resumecls/resumecls.pdf | Bin 0 -> 74326 bytes 7 files changed, 456 insertions(+) create mode 100644 Master/texmf-dist/doc/xelatex/resumecls/Makefile create mode 100644 Master/texmf-dist/doc/xelatex/resumecls/README create mode 100644 Master/texmf-dist/doc/xelatex/resumecls/config-sample.mk create mode 100644 Master/texmf-dist/doc/xelatex/resumecls/example-en.tex create mode 100644 Master/texmf-dist/doc/xelatex/resumecls/example-zh.tex create mode 100644 Master/texmf-dist/doc/xelatex/resumecls/example.bib create mode 100644 Master/texmf-dist/doc/xelatex/resumecls/resumecls.pdf (limited to 'Master/texmf-dist/doc/xelatex/resumecls') 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 new file mode 100644 index 00000000000..98ebcee50a8 Binary files /dev/null and b/Master/texmf-dist/doc/xelatex/resumecls/resumecls.pdf differ -- cgit v1.2.3