├── README.md ├── .latexmkrc ├── cover.tex ├── cover-en.tex ├── a4full.sty ├── .gitignore └── kuis-cover.sty /README.md: -------------------------------------------------------------------------------- 1 | # kuis-thesis-cover 2 | ## How to use 3 | - See `cover.tex` or `cover-en.tex` 4 | - Compile with `platex`: `platex cover && dvipdfmx cover` 5 | -------------------------------------------------------------------------------- /.latexmkrc: -------------------------------------------------------------------------------- 1 | # -*- mode: perl; -*- 2 | $latex = 'platex %O -synctex=1 %S -interaction=batchmode'; 3 | $bibtex = 'pbibtex'; 4 | $dvipdf = 'dvipdfmx %O -o %D %S'; 5 | $pdflatex = 'pdflatex %O -synctex=1 %S -interaction=batchmode'; 6 | $makeindex = 'mendex -U %O -o %D %S'; 7 | $pdf_mode = 3; 8 | -------------------------------------------------------------------------------- /cover.tex: -------------------------------------------------------------------------------- 1 | % For bachelor thesis 2 | % \documentclass{jarticle} 3 | % For master thesis 4 | \documentclass[master]{jarticle} 5 | \usepackage{kuis-cover} 6 | 7 | \begin{document} 8 | 9 | \TITLE[題目]{題目} 10 | 11 | \AUTHOR{山田 太郎} 12 | 13 | \SUPERVISOR{佐藤 花子 教授} 14 | % For bachelor thesis 15 | % \COURSE{計算機科学} 16 | % For master thesis 17 | \COURSE{通信情報システム} 18 | 19 | \ENTRANCEMONTHYEAR{4}{2016} 20 | \COMPLETIONMONTHYEAR{3}{2020} 21 | 22 | \MAKEBACK 23 | \hspace{1cm} 24 | \MAKETITLE 25 | 26 | \end{document} 27 | -------------------------------------------------------------------------------- /cover-en.tex: -------------------------------------------------------------------------------- 1 | \documentclass{jarticle} 2 | % For bachelor thesis 3 | \usepackage[english]{kuis-cover} 4 | % For master thesis 5 | % \usepackage[master,english]{kuis-cover} 6 | 7 | \begin{document} 8 | 9 | \TITLE[My Great Work]{My Great Work} 10 | 11 | \AUTHOR{John Smith} 12 | 13 | \SUPERVISOR{Prof. Anony Mous} 14 | % In bachelor thesis, \COURSE is ignored 15 | % For master thesis 16 | \COURSE{Communications and Computer Engineering} 17 | 18 | \ENTRANCEMONTHYEAR{10}{2001} %% year in AD 19 | \COMPLETIONMONTHYEAR{9}{2008} 20 | 21 | \MAKEBACK 22 | \hspace{1cm} 23 | \MAKETITLE 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /a4full.sty: -------------------------------------------------------------------------------- 1 | % This is FULLPAGE.STY by H.Partl, Version 2 as of 15 Dec 1988. 2 | % Document Style Option to fill the paper just like Plain TeX. 3 | 4 | \typeout{Style Option FULLPAGE Version 2 as of 15 Dec 1988} 5 | 6 | \topmargin 0pt 7 | \advance \topmargin by -\headheight 8 | \advance \topmargin by -\headsep 9 | 10 | \textheight 8.9in 11 | 12 | \oddsidemargin 0pt 13 | \evensidemargin \oddsidemargin 14 | \marginparwidth 0.5in 15 | 16 | \textwidth 6.5in 17 | 18 | 19 | % For users of A4 paper: The above values are suited for american 8.5x11in 20 | % paper. If your output driver performs a conversion for A4 paper, keep 21 | % those values. If your output driver conforms to the TeX standard (1in/1in), 22 | % then you should add the following commands to center the text on A4 paper: 23 | 24 | \advance\hoffset by -3mm % A4 is narrower. 25 | \advance\voffset by 8mm % A4 is taller. 26 | 27 | \endinput 28 | 29 | 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Core latex/pdflatex auxiliary files: 2 | *.aux 3 | *.lof 4 | *.log 5 | *.lot 6 | *.fls 7 | *.out 8 | *.toc 9 | 10 | ## Intermediate documents: 11 | *.dvi 12 | *-converted-to.* 13 | # these rules might exclude image files for figures etc. 14 | # *.ps 15 | # *.eps 16 | # *.pdf 17 | 18 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 19 | *.bbl 20 | *.bcf 21 | *.blg 22 | *-blx.aux 23 | *-blx.bib 24 | *.brf 25 | *.run.xml 26 | 27 | ## Build tool auxiliary files: 28 | *.fdb_latexmk 29 | *.synctex.gz 30 | *.synctex.gz(busy) 31 | *.pdfsync 32 | 33 | ## Auxiliary and intermediate files from other packages: 34 | 35 | # algorithms 36 | *.alg 37 | *.loa 38 | 39 | # amsthm 40 | *.thm 41 | 42 | # beamer 43 | *.nav 44 | *.snm 45 | *.vrb 46 | 47 | #(e)ledmac/(e)ledpar 48 | *.end 49 | *.[1-9] 50 | *.[1-9][0-9] 51 | *.[1-9][0-9][0-9] 52 | *.[1-9]R 53 | *.[1-9][0-9]R 54 | *.[1-9][0-9][0-9]R 55 | *.eledsec[1-9] 56 | *.eledsec[1-9]R 57 | *.eledsec[1-9][0-9] 58 | *.eledsec[1-9][0-9]R 59 | *.eledsec[1-9][0-9][0-9] 60 | *.eledsec[1-9][0-9][0-9]R 61 | 62 | # glossaries 63 | *.acn 64 | *.acr 65 | *.glg 66 | *.glo 67 | *.gls 68 | 69 | # hyperref 70 | *.brf 71 | 72 | # listings 73 | *.lol 74 | 75 | # makeidx 76 | *.idx 77 | *.ilg 78 | *.ind 79 | *.ist 80 | 81 | # minitoc 82 | *.maf 83 | *.mtc 84 | *.mtc0 85 | 86 | # minted 87 | *.pyg 88 | 89 | # morewrites 90 | *.mw 91 | 92 | # nomencl 93 | *.nlo 94 | 95 | # sagetex 96 | *.sagetex.sage 97 | *.sagetex.py 98 | *.sagetex.scmd 99 | 100 | # sympy 101 | *.sout 102 | *.sympy 103 | sympy-plots-for-*.tex/ 104 | 105 | # todonotes 106 | *.tdo 107 | 108 | # xindy 109 | *.xdy 110 | -------------------------------------------------------------------------------- /kuis-cover.sty: -------------------------------------------------------------------------------- 1 | \usepackage{a4full} 2 | \usepackage{plext} 3 | \usepackage{datetime} 4 | 5 | \makeatletter 6 | %% ------------------------------------------------------------------- 7 | \newif\ifDS@master 8 | \DS@masterfalse 9 | \DeclareOption{master}{\DS@mastertrue} 10 | \newif\ifDS@en 11 | \DS@enfalse 12 | \DeclareOption{english}{\DS@entrue} 13 | %% senior theses must be written in Japanese, so "english" will be ignored 14 | \ifDS@master\else\DS@enfalse\fi 15 | \ProcessOptions 16 | 17 | \topmargin=0pt 18 | \headheight=0pt 19 | \headsep=0pt 20 | 21 | \oddsidemargin=0pt 22 | 23 | \@tempdima=1cm 24 | 25 | \hoffset=-1in 26 | \voffset=-1in 27 | 28 | \advance\hoffset by \@tempdima 29 | \advance\voffset by \@tempdima 30 | 31 | \textwidth=\paperwidth \advance\textwidth by -2\@tempdima 32 | \textheight=\paperheight \advance\textheight by -2\@tempdima 33 | 34 | \pagestyle{empty} 35 | 36 | %% ------------------------------------------------------------------- 37 | \newcounter{ENTRANCEYEAR} 38 | \newcounter{COMPLETIONYEAR} 39 | \newcounter{COMPLETIONSYEAR} 40 | \newcounter{ENTRANCEMONTH}\setcounter{ENTRANCEMONTH}{4} 41 | \newcounter{COMPLETIONMONTH}\setcounter{COMPLETIONMONTH}{3} 42 | 43 | \long\def\TITLE{\@dblarg{\@XTITLE}} 44 | \long\def\@XTITLE[#1]#2{\gdef\@TITLEFORBACK{#1}\gdef\@TITLE{#2}} 45 | 46 | \def\AUTHOR#1{\gdef\@AUTHOR{#1}} 47 | \def\SUPERVISOR#1{\gdef\@SUPERVISOR{#1}} 48 | \def\COURSE#1{\gdef\@COURSE{#1}} 49 | 50 | \def\ENTRANCEMONTHYEAR#1#2{% 51 | \setcounter{ENTRANCEMONTH}{#1}% 52 | \setcounter{ENTRANCEYEAR}{#2}% 53 | \gdef\@ENTRANCEMONTH{\the\value{ENTRANCEMONTH}}% 54 | \ifDS@en% 55 | \gdef\@ENTRANCEYEAR{\the\value{ENTRANCEYEAR}}% 56 | \else% 57 | \ifnum \the\value{ENTRANCEYEAR}>2018% 58 | \ifnum \the\value{ENTRANCEYEAR}<2020% 59 | \ifnum \the\value{ENTRANCEMONTH}>4% 60 | \gdef\@ENTRANCEERA{令和}% 61 | \gdef\@ENTRANCEYEAR{元}% 62 | \else 63 | \gdef\@ENTRANCEERA{平成}% 64 | \addtocounter{ENTRANCEYEAR}{-1988}% 65 | \gdef\@ENTRANCEYEAR{\the\value{ENTRANCEYEAR}}% 66 | \fi 67 | \else% 68 | \gdef\@ENTRANCEERA{令和}% 69 | \addtocounter{ENTRANCEYEAR}{-2018}% 70 | \gdef\@ENTRANCEYEAR{\the\value{ENTRANCEYEAR}}% 71 | \fi% 72 | \else% 73 | \gdef\@ENTRANCEERA{平成}% 74 | \addtocounter{ENTRANCEYEAR}{-1988}% 75 | \gdef\@ENTRANCEYEAR{\the\value{ENTRANCEYEAR}}% 76 | \fi% 77 | \fi} 78 | 79 | \def\COMPLETIONMONTHYEAR#1#2{% 80 | \setcounter{COMPLETIONMONTH}{#1}% 81 | \setcounter{COMPLETIONYEAR}{#2}% 82 | \setcounter{COMPLETIONSYEAR}{#2}% 83 | \gdef\@COMPLETIONMONTH{\the\value{COMPLETIONMONTH}}% 84 | \ifnum \the\value{COMPLETIONMONTH}<4 \addtocounter{COMPLETIONSYEAR}{-1}\fi% 85 | \ifDS@en% 86 | \gdef\@COMPLETIONYEAR{\the\value{COMPLETIONYEAR}}% 87 | \gdef\@COMPLETIONSYEAR{\the\value{COMPLETIONSYEAR}}% 88 | \else% 89 | \ifnum \the\value{COMPLETIONYEAR}>2018% 90 | \ifnum \the\value{COMPLETIONYEAR}<2020% 91 | \ifnum \the\value{COMPLETIONMONTH}>4% 92 | \gdef\@COMPLETIONERA{令和}% 93 | \gdef\@COMPLETIONYEAR{元}% 94 | \else 95 | \gdef\@COMPLETIONERA{平成}% 96 | \addtocounter{COMPLETIONYEAR}{-1988}% 97 | \gdef\@COMPLETIONYEAR{\the\value{COMPLETIONYEAR}}% 98 | \fi 99 | \else% 100 | \gdef\@COMPLETIONERA{令和}% 101 | \addtocounter{COMPLETIONYEAR}{-2018}% 102 | \gdef\@COMPLETIONYEAR{\the\value{COMPLETIONYEAR}}% 103 | \fi% 104 | \else% 105 | \gdef\@COMPLETIONERA{平成}% 106 | \addtocounter{COMPLETIONYEAR}{-1988}% 107 | \gdef\@COMPLETIONYEAR{\the\value{COMPLETIONYEAR}}% 108 | \fi% 109 | \ifnum \the\value{COMPLETIONSYEAR}>2018% 110 | \gdef\@COMPLETIONSERA{令和}% 111 | \ifnum \the\value{COMPLETIONSYEAR}<2020% 112 | \gdef\@COMPLETIONSYEAR{元}% 113 | \else 114 | \addtocounter{COMPLETIONSYEAR}{-2018}% 115 | \gdef\@COMPLETIONSYEAR{\rensuji{\the\value{COMPLETIONSYEAR}}}% 116 | \fi% 117 | \else% 118 | \gdef\@COMPLETIONSERA{平成}% 119 | \addtocounter{COMPLETIONSYEAR}{-1988}% 120 | \gdef\@COMPLETIONSYEAR{\rensuji{\the\value{COMPLETIONSYEAR}}}% 121 | \fi% 122 | \fi} 123 | 124 | \ifDS@en% 125 | \def\MKT@BACHELORTHESIS{Graduation Thesis} 126 | \def\MKT@MASTERTHESIS{Master's Thesis} 127 | \def\MKT@SUPERVISOR{Supervisor} 128 | \def\MKT@BACHELORSCHOOL{Faculty of Engineering} 129 | \def\MKT@BACHELORUNIVERSITY{Kyoto University} 130 | \def\MKT@MASTERSCHOOL{Graduate School of Informatics, Kyoto University} 131 | \def\MKT@MASTERCOURSE{Course of {\@COURSE},} 132 | \def\MKT@MASTERDEPARTMENT{Department of Informatics, Master's Program} 133 | \def\MKT@BACHELORDEPARTMENT{{Undergraduate School of Informatics and Mathematical Science}} 134 | \else 135 | \def\MKT@BACHELORTHESIS{特別研究報告書} 136 | \def\MKT@MASTERTHESIS{修士論文} 137 | \def\MKT@SUPERVISOR{指導教員} 138 | \def\MKT@BACHELORSCHOOL{京都大学工学部情報学科} 139 | \def\MKT@MASTERSCHOOL{京都大学大学院情報学研究科 修士課程} 140 | \def\MKT@BACHELORCOURSE{{\@COURSE}コース} 141 | \def\MKT@MASTERCOURSE{{\@COURSE}コース} 142 | \def\MKT@MASTERDEPARTMENT{{情報学専攻}} 143 | \def\MKT@BACHELORGRADUATE{卒業} 144 | \def\MKT@MASTERGRADUATE{修了} 145 | \fi 146 | 147 | \def\MKT@THESIS{\ifDS@master{\MKT@MASTERTHESIS}\else{\MKT@BACHELORTHESIS}\fi} 148 | \def\MKT@COURSE{% 149 | \ifDS@en% 150 | \ifDS@master% 151 | \MKT@MASTERCOURSE\\ % 152 | \MKT@MASTERDEPARTMENT \\% 153 | \MKT@MASTERSCHOOL% 154 | \else 155 | \MKT@BACHELORDEPARTMENT\\ % 156 | \MKT@BACHELORSCHOOL\\ % 157 | \MKT@BACHELORUNIVERSITY% 158 | \fi 159 | \else 160 | \ifDS@master% 161 | \MKT@MASTERSCHOOL\\ % 162 | \MKT@MASTERDEPARTMENT{ }\MKT@MASTERCOURSE% 163 | \else 164 | \MKT@BACHELORSCHOOL\\ % 165 | \MKT@BACHELORCOURSE% 166 | \fi \\% 167 | \fi 168 | } 169 | \def\MKT@GRADUATE{\ifDS@master{\MKT@MASTERGRADUATE}\else{\MKT@BACHELORGRADUATE}\fi} 170 | 171 | \def\MAKETITLE{{% 172 | \def\CL##1{\centerline{##1\strut}}% 173 | \def\\{\cr}% 174 | \fboxsep=0pt\relax 175 | \def\avheight{21cm}% 176 | \def\avwidth{14.85cm}% 177 | \fbox{% 178 | \hsize=\avwidth \parindent=0pt \tabskip=0pt 179 | \vbox to 21cm{% 180 | \vskip1cm 181 | \CL{\Large\bf \MKT@THESIS}% 182 | \vskip2cm 183 | \CL{\LARGE\bf 184 | \vbox{\halign{\hfil ##\hfil\cr% 185 | \@TITLE\crcr 186 | }}% 187 | }% 188 | \vskip1cm 189 | \CL{\large \MKT@SUPERVISOR\quad \@SUPERVISOR}% 190 | \vfill\vfill\vfill 191 | \CL{\large 192 | \vbox{\halign{\hfil ##\hfil\cr% 193 | \MKT@COURSE\crcr}}}% 194 | \vskip.5cm 195 | \CL{\large 196 | \vbox{\halign{\hfil ##\hfil\cr% 197 | \ifDS@en 198 | \monthname[\@ENTRANCEMONTH] {\@ENTRANCEYEAR} of Entry\cr 199 | \monthname[\@COMPLETIONMONTH] {\@COMPLETIONYEAR} of Completion\cr% 200 | \else 201 | {\@ENTRANCEERA}{\@ENTRANCEYEAR}年{\@ENTRANCEMONTH}月入学\cr 202 | {\@COMPLETIONERA}{\@COMPLETIONYEAR}年{\@COMPLETIONMONTH}月\MKT@GRADUATE\cr% 203 | \fi}}}% 204 | \vskip2cm 205 | \CL{\Large \@AUTHOR}% 206 | \vskip2cm 207 | }% 208 | }}} 209 | 210 | \def\MAKEBACK{{% 211 | \@tempdima=\textheight 212 | \advance\@tempdima by -2\fboxsep 213 | \advance\@tempdima by -2\fboxrule 214 | \fbox{% 215 | \hbox to 1cm{% 216 | \hfil 217 | \hbox to \@tempdima{\tate 218 | \Large 219 | \quad 220 | \@TITLEFORBACK 221 | \hfil 222 | \hfil 223 | \hfil 224 | \hfil 225 | \@AUTHOR 226 | \hfil 227 | \ifDS@en 228 | \@COMPLETIONSYEAR 229 | \else 230 | \@COMPLETIONSERA{\@COMPLETIONSYEAR}年度 231 | \fi 232 | \quad 233 | }% 234 | \hfil}% 235 | }}} 236 | 237 | %% ------------------------------------------------------------------- 238 | \makeatother 239 | --------------------------------------------------------------------------------