-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmonthlyreport.sty
268 lines (223 loc) · 6.93 KB
/
monthlyreport.sty
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
% this is a style file for monthly meeting log.
%please use it like:
%\documentclass[mingoth,a4paper]{jsarticle}
%\usepackage{monthlyreport}
% Tokyo Debian Meeting resources
% Copyright (C) 2007 Junichi Uekawa
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
\usepackage[dvipdfmx]{graphicx}
\usepackage{fancybox}
\usepackage{longtable}
\usepackage[dvipdfmx]{hyperref}
\usepackage{url}
\usepackage[dvipdfmx]{color}
\usepackage{nextpage}
\usepackage{float}
\usepackage[table,dvipdfmx]{xcolor}
\usepackage{fancyvrb} % fancyvrb in buster or later requires xcolor, which must be used before this line
\usepackage{wrapfig}
\usepackage{tabularx}
\usepackage{multicol}
\usepackage{makeidx}
\usepackage{ascmac} % screen
\usepackage[dvips]{xy} % for advi workaround. Bug #452044
\makeindex
%http://www.naney.org/diki/dk/hyperref.html
%日本語EUC系環境の時
\AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}
%シフトJIS系環境の時
%\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
%% spacing の設定をする。外枠を減らす。
\setlength\headheight{0mm}
\setlength\topmargin{-20mm}
\setlength\headsep{0mm}
\setlength\topskip{3mm}
\setlength\maxdepth{4pt}
\setlength\columnsep{6mm}
\setlength\textheight{252mm}
\setlength\topmargin{-5mm}
\setlength\textwidth{170mm}
\setlength\oddsidemargin{-5mm}
\setlength\evensidemargin{-5mm}
%色を定義
\definecolor{dancerdarkblue}{rgb}{0,0.08,0.45}
\definecolor{dancernormalblue}{rgb}{0.8,0.9,0.95}
\definecolor{dancerlightblue}{rgb}{0.8,0.95,1}
%テーブルに色を付ける。
\rowcolors{2}{dancerlightblue}{dancernormalblue}
% commandline環境を定義。画面入出力についてはcommandline環境
% で表記する
\newenvironment{commandline}%
{\VerbatimEnvironment
\begin{Sbox}\begin{minipage}{0.95\hsize}\begin{fontsize}{7.3}{7.3} \begin{BVerbatim}}%
{\end{BVerbatim}\end{fontsize}\end{minipage}\end{Sbox}
\setlength{\fboxsep}{8pt}
% start on a new paragraph
\vspace{6pt}% skip before
\fcolorbox{dancerdarkblue}{dancerlightblue}{\TheSbox}
\vspace{6pt}% skip after
}
%end of commandline
\newcommand{\commandlineinput}[1]%
{
\begin{Sbox}
\begin{minipage}{0.95\hsize}
\begin{fontsize}{7.3}{7.3}
\VerbatimInput{#1}
\end{fontsize}
\end{minipage}
\end{Sbox}
\setlength{\fboxsep}{8pt}
% start on a new paragraph
\vspace{6pt}% skip before
\fcolorbox{dancerdarkblue}{dancerlightblue}{\TheSbox}
\vspace{6pt}% skip after
}
%%% start of santaku
\makeatletter
\newwrite\tf@jqz
\immediate\openout\tf@jqz\jobname.jqz\relax
\makeatother
\newcounter{santakucounter}
\newcommand{\santaku}[6]{%
\addtocounter{santakucounter}{1}
\addtocontents{jqz}{\arabic{santakucounter}. #5 #6\\}
\begin{minipage}{1\hsize}
問題\arabic{santakucounter}.
#1\\
□ A #2\\
□ B #3\\
□ C #4
\end{minipage}
\hspace{1cm}
\\
}
%%% end of santaku
\newcommand{\emptyspace}{(\underline{\hspace{1cm}})}
\newcommand{\subsubsubsection}[1]{%
\vspace{1zw}{\bf #1}\\}
% sectionをセンタリングするとかの小技を駆使
\makeatletter
\renewcommand{\section}{\@startsection{section}{1}%
{\z@}%
{\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ
{.5\Cvs \@plus.3\Cdp}% 後アキ
{\normalfont\gt\fontsize{18}{18}\headfont\color{dancerdarkblue}\raggedright}} % style
\renewcommand{\subsection}{\@startsection{subsection}{2}%
%{-2.5zw}%
{\z@}%
{\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ
{.5\Cvs \@plus.3\Cdp}% 後アキ
{\normalfont\large\headfont\color{dancerdarkblue}}}
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
{\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
{\z@}%
{\normalfont\normalsize\headfont\color{dancerdarkblue}}}
% caption を箱に入れてみる
\renewcommand{\@makecaption}[2]{\small
\vskip\abovecaptionskip
\ifdim \wd\@tempboxa <\hsize \centering \fi
{\color{dancerdarkblue}#1\hskip1zw\relax #2\par}
\vskip\belowcaptionskip}
%theindex を改変
\renewenvironment{theindex}{% 索引を3段組で出力する環境
\columnseprule.4pt \columnsep 2zw
\ifdim\textwidth<\fullwidth
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{\fullwidth}
\setlength{\linewidth}{\fullwidth}
\def\presectionname{}\def\postsectionname{}%
\begin{multicols}{3}[\dancersection{\indexname}{}]%
\else
\def\presectionname{}\def\postsectionname{}%
\begin{multicols}{2}[\dancersection{\indexname}{}]%
\fi
\@mkboth{\indexname}{\indexname}%
\plainifnotempty % \thispagestyle{plain}
\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem
\raggedright
\footnotesize\narrowbaselines
}{
\end{multicols}
\clearpage
}
\makeatother
% section の代わりの環境
\newcommand{\dancersection}[2]{%
\clearpage
第\debmtgnumber{}回 東京エリアDebian勉強会 \debmtgyear{}年\debmtgmonth{}月
%
% top line
\vspace{0.1mm}\\
{\color{dancerdarkblue}\rule{\hsize}{2mm}}
%
% middle text
%
\begin{minipage}[t]{0.7\hsize}
\color{dancerdarkblue}
\vspace{1cm}
\section{#1}
\hfill{}#2\\
\end{minipage}
\begin{minipage}[t]{0.3\hsize}
\vspace{-2cm}
\hfill{}\includegraphics[height=8cm]{image200502/openlogo-nd.eps}\\
\vspace{-5cm}
\end{minipage}
%
% bottom line
{\color{dancerlightblue}\rule{0.7\hsize}{2mm}}
%
\vspace{2cm}
}
% 月例進捗報告用の環境
\newenvironment{getsureiupdate}[2]%
{% begin getsureiupdate
\begin{Sbox}
\begin{minipage}[t]{1\hsize}
{\color{dancerdarkblue}\rule{\hsize}{1.5mm}}
\begin{center}
\fcolorbox{dancerdarkblue}{dancerlightblue}{\LARGE #1} #2
\end{center}
{\color{dancerdarkblue}\rule{\hsize}{1.5mm}}
\begin{multicols}{2}
}{% end getsureiupdate
% \vfill{}
% \hfill{}
\end{multicols}
\end{minipage}
\end{Sbox}
\doublebox{\TheSbox}
}
% BTSの番号を見るためのコマンド
\newcommand{\debianbug}[1]{Bug\##1\footnote{\url{http://bugs.debian.org/#1}}}
%
% prework
%
\newenvironment{prework}[1]%
{%begin prework
\subsection{#1}
}
{%end prework
}
% use this if you want sections inside prework
\newcommand{\preworksection}[1]{\subsubsection{#1}}
\newcommand{\preworksubsection}[1]{\subsubsubsection{#1}}
% use this if you want prework that does not fit in one page on
% presentation (no-op on normal case.)
\newcommand{\preworknewpage}[1]{}
% for dancerj
\newcommand{\fgref}[1]{図\ref{#1}}
\newcommand{\tbref}[1]{表\ref{#1}}