两个问题:
LaTeX 是否允许在一个程序中(重新)定义命令?\newenvironment
?我尝试过使用\renewcommand
, \newcommand
and \def
in the before声明但无济于事。
一个人将如何重新定义\item
创建新列表环境时?
我使用以下命令从头开始创建了一种新型列表环境\newenvironment
同时使用另一个令牌而不是\item
对于每个,但我真的很想通过使用来保持一致\list
并重新定义\item
.
也许为时已晚,但对其他人可能有用
\newenvironment{coolitemize}{%
\let\olditem\item%
\renewcommand\item[2][]{\olditem \textbf{##1}\\[0.3\baselineskip]##2}%
\begin{itemize}}{\end{itemize}%
}
并使用它
\begin{coolitemize}
\item[Title of my first item] Text of my 1st item.
\item[Second one] And some text here.
\end{coolitemize}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)