hgbook / ja / custom.sty

\newlength\kanjicharwidth
\settowidth{\kanjicharwidth}{$B$"(B}

\newlength\kanjicharheight
\settoheight{\kanjicharheight}{$B$"(B}

% in 10pt/jbook environment:
% kanjicharwidth=9.62216pt(= Cwd)
% kanjicharheight=7.77588pt

\setlength{\intextsep}{3.0\kanjicharheight}
\setlength{\textfloatsep}{3.0\kanjicharheight}

\newlength\defaultleftmargin
\setlength{\defaultleftmargin}{2.0\kanjicharwidth}

\newlength\defaultrightmargin
\setlength{\defaultrightmargin}{2.0\kanjicharwidth}

\newlength\defaulttopsep
\setlength{\defaulttopsep}{2.0\kanjicharheight}

\setlength{\voffset}{-20mm}
\addtolength{\textheight}{30mm} %
\setlength{\hoffset}{-10mm}
\setlength{\oddsidemargin}{-8mm}
\setlength{\evensidemargin}{-8mm}
\addtolength{\textwidth}{16mm}

%%%%%%%%%%%%%%%%%%%%

\renewenvironment{itemize}{
  \ifnum \@itemdepth >\thr@@\@toodeep\else
    \advance\@itemdepth\@ne
    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}
    \list{
      \csname \@itemitem\endcsname
    }{
      \def\makelabel##1{\hss\llap{##1}}
      \setlength{\leftmargin}{\defaultleftmargin}
      \setlength{\rightmargin}{\defaultrightmargin}
      \setlength{\topsep}{\defaulttopsep}
    }
  \fi
}{
  \endlist
}

\renewenvironment{enumerate}{
  \ifnum \@enumdepth >\thr@@\@toodeep\else
    \advance\@enumdepth\@ne
    \edef\@enumctr{enum\romannumeral\the\@enumdepth}
    \list{
      \csname label\@enumctr\endcsname
    }{
      \usecounter{\@enumctr}
      \def\makelabel##1{\hss\llap{##1}}
      \setlength{\leftmargin}{\defaultleftmargin}
      \setlength{\rightmargin}{\defaultrightmargin}
      \setlength{\topsep}{\defaulttopsep}
    }
  \fi
}{
  \endlist
}

%%%%%%%%%%%%%%%%%%%%
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.