%% %% This is file `buturijikken.sty', %% %% Copyright (c) 2007 IUH Iaw-Gnul. %% All rights reserved. %% %% History: 2007/04/07 v1.0a: first version %% 2007/04/27 v1.0b: add some explanation %% \typeout{buturijikken.sty v1.0b --- 2007/04/27} %========================================================================================= % % section and subsection % %========================================================================================= %------- ``section'' などを設定する。 ---------------------------------------------------- % % 以下、`jsarticle.cls'より引用: % %\if@twocolumn % \newcommand{\section}{% % \@startsection{section}{1}{\z@}% % {0.6\Cvs}{0.4\Cvs}% % {\normalfont\large\headfont\raggedright}} %\else % \newcommand{\section}{% % \if@slide\clearpage\fi % \@startsection{section}{1}{\z@}% % {\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ % {.5\Cvs \@plus.3\Cdp}% 後アキ % {\normalfont\Large\headfont\raggedright}} %\fi %\if@twocolumn % \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}% % {\z@}{\z@}% % {\normalfont\normalsize\headfont}} %\else % \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}% % {\Cvs \@plus.5\Cdp \@minus.2\Cdp}% 前アキ % {.5\Cvs \@plus.3\Cdp}% 後アキ % {\normalfont\large\headfont}} %\fi %\if@twocolumn % \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}% % {\z@}{\z@}% % {\normalfont\normalsize\headfont}} %\else % \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}% % {\Cvs \@plus.5\Cdp \@minus.2\Cdp}% % {\z@}% % {\normalfont\normalsize\headfont}} %\fi % % なお、引数は以下のとおり: % % #1: ``section'' などの文字列(LaTeX カウンタ名) % #2: 見出しの ``レベル''(番号を出力するか否かに関係する) % #3: 見出しの字下げ量 % #4: 見出しの上側の空白量と見出しの後の字下げの有無に関係する寸法 % #5: 見出しの下側の空白量または,本文を追い込む際の見出しの後の空白量に関係する寸法 % (負値の場合、見出し後に改行されず絶対値分だけ水平方向の空白がつくられる) % #6: 見出しの書体などの設定 % #7: 目次用タイトル % #8: 本文用タイトル % %----------------------------------------------------------------------------------------- %------- ``section''、``subsection''を``第何章''、``第何節''に変更する。 ----------------- % %\newcommand{\presubsectionname}{第} %\newcommand{\postsubsectionname}{節} %\renewcommand{\presectionname}{第} %\renewcommand{\postsectionname}{章} %\renewcommand{\thesection}{\presectionname\@arabic\c@section\postsectionname} %\renewcommand{\thesubsection}{\presubsectionname\@arabic\c@subsection\postsubsectionname} % %----------------------------------------------------------------------------------------- %------- ``section''などの見出しの数字をサンセリフからボールドに変更する。 --------------- % \renewcommand{\headfont}{\bfseries} % %----------------------------------------------------------------------------------------- %========================================================================================= % % footnote % %========================================================================================= %------- ``footnote''のマークを変更する。 ------------------------------------------------ % %\renewcommand{\thefootnote}{\arabic{footnote} \hspace{-1.5pt})} %\renewcommand{\thefootnote}{$*$\arabic{footnote}} % %----------------------------------------------------------------------------------------- %========================================================================================= % % mathematical functions % %========================================================================================= %------- 数式番号を``section''の番号でつける。-------------------------------------------- % \def\theequation{\thesubsection.\arabic{equation}} \@addtoreset{equation}{section} % %----------------------------------------------------------------------------------------- %------- 微分記号を定義する。------------------------------------------------------------- % \def\dif{\@ifnextchar[{\@dif}{\@dif[]}}% \def\@dif[#1]#2#3{\frac{d^{#1}#2}{d#3^{#1}}} % % 命令:\dif{y}{x} % dy % 表示:-- % dx % % 命令:\dif[n]{y}{x} % n % d y % 表示:---- % n % d x % \def\pdif{\@ifnextchar[{\@pdif}{\@pdif[]}} \def\@pdif[#1]#2#3{\frac{\partial^{#1}#2}{\@for\@@pdif:=#3\do{\partial\@@pdif}}} % % 命令:\pdif[l]{z}{x^{m},y^{n}} % l % d z % 表示:------- (ただし、偏微分の記号partialを用いる) % m n % dx dy % %----------------------------------------------------------------------------------------- %------- ベクトル解析の記号を定義する。--------------------------------------------------- % \def\vc#1{\mbox{\boldmath $#1$}}% 太字斜体ベクトル \def\grad{\nabla}% gradient \def\dive{\nabla\cdot}% divergence \def\rota{\nabla\times}% rotation \def\curl{\nabla\times}% curl \def\lapl{\Delta}% Laplacian % %----------------------------------------------------------------------------------------- %------- ブラケット記号を定義する。------------------------------------------------------- % \def\bra<#1|{\left<#1\right|} \def\ket|#1>{\left|#1\right>} \def\braket<#1>{\left<#1\right>} \def\bracket<#1|#2>{\left<#1\vphantom{#2}\right|\left.\kern-3pt\vphantom{#1}#2\right>} \def\braccket<#1|#2|#3>{\left<#1\vphantom{#3}\right|#2\left|\vphantom{#1}#3\right>} % % 命令:\bra % 表示:|b> % % 命令:\braket % 表示: % % 命令:\bracket % 表示: % % 命令:\bracket % 表示: % %----------------------------------------------------------------------------------------- %========================================================================================= % % page style % %========================================================================================= %------- ヘッダ・フッダを設定する。 % \def\ps@buturijikken{% \let\@mkboth=\@gobbletwo \def\@oddfoot {\hfill\thepage\hfill} \def\@evenfoot{\hfill\thepage\hfill} % % 本文中でレポートのタイトルを % \def\titleofthispaper{title of this paper} % などと定義しておけば、ヘッダにタイトルが表示されるようになる。 % \def\@oddhead {学籍番号: \quad 氏名: \hfill \titleofthispaper} \def\@evenhead{学籍番号: \quad 氏名: \hfill \titleofthispaper} % % レポート作成者の学籍番号・氏名を % \def\@oddhead {学籍番号:03\_14159 \quad 氏名:L.\ D.\ Landau \hfill \titleofthispaper} % \def\@evenhead{学籍番号:03\_14159 \quad 氏名:L.\ D.\ Landau \hfill \titleofthispaper} % などと定義しておけば、ヘッダに学籍番号、氏名が表示されるようになる。 % } % %----------------------------------------------------------------------------------------- %========================================================================================= % % labels and references % %========================================================================================= %------- 相互参照に関わる命令を改めて定義する。 ------------------------------------------ % \newcommand\seclab[1]{\label{sec:#1}}% 節のラベル \newcommand\secref[1]{\ref{sec:#1}}% 節の参照 \newcommand\sseclab[1]{\label{ssec:#1}}% 小節のラベル \newcommand\ssecref[1]{\ref{ssec:#1}}% 小節の参照 \newcommand\figlab[1]{\label{fig:#1}}% 図のラベル \newcommand\figref[1]{\figurename\ref{fig:#1}}% 図の参照 \newcommand\tablab[1]{\label{tab:#1}}% 表のラベル \newcommand\tabref[1]{\tablename\ref{tab:#1}}% 表の参照 \newcommand\eqnlab[1]{\label{eqn:#1}}% 式のラベル \newcommand\eqnref[1]{(\ref{eqn:#1})}% 式の参照 % %----------------------------------------------------------------------------------------- %% %% End of file `buturijikken.sty'. %%