review 2.5.0 → 3.0.0.preview1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +28 -10
- data/.travis.yml +11 -2
- data/NEWS.ja.md +89 -17
- data/NEWS.md +92 -0
- data/README.md +1 -1
- data/Rakefile +0 -13
- data/bin/review-catalog-converter +83 -37
- data/bin/review-check +17 -5
- data/bin/review-compile +1 -1
- data/bin/review-index +6 -0
- data/bin/review-init +3 -155
- data/bin/review-preproc +0 -5
- data/bin/review-validate +21 -7
- data/bin/review-vol +13 -5
- data/doc/config.yml.sample +12 -7
- data/doc/config.yml.sample-simple +1 -1
- data/doc/format.ja.md +39 -3
- data/doc/format.md +39 -3
- data/doc/format_idg.ja.md +0 -4
- data/doc/pdfmaker.ja.md +1 -1
- data/doc/pdfmaker.md +1 -1
- data/doc/sample.css +7 -0
- data/lib/epubmaker/content.rb +31 -12
- data/lib/epubmaker/epubcommon.rb +10 -3
- data/lib/epubmaker/epubv2.rb +11 -3
- data/lib/epubmaker/epubv3.rb +11 -3
- data/lib/epubmaker/producer.rb +55 -20
- data/lib/review/book/base.rb +63 -48
- data/lib/review/book/chapter.rb +19 -7
- data/lib/review/book/compilable.rb +5 -20
- data/lib/review/book/image_finder.rb +10 -3
- data/lib/review/book/index.rb +30 -9
- data/lib/review/book/part.rb +9 -6
- data/lib/review/book.rb +0 -14
- data/lib/review/builder.rb +110 -18
- data/lib/review/catalog.rb +24 -4
- data/lib/review/compiler.rb +3 -1
- data/lib/review/configure.rb +43 -9
- data/lib/review/epubmaker/reviewheaderlistener.rb +57 -0
- data/lib/review/epubmaker.rb +129 -85
- data/lib/review/htmlbuilder.rb +76 -58
- data/lib/review/htmlutils.rb +20 -13
- data/lib/review/i18n.rb +6 -2
- data/lib/review/idgxmlbuilder.rb +52 -41
- data/lib/review/init.rb +194 -0
- data/lib/review/latexbuilder.rb +118 -34
- data/lib/review/latexutils.rb +5 -5
- data/lib/review/logger.rb +2 -1
- data/lib/review/makerhelper.rb +1 -1
- data/lib/review/markdownbuilder.rb +66 -6
- data/lib/review/md2inaobuilder.rb +2 -2
- data/lib/review/pdfmaker.rb +74 -22
- data/lib/review/plaintextbuilder.rb +8 -4
- data/lib/review/preprocessor.rb +14 -17
- data/lib/review/sec_counter.rb +8 -2
- data/lib/review/textmaker.rb +2 -2
- data/lib/review/textutils.rb +9 -2
- data/lib/review/tocparser.rb +7 -4
- data/lib/review/tocprinter.rb +3 -1
- data/lib/review/version.rb +1 -1
- data/lib/review/webmaker.rb +19 -7
- data/lib/review/webtocprinter.rb +8 -4
- data/review.gemspec +4 -3
- data/templates/latex/config.erb +84 -0
- data/templates/latex/layout.tex.erb +76 -361
- data/templates/latex/review-jlreq/README.md +22 -0
- data/templates/latex/review-jlreq/review-base.sty +178 -0
- data/templates/latex/review-jlreq/review-custom.sty +1 -0
- data/templates/latex/review-jlreq/review-jlreq.cls +141 -0
- data/templates/latex/review-jlreq/review-style.sty +149 -0
- data/templates/latex/review-jlreq/reviewmacro.sty +8 -0
- data/templates/latex/review-jsbook/jumoline.sty +310 -0
- data/templates/latex/review-jsbook/plistings.sty +326 -0
- data/templates/latex/review-jsbook/review-base.sty +405 -0
- data/templates/latex/review-jsbook/review-custom.sty +1 -0
- data/templates/latex/review-jsbook/review-style.sty +38 -0
- data/templates/latex/review-jsbook/reviewmacro.sty +8 -0
- data/templates/latex-compat2/layout.tex.erb +387 -0
- data/test/assets/test_template.tex +105 -235
- data/test/assets/test_template_backmatter.tex +133 -14
- data/test/book_test_helper.rb +1 -1
- data/test/run_test.rb +2 -0
- data/test/sample-book/src/Rakefile +11 -6
- data/test/sample-book/src/config.yml +2 -2
- data/test/sample-book/src/sty/reviewmacro.sty +1 -39
- data/test/sample-book/src/style.css +6 -0
- data/test/syntax-book/config.yml +1 -1
- data/test/test_book.rb +13 -16
- data/test/test_book_chapter.rb +4 -10
- data/test/test_book_part.rb +4 -3
- data/test/test_catalog.rb +15 -4
- data/test/test_helper.rb +2 -2
- data/test/test_htmlbuilder.rb +78 -10
- data/test/test_htmlutils.rb +12 -5
- data/test/test_idgxmlbuilder.rb +1 -1
- data/test/test_latexbuilder.rb +94 -49
- data/test/test_latexbuilder_v2.rb +1077 -0
- data/test/test_logger.rb +20 -0
- data/test/test_markdownbuilder.rb +10 -0
- data/test/test_pdfmaker.rb +6 -7
- data/test/test_plaintextbuilder.rb +1 -1
- data/test/test_review_ext.rb +0 -1
- data/test/test_rstbuilder.rb +1 -1
- data/test/test_topbuilder.rb +19 -7
- data/test/test_webtocprinter.rb +14 -14
- data/{test/sample-book/src/vendor → vendor}/jumoline/README +0 -0
- data/{test/sample-book/src/vendor → vendor}/jumoline/jumoline.dtx +0 -0
- data/{test/sample-book/src/vendor → vendor}/jumoline/jumoline.ins +0 -0
- data/{test/sample-book/src/vendor → vendor}/jumoline/lppl.txt +0 -0
- data/vendor/plistings/.gitignore +9 -0
- data/vendor/plistings/LICENSE +21 -0
- data/vendor/plistings/README.md +18 -0
- data/vendor/plistings/plistings.sty +326 -0
- data/vendor/plistings/test1.tex +174 -0
- data/vendor/plistings/test2.tex +54 -0
- metadata +48 -19
- data/lib/review/unfold.rb +0 -129
- data/test/CHAPS +0 -2
- data/test/bib.re +0 -13
- data/test/test.re +0 -43
@@ -0,0 +1,405 @@
|
|
1
|
+
\RequirePackage{ifthen}
|
2
|
+
\ifthenelse{\equal{\review@texcompiler}{uplatex}}{%
|
3
|
+
\RequirePackage[deluxe,uplatex]{otf}%
|
4
|
+
}{%
|
5
|
+
\RequirePackage[deluxe]{otf}%
|
6
|
+
}
|
7
|
+
\RequirePackage{caption}
|
8
|
+
\RequirePackage{suffix}
|
9
|
+
\RequirePackage[T1]{fontenc}\RequirePackage{textcomp}%T1/TS1
|
10
|
+
\RequirePackage{lmodern}
|
11
|
+
\RequirePackage[dvipdfmx]{graphicx}
|
12
|
+
\RequirePackage[dvipdfmx,table]{xcolor}%requires colortbl, array
|
13
|
+
\RequirePackage{framed}
|
14
|
+
\RequirePackage{wrapfig}
|
15
|
+
\definecolor{shadecolor}{gray}{0.9}
|
16
|
+
\definecolor{shadecolorb}{gray}{0.1}
|
17
|
+
\definecolor{reviewgreen}{rgb}{0,0.4,0}
|
18
|
+
\definecolor{reviewblue}{rgb}{0.2,0.2,0.4}
|
19
|
+
\definecolor{reviewred}{rgb}{0.7,0,0}
|
20
|
+
\definecolor{reviewdarkred}{rgb}{0.3,0,0}
|
21
|
+
\RequirePackage[utf8]{inputenc}
|
22
|
+
\RequirePackage{ascmac}
|
23
|
+
\RequirePackage{float}
|
24
|
+
\RequirePackage{alltt}
|
25
|
+
\RequirePackage{amsmath}
|
26
|
+
|
27
|
+
%% if you use @<u>{} (underline), use jumoline.sty
|
28
|
+
\IfFileExists{jumoline.sty}{
|
29
|
+
\RequirePackage{jumoline}
|
30
|
+
}
|
31
|
+
|
32
|
+
\long\def\review@ifempty#1{\expandafter\ifx\expandafter\relax\detokenize{#1}\relax\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
|
33
|
+
|
34
|
+
\newenvironment{shadedb}{%
|
35
|
+
\def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolorb}}%
|
36
|
+
\MakeFramed {\FrameRestore}}%
|
37
|
+
{\endMakeFramed}
|
38
|
+
|
39
|
+
\ifthenelse{\equal{\review@documentclass}{utbook} \OR \equal{\review@documentclass}{tbook}}{%
|
40
|
+
}{%
|
41
|
+
\RequirePackage[top=10zw,bottom=12zw,left=10zw,right=10zw]{geometry}%
|
42
|
+
}
|
43
|
+
|
44
|
+
\newcommand{\parasep}{\vspace*{3zh}}
|
45
|
+
\setlength{\footskip}{30pt}
|
46
|
+
|
47
|
+
\RequirePackage[dvipdfmx,bookmarks=true,bookmarksnumbered=true,hidelinks,%
|
48
|
+
pdftitle={\review@booktitlename},%
|
49
|
+
pdfauthor={\review@autnames}]{hyperref}
|
50
|
+
\RequirePackage[dvipdfmx]{pxjahyper}
|
51
|
+
\RequirePackage{pxrubrica}
|
52
|
+
\@ifpackagelater{pxrubrica}{2017/04/20}{%
|
53
|
+
\rubysetup{J}}{%
|
54
|
+
\rubysetup{g}}
|
55
|
+
|
56
|
+
\ifthenelse{\equal{\review@documentclass}{utbook} \OR \equal{\review@documentclass}{tbook}}{%
|
57
|
+
\newcommand{\headfont}{\gtfamily\sffamily\bfseries}
|
58
|
+
\RequirePackage{plext}
|
59
|
+
}{%
|
60
|
+
}
|
61
|
+
|
62
|
+
\ifdefined\review@highlightlatex
|
63
|
+
\ifthenelse{\equal{\review@highlightlatex}{listings}}{%
|
64
|
+
\ifthenelse{\equal{\review@language}{ja}}{%
|
65
|
+
\RequirePackage{listings,plistings}
|
66
|
+
}{%
|
67
|
+
\RequirePackage{listings}
|
68
|
+
}%
|
69
|
+
\renewcommand{\lstlistingname}{\review@intn@list}
|
70
|
+
\lstset{%
|
71
|
+
breaklines=true,%
|
72
|
+
breakautoindent=false,%
|
73
|
+
breakindent=0pt,%
|
74
|
+
fontadjust=true,%
|
75
|
+
backgroundcolor=\color{shadecolor},%
|
76
|
+
frame=single,%
|
77
|
+
framerule=0pt,%
|
78
|
+
basicstyle=\ttfamily\scriptsize,%
|
79
|
+
commentstyle=\color{reviewgreen},%
|
80
|
+
identifierstyle=\color{reviewblue},%
|
81
|
+
stringstyle=\color{reviewred},%
|
82
|
+
keywordstyle=\bfseries\color{reviewdarkred},%
|
83
|
+
}
|
84
|
+
\lstnewenvironment{reviewemlistlst}[1][]{\lstset{#1}}{}
|
85
|
+
\lstnewenvironment{reviewemlistnumlst}[1][]{\lstset{numbers=left, #1}}{}
|
86
|
+
\lstnewenvironment{reviewlistlst}[1][]{\lstset{#1}}{}
|
87
|
+
\lstnewenvironment{reviewlistnumlst}[1][]{\lstset{numbers=left, #1}}{}
|
88
|
+
\lstnewenvironment{reviewsourcelst}[1][]{\lstset{#1}}{}
|
89
|
+
\lstnewenvironment{reviewsourcenumlst}[1][]{\lstset{numbers=left, #1}}{}
|
90
|
+
\lstnewenvironment{reviewcmdlst}[1][]{\lstset{backgroundcolor=\color{white}, frameround=tttt, frame=trbl, #1}}{}
|
91
|
+
}{%
|
92
|
+
}
|
93
|
+
\fi
|
94
|
+
|
95
|
+
\newenvironment{reviewimage}{%
|
96
|
+
\begin{figure}[H]
|
97
|
+
\begin{center}}{%
|
98
|
+
\end{center}
|
99
|
+
\end{figure}}
|
100
|
+
|
101
|
+
\newenvironment{reviewdummyimage}{%
|
102
|
+
\begin{figure}[H]
|
103
|
+
\begin{center}\begin{alltt}}{%
|
104
|
+
\end{alltt}\end{center}
|
105
|
+
\end{figure}}
|
106
|
+
|
107
|
+
\newenvironment{reviewlistblock}{}{}
|
108
|
+
|
109
|
+
\newenvironment{reviewemlist}{%
|
110
|
+
\medskip\small\begin{shaded}\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
|
111
|
+
\end{alltt}\end{shaded}}
|
112
|
+
|
113
|
+
\newenvironment{reviewlist}{%
|
114
|
+
\begin{shaded}\small\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
|
115
|
+
\end{alltt}\end{shaded}\par\vspace*{0.5zw}}
|
116
|
+
|
117
|
+
\newenvironment{reviewsource}{%
|
118
|
+
\begin{shaded}\small\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
|
119
|
+
\end{alltt}\end{shaded}\par\vspace*{0.5zw}}
|
120
|
+
|
121
|
+
\newenvironment{reviewcmd}{%
|
122
|
+
\color{white}\medskip\small\begin{shadedb}\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
|
123
|
+
\end{alltt}\end{shadedb}}
|
124
|
+
|
125
|
+
\newenvironment{reviewbox}{%
|
126
|
+
\medskip\small\begin{framed}\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
|
127
|
+
\end{alltt}\end{framed}}
|
128
|
+
|
129
|
+
\newenvironment{reviewtable}[1]{%
|
130
|
+
\begin{center}\small\setlength{\baselineskip}{1.2zw}
|
131
|
+
\begin{tabular}{#1}}{%
|
132
|
+
\end{tabular}
|
133
|
+
\end{center}}
|
134
|
+
|
135
|
+
\newenvironment{reviewcolumn}[1][]{%
|
136
|
+
\begin{framed}
|
137
|
+
\reviewcolumnhead{}{#1}
|
138
|
+
}{%
|
139
|
+
\end{framed}
|
140
|
+
\vspace{2zw}}
|
141
|
+
|
142
|
+
\newcommand{\reviewcolumnhead}[2]{%
|
143
|
+
{\noindent\large \review@intn@columnhead{}: #2}}
|
144
|
+
|
145
|
+
\newcommand{\reviewtablecaption}[1]{%
|
146
|
+
\caption{#1}}
|
147
|
+
|
148
|
+
\WithSuffix\newcommand\reviewtablecaption*[1]{%
|
149
|
+
\caption*{#1}}
|
150
|
+
|
151
|
+
\newcommand{\reviewimgtablecaption}[1]{%
|
152
|
+
\caption{#1}\vspace{-3mm}}
|
153
|
+
|
154
|
+
\newcommand{\reviewbackslash}[0]{%
|
155
|
+
\textbackslash{}}
|
156
|
+
|
157
|
+
\newcommand{\reviewlistcaption}[1]{%
|
158
|
+
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
|
159
|
+
|
160
|
+
\newcommand{\reviewemlistcaption}[1]{%
|
161
|
+
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
|
162
|
+
|
163
|
+
\newcommand{\reviewsourcecaption}[1]{%
|
164
|
+
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
|
165
|
+
|
166
|
+
\newcommand{\reviewcmdcaption}[1]{%
|
167
|
+
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
|
168
|
+
|
169
|
+
\newcommand{\reviewindepimagecaption}[1]{%
|
170
|
+
\begin{center}#1\end{center}}
|
171
|
+
|
172
|
+
\newcommand{\reviewboxcaption}[1]{%
|
173
|
+
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
|
174
|
+
|
175
|
+
\newcommand{\reviewimageref}[2]{\review@intn@image #1}
|
176
|
+
\newcommand{\reviewtableref}[2]{\review@intn@table #1}
|
177
|
+
\newcommand{\reviewlistref}[1]{\review@intn@list #1}
|
178
|
+
\newcommand{\reviewbibref}[2]{#1}
|
179
|
+
\newcommand{\reviewcolumnref}[2]{\review@intn@columnname #1}
|
180
|
+
\newcommand{\reviewsecref}[2]{#1}
|
181
|
+
|
182
|
+
\newcommand{\reviewminicolumntitle}[1]{%
|
183
|
+
\review@ifempty{#1}{}{%
|
184
|
+
{\large \review@intn@memohead{}: #1}\\}}
|
185
|
+
|
186
|
+
\renewcommand{\contentsname}{\review@toctitle}
|
187
|
+
|
188
|
+
\newenvironment{reviewminicolumn}{%
|
189
|
+
\vspace{1.5zw}\begin{screen}}{%
|
190
|
+
\end{screen}\vspace{2zw}}
|
191
|
+
|
192
|
+
\newenvironment{reviewnote}[1][]{%
|
193
|
+
\begin{reviewminicolumn}
|
194
|
+
\review@ifempty{#1}{}{\reviewminicolumntitle{#1}}
|
195
|
+
}{\end{reviewminicolumn}}
|
196
|
+
\newenvironment{reviewmemo}[1][]{%
|
197
|
+
\begin{reviewminicolumn}
|
198
|
+
\reviewminicolumntitle{#1}
|
199
|
+
}{\end{reviewminicolumn}}
|
200
|
+
\newenvironment{reviewtip}[1][]{%
|
201
|
+
\begin{reviewminicolumn}
|
202
|
+
\reviewminicolumntitle{#1}
|
203
|
+
}{\end{reviewminicolumn}}
|
204
|
+
\newenvironment{reviewinfo}[1][]{%
|
205
|
+
\begin{reviewminicolumn}
|
206
|
+
\reviewminicolumntitle{#1}
|
207
|
+
}{\end{reviewminicolumn}}
|
208
|
+
\newenvironment{reviewwarning}[1][]{%
|
209
|
+
\begin{reviewminicolumn}
|
210
|
+
\reviewminicolumntitle{#1}
|
211
|
+
}{\end{reviewminicolumn}}
|
212
|
+
\newenvironment{reviewimportant}[1][]{%
|
213
|
+
\begin{reviewminicolumn}
|
214
|
+
\reviewminicolumntitle{#1}
|
215
|
+
}{\end{reviewminicolumn}}
|
216
|
+
\newenvironment{reviewcaution}[1][]{%
|
217
|
+
\begin{reviewminicolumn}
|
218
|
+
\reviewminicolumntitle{#1}
|
219
|
+
}{\end{reviewminicolumn}}
|
220
|
+
\newenvironment{reviewnotice}[1][]{%
|
221
|
+
\begin{reviewminicolumn}
|
222
|
+
\reviewminicolumntitle{#1}
|
223
|
+
}{\end{reviewminicolumn}}
|
224
|
+
|
225
|
+
\newcommand{\reviewkw}[1]{\textbf{\textgt{#1}}}
|
226
|
+
\newcommand{\reviewami}[1]{\mask{#1}{A}}
|
227
|
+
\newcommand{\reviewem}[1]{\textbf{#1}}
|
228
|
+
\newcommand{\reviewstrong}[1]{\textbf{#1}}
|
229
|
+
\newcommand{\reviewballoon}[1]{←{#1}}
|
230
|
+
\newcommand{\reviewunderline}[1]{\Underline{#1}}
|
231
|
+
\newcommand{\reviewit}[1]{\textit{#1}}
|
232
|
+
\newcommand{\reviewbold}[1]{\textbf{#1}}
|
233
|
+
\newcommand{\reviewcode}[1]{\texttt{#1}}
|
234
|
+
\newcommand{\reviewtt}[1]{\texttt{#1}}
|
235
|
+
\newcommand{\reviewtti}[1]{\texttt{\textit{#1}}}
|
236
|
+
\newcommand{\reviewttb}[1]{\texttt{\textbf{#1}}}
|
237
|
+
|
238
|
+
%% @<del> is ignored in LaTeX with default style
|
239
|
+
\newcommand{\reviewstrike}[1]{#1}
|
240
|
+
|
241
|
+
%%%% for ulem.sty:
|
242
|
+
%%\renewcommand{\reviewstrike}[1]{\sout{#1}}
|
243
|
+
%%
|
244
|
+
%%%% for jumoline.sty:
|
245
|
+
%%\renewcommand{\reviewstrike}[1]{\Middleline{#1}}
|
246
|
+
|
247
|
+
\newcommand{\reviewth}[1]{\textgt{#1}}
|
248
|
+
\newcommand{\reviewtitlefont}[0]{\usefont{T1}{phv}{b}{n}\gtfamily}
|
249
|
+
\newcommand{\reviewmainfont}[0]{}
|
250
|
+
\newcommand{\reviewcolophon}[0]{\clearpage}
|
251
|
+
\newcommand{\reviewappendix}[0]{\appendix}
|
252
|
+
|
253
|
+
\newcommand{\reviewprepartname}{\review@prepartname}
|
254
|
+
\newcommand{\reviewpostpartname}{\review@postpartname}
|
255
|
+
\newcommand{\reviewprechaptername}{\review@prechaptername}
|
256
|
+
\newcommand{\reviewpostchaptername}{\review@postchaptername}
|
257
|
+
\newcommand{\reviewfigurename}{\review@figurename}
|
258
|
+
\newcommand{\reviewtablename}{\review@tablename}
|
259
|
+
\newcommand{\reviewappendixname}{\review@appendixname}
|
260
|
+
|
261
|
+
\ifdefined\prepartname
|
262
|
+
\renewcommand{\prepartname}{\reviewprepartname}
|
263
|
+
\fi
|
264
|
+
\ifdefined\postpartname
|
265
|
+
\renewcommand{\postpartname}{\reviewpostpartname}
|
266
|
+
\fi
|
267
|
+
\ifdefined\prechaptername
|
268
|
+
\renewcommand{\prechaptername}{\reviewprechaptername}
|
269
|
+
\fi
|
270
|
+
\ifdefined\postchaptername
|
271
|
+
\renewcommand{\postchaptername}{\reviewpostchaptername}
|
272
|
+
\fi
|
273
|
+
\ifdefined\figurename
|
274
|
+
\renewcommand{\figurename}{\reviewfigurename}
|
275
|
+
\fi
|
276
|
+
\ifdefined\tablename
|
277
|
+
\renewcommand{\tablename}{\reviewtablename}
|
278
|
+
\fi
|
279
|
+
\ifdefined\appendixname
|
280
|
+
\renewcommand{\appendixname}{\reviewappendixname}
|
281
|
+
\fi
|
282
|
+
|
283
|
+
%% maxwidth is the original width if it is less than linewidth
|
284
|
+
%% otherwise use linewidth (to make sure the graphics do not exceed the margin)
|
285
|
+
\def\maxwidth{%
|
286
|
+
\ifdim\Gin@nat@width>\linewidth
|
287
|
+
\linewidth
|
288
|
+
\else
|
289
|
+
\Gin@nat@width
|
290
|
+
\fi
|
291
|
+
}
|
292
|
+
|
293
|
+
% hooks
|
294
|
+
\def\reviewfrontmatterhook{%
|
295
|
+
\renewcommand{\chaptermark}[1]{{}}
|
296
|
+
\frontmatter
|
297
|
+
}
|
298
|
+
|
299
|
+
\def\reviewmainmatterhook{%
|
300
|
+
\renewcommand{\chaptermark}[1]{\markboth{\prechaptername\thechapter\postchaptername~##1}{}}
|
301
|
+
\mainmatter
|
302
|
+
}
|
303
|
+
|
304
|
+
\def\reviewappendixhook{%
|
305
|
+
\renewcommand{\chaptermark}[1]{\markboth{\appendixname\thechapter~##1}{}}
|
306
|
+
\reviewappendix
|
307
|
+
}
|
308
|
+
|
309
|
+
\def\reviewbackmatterhook{%
|
310
|
+
\backmatter
|
311
|
+
}
|
312
|
+
|
313
|
+
% cover
|
314
|
+
\ifdefined\review@cover
|
315
|
+
\def\reviewcoverpagecont{\review@coverfile}
|
316
|
+
\fi
|
317
|
+
\ifdefined\review@coverimage
|
318
|
+
\def\reviewcoverpagecont{%
|
319
|
+
\thispagestyle{empty}
|
320
|
+
\begin{center}
|
321
|
+
\expandafter\includegraphics\expandafter[\review@coverimageoption]{\review@coverimage}% includefullpagegraphicsを導入すべき?
|
322
|
+
\end{center}
|
323
|
+
\clearpage
|
324
|
+
}
|
325
|
+
\fi
|
326
|
+
|
327
|
+
% titlepage
|
328
|
+
\ifdefined\review@titlepage
|
329
|
+
\ifthenelse{\isundefined{\review@titlefile}}{%
|
330
|
+
\def\reviewtitlepagecont{%
|
331
|
+
\begin{titlepage}
|
332
|
+
\thispagestyle{empty}
|
333
|
+
\begin{center}%
|
334
|
+
\mbox{} \vskip5zw
|
335
|
+
\reviewtitlefont%
|
336
|
+
{\Huge\review@booktitlename\par}%
|
337
|
+
\ifdefined\review@subtitlename
|
338
|
+
\vskip 1em%
|
339
|
+
{\Large\review@subtitlename\par}%
|
340
|
+
\fi
|
341
|
+
\vskip 15em%
|
342
|
+
{\huge
|
343
|
+
\lineskip .75em
|
344
|
+
\begin{tabular}[t]{c}%
|
345
|
+
\review@titlepageauthors
|
346
|
+
\end{tabular}\par}%
|
347
|
+
\vfill
|
348
|
+
{\large\review@date \review@intn@edition\hspace{2zw}\review@intn@publishedby\par}%
|
349
|
+
\vskip4zw\mbox{}
|
350
|
+
\end{center}%
|
351
|
+
\end{titlepage}\clearpage
|
352
|
+
}
|
353
|
+
}{%
|
354
|
+
\def\reviewtitlepagecont{\review@titlefile}
|
355
|
+
}
|
356
|
+
\fi
|
357
|
+
|
358
|
+
% toc
|
359
|
+
\ifdefined\review@toc
|
360
|
+
\def\reviewtableofcontents{%
|
361
|
+
\setcounter{tocdepth}{\review@tocdepth}
|
362
|
+
\tableofcontents
|
363
|
+
}
|
364
|
+
\fi
|
365
|
+
|
366
|
+
% index
|
367
|
+
\ifdefined\review@makeindex
|
368
|
+
\RequirePackage{makeidx}
|
369
|
+
\makeindex
|
370
|
+
\fi
|
371
|
+
|
372
|
+
\ifdefined\review@makeindex
|
373
|
+
\def\reviewprintindex{%
|
374
|
+
\printindex
|
375
|
+
}
|
376
|
+
\fi
|
377
|
+
|
378
|
+
% colophon
|
379
|
+
\ifdefined\review@colophon
|
380
|
+
\ifthenelse{\isundefined{\review@colophonfile}}{%
|
381
|
+
\def\reviewcolophonpagecont{%
|
382
|
+
\reviewcolophon
|
383
|
+
\thispagestyle{empty}
|
384
|
+
\vspace*{\fill}
|
385
|
+
\typeout{\review@booktitlename}
|
386
|
+
{\noindent\reviewtitlefont\Large\review@booktitlename}\\
|
387
|
+
\ifdefined\review@subtitlename
|
388
|
+
{\noindent\reviewtitlefont\large\review@subtitlename} \\
|
389
|
+
\fi
|
390
|
+
\rule[8pt]{\textwidth}{1pt} \\
|
391
|
+
{\noindent\review@pubhistories}
|
392
|
+
|
393
|
+
\begin{tabular}{ll}
|
394
|
+
\review@colophonnames
|
395
|
+
\end{tabular}
|
396
|
+
\\
|
397
|
+
\rule[0pt]{\textwidth}{1pt} \\
|
398
|
+
\ifdefined\review@rights
|
399
|
+
\review@rights
|
400
|
+
\fi
|
401
|
+
}%
|
402
|
+
}{%
|
403
|
+
\def\reviewcolophonpagecont{\review@colophonfile}
|
404
|
+
}
|
405
|
+
\fi
|
@@ -0,0 +1 @@
|
|
1
|
+
% for user-defined macro
|
@@ -0,0 +1,38 @@
|
|
1
|
+
\RequirePackage{fancyhdr}
|
2
|
+
\pagestyle{fancy}
|
3
|
+
\lhead{\gtfamily\sffamily\bfseries\upshape \leftmark}
|
4
|
+
\chead{}
|
5
|
+
\rhead{\gtfamily\sffamily\bfseries\upshape \rightmark}
|
6
|
+
\renewcommand{\sectionmark}[1]{\markright{\thesection~#1}{}}
|
7
|
+
\renewcommand{\chaptermark}[1]{\markboth{\prechaptername\ \thechapter\ \postchaptername~#1}{}}
|
8
|
+
\renewcommand{\headfont}{\gtfamily\sffamily\bfseries}
|
9
|
+
|
10
|
+
\fancypagestyle{plainhead}{%
|
11
|
+
\fancyhead{}
|
12
|
+
\fancyfoot{} % clear all header and footer fields
|
13
|
+
\fancyfoot[CE,CO]{\thepage}
|
14
|
+
\renewcommand{\headrulewidth}{0pt}
|
15
|
+
\renewcommand{\footrulewidth}{0pt}}
|
16
|
+
|
17
|
+
%% using Helvetica as sans-serif
|
18
|
+
\renewcommand{\sfdefault}{phv}
|
19
|
+
|
20
|
+
%% for listings
|
21
|
+
%\renewcommand{\lstlistingname}{List}
|
22
|
+
%\lstset{%
|
23
|
+
% breaklines=true,%
|
24
|
+
% breakautoindent=false,%
|
25
|
+
% breakindent=0pt,%
|
26
|
+
% fontadjust=true,%
|
27
|
+
% backgroundcolor=\color{shadecolor},%
|
28
|
+
% frame=single,%
|
29
|
+
% framerule=0pt,%
|
30
|
+
% basicstyle=\ttfamily\scriptsize,%
|
31
|
+
% commentstyle=\color{reviewgreen},%
|
32
|
+
% identifierstyle=\color{reviewblue},%
|
33
|
+
% stringstyle=\color{reviewred},%
|
34
|
+
% keywordstyle=\bfseries\color{reviewdarkred},%
|
35
|
+
%}
|
36
|
+
|
37
|
+
%% disable hyperlink color and border
|
38
|
+
\hypersetup{hidelinks}
|