For every (most?) environment \begin{X}...\end{X} there exists the macros \X and \endX that can be used inside the \newenvironment command. I.e, one can write something like this


How can I achieve a similar result if X has a starred version and I want to patch X*. N.b. it is not necessary that Y has a starred version.

More specifically at the moment I have this


This is the result of the answer to this question. However, now I want to do the same but for the equation*-environment.

  • You can highlight code in your post using back-ticks. To highlight code-blocks, either indent them by four spaces or use the {} on the gui. – Andrew May 19 '17 at 8:12
  • You can use \newenvironment{Y}{\somemacro\begin{X*}}{\end{X*}}. You might also want to look at section 3.4 of the etoolbox package. – Andrew May 19 '17 at 8:19

You can use

\csname equation*\endcsname
\csname endequation*\endcsname

For instance

  {\def\f@size{8}\check@mathfonts\csname equation*\endcsname}
  {\csname endequation*\endcsname}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.