• Resolved cyunus

    (@cyunus)


    Is it possible to define macros for environments in the following sense ?

    \def{\be}{\begin{equation}}
    \def{\ee}{\end{equation}}

    When I type \be … \ee, it doesn’t work but \begin{equation} … \end{equation} works.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Van Abel

    (@van-abel)

    Well, this is MathJax related issue. May I suggest you to have a search or question on stackoverflow?

    As a quick search, MathJax support \def, \let, \newcommand, \renewcommand, \newenvironment, \renewenvironment; However, your definion of equation environment seems not support by MathJax, thus LaTeX2HTML not support too.

    The work way to define the equation environment could be

    $\newenvironment{eq}{\begin{equation}}{\end{equation}}$

    then you can use it as

    \begin{eq}
    \int xdx=x^2/2.
    \end{eq}

    Of course you can put your definiton of this newenvironment into the LaTeX2HTML config block, where some sample example of \newcommand is given, then it will work in all post.

    • This reply was modified 5 years, 11 months ago by Van Abel.
    • This reply was modified 5 years, 11 months ago by Van Abel.
    • This reply was modified 5 years, 11 months ago by Van Abel.
Viewing 1 replies (of 1 total)
  • The topic ‘macros for environments’ is closed to new replies.