X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathStream.h;h=271330ea0de201da5543cf332e457dd31ebe8708;hb=02e82157ec583c3900e359de86be79fac6512387;hp=2a4d4d7cbeb0fa882290edad3faec1226e86f0e7;hpb=148b3ae773c441430311feb29eba01a765bc6c48;p=lyx.git diff --git a/src/mathed/MathStream.h b/src/mathed/MathStream.h index 2a4d4d7cbe..271330ea0d 100644 --- a/src/mathed/MathStream.h +++ b/src/mathed/MathStream.h @@ -81,6 +81,10 @@ public: void ulemCmd(UlemCmdType ulemcmd) { ulemcmd_ = ulemcmd; } /// tell which ulem command type we are inside UlemCmdType ulemCmd() const { return ulemcmd_; } + /// record whether we are in the argument of a math macro + void insideMacro(bool insidemacro) { insidemacro_ = insidemacro; } + /// tell whether we are in the argument of a math macro + bool insideMacro() const { return insidemacro_; } /// writes space if next thing is isalpha() void pendingSpace(bool how); /// writes space if next thing is isalpha() @@ -120,6 +124,8 @@ private: int latex_; /// output type (default, source preview, instant preview)? OutputType output_; + /// are we in the argument of a math macro? + bool insidemacro_; /// do we have a space pending? bool pendingspace_; /// do we have a brace pending?