コメント部分にヒントが記述されている label_format
を流用して ModifyHeading
を書き換えたのでいかがでしょうか。
差分を標準的な方法でとおもいましたが、上下に非常に長い行があるので、見辛くなるので、 長い行を表示しない差分表示にしました。
以下を参考にしてください。
diff --git a/novel.tex b/novel.tex
index 4e3f9b3..c72c270 100644
--- a/novel.tex
+++ b/novel.tex
@@ -81 +81,3 @@
- lines=4
+ lines=4,
+ label_format={}, % これで「第1章」などを非表示にする
+ after_label_space=0zw, % 必要に応じてラベルの後の空白を調整する
@@ -86 +88,3 @@
- lines=3
+ lines=3,
+ label_format={},
+ after_label_space=0zw,
@@ -89,6 +93,8 @@
-\newcommand{\Chapter}[1]{\chapter*{#1}
-\addcontentsline{toc}{chapter}{#1}}
-\newcommand{\Section}[1]{\section*{#1}
-\addcontentsline{toc}{section}{#1}}
-\newcommand{\Subsection}[1]{\subsection*{#1}
-\addcontentsline{toc}{subsection}{#1}}
+% 必要であれば \subsection 用もモディファイする
+
+% NOMORE USE % \newcommand{\Chapter}[1]{\chapter*{#1}
+% NOMORE USE % \addcontentsline{toc}{chapter}{#1}}
+% NOMORE USE % \newcommand{\Section}[1]{\section*{#1}
+% NOMORE USE % \addcontentsline{toc}{section}{#1}}
+% NOMORE USE % \newcommand{\Subsection}[1]{\subsection*{#1}
+% NOMORE USE % \addcontentsline{toc}{subsection}{#1}}
@@ -185 +191 @@
-\Section{第二節}
+\section{第二節}
@@ -188,2 +194,2 @@
-\Chapter{人間失格}%
-\Section{第一節}
+\chapter{人間失格}%
+\section{第一節}