例2.3.1的改写
问题:把"例2.3.1(表示第二章第三节的例题1)"改为"例1." 的形式,并保持每小节例题独立计数。
解决方法:usepackage{amsthm}
在导言区写下如下命令:
newtheoremstyle{mystyle}{3pt}{3pt}{upshape}{parindent}{normalfont}{}{0.1em}{}
theoremstyle{mystyle}
newtheorem{example}{例}[section]
renewcommand{theexample}{arabic{example}.}
注:usepackage{amsthm}与usepackage{ntheorem} 可能互相不兼容。
困扰我一个大问题终于解决了。