Skip to content

Commit d0136c4

Browse files
committed
リアペ・レポート用のスタイルを変更
1 parent 783d4cf commit d0136c4

File tree

3 files changed

+57
-16
lines changed

3 files changed

+57
-16
lines changed

リアペ・レポート用/main.typ

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
#show: report.with()
44

5-
= 期末レポート:2023年秋学期 探偵学入門
5+
= 2023年秋学期 探偵学入門 期末レポート
66

7-
#block(
8-
[*A1234567 山田太郎*(国際福祉学部物理学科)]
9-
)
7+
#name_box(id: "A1234567", name: "山田太郎(国際福祉学部物理学科)")
108

119
== 1. すばらしい節
1210

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
1+
#let fontMincho = "Source Han Serif JP"
2+
#let fontGothic = ("Noto Sans", "UDEV Gothic")
3+
#let fontLatin = "Times New Roman"
4+
5+
#let fontSizeDefault = 12pt
6+
#let fontSizeHeading = 16pt
7+
8+
// ヘルパー関数
9+
#let mathbf(str) = $ upright(bold(str)) $
10+
111
#let empty_par() = {
212
v(-1em)
313
box()
414
}
515

16+
#let name_box(id: "", name: "") = {
17+
set align(left)
18+
set text(
19+
size: 14pt,
20+
)
21+
[
22+
#text(font: fontGothic)[*学籍番号*] : #text(font: (fontLatin, fontMincho))[#id]
23+
#parbreak()
24+
#text(font: fontGothic)[*氏名*] : #text(font: (fontLatin, fontMincho))[#name]
25+
]
26+
}
27+
628
#let report(body) = {
729
set text(
8-
font: (
9-
"Times New Roman",
10-
// "UDEV Gothic",
11-
"Source Han Serif JP"
12-
),
13-
size: 13pt
30+
font: (fontLatin, fontMincho),
31+
size: fontSizeDefault
1432
)
1533

1634
set page(
@@ -22,15 +40,39 @@
2240
)
2341

2442
set par(leading: 0.8em, first-line-indent: 20pt, justify: true)
25-
show par: set block(spacing: 1.4em)
43+
set par(spacing: 1.2em)
2644

2745
show link: underline
2846
show link: set text(fill: rgb("#125ee0"))
2947

48+
show strong: set text(
49+
font: fontGothic,
50+
weight: "medium",
51+
)
52+
53+
// 数式関係のスタイル
54+
set math.equation(numbering: "(1)", number-align: bottom)
55+
show math.qed: math.square.stroked.big
56+
show ref: it => {
57+
let eq = math.equation
58+
let el = it.element
59+
if el != none and el.func() == eq {
60+
// Override equation references.
61+
numbering(
62+
"" + el.numbering,
63+
..counter(eq).at(el.location())
64+
)
65+
} else {
66+
// Other references as usual.
67+
it
68+
}
69+
}
70+
3071
show heading.where(level: 1): it => {
3172
set text(
73+
font: fontGothic,
3274
weight: "bold",
33-
size: 20pt
75+
size: 22pt
3476
)
3577
text()[
3678
#it.body
@@ -39,8 +81,9 @@
3981

4082
show heading.where(level: 2): it => block({
4183
set text(
84+
font: fontGothic,
4285
weight: "semibold",
43-
size: 17pt
86+
size: fontSizeHeading
4487
)
4588
text()[
4689
#it.body
@@ -49,8 +92,9 @@
4992

5093
show heading.where(level: 3): it => block({
5194
set text(
95+
font: fontGothic,
5296
weight: "medium",
53-
size: 15pt
97+
size: fontSizeDefault + 2pt
5498
)
5599
text()[
56100
#it.body
@@ -60,7 +104,7 @@
60104
show heading: it => {
61105
set text(
62106
weight: "medium",
63-
size: 12pt,
107+
size: fontSizeDefault,
64108
)
65109
set block(above: 2em, below: 1.5em)
66110
it
@@ -69,5 +113,4 @@
69113
set page(numbering: "1 / 1")
70114

71115
body
72-
73116
}

卒論・修論用/main.pdf

-1.13 MB
Binary file not shown.

0 commit comments

Comments
 (0)