%% File `pfr_itc26.sty'.
%% The Japan Society of Plasma Science and Nuclear Fusion Research
%% http://www.jspf.or.jp
%% Author: Haruhiko Okumura <okumura@edu.mie-u.ac.jp>
%% Modification for ITC-26: A. Shimizu <akihiro@nifs.ac.jp>


\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pfr_itc26}[2017/11/09 ITC-26]

\renewcommand\normalsize{%
%%% NOTE: text lines are separated by 4.48mm.
  \@setfontsize\normalsize\@xpt{4.48mm}
  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@}
\normalsize

%%% NOTE: text width (including column separation) is 174mm (= 82*2+10)
\setlength\textwidth {174mm}
%%% NOTE: column separation is 10mm.
\setlength\columnsep {10mm}
%%% NOTE: text paragraph indentation is 6.5mm.
\setlength\parindent {6.5mm}
\setlength\headheight{10pt}
\setlength\headsep   {5mm}
\setlength\footskip  {0pt}
 
%%% NOTE: first and last (56th) lines are separated by 246.4mm
\setlength\textheight  {246.4mm} % 4.48mm * 55
\addtolength\textheight{\topskip}
\addtolength\textheight{0.1\p@}

\setlength\topmargin{\paperheight}
\addtolength\topmargin{-\textheight}
\addtolength\topmargin{-\headheight}
\addtolength\topmargin{-\headsep}
\addtolength\topmargin{-\footskip}
\setlength\topmargin{0.5\topmargin}
\addtolength\topmargin{-1in}

\setlength{\oddsidemargin}{\paperwidth}
\addtolength{\oddsidemargin}{-\textwidth}
\setlength{\oddsidemargin}{.5\oddsidemargin}
\addtolength{\oddsidemargin}{-1in}
\setlength{\evensidemargin}{\oddsidemargin}

\newcommand*{\CorrespondingAuthor}[1]{\gdef\@CorrespondingAuthor{#1}}
\newcommand*{\CorrespondingAffiliation}[1]{\gdef\@CorrespondingAffiliation{#1}}
%\newcommand*{\PaperNum}[1]{\gdef\@PaperNum{#1}}
\newcommand*{\AbstNum}[1]{\gdef\@AbstNum{#1}}
%\newcommand*{\RegistrationNum}[1]{\gdef\@RegistrationNum{#1}}
\newcommand*{\PostalAddress}[1]{\gdef\@PostalAddress{#1}}
\newcommand*{\Tel}[1]{\gdef\@Tel{#1}}
\newcommand*{\Fax}[1]{\gdef\@Fax{#1}}
\newcommand*{\Topic}[1]{\gdef\@Topic{#1}}
\newcommand*{\affiliation}[1]{\gdef\@affiliation{#1}}
\newcommand*{\keywords}[1]{\gdef\@keywords{#1}}
\newcommand*{\DOI}[1]{\gdef\@DOI{#1}}
\newcommand*{\email}[1]{\gdef\authors@mail{#1}}

\renewcommand{\maketitle}{\par
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hb@xt@1.8em{%
                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@maketitle
      \else
        \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \global\@topnum\z@
      \@maketitle
    \fi
%   \thispagestyle{empty}%
    \@thanks
  \endgroup
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@affiliation\@empty
  \global\let\@date\@empty
% \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
  \ifx\authors@mail\@undefined\else{%
    \def\@makefntext{\parindent1em \noindent}
    \footnotetext[0]{\itshape author's e-mail:\ \authors@mail}%
  }\fi
  \global\let\authors@mail\@undefined}
\def\@maketitle{%
  \newpage\null
  \begin{center}
    \let\footnote\thanks
    \def\sup##1{$^{##1)}$}
    \ifx\@title\@undefined\else
      {\LARGE\bfseries\@title\par}\fi
%%% NOTE: separation between title and author
    \vskip 12pt
    \ifx\@author\@undefined\else
      {\large \@author \par}
    \fi
    \ifx\@affiliation\@undefined\else
%%% NOTE: separation between author and affiliation
      \vskip 3pt
      {\itshape\@affiliation}\par
    \fi
    \ifx\@date\@undefined\else
%%% NOTE: separation between affiliation and date
      \vskip 3pt
      \@date
    \fi
  \end{center}\par
%%% NOTE: separation between date and abstract
  \vskip 6pt
  \centerline{\box\@abstractbox}
  \ifx\@keywords\@undefined\else
    \vskip\baselineskip\vskip-8pt\relax
    \centerline{%
      \parbox{158mm}{\hangindent6.5mm
        \textbf{Keywords:} \@keywords}}%
  \fi
%%% NOTE: preferable: \href{http://dx.doi.org/\@DOI}{\@DOI}
  \ifx\@DOI\@undefined\else
    \vskip\baselineskip\vskip-8pt\relax
    \centerline{\parbox{158mm}{DOI: \@DOI}}%
  \fi
%%% NOTE: separation between keywords and text
  \vskip 12pt}

\newbox\@abstractbox
\renewenvironment{abstract}{%
  \global\setbox\@abstractbox\hbox\bgroup
%%% NOTE: abstract width is 158mm, indent is 6.5mm
  \begin{minipage}{158mm}\parindent6.5mm\relax}%
  {\end{minipage}\egroup}

%%%%% Cover page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\coverpage}{
\newpage\null
\thispagestyle{empty}
\vspace{-10mm}

\begin{minipage}[t]{160mm}
   \begin{center}
      \large{\textbf{Cover Page}\\
      Fill out and attach to your manuscript  --- DUE Thursday, December 28, 2017}\\
      \vspace{10mm}
      \Large{26th International Toki Conference (ITC-26)\\
11th Asia Plasma and Fusion Association Conference (APFA-11)}\\
      \huge{\textbf{-- New Era in Plasma and Fusion Research --}}\\
      \vspace{15mm}
   \end{center}
\end{minipage}

\renewcommand{\arraystretch}{1.5}
\large{
\begin{tabularx}{160mm}{|l|X|} \hline
   Presentation Number:        & \ifx\@title\@undefined\else {\bfseries\@AbstNum}\fi \\ \hline
%   Registration Number: & \ifx\@title\@undefined\else {\bfseries\@RegistrationNum}\fi \\ \hline
   Paper Title:         & \ifx\@title\@undefined\else {\bfseries\@title}\fi \\ \hline
   CorrespondingAuthor: & \ifx\@title\@undefined\else {\bfseries\@CorrespondingAuthor}\fi \\ \hline
   Affiliation:         & \ifx\@title\@undefined\else {\bfseries\@CorrespondingAffiliation}\fi \\ \hline
   Full Postal Address: & \ifx\@title\@undefined\else {\bfseries\@PostalAddress}\fi \\ \hline
   Telephone:           & \ifx\@title\@undefined\else {\bfseries\@Tel}\fi \\ \hline
   Fax.:                & \ifx\@title\@undefined\else {\bfseries\@Fax}\fi \\ \hline
   E-mail:              & \ifx\@title\@undefined\else {\bfseries\authors@mail}\fi \\ \hline
   Topic Category in ITC-26 (see the list below):      & \ifx\@title\@undefined\else {\bfseries\@Topic}\fi \\ \hline
   \multicolumn{2}{|l|}{LIST OF TOPICS CATEGORY in ITC-26 / APFA-11}\\
   \multicolumn{2}{|l|}{\shortstack[l]{\,\,\,1. Magnetically confined fusion research\\
   \,\,\,2. Theory and simulation research\\
   \,\,\,3. Laser plasma research\\
   \,\,\,4. Fusion engineering and technology development\\
   \,\,\,5. Reactor perspectives\\
   \,\,\,6. Plasma applications\\
   \, \\
   \, \\
Notes: Above categories are not in one-to-one correspondence with the 6 topics \\
in the submission site of PFR. Please choose a topic which is mostly related to \\
your article when you submit a paper on PFR online submission site.
 }} \\ \hline  
\end{tabularx}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\Large}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\large}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {-1em}%
                                    {\normalfont\normalsize}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\normalfont\normalsize}}

\renewcommand\figurename{Fig.}

\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{\small % \sffamily
    \makebox[1cm][l]{#1}#2}%
  \ifdim \wd\@tempboxa >\hsize
    {\small % \sffamily
      \list{#1}{%
        \renewcommand{\makelabel}[1]{##1\hfil}
        \itemsep    \z@
        \itemindent \z@
        \labelsep   \z@
        \labelwidth 1cm
        \listparindent\z@
        \leftmargin 1cm}\item\relax #2\endlist}
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}

\renewenvironment{thebibliography}[1]{
  \list{\@biblabel{\@arabic\c@enumiv}}%
  {\settowidth\labelwidth{\@biblabel{#1}}%
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \@openbib@code
    \usecounter{enumiv}%
    \let\p@enumiv\@empty
    \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m
  \small}
{\def\@noitemerr
  {\@latex@warning{Empty `thebibliography' environment}}%
  \endlist}

\def\@listi{\leftmargin\leftmargini
  \parsep \z@
  \topsep 0.5\baselineskip \@plus 0.2\baselineskip \@minus 0.1\baselineskip
  \itemsep \z@ \relax}
\let\@listI\@listi

\setcounter{page}{0}
\def\ps@myheadings{%
\def\@evenfoot{\hfil{\ifx\@title\@undefined\else {\bfseries\@AbstNum}\fi}-\ifnum\c@page<10 0\fi\thepage}
  \let\@oddfoot\@evenfoot
%  \def\@evenhead{\thepage\hfil\slshape\leftmark}%
%  \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
%  \def\@evenhead{Plasma and Fusion Research: Rapid Communications\hfil Volume 4, 000 (2009)}
%  \def\@evenhead{Plasma and Fusion Research: Letters\hfil Vol.~4 (2009)
%   01-\ifnum\c@page<10 0\fi\thepage}
%  \def\@evenhead{Plasma and Fusion Research: Regular Articles\hfil Vol.~4 (2009)
%   01-\ifnum\c@page<10 0\fi\thepage}
%  \def\@evenhead{Plasma and Fusion Research: Review Articles\hfil Vol.~4 (2009)
%   01-\ifnum\c@page<10 0\fi\thepage}
%\def\@evenhead{\textit{26th International Toki Conference\hfil December 5 - 8, 2017}}
\def\@evenhead{\textit{~\~}}
  \let\@oddhead\@evenhead
  \let\@mkboth\@gobbletwo
  \let\sectionmark\@gobble
  \let\subsectionmark\@gobble}

\pagestyle{myheadings}

%%% NOTE: equations are indented by 10mm.
\setlength\mathindent{10mm}

\endinput
%%
%% End of file `pfr_itc26'.
