-
Notifications
You must be signed in to change notification settings - Fork 1
/
kansaimonthlyreport.sty
227 lines (197 loc) · 5.97 KB
/
kansaimonthlyreport.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
% -*- yatex; -*- this is a style file for monthly meeting log.
%please use it like:
%\documentclass[mingoth,a4paper]{jsarticle}
%\usepackage{monthlyreport}
% Kansai Debian Meeting resources
% Copyright (C) 2007 Takaya Yamashita
% Thank you for Tokyo Debian Meeting resources
% 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{atbegshi}
\ifnum 42146=\euc"A4A2
\AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}
\else
\AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
\fi
\usepackage[dvipdfmx]{hyperref}
\usepackage{url}
\usepackage[dvipdfmx]{color}
\usepackage{enumitem}
\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}
\makeindex
%% 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}{15cm}\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{black}{white}{\TheSbox}
%{\TheSbox}
\vspace{6pt}% skip after
}
%end of commandline
%%% start of santaku
\makeatletter
\newwrite\tf@jqz
\immediate\openout\tf@jqz\jobname.jqz\relax
\makeatother
\newcounter{santakucounter}
\newcommand{\santaku}[5]{%
\addtocounter{santakucounter}{1}
\addtocontents{jqz}{\arabic{santakucounter}. #5\\}
\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{26}{26}\headfont\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}}}
{\normalfont\Large\headfont}}
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
{\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
{\z@}%
{\normalfont\normalsize\headfont\textbf}}
% {\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}
{#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]{%
\newpage
第\debmtgnumber{}回 関西Debian勉強会 \debmtgyear{}年\debmtgmonth{}月
%
% top line
\vspace{0.1mm}\\
%{\color{dancerlightblue}\rule{\hsize}{2mm}}
{\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}
%
%
%{\color{dancerdarkblue}\rule{0.74\hsize}{2mm}}
{\rule{0.74\hsize}{2mm}}
%
\vspace{2cm}
}
% BTSの番号を見るためのコマンド
\newcommand{\debianbug}[1]{Bug\##1\footnote{\url{http://bugs.debian.org/#1}}}
% for dancerj
\newcommand{\fgref}[1]{図\ref{#1}}
\newcommand{\tbref}[1]{表\ref{#1}}
%
% prework
%
\newenvironment{prework}[1]%
{%begin prework
\subsection{#1}
}
{%end prework
}
\newenvironment{prework*}[1]%
{%begin prework
\subsection*{#1}
}
{%end prework
}