%
% TEX パートファイル サンプル
%
% ・ このファイルはメインファイルから読み込まれることで使用される.
%
% ・ このファイル単体ではコンパイルできないので注意.
%
%
% 2002/10/09  森川 靖大   作成
% 2003/11/14  森川 靖大   作成
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%   Subtitle, Date, Filename Setting     %%%%%%%%
\markright{jarticle サンプル}
%\markboth{jarticle サンプル}{jarticle サンプル}  % 両面印刷用
\Ddate{2002/10/14}
\Dfile{article-sample-parts.tex}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%   Set Counter (chapter, section etc. ) %%%%%%%%
\setcounter{section}{0}
\setcounter{footnote}{0}
\setcounter{equation}{0}
%\setcounter{page}{1}
%\setcounter{figure}{0}
%\setcounter{table}{0}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%        Counter Output Format           %%%%%%%%
\def\thesection{\arabic{section}}
\def\thesubsection{\arabic{section}-\arabic{subsection}}
\def\theequation{\arabic{equation}}
\def\thefigure{\arabic{figure}}
\def\thetable{\arabic{table}}
%\def\thefootnote{\arabic{footnote})}
\def\thepage{\arabic{page}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%              Text Start                %%%%%%%%

\section{節}


%\begin{itembox}[l]{まとめ}
% \Dparskip \Dparindent \vspace{-6mm}
% まとめです.
%\end{itembox}

ここから本文を書いて下さい.



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%          1-1   数式            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\subsection{数式}

こんな感じで数式を書き込むと,
\begin{verbatim}
    \begin{eqnarray}
      \Deqlab{report-sample-parts-連続の式}
       \DP{\rho}{t} + \Ddiv (\rho \Dvect{V}) = 0.
    \end{eqnarray}
\end{verbatim}
%
こんな風になります.
%
\begin{eqnarray}
 \Deqlab{report-sample-parts-連続の式}
  \DP{\rho}{t} + \Ddiv (\rho \Dvect{V}) = 0.
\end{eqnarray}
%
実はこの数式の中に
\verb!\Deqlab{report-sample-parts-連続の式}!と書き込んであります.
そこで\verb!\Deqref{report-sample-parts-連続の式}!と書き込むと,
\Deqref{report-sample-parts-連続の式}というようにラベルに対応した
数式番号が表示できます.

\pagebreak


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%      1-2 数式(カウンタ無視)    %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\subsection{数式(カウンタ無視)}



脚注などに数式をつける場合, 本文のカウンタを無視したくなることもあるでしょ
う. その場合は以下のように書き込みましょう
%
\begin{verbatim}
        $$
         \DP{p}{z} = \rho g.
         \eqno \textrm{(1-11)}
        $$
\end{verbatim}
%
すると, 以下のようになります. ここの式番号はカウンタに影響を与え
ません.
%
$$
 \Deqlab{report-sample-parts-静水圧の式}
  \DP{p}{z} = \rho g.
 \eqno \textrm{(1-11)}
$$

\pagebreak


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%         1-3 図の貼込み         %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\subsection{図の貼込み}



最後に図の貼込み方です.
このファイルと同じ場所に eps というディレクトリがあり, そこに
report-sample.eps という画像があるとすると, 以下のように記述すれば
OKです.
%
\begin{verbatim}
      \begin{figure}[htbp]
         \begin{center}
          \Depsf[][]{./eps/sample.eps}
         \end{center}
         \caption{
          見出し
         }
         \Dfiglab{report-sample-ラベル}
      \end{figure}
\end{verbatim}
%
するとこんな感じで表示されるはずです.
%
\begin{figure}[htbp]
 \begin{center}
  \Depsf[][]{./eps/article-sample.eps}
 \end{center}
 \caption{
  見出し
 }
 \Dfiglab{sample-ラベル}
\end{figure}
%

図に関しても\verb!\Dfiglab!というラベルの関数が電脳スタイルには用意
されてます. これは\verb!\Dfigref!というラベルで呼び出すことができます.

ま, そんな感じで


\begin{center}
 {\bf 
 --------------------------------------
 本文ここまで
 --------------------------------------
 } 
\end{center}



%%%   ※ 以下は 付録 (Appendix) 用にカウンター  ※   %%%
%%%   ※ や式番号などの定義を変更した部分です.  ※   %%%
%%%   ※ 不要な場合は削除してください.          ※   %%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%         以下は付録 (Appendix)          %%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%     付録 用に Counter, OutputFormat を設定     %%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%   Set Counter (chapter, section etc. ) %%%%%%%%
%\setcounter{section}{0}
\setcounter{subsection}{0}
\setcounter{equation}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
%\setcounter{footnote}{0}
%\setcounter{page}{1}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%        Counter Output Format           %%%%%%%%
%\def\thesection{\arabic{section}}
%\def\thesubsection{\arabic{section}-\arabic{subsection}}
\def\thesubsection{付録 \Alph{subsection}}
\def\theequation{\Alph{subsection}-\arabic{equation}}
\def\thefigure{\Alph{subsection}-\arabic{figure}}
\def\thetable{\Alph{subsection}-\arabic{table}}
\def\thepage{\arabic{page}}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%        付録          %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setcounter{equation}{0}
\setcounter{figure}{0}
%\subsection{}

%\subsubsection{}

%%%%%%%%              Text End                  %%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%