summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/resumecls/README
blob: 5194a040fdee789344b6bb20e43cea613f9c0bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
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
```