Skip to main content

数式・図・表の番号に節番号を入れる方法

式番号とか図番号、表番号に(3.15)みたいに節番号を入れたいときがある。

文書→設定→LaTeXプリアンブル

と進んで、表示される文字の一番最後に以下を貼り付けたらOK
上から順に式・図・表の設定になってる

 

\makeatletter

\renewcommand{\theequation}{%

\thesection.\arabic{equation}}

\@addtoreset{equation}{section}

 

\renewcommand{\thefigure}{%

\thesection.\arabic{figure}}

\@addtoreset{figure}{section}

 

\renewcommand{\thetable}{%

\thesection.\arabic{table}}

\@addtoreset{table}{section}

\makeatother