Skip to content

Commit d0face6

Browse files
committedJun 4, 2023
PDFのテーマファイルをasciidoctor-pdf 2.0系に合うよう変更した
1 parent f361d7b commit d0face6

File tree

1 file changed

+35
-31
lines changed

1 file changed

+35
-31
lines changed
 

‎theme/pdf/mystyle-theme.yml

+35-31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*- #
2-
2+
extends: default
33
font:
44
catalog:
55
GenYoMinJP:
@@ -66,33 +66,40 @@ base:
6666
border_color: 7F7F7F
6767
border_width: 1.0
6868

69-
vertical_rhythm: $base_line_height_length
70-
horizontal_rhythm: $base_line_height_length
71-
72-
prose:
73-
text_indent: $base_font_size
74-
# margin_inner: $base_font_size * 4
75-
offset_left: $base_font_size * 4
76-
77-
block:
78-
margin_top: 12
79-
margin_bottom: 12
69+
# vertical_rhythm: $base_line_height_length
70+
# horizontal_rhythm: $base_line_height_length
8071

8172
link:
8273
font_color: 2D466B # 800000 # $literal_font_color # 483D8B # 153C77 # 428bca
83-
font_family: GenShinGothic-P # Migu 1m # RictyDiminished #M+ 1mn
74+
font_family: Migu 1m # GenShinGothic-P # Migu 1m # RictyDiminished #M+ 1mn
8475
font_size: $base_font_size * 0.9
8576
# font-style:
8677
# text-decoration:
87-
literal:
78+
codespan: #literal:
8879
font_color: 004953 # 556B2F # 008080 # 2C528B # 253A59 # b12146
89-
font_family: RictyDiminished #M+ 1mn # Migu 1m
80+
font_family: Migu 1m # RictyDiminished #M+ 1mn
9081
font-size: ceil($base_font_size * 0.9)
91-
# font-style:
92-
# background-color: f5f5f5
93-
# border-color:
94-
# border-offset:
95-
# border-radius:
82+
83+
image:
84+
# border-color: cccccc
85+
# border-width: 2.0
86+
caption:
87+
align: left
88+
color: inherit # 466B2D
89+
90+
prose:
91+
margin-bottom: 10
92+
margin-inner: 10
93+
text-indent: 0
94+
text-indent-inner: 0
95+
# prose:
96+
# text_indent: $base_font_size
97+
# # margin_inner: $base_font_size * 4
98+
# offset_left: $base_font_size * 4
99+
100+
block:
101+
margin_top: 12
102+
margin_bottom: 12
96103

97104
heading:
98105
align: left
@@ -194,7 +201,7 @@ admonition:
194201
label:
195202
font_style: $heading_font_style
196203

197-
blockquote:
204+
quote: # blockquote:
198205
font_family: GenShinGothic-P-L
199206
font_color: $literal_font_color
200207
font_size: $base_font_size
@@ -243,12 +250,6 @@ sidebar:
243250
font_family: $heading_font_family
244251
font_size: 12pt # $heading_h5_font_size
245252
font_style: $heading_font_style
246-
image:
247-
# border-color: cccccc
248-
# border-width: 2.0
249-
caption:
250-
align: left
251-
color: inherit # 466B2D
252253

253254
table:
254255
font_family: $heading_font_family
@@ -263,19 +264,22 @@ table:
263264
border_width: $base_border_width
264265
cell_padding: 5
265266
toc:
266-
indent: $horizontal_rhythm * 1.6
267-
line_height: 1.7
267+
indent: 15 # $horizontal_rhythm * 1.6
268+
line_height: 1.5 # 1.7
268269
margin_top: 10pt
270+
# h1 is used for part titles (book doctype only)
269271
h1_font_family: GenShinGothic-P
270272
h1_font_size: floor($base_font_size * 1.8)
271273
h1_font_color: $heading_h1_font_color
272274
h2_font_style: bold
273275
h2_font_family: GenShinGothic-P-L
274-
h2_font_size: floor($base_font_size * 1.6)
276+
h2_font_size: floor($base_font_size * 1.4)
277+
# h2_font_size: floor($base_font_size * 1.6)
275278
h2_font_color: $heading_h2_font_color
276279
h2_font_style: bold
277280
h3_font_family: $base_font_family
278-
h3_font_size: floor($base_font_size * 1.2)
281+
h3_font_size: $base_font_size # ceil($base_font_size * 0.8)
282+
# h3_font_size: floor($base_font_size * 1.2)
279283
h3_font_color: $heading_h3_font_color
280284
header:
281285
font_size: $base_font_size_small

0 commit comments

Comments
 (0)