LaTeX技巧010:LaTtex中如何给每个句子加序号?

效果图:

代码:

documentclass{article}

ewcounter{sentence}

enewcommand hesentence{ extsuperscript{arabic{sentence}}}

catcode`"=13

ewcommand"{stepcounter{sentence} hesentence}

egin{document}

"hello."This is a test.

end{document}

原文地址:https://www.cnblogs.com/Eufisky/p/3847523.html