diff --git a/CLAUDE.md b/CLAUDE.md index 9c6e4b4..c8d69aa 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1 +1,2 @@ + 絶対に余計な推論で,書かないこと.もしわからないことがあれば,聞くこと. diff --git a/README.md b/README.md index 54af14c..a93e5b3 100644 --- a/README.md +++ b/README.md @@ -20,15 +20,15 @@ | `style/` | パッケージ (`preamble.tex`) と自作コマンド (`macros.tex`) | | `chapters/` | 1章 = 1ファイル | | `backmatter/` | 謝辞 | -| `figures/<章名>/` | 図(グラフは PDF 推奨) | +| `figures/<番号>_<内容>/` | 図(章ファイルと同じ名前.グラフは PDF 推奨) | | `bib/references.bib` | 参考文献 | | `cover/` | 表紙・背表紙の PDF(配布後に配置) | | `notes/` | 章構成の検討メモ | ## 書き方のルール -- 章を追加するときは `chapters/<内容>.tex` を作り,`main.tex` に `\include` を足す +- 章を追加するときは `chapters/<番号>_<内容>.tex` を作り,`main.tex` に `\include` を足す - ラベルは `種類:章:内容`(例: `\label{fig:method:overview}`)で付け,`\figref{method:overview}` で参照する - 作業中の章だけビルドするときは `main.tex` の `\includeonly` を使う - 修正箇所は `\revised{}`,書きかけは `\todo{}`。提出時は `style/macros.tex` の `\showrevisiontrue` を `\showrevisionfalse` にする -- 見本は `chapters/example.tex`(本文を書き始めたら削除) +- 見本は `chapters/2_example.tex`(本文を書き始めたら削除) diff --git a/chapters/1_introduction.tex b/chapters/1_introduction.tex new file mode 100644 index 0000000..a823bb1 --- /dev/null +++ b/chapters/1_introduction.tex @@ -0,0 +1,23 @@ +% !TEX root = ../main.tex +\chapter{序論} +\label{chap:intro} + +\section{研究背景} +\label{sec:intro:background} +\todo{研究背景} + +\section{先行研究} +\label{sec:intro:related} +\todo{先行研究} + +\section{研究目的} +\label{sec:intro:purpose} +\todo{研究目的} + +\section{本論文の構成} +\label{sec:intro:structure} +本論文の構成を以下に示す. + +\chapref{intro}では研究背景,先行研究と目的について述べた. + +\chapref{conclusion}では本論文の結論について述べる. diff --git a/chapters/2_example.tex b/chapters/2_example.tex new file mode 100644 index 0000000..0379e33 --- /dev/null +++ b/chapters/2_example.tex @@ -0,0 +1,66 @@ +% !TEX root = ../main.tex +% 書き方の見本.本文を書き始めたら main.tex の \include と一緒に削除する +\chapter{書き方の見本} +\label{chap:example} + +\section{図} +\label{sec:example:figure} +図は figures/<番号>\_<内容>/ に置き,拡張子を省略して読み込む. +グラフは PDF で書き出すと拡大しても劣化しない. +\figref{example:single}に単一の図,\figref{example:sub}に小図を並べた例を示す. + +\begin{figure}[H] + \centering + % 実際には \includegraphics[width=0.6\linewidth]{2_example/overview} のように書く + \includegraphics[width=0.5\linewidth]{example-image} + \caption{単一の図の例} + \label{fig:example:single} +\end{figure} + +\begin{figure}[H] + \centering + \begin{subfigure}[b]{0.45\linewidth} + \centering + \includegraphics[width=\linewidth]{example-image-a} + \caption{条件A} + \label{fig:example:sub-a} + \end{subfigure} + \hfill + \begin{subfigure}[b]{0.45\linewidth} + \centering + \includegraphics[width=\linewidth]{example-image-b} + \caption{条件B} + \label{fig:example:sub-b} + \end{subfigure} + \caption{小図を並べた例} + \label{fig:example:sub} +\end{figure} + +\section{表} +\label{sec:example:table} +表は booktabs を使い,縦罫線は引かない.\tabref{example:result}に例を示す. + +\begin{table}[H] + \centering + \caption{表の例} + \label{tab:example:result} + \begin{tabular}{lSS} + \toprule + 被験者 & {閾値} & {AUC} \\ + \midrule + 被験者1 & 1.23 & 0.658 \\ + 被験者2 & 0.0699 & 0.686 \\ + \bottomrule + \end{tabular} +\end{table} + +\section{数式・単位・引用} +\label{sec:example:math} +数式は align などを使う(eqnarray は使わない).\equref{example:exp}に例を示す. +\begin{align} + \hat{G}(t) = y_0 + A \left(1 - e^{-t/\tau}\right) + \label{eq:example:exp} +\end{align} +単位は siunitx で \SI{3}{N},\SI{30}{fps} のように書く. +文献は bib/references.bib に登録し,キーで引用する\cite{kawaguchi2019}. +修正した箇所は\revised{このように強調}でき,提出時に一括で解除できる. diff --git a/chapters/3_conclusion.tex b/chapters/3_conclusion.tex new file mode 100644 index 0000000..ebd74ad --- /dev/null +++ b/chapters/3_conclusion.tex @@ -0,0 +1,4 @@ +% !TEX root = ../main.tex +\chapter{総論} +\label{chap:conclusion} +\todo{本研究のまとめと今後の課題} diff --git a/chapters/conclusion.tex b/chapters/conclusion.tex deleted file mode 100644 index ebd74ad..0000000 --- a/chapters/conclusion.tex +++ /dev/null @@ -1,4 +0,0 @@ -% !TEX root = ../main.tex -\chapter{総論} -\label{chap:conclusion} -\todo{本研究のまとめと今後の課題} diff --git a/chapters/example.tex b/chapters/example.tex deleted file mode 100644 index 4f42abf..0000000 --- a/chapters/example.tex +++ /dev/null @@ -1,66 +0,0 @@ -% !TEX root = ../main.tex -% 書き方の見本.本文を書き始めたら main.tex の \include と一緒に削除する -\chapter{書き方の見本} -\label{chap:example} - -\section{図} -\label{sec:example:figure} -図は figures/<章名>/ に置き,拡張子を省略して読み込む. -グラフは PDF で書き出すと拡大しても劣化しない. -\figref{example:single}に単一の図,\figref{example:sub}に小図を並べた例を示す. - -\begin{figure}[H] - \centering - % 実際には \includegraphics[width=0.6\linewidth]{example/overview} のように書く - \includegraphics[width=0.5\linewidth]{example-image} - \caption{単一の図の例} - \label{fig:example:single} -\end{figure} - -\begin{figure}[H] - \centering - \begin{subfigure}[b]{0.45\linewidth} - \centering - \includegraphics[width=\linewidth]{example-image-a} - \caption{条件A} - \label{fig:example:sub-a} - \end{subfigure} - \hfill - \begin{subfigure}[b]{0.45\linewidth} - \centering - \includegraphics[width=\linewidth]{example-image-b} - \caption{条件B} - \label{fig:example:sub-b} - \end{subfigure} - \caption{小図を並べた例} - \label{fig:example:sub} -\end{figure} - -\section{表} -\label{sec:example:table} -表は booktabs を使い,縦罫線は引かない.\tabref{example:result}に例を示す. - -\begin{table}[H] - \centering - \caption{表の例} - \label{tab:example:result} - \begin{tabular}{lSS} - \toprule - 被験者 & {閾値} & {AUC} \\ - \midrule - 被験者1 & 1.23 & 0.658 \\ - 被験者2 & 0.0699 & 0.686 \\ - \bottomrule - \end{tabular} -\end{table} - -\section{数式・単位・引用} -\label{sec:example:math} -数式は align などを使う(eqnarray は使わない).\equref{example:exp}に例を示す. -\begin{align} - \hat{G}(t) = y_0 + A \left(1 - e^{-t/\tau}\right) - \label{eq:example:exp} -\end{align} -単位は siunitx で \SI{3}{N},\SI{30}{fps} のように書く. -文献は bib/references.bib に登録し,キーで引用する\cite{kawaguchi2019}. -修正した箇所は\revised{このように強調}でき,提出時に一括で解除できる. diff --git a/chapters/introduction.tex b/chapters/introduction.tex deleted file mode 100644 index a823bb1..0000000 --- a/chapters/introduction.tex +++ /dev/null @@ -1,23 +0,0 @@ -% !TEX root = ../main.tex -\chapter{序論} -\label{chap:intro} - -\section{研究背景} -\label{sec:intro:background} -\todo{研究背景} - -\section{先行研究} -\label{sec:intro:related} -\todo{先行研究} - -\section{研究目的} -\label{sec:intro:purpose} -\todo{研究目的} - -\section{本論文の構成} -\label{sec:intro:structure} -本論文の構成を以下に示す. - -\chapref{intro}では研究背景,先行研究と目的について述べた. - -\chapref{conclusion}では本論文の結論について述べる. diff --git a/figures/1_introduction/.gitkeep b/figures/1_introduction/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/figures/1_introduction/.gitkeep diff --git a/figures/2_example/.gitkeep b/figures/2_example/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/figures/2_example/.gitkeep diff --git a/figures/3_conclusion/.gitkeep b/figures/3_conclusion/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/figures/3_conclusion/.gitkeep diff --git a/figures/conclusion/.gitkeep b/figures/conclusion/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/figures/conclusion/.gitkeep +++ /dev/null diff --git a/figures/example/.gitkeep b/figures/example/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/figures/example/.gitkeep +++ /dev/null diff --git a/figures/introduction/.gitkeep b/figures/introduction/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/figures/introduction/.gitkeep +++ /dev/null diff --git a/main.tex b/main.tex index 985351a..af5ae52 100644 --- a/main.tex +++ b/main.tex @@ -28,7 +28,7 @@ \input{style/macros} % 作業中の章だけビルドしたいときに有効化(ページ番号・相互参照は保持される) -% \includeonly{chapters/introduction} +% \includeonly{chapters/1_introduction} \begin{document} @@ -41,9 +41,9 @@ % \listoftables \mainmatter -\include{chapters/introduction} -\include{chapters/example} % 書き方の見本.本文を書き始めたら削除する -\include{chapters/conclusion} +\include{chapters/1_introduction} +\include{chapters/2_example} % 書き方の見本.本文を書き始めたら削除する +\include{chapters/3_conclusion} \backmatter \include{backmatter/acknowledgments} diff --git a/notes/outline.md b/notes/outline.md index da785a9..b58561a 100644 --- a/notes/outline.md +++ b/notes/outline.md @@ -4,12 +4,12 @@ ## 仮の章立て -1. 序論(`introduction.tex`): 研究背景 / 先行研究 / 研究目的 / 本論文の構成 +1. 序論(`1_introduction.tex`): 研究背景 / 先行研究 / 研究目的 / 本論文の構成 2. (研究の章: 未定): はじめに / 実験方法 / 結果と考察 / 小括 -3. 総論(`conclusion.tex`) +3. 総論(`3_conclusion.tex`) ## ルール -- ファイル名は章番号ではなく内容で付ける(例: `method.tex`)。順番は `main.tex` で決める -- 図は `figures/<ファイル名と同じ章名>/` に置く +- ファイル名は `<番号>_<内容>.tex` で付ける(例: `2_method.tex`) +- 図は `figures/<章ファイルと同じ名前>/` に置く(例: `figures/2_method/`) - ラベルは `種類:章:内容`(例: `fig:method:overview`)