并不是太高级的办法:
自定义一个boolean,控制详细/精简模式 的切换,自定义一个命令,控制在详细/精简模式的行为。
MWE 如下:
```tex
\documentclass{article}
\newif\ifSimpleMode\SimpleModefalse
\newcommand{\mycontent}[1]{\ifSimpleMode\relax\else#1\fi}
\begin{document}
\SimpleModetrue
You would read this, \mycontent{and you could not read this,} is it interesting?
\SimpleModefalse
You would read this, \mycontent{and you could not read this,} is it interesting?
\begin{itemize}
\mycontent{\item 123}
\item 456
\item 789
\end{itemize}
\end{document}
```
一周热门 更多>