forked from trueroad/FITpaper-class
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.tex
More file actions
318 lines (240 loc) · 8.78 KB
/
Copy pathdebug.tex
File metadata and controls
318 lines (240 loc) · 8.78 KB
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
% -*- coding: utf-8; mode: latex; -*-
% +++
% latex = "lualatex"
% +++
%
% FIT2024 向け LaTeX クラスファイル
% https://github.com/trueroad/FITpaper-class
%
% デバッグ用ファイル
%
% Copyright (C) 2018, 2019, 2022-2024 Masamichi Hosoda.
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions
% are met:
%
% * Redistributions of source code must retain the above copyright notice,
% this list of conditions and the following disclaimer.
%
% * Redistributions in binary form must reproduce the above copyright notice,
% this list of conditions and the following disclaimer in the documentation
% and/or other materials provided with the distribution.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
% ARE DISCLAIMED.
% IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
% FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
% DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
% OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
% HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
% OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
% SUCH DAMAGE.
%
\documentclass{FITpaper}
\usepackage{layouts}
% 和文タイトル
\jtitle{FIT2024向け\LaTeX クラスファイルのデバッグ}
% 欧文タイトル
\etitle{Debugging \LaTeX~Class File for FIT2024}
% 著者数:著者の数だけ c を書く
\authors{ccccc}
% 和文著者名:著者名間に & を書く
% 所属番号を \affmark でつける
\jauthors{%
〇〇 〇〇\affmark{1} &
〇〇 〇〇\affmark{1} &
〇〇 〇\affmark{2} &
〇〇 〇\affmark{2} &
〇〇 〇\affmark{2}}
% 欧文著者名:著者名間に & を書く
\eauthors{%
Foo Bar Baz &
Foo Bar Baz &
Foo Bar Baz &
Foo Bar Baz &
Foo Bar Baz}
% 所属名
% \affmark でつけた所属番号毎に指定
\afftext{1}{〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇.
Foo bar baz boo bar baz Laboratories, Foo Corporation.}
\afftext{2}{〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇〇.
Foo bar baz boo bar baz Department, Foo University.}
\begin{document}
\maketitle
\section{文字ズレ確認}
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□
本文の文字ズレ確認用。
行間で左右の位置が一致していることを確認。
特に最終行と他の行の間。
\section{バージョン}
\makeatletter
FITpaper.cls: \csname ver@FITpaper.cls\endcsname\par
jlreq.cls: \csname ver@jlreq.cls\endcsname\par
amsmath.sty: \csname ver@amsmath.sty\endcsname\par
\ifx\luatexversion\@undefined
newtxmath.sty: \csname ver@newtxmath.sty\endcsname\par
\else
luatexja.sty: \LuaTeXjaversion ~/ \csname ver@luatexja.sty\endcsname\par
luatexja-preset.sty: \csname ver@luatexja-preset.sty\endcsname\par
fontspec.sty: \csname ver@fontspec.sty\endcsname\par
unicode-math.sty: \csname ver@unicode-math.sty\endcsname\par
\fi
\makeatother
\section{長さ}
1 inch = 72.27 pt = 25.4 mm = 72 bp
\subsection{フォント}
\subsubsection{設定値}
\newlength{\myzh}
\setlength{\myzh}{1\zh}
\textbackslash zh:
\printinunitsof{pt}\prntlen{\myzh},
\printinunitsof{mm}\prntlen{\myzh},
\printinunitsof{bp}\prntlen{\myzh}.
\newlength{\myzw}
\setlength{\myzw}{1\zw}
\textbackslash zw:
\printinunitsof{pt}\prntlen{\myzw},
\printinunitsof{mm}\prntlen{\myzw},
\printinunitsof{bp}\prntlen{\myzw}.
\textbackslash baselineskip:
\printinunitsof{pt}\prntlen{\baselineskip},
\printinunitsof{mm}\prntlen{\baselineskip},
\printinunitsof{bp}\prntlen{\baselineskip}.
\subsection{縦}
\subsubsection{設定値}
\textbackslash topmargin:
\printinunitsof{pt}\prntlen{\topmargin},
\printinunitsof{mm}\prntlen{\topmargin}.
\textbackslash headheight:
\printinunitsof{pt}\prntlen{\headheight},
\printinunitsof{mm}\prntlen{\headheight},
\printinunitsof{bp}\prntlen{\headheight}.
\textbackslash headsep:
\printinunitsof{pt}\prntlen{\headsep},
\printinunitsof{mm}\prntlen{\headsep}.
\textbackslash topskip:
\printinunitsof{pt}\prntlen{\topskip},
\printinunitsof{mm}\prntlen{\topskip},
\printinunitsof{bp}\prntlen{\topskip}.
\textbackslash textheight:
\printinunitsof{pt}\prntlen{\textheight},
\printinunitsof{mm}\prntlen{\textheight},
\printinunitsof{bp}\prntlen{\textheight}.
\textbackslash footskip:
\printinunitsof{pt}\prntlen{\footskip},
\printinunitsof{mm}\prntlen{\footskip}.
\subsubsection{上}
\newlength{\mytop}
\setlength{\mytop}{\topmargin}
\addtolength{\mytop}{1in}
紙上端⇔ヘッダ上端:
\printinunitsof{mm}\prntlen{\mytop}.
\addtolength{\mytop}{\headheight}
紙上端⇔ヘッダ下端:
\printinunitsof{mm}\prntlen{\mytop}.
\addtolength{\mytop}{\headsep}
紙上端⇔ボディ上端:
\printinunitsof{mm}\prntlen{\mytop}.
←上マージン30 mm(目安)
\subsubsection{上下間}
ボディ高さ:
\printinunitsof{mm}\prntlen{\textheight}.
\subsubsection{下}
\newlength{\mybottom}
\setlength\mybottom{\paperheight}
\addtolength{\mybottom}{-\mytop}
\addtolength{\mybottom}{-\textheight}
紙下端⇔ボディ下端:
\printinunitsof{mm}\prntlen{\mybottom}.
←下マージン25 mm(目安)
\addtolength\mybottom{-\footskip}
紙下端⇔フッタ下端:
\printinunitsof{mm}\prntlen{\mybottom}.
\subsection{横}
\subsubsection{設定値}
\textbackslash oddsidemargin:
\printinunitsof{pt}\prntlen{\oddsidemargin},
\printinunitsof{mm}\prntlen{\oddsidemargin}.
\textbackslash textwidth:
\printinunitsof{pt}\prntlen{\textwidth},
\printinunitsof{mm}\prntlen{\textwidth},
\printinunitsof{bp}\prntlen{\textwidth}.
\textbackslash columnsep:
\printinunitsof{pt}\prntlen{\columnsep},
\printinunitsof{mm}\prntlen{\columnsep}.
\textbackslash linewidth:
\printinunitsof{pt}\prntlen{\linewidth},
\printinunitsof{mm}\prntlen{\linewidth},
\printinunitsof{bp}\prntlen{\linewidth}.
\subsubsection{左}
\newlength{\myleft}
\setlength{\myleft}{\oddsidemargin}
\addtolength\myleft{1in}
紙左端⇔左カラム左端:
\printinunitsof{mm}\prntlen{\myleft}.
←左マージン20 mm(目安)
\subsubsection{左右間}
左カラム左端⇔右カラム右端:
\printinunitsof{mm}\prntlen{\textwidth}.
左右カラム間:
\printinunitsof{mm}\prntlen{\columnsep}.
←カラム間7 mm(目安)
\subsubsection{右}
\newlength{\myright}
\setlength{\myright}{\paperwidth}
\addtolength\myright{-\myleft}
\addtolength\myright{-\textwidth}
紙右端⇔右カラム右端:
\printinunitsof{mm}\prntlen{\myright}.
←右マージン20 mm(目安)
\section{フォント}
\subsection{本文}
明朝体Serif
\textsf{ゴシック体San Serif}
\texttt{等幅Type Writer}
\subsection{数式}
\begin{align}
\frac{\pi}{2} &=
\left( \int_{0}^{\infty} \frac{\sin x}{\sqrt{x}} dx \right)^2 \nonumber \\
&= \sum_{k=0}^{\infty} \frac{(2k)!}{2^{2k}(k!)^2} \frac{1}{2k+1} \nonumber \\
&= \prod_{k=1}^{\infty} \frac{4k^2}{4k^2 - 1} \nonumber
\end{align}
\acknowledgment{%
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□
謝辞の文字ズレ確認用。
行間で左右の位置が一致していることを確認。
特に最終行と他の行の間。
}
\begin{thebibliography}{9}
\bibitem{one}
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□□■□□□□□□□□□■□□□□□□□□□■
□□□□□□□□□
\bibitem{two}
参考文献の文字ズレ確認用。
行間で左右の位置が一致していることを確認。
特に最終行と他の行の間。
\bibitem{three}
\textbackslash labelwidth: \the\labelwidth,
\textbackslash labelsep: \the\labelsep,
\textbackslash labelwidth + \textbackslash labelsep:
\newlength{\temptotal}\setlength{\temptotal}{\labelwidth}
\addtolength{\temptotal}{\labelsep}\the\temptotal,
\textbackslash leftmargin: \the\leftmargin,
\textbackslash zw: \the\myzw,
\textbackslash linewidth: \the\linewidth,
\textbackslash textwidth: \the\textwidth.
\end{thebibliography}
\end{document}