yy 发帖数: 45 | 1 I tried to alias a newcommand for verbatim like:
\newcommand{\bev}{\begin{verbatim}}
\newcommand{\eev}{\end{verbatim}}
I don't know why the latex seems not recognize this newcommand at all?
Am I missing something?
Thanks, | T*******n 发帖数: 493 | 2 You can't to that.
\begin{verbatim} puts TeX's tokenizer in a special mode
where each charcter becomes a token (instead of commands
like "\whatever" being read in as a single token), and it obeys
spaces and obeys line breaks, and no longer understands the
meaning of other characters. The only way to kick itself out
of this mode is for it to run across the exact token sequence
(string) "\end{verbatim}". So the "\end{verbatim}" isn't really an
end-environment command here, it's a dumb text strin
【在 yy 的大作中提到】 : I tried to alias a newcommand for verbatim like: : \newcommand{\bev}{\begin{verbatim}} : \newcommand{\eev}{\end{verbatim}} : I don't know why the latex seems not recognize this newcommand at all? : Am I missing something? : Thanks,
|
|