![用 P?、S? 重新编号章节编号,用于问题解决方案书模板及其部分](https://linux22.com/image/468676/%E7%94%A8%20P%3F%E3%80%81S%3F%20%E9%87%8D%E6%96%B0%E7%BC%96%E5%8F%B7%E7%AB%A0%E8%8A%82%E7%BC%96%E5%8F%B7%EF%BC%8C%E7%94%A8%E4%BA%8E%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E4%B9%A6%E6%A8%A1%E6%9D%BF%E5%8F%8A%E5%85%B6%E9%83%A8%E5%88%86.png)
在包含各部分的书籍模板中,如何重新编号章节编号以反映问题 1 的 P1、解决方案 1 的 S1 等等。
\renewcommand
是否可以自动完成,而不必每次都手动完成?
这是我当前拥有的代码:
\documentclass[oneside,12pt,letterpaper,draft]{book}
\begin{document}
\part{Text Part 1}
Text to be included as a paragraph below custom part. The text should be on the same page just under the heading.
\chapter{Problem 1}
Here is my text for Problem 1.
\chapter{Solution 1}
Here is my text for Solution 1.
\chapter{Conclusion 1}
Here is my text for Conclusion 1.
\part{Text Part 2}
Text to be included as a paragraph below custom part. The text should be on the same page just under the heading.
\chapter{Problem 2}
Here is my text for Problem 2.
\chapter{Solution 2}
Here is my text for Solution 1.
\chapter{Conclusion 2}
Here is my text for Conclusion 2.
\part{Appendix}
Text to be included as a paragraph below custom part. The text should be on the same page just under the heading.
\chapter{Appendix 1}
Here is my text for Appendix 1.
\chapter{Appendix 2}
Here is my text for Appendix 2.
\end{document}