%
% preemble.tex
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%             Style  Setting             %%%%%%%%
% フォント: 12point (最大), 片面印刷
%\documentclass[a4j,12pt,oneside,report]{ltjsarticle}
%\documentclass[a4j,12pt,oneside,report]{ltjsbook}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%             Package Include            %%%%%%%%
\usepackage{Dennou6}		% 電脳スタイル ver 6
\usepackage{ascmac}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{physics}
%図のキャプション(なんかbiblatexと使うとエラー出る)
\usepackage[hang,footnotesize]{caption}
%\usepackage[subrefformat=parens]{subcaption}
%\captionsetup{compatibility=false}
%\usepackage[T1]{fontenc}
%\usepackage{textcomp}
%% 単位ええかんじにするやつ %%
\usepackage{siunitx}
\usepackage{empheq}
%フォント周り
\usepackage{newtxtext,newtxmath}
%\usepackage{txfonts}
\usepackage[no-math]{fontspec}
\setmainfont[Ligatures=TeX,BoldFont=yumindb,ItalicFont=timesi]{yumin}
%\setmainfont[Ligatures=TeX]{MinionPro-Regular}
\setsansfont[Ligatures=TeX]{YuGothM}
\usepackage[yu-win,deluxe,bold]{luatexja-preset}
\setsansjfont{YuGothM}
%biblatexまわり
\usepackage{url}
\usepackage[style=phys,citestyle=bwl-FU 
,maxbibnames=9,maxcitenames=2,backend=biber]{biblatex} 
%\renewbibmacro{\mkbibquote{#1}}{#1}
%\DeclareFieldFormat*{title}{\mkbibquote{#1}}
\nocite{*}
\addbibresource{bib_mthesis.bib} 
\DeclareFieldFormat*{title}{#1} %タイトルの””を書かない
\DeclareNameAlias{sortname}{last-first} % 名字でソート
\DeclareNameAlias{default}{last-first/first-last} %first author だけ名字から
\DeclareFieldFormat[article]{journaltitle}{\mkbibemph{#1}} % ジャーナル名イタリック
\DeclareFieldFormat[article]{volume}{\bf{#1\addcomma}} % 巻数イタリック
%\DeclareFieldFormat[article]{pages}{\mkbibemph{#1\addcomma}} % 巻数イタリック
\DeclareFieldFormat{year}{#1} %年の()を書かない.
%本の引用形式
\DeclareFieldFormat[book]{title}{\mkbibemph{#1\addcomma}} %タイトルイタリック
%本の括弧を取る(style=physのマクロを無理やり上書き)
\renewbibmacro*{publisher+location+date}{%
	\setunit{\addspace}%
		\printlist{publisher}%
		\newunit
		\printlist{location}%
		\newunit
		\usebibmacro{date}%
	\newunit
}


\makeatletter 
\renewcommand{\chapter}{%
	\if@openright\cleardoublepage\else\clearpage\fi
	\global\@topnum\z@
	\secdef\@chapter\@schapter}
\makeatother

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%            PageStyle Setting           %%%%%%%%
\pagestyle{DAheadings}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%        Title and Auther Setting        %%%%%%%%
%%
%%  [ ] はヘッダに書き出される.
%%  { } は表題 (\maketitle) に書き出される.

\Dtitle[]{非線形・非静力学・圧縮性モデルを用いた
	内部重力波の数値実験的研究}   % 変更不可
\Dauthor[]{村上美雪}            % ゼミ担当者の名前
\Ddate{2017/02/03}        % ゼミの日時 (毎回変更すること)
\Dfile{mthesis\_mmiyuki.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%   Set Counter (chapter, section etc. ) %%%%%%%%
\setcounter{chapter}{0}    % 章番号
\setcounter{section}{0}    % 節番号
\setcounter{subsection}{0} %副説番号
\setcounter{subsubsection}{0} %副副説番号
\setcounter{equation}{0}   % 式番号
\setcounter{page}{1}     % 必ず開始ページは明記する
\setcounter{figure}{0}     % 図番号
\setcounter{table}{0}      % 表番号
%\setcounter{footnote}{0}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%        Counter Output Format           %%%%%%%%
\def\thechapter{\arabic{chapter}}
\def\thesection{\arabic{chapter}.\arabic{section}}
\def\thesubsection{\arabic{chapter}.\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\arabic{subsubsection}.}
\def\theequation{\arabic{chapter}.\arabic{equation}}
\def\thepage{\arabic{page}}
\def\thefigure{\arabic{chapter}.\arabic{figure}}
\def\thetable{\arabic{chapter}.\arabic{table}}
\def\thefootnote{*\arabic{footnote}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%        Dennou-Style Definition         %%%%%%%%


%% 改段落時の空行設定
\Dparskip      % 改段落時に一行空行を入れる
%\Dnoparskip    % 改段落時に一行空行を入れない

%% 改段落時のインデント設定
\Dparindent    % 改段落時にインデントする
%\Dnoparindent  % 改段落時にインデントしない
