Skip to content

Commit 3db4373

Browse files
committed
feat(PDF): PDF版の見た目を改善した
1 parent 4090051 commit 3db4373

File tree

5 files changed

+28
-26
lines changed

5 files changed

+28
-26
lines changed

bin/build-pdf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ declare parentDir=$(cd $(dirname $(cd $(dirname $0);pwd));pwd)
44
SRC_FILE=${parentDir}/$1
55

66
${parentDir}/fopub/bin/fopub -t ${parentDir}/styles "${SRC_FILE}" \
7-
-param body.font.family VL-Gothic-Regular \
7+
-param body.font.family AozoraMinchoRegular \
88
-param dingbat.font.family VL-Gothic-Regular \
99
-param monospace.font.family VL-Gothic-Regular \
10-
-param sans.font.family VL-Gothic-Regular \
10+
-param sans.font.family AozoraMinchoRegular \
1111
-param title.font.family VL-Gothic-Regular \
1212
-param alignment left

index.adoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
= Steins;Git
2-
kubosho_
3-
:authorinitials:
4-
:username: kubosho_
2+
:numbered!:
3+
:docinfo1:
4+
:toc2:
5+
6+
:author: kubosho_
57
:keywords: Git, Steins;Gate
68
:revnumber: {bookversion}
79
:revdate: {docdate}
@@ -10,9 +12,6 @@ kubosho_
1012
:front-cover-image: image:illustration/cover.jpg[Steins;Git,1050,1600]
1113
:lang: ja
1214
:icons: font
13-
:docinfo1:
14-
:numbered!:
15-
:toc2:
1615

1716
ifeval::["{backend}" == "html5"]
1817

@@ -88,7 +87,7 @@ include::sources/Ch3_HowToGit/readme.adoc[]
8887

8988
<<<
9089

91-
// あどがきではナンバリングをおこなわない
90+
// あとがきではナンバリングをおこなわない
9291
:numbered!:
9392

9493
include::sources/Ch4_PostScript/readme.adoc[]

sources/Ch2_WhyGit/trend.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SVN と比較すると、Git は流行しています。つまり、それだけ
66

77
といっても、言葉だけでは説得力がありません。なので、流行している事を示すデータをいくつか紹介します。なお、これから出てくるスクリーンショットは2014年8月3日に撮られたものです。
88

9-
はじめに Google トレンドで日本における GitSVNSubversion の人気度の動向を調べた結果footnote:[http://www.google.com/trends/explore#q=Git%2C%20SVN%2C%20Subversion&geo=JP&date=4%2F2005%20112m]です。
9+
はじめに Google トレンドで日本における GitSVNSubversion の人気度の動向を調べた結果footnote:[http://www.google.com/trends/explore#q=Git%2C%20SVN%2C%20Subversion&geo=JP&date=4%2F2005%20112m]です。
1010

1111
ここでは Git が登場した2005年4月から2014年7月までのグラフを掲載していますが、2013年あたりから SVN と Git の人気度が逆転し、Git は今なお右肩上がりになっています。今後もこの傾向は変わらないと考えられます。
1212

sources/Ch4_PostScript/readme.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ include::github-bitbucket.adoc[]
77
<<<
88

99
include::reference.adoc[]
10+
11+
// <<< PAGE BREAK PDFのみ
12+
<<<
13+
1014
include::author.adoc[]

styles/fo-pdf.xsl

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
exclude-result-prefixes="db">
1111
<!--
1212
The absolute URL imports point to system-wide locations by way of this /etc/xml/catalog entry:
13-
13+
1414
<rewriteURI
1515
uriStartString="http://docbook.sourceforge.net/release/xsl/current"
1616
rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets-%docbook-style-xsl-version%"/>
17-
17+
1818
%docbook-style-xsl-version% represents the version installed on the system.
1919
-->
2020
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
@@ -121,9 +121,9 @@
121121
<xsl:attribute name="space-before.optimum">0</xsl:attribute>
122122
<xsl:attribute name="space-before.minimum">0</xsl:attribute>
123123
<xsl:attribute name="space-before.maximum">0</xsl:attribute>
124-
<xsl:attribute name="space-after.optimum">1em</xsl:attribute>
125-
<xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
126-
<xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
124+
<xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
125+
<xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
126+
<xsl:attribute name="space-after.maximum">1em</xsl:attribute>
127127
<!--
128128
<xsl:attribute name="color"><xsl:value-of select="$text.color"/></xsl:attribute>
129129
-->
@@ -246,14 +246,14 @@
246246
<xsl:param name="paper.type">B5</xsl:param> <!-- alternative size is USletter -->
247247
<xsl:param name="headers.on.blank.pages">1</xsl:param>
248248
<xsl:param name="footers.on.blank.pages">1</xsl:param>
249-
<xsl:param name="page.margin.top">10mm</xsl:param> <!-- top margin of page -->
250-
<xsl:param name="page.margin.bottom">10mm</xsl:param> <!-- top margin of page -->
249+
<xsl:param name="page.margin.top">8mm</xsl:param> <!-- top margin of page -->
250+
<xsl:param name="page.margin.bottom">8mm</xsl:param> <!-- top margin of page -->
251251
<xsl:param name="page.margin.inner">20mm</xsl:param> <!-- side margin of page (left, towards binding) -->
252252
<xsl:param name="page.margin.outer">20mm</xsl:param> <!-- side margin of page (right, away from binding) -->
253253
<xsl:param name="body.margin.top">15mm</xsl:param> <!-- top margin of content -->
254254
<xsl:param name="body.margin.bottom">15mm</xsl:param> <!-- bottom margin of content -->
255-
<xsl:param name="body.margin.inner">4mm</xsl:param> <!-- side margin of content (left, towards binding) -->
256-
<xsl:param name="body.margin.outer">6mm</xsl:param> <!-- side margin of content (right, away from binding) -->
255+
<xsl:param name="body.margin.inner">0</xsl:param> <!-- side margin of content (left, towards binding) -->
256+
<xsl:param name="body.margin.outer">0</xsl:param> <!-- side margin of content (right, away from binding) -->
257257
<xsl:param name="body.start.indent">0</xsl:param> <!-- text indentation -->
258258
<xsl:param name="body.end.indent">0</xsl:param> <!-- text recess from right -->
259259
<xsl:param name="region.before.extent">10mm</xsl:param> <!-- height of page header -->
@@ -333,7 +333,6 @@
333333

334334
<xsl:attribute-set name="formal.title.properties">
335335
<xsl:attribute name="color"><xsl:value-of select="$caption.color"/></xsl:attribute>
336-
<xsl:attribute name="font-size"><xsl:value-of select="0"/><xsl:text>pt</xsl:text></xsl:attribute>
337336
</xsl:attribute-set>
338337

339338
<xsl:template match="*" mode="admon.graphic.width">
@@ -376,7 +375,7 @@
376375
<xsl:attribute name="padding-top">18pt</xsl:attribute>
377376
<xsl:attribute name="padding-bottom">0</xsl:attribute>
378377
</xsl:attribute-set>
379-
378+
380379
<xsl:attribute-set name="sidebar.title.properties">
381380
<xsl:attribute name="font-family"><xsl:value-of select="$title.fontset"/></xsl:attribute>
382381
<xsl:attribute name="font-weight"><xsl:value-of select="$header.font-weight"/></xsl:attribute>
@@ -724,7 +723,7 @@
724723
<xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
725724
</xsl:if>
726725
</xsl:variable>
727-
726+
728727
<fo:inline font-weight="bold"
729728
color="{$caption.color}"
730729
keep-with-next.within-line="always">
@@ -775,12 +774,12 @@
775774
</xsl:attribute-set>
776775

777776
<xsl:attribute-set name="variablelist.term.properties">
778-
<xsl:attribute name="font-weight">bold</xsl:attribute>
777+
<xsl:attribute name="font-weight">bold</xsl:attribute>
779778
</xsl:attribute-set>
780779

781780
<xsl:template name="itemizedlist.label.markup">
782781
<xsl:param name="itemsymbol" select="'disc'"/>
783-
782+
784783
<xsl:choose>
785784
<xsl:when test="$itemsymbol='none'"></xsl:when>
786785
<xsl:when test="$itemsymbol='circle'">&#x25E6;</xsl:when>
@@ -848,12 +847,12 @@
848847
<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="14.4pt" space-before="1in" font-family="{$title.fontset}">
849848
<xsl:call-template name="gentext">
850849
<xsl:with-param name="key" select="'Revision'"/>
851-
</xsl:call-template>
850+
</xsl:call-template>
852851
<xsl:call-template name="gentext.space"/>
853852
<xsl:apply-templates select="db:revnumber | revnumber" mode="titlepage.mode"/>
854853
</fo:block>
855854
<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="14.4pt" font-family="{$title.fontset}">
856-
<xsl:apply-templates select="db:date | date" mode="titlepage.mode"/>
855+
<xsl:apply-templates select="db:date | date" mode="titlepage.mode"/>
857856
</fo:block>
858857
</xsl:template>
859858

0 commit comments

Comments
 (0)