我正在用 Latex 编写辩论案例类,并设置了环境,以便用户可以轻松声明争论和子论点。例如,如果用户有:
争论 1:我的解决方案更好
子论点 a:我的对手的解决方案更糟糕,那么这就是论点的实际主体,不需要包含在提纲中
(使用我的课程执行此操作的方式是:
\begin{contention}{1}{My solution is better}
\begin{subpoint}{a}{My opponent's solution is worse}
Then here is the actual bulk of the argument that doesn't need to be in the outline)
\end{subpoint}
\end{contention}
然后我想在课堂上放一些可以自动生成如下大纲的东西:
C1) My solution is better
a) My opponent's solution is worse
然后是案例的其余部分,等等。在辩论课上,有没有什么方法可以自动生成大纲?
答案1
\documentclass{article}
\let\contention\section
\let\subpoint\subsection
\renewcommand{\contentsname}{Outline}
\begin{document}
\tableofcontents
\contention{My solution is better}
\subpoint{My opponent's solution is worse}
Then here is the actual bulk of the argument
that doesn't need to be in the outline
\subpoint{My opponent's solution is worse}
More arguments that doesn't need to be in the
outline
\contention{Another contention}
\subpoint{Another subpoint}
\subpoint{More subpoints}
\contention{One more contention}
\end{document}
如果您想要\subpoint
枚举为a)
,,b)
...使用:
\renewcommand\thesubsection{\alph{subsection})}