-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.typ
462 lines (450 loc) · 9.3 KB
/
template.typ
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
#let systemFontSize = 8pt
#let nameFontSize = 16pt
#let inputFontSize = 10pt
#let addSpace(input) = {
box(
[#pad(left:1cm,[#input])],
)
}
#let 私(性読み: "",名読み: "", 性: "",名: "",生年月日: "",年齢: 0) = {
stack(
place(
top + right,
dy: -10pt,
datetime.today().display(
"[year]年[month]月[day]日現在",
)
),
rect(
stroke: (
bottom: none,
top: 1.5pt,
left: 1.5pt,
right: 1.5pt
),
height: auto,
width: 100%,
[
#grid(
columns: (1.5cm,4cm,1fr),
[ふりがな],
[#align(center,性読み)],
[#align(start,名読み)]
)
]
),
line(
length: 100%,
stroke: (
dash:"dashed",
)
),
rect(
stroke: (
bottom: 0.5pt,
top: none,
left: 1.5pt,
right: 1.5pt
),
height: auto,
width: 100%,
[
#align(top,
grid(
columns: (1.5cm,4cm,1fr),
[氏 #h(0.6cm)名],
[
#pad(y: 0.4cm,align(center + horizon,text(nameFontSize,性)))
],
[
#pad(y: 0.4cm,align(start + horizon,text(nameFontSize,名)))
]
)
)
]
),
rect(
stroke: (
bottom: 0.5pt,
top: none,
left: 1.5pt,
right: 1.5pt
),
height: auto,
width: 100%,
[
#align(start + top,
grid(
columns: (1.5cm,1fr),
[生年月日],
pad(y: 0.2cm,[#addSpace(text(inputFontSize,[#生年月日 生 #h(0.6cm) (満 #h(0.5em) #年齢 才)]))])
)
)
]
)
)
}
#let 証明写真(写真: "") = {
set text(size: 7pt)
pad(
bottom: 0.3cm,
left: 0.4cm,
box(
stroke: (
dash:"dashed",
),
height: 4cm,
width: 3cm,
[
#if (写真 == ""){
align(
center + horizon,
[
写真を貼る位置\
(縦 40mm, 横 30mm)
]
)
} else {
image(写真, width: 3cm, height: 4cm)
}
]
)
)
}
#let アドレス(住所ふりがな1: "", 住所1: "",住所ふりがな2: "", 住所2: "",郵便番号1: "",郵便番号2: "", 電話番号1:"",Email1:"",電話番号2:"",Email2:"") = {
stack(
grid(
columns: (5fr,2fr),
[
#stack(
rect(
stroke: (
bottom: none,
top: none,
left: 1.5pt,
right: 0.5pt
),[
#grid(
columns: (1.5cm,1fr),
[ふりがな],
[#align(center,住所ふりがな1)]
)
]
),
line(stroke: (dash:"dashed"), length: 100%)
)
],
[
#rect(
width: 100%,
stroke: (
bottom: 0.5pt,
top: 1.5pt,
left: none,
right: 1.5pt
),[
電話 #h(10pt) #電話番号1
]
)
]
),
grid(
columns: (5fr,2fr),
[
#rect(
width: 100%,
height: 1.8cm,
stroke: (
bottom: 0.5pt,
top: none,
left: 1.5pt,
right: 0.5pt
),[
#if (郵便番号1 == "") {
[現住所 (〒 #h(20pt) - #h(20pt))]
} else {
[現住所 (〒 #text(tracking: 1pt,systemFontSize,郵便番号1))]
}
#pad(y: 0.2cm ,align(center,text(inputFontSize,住所1)))
]
)
],
[
#rect(
width: 100%,
height: 1.8cm,
stroke: (
bottom: 0.5pt,
top: none,
left: none,
right: 1.5pt
),[
E-mail
#pad(y: 0.3cm ,align(center,Email1))
]
)
]
),
grid(
columns: (5fr,2fr),
[
#stack(
rect(
stroke: (
bottom: none,
top: none,
left: 1.5pt,
right: 0.5pt
),[
#grid(
columns: (1.5cm,1fr),
[ふりがな],
[#align(center,住所ふりがな2)]
)
]
),
line(stroke: (dash:"dashed"), length: 100%)
)
],
[
#rect(
width: 100%,
stroke: (
bottom: 0.5pt,
top: none,
left: none,
right: 1.5pt
),[
電話 #h(10pt) #電話番号2
]
)
]
),
grid(
columns: (5fr,2fr),
[
#rect(
width: 100%,
height: 1.8cm,
stroke: (
bottom: 1.5pt,
top: none,
left: 1.5pt,
right: 0.5pt
),[
#if (郵便番号2 == "") {
[連絡先 (〒 #h(20pt) - #h(20pt))]
} else {
[連絡先 (〒 #text(tracking: 1pt,systemFontSize,郵便番号2))]
}
#pad(y: 0.2cm ,align(center,text(inputFontSize,住所2)))
]
)
],
[
#rect(
width: 100%,
height: 1.8cm,
stroke: (
bottom: 1.5pt,
top: none,
left: none,
right: 1.5pt
),[
E-mail
#pad(y: 0.3cm ,align(center,Email2))
]
)
]
)
)
}
#let 学歴(年:"", 月:"",学歴: "") = {
set text(inputFontSize)
grid(
columns: (1.5cm,0.8cm,1fr),
[
#align(center,年)
],
[
#align(center,月)
],
[
#if (年 == "" and 月 == "" and 学歴 == "") {
align(center,[学歴])
} else {
align(start + horizon,[#h(5pt)#学歴])
}
]
)
}
#let 職歴(年:"", 月:"",職歴:"") = {
set text(inputFontSize)
grid(
columns: (1.5cm,0.8cm,1fr),
[
#align(center,年)
],
[
#align(center,月)
],
[
#if (年 == "" and 月 == "" and 職歴 == "") {
align(center,[職歴])
} else {
align(start + horizon,[#h(5pt)#職歴])
}
]
)
}
#let 資格(年:"", 月:"",資格:"") = {
set text(inputFontSize)
grid(
columns: (1.5cm,0.8cm,1fr),
[
#align(center,年)
],
[
#align(center,月)
],
[
#align(start + horizon,[#h(5pt)#資格])
]
)
}
#let 以上() = {
set text(inputFontSize)
grid(
columns: (1.5cm,0.8cm,1fr),
[],
[],
[
#align(end + horizon,[以上#h(2cm)])
]
)
}
// mode: "学歴・職歴" or "資格"
#let 経歴(children,hegithLength: 12.6cm,columns: 0,mode:"") = {
stack(
box(
stroke: (
bottom: 1.5pt,
top: 1.5pt,
left: 1.5pt,
right: 1.5pt
),
height: hegithLength,
width: 100%,
[
#grid(
columns: (1.5cm,0.8cm,1fr),
[
#rect(
stroke: (
bottom: none,
top: none,
left: none,
right: 0.5pt
),
height: 100%,
width: 100%,
[
#align(center,[年])
]
)
],
[
#rect(
stroke: (
bottom: none,
top: none,
left: none,
right: 0.5pt
),
height: 100%,
width: 100%,
[
#align(center,[月])
]
)
],
[
#rect(
width: 100%,
height: 100%,
stroke: (
bottom: none,
top: none,
left: none,
right: none,
),
align(center,[
#if (mode == "学歴・職歴") {
[学歴・職歴(各別にまとめて書く)]
} else if (mode == "資格") {
[免許・資格]
}]
)
)
]
)
#place(
start + top,
dy: 10pt,
[
#let n = 0
#while n < columns {
[#pad(y: 0.26cm,line(stroke: 0.5pt, length: 100%))]
n = n + 1
}
]
)
#place(
top + left,
dy: 0.9cm,
children
)
]
),
)
}
#let 志望動機(children) = {
stack(
rect(
stroke: (
bottom: 1.5pt,
top: 1.5pt,
left: 1.5pt,
right: 1.5pt
),
height: 5cm,
width: 100%,
[
志望の動機、特技、好きな学科、アピールポイントなど
#linebreak()
#set text(inputFontSize)
#children
]
)
)
}
#let 本人希望(children) = {
stack(
rect(
stroke: (
bottom: 1.5pt,
top: 1.5pt,
left: 1.5pt,
right: 1.5pt
),
height: 5cm,
width: 100%,
[
本人希望記入欄(特に給料・職種・勤務時間・勤務地・その他についての希望があれば記入)
#linebreak()
#set text(inputFontSize)
#children
]
)
)
}