\documentclass[a4j]{jsarticle}

\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
  \clearpage{\pagestyle{empty}\origdoublepage}}
\let\cleardoublepage\clearemptydoublepage

\usepackage{makeidx}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{float}
\usepackage{textcomp}
\usepackage{alltt}
\usepackage{ifpdf}
\usepackage[dvipdfm,
  bookmarkstype=toc=true,
  pagebackref=true,
  colorlinks=true,
  linkcolor=blue,
  urlcolor=blue,
  citecolor=blue,
  linktocpage=true,
  bookmarks=false
]{hyperref}
\usepackage{pspicture}
\usepackage{doxygen}
\pagestyle{fancyplain}

\setlength{\headheight}{5pt}
\setlength{\headwidth}{160mm}
\setlength{\textwidth}{160mm}
\setlength{\textheight}{240mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{0mm}
\setlength{\topmargin}{0mm}

\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}

\rfoot[]{\fancyplain{}{\bfseries\scriptsize \textit{Confidential}}}
\lfoot[]{\fancyplain{}{\bfseries\scriptsize \textit{Copyright (c) 2008 K\&J Software Design, Corp. All rights reserved.}}}

\usepackage{svn}

\SVNdate $Date: 2008-12-25 15:42:26 +0900 (木, 25 12 2008) $
\SVN $LastChangedRevision: 33 $

\renewcommand{\maketitle}{%
  \begin{titlepage}%
    \vskip 2em%
    \begin{center}%
      {\Large H8\+S\+D\+K リファレンスマニュアル}\\
      \vskip 6em%
      rev. \SVNLastChangedRevision \\
      \SVNDate \\
      \vfill
      箕浦 賢嗣 \\
      \vskip 1em%
      K\&Jソフトウェアデザイン \\
    \end{center}%
    \vskip 1.5em
  \end{titlepage}%
}%

\renewcommand{\footrulewidth}{0.4pt}
 \makeindex
\setcounter{tocdepth}{3}

\begin{document}
\maketitle
\pagenumbering{roman}
\tableofcontents
\newpage
\pagenumbering{arabic}
\section{はじめに}
\label{index}\hypertarget{index}{}\input{index}
\section{バグ一覧}
\label{bug}
\input{de/da5/bug}
\section{ファイル詳解}
\input{d6/de8/3694s_8h}
\input{d7/d19/adc_8h}
\input{dc/da7/assert_8h}
\input{da/d92/envelope_8h}
\input{d3/dd2/ifstub_8h}
\input{d3/dee/ioctl_8h}
\input{dd/de9/kbd__jp106_8h}
\input{d2/ded/lcd_8h}
\input{db/da0/led_8h}
\input{db/d10/music_8h}
\input{d8/d29/ps2_8h}
\input{dc/d5d/push__switch_8h}
\input{da/de4/sci_8h}
\input{d9/d88/sound_8h}
\input{d9/d67/ssrp_8h}
\input{df/d69/ssrp__skel_8h}
\input{d3/dce/stddef_8h}
\input{d6/dd1/stdio_8h}
\input{dc/d9c/stdlib_8h}
\input{da/d66/string_8h}
\input{d8/d5d/unit__test_8h}
%--- End generated contents ---

% Index
\newpage
\phantomsection
\clearemptydoublepage
\addcontentsline{toc}{section}{索引}
\printindex

\end{document}
