changeset 125:77ce99b5c676

Fix pageNumber
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Thu, 01 Mar 2018 16:23:35 +0900
parents 1d58e9b34612
children d15c0f582bb7
files paper/abstract.tex paper/master_paper.pdf paper/master_paper.sty paper/master_paper.tex
diffstat 4 files changed, 17 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/paper/abstract.tex	Thu Mar 01 15:35:41 2018 +0900
+++ b/paper/abstract.tex	Thu Mar 01 16:23:35 2018 +0900
@@ -1,4 +1,4 @@
-\begin{abstract}
+\chapter*{要旨}
 現在の OS では信頼性と拡張性を両立させることが要求されている。
 本研究室では 処理を Code Gear、 データを Data Gear という単位を用いて信頼性と拡張性をメタレベルで保証する Gears OS を開発している。
 
@@ -19,9 +19,7 @@
 モジュール化、par goto 構文の実装についても考察する。
 また、並列処理を行う例題を用いて評価を行う。
 
-\end{abstract}
-
-\begin{abstract_eng}
+\chapter*{Abstract}
 Reliability and extensibility is necessary in computer operating system.
 We are developing Gears OS, which has Code Gear and Data Gear as units of computation,
 and it also has meta level computations.
@@ -37,5 +35,3 @@
 
 In this paper, we describe concept of Gears OS and implementation of parallelism execution structure, module system, and  par goto syntax.
 We evaluate Gears OS by parallel computation examples.
-\end{abstract_eng}
-
Binary file paper/master_paper.pdf has changed
--- a/paper/master_paper.sty	Thu Mar 01 15:35:41 2018 +0900
+++ b/paper/master_paper.sty	Thu Mar 01 16:23:35 2018 +0900
@@ -192,7 +192,6 @@
 }
 
 \newcommand{\makecommission} {
-  \thispagestyle{empty}
   \null
   \vskip 10 em
   \begin{center}
@@ -225,7 +224,6 @@
 %abstract
 \renewenvironment{abstract}{%
       \titlepage
-      \thispagestyle{empty}
       \null\vfil
       \@beginparpenalty\@lowpenalty
        {\Huge \bfseries \abstractname}%
@@ -236,7 +234,6 @@
 
 \newenvironment{abstract_eng}{%
   \titlepage
-  \thispagestyle{empty}
   \null\vfil
   \@beginparpenalty\@lowpenalty
       {\Huge \bfseries \abstractengname}%
@@ -247,16 +244,15 @@
 
 %目次
 \renewcommand{\tableofcontents}{%
-  \pagestyle{plain}
+  \pagestyle{anotherplain}
   \if@twocolumn\@restonecoltrue\onecolumn
   \else\@restonecolfalse\fi
   \chapter*{\contentsname
     \@mkboth{\contentsname}{\contentsname}%
-  }  \pagenumbering{roman}\@starttoc{toc}%
+  }  \pagenumbering{arabic}\@starttoc{toc}%
   \if@restonecol\twocolumn\fi
 }
 
-% 目次用ページ番号
 \newcommand\frontmatter{%
   \cleardoublepage
   %\@mainmatterfalse
@@ -291,15 +287,13 @@
 
 %章
 \renewcommand{\chapter}{%
-%  \pagestyle{plain}
-%  \pagestyle{m@tterheadings}
   \pagestyle{anotherheadings}
   \if@openright\cleardoublepage\else\clearpage\fi
-%  \thispagestyle{jpl@in}%
   \thispagestyle{anotherplain}%
   \global\@topnum\z@
   \@afterindentfalse
   \secdef\@chapter\@schapter}
+
 \def\@chapter[#1]#2{%
   \ifnum \c@secnumdepth >\m@ne
     \refstepcounter{chapter}%
@@ -406,9 +400,9 @@
 \def\ps@anotherheadings{%
   \let\@mkboth\@gobbletwo
   \let\ps@jpl@in\ps@headnombre
-  \def\@oddfoot{\reset@font%
-    \textbf{\footnotesize \@leftfoot}\hfil\bf\thepage}%
-  \let\@evenfoot\@empty
+  %\def\@oddfoot{\reset@font%
+    %\textbf{\footnotesize \@leftfoot}\hfil\bf\thepage\hfill}%
+  %\let\@evenfoot\@empty
   \def\@oddhead{\hss
 %      \underline{\hbox to \textwidth{\hfil\textbf{\rightmark}}%
       \underline{\hbox to \textwidth{\@lefthead\hfil\textbf{\leftmark}}%
@@ -416,6 +410,7 @@
 
   \def\chaptermark##1{\markboth{%
      \ifnum \c@secnumdepth >\m@ne
+     %あやしい
        \@chapapp\thechapter\@chappos\hskip1zw
      \fi
      ##1}{}}%
@@ -427,9 +422,8 @@
 \def\ps@anotherplain{%
   \let\@mkboth\@gobbletwo
   \let\ps@jpl@in\ps@headnombre
-  \def\@oddfoot{\reset@font%
-    \textbf{\footnotesize \@leftfoot}\hfil\bf\thepage}%
-  \let\@evenfoot\@empty
+  \def\@oddfoot{\reset@font\hfill\bf\thepage\hfill}%
+  \let\@evenfoot\@oddfoot
   \let\@oddhead\@empty
   \def\chaptermark##1{\markboth{%
      \ifnum \c@secnumdepth >\m@ne
--- a/paper/master_paper.tex	Thu Mar 01 15:35:41 2018 +0900
+++ b/paper/master_paper.tex	Thu Mar 01 16:23:35 2018 +0900
@@ -64,13 +64,14 @@
 \makeindex
 \begin{document}
 %rome
-\frontmatter
+\maketitle
 
-\maketitle
+\pagenumbering{roman}
+\setcounter{page}{0}
+\makecommission
+
 \newpage
 
-\makecommission
-
 %要旨
 \input{abstract.tex}
 
@@ -78,6 +79,7 @@
 \addcontentsline{toc}{chapter}{研究関連論文業績}
 \input{history.tex}
 
+\mainmatter
 %目次
 \tableofcontents
 
@@ -90,10 +92,6 @@
 %リスト目次
 \lstlistoflistings
 
-
-%arabic
-\mainmatter
-
 %chapters
 \input{introduction.tex}
 \input{gearsOS.tex}