LaTeX reader: proper implicit grouping around environment macros.

This commit is contained in:
John MacFarlane 2021-08-13 10:41:36 -07:00
parent 649133fe5e
commit e8d7d157fd

View file

@ -212,7 +212,8 @@ newenvironment = do
let result = (name,
Macro GroupScope ExpandWhenUsed argspecs optarg
(bg:startcontents),
Macro GroupScope ExpandWhenUsed [] Nothing (eg:endcontents))
Macro GroupScope ExpandWhenUsed [] Nothing
(endcontents ++ [eg]))
(do lookupMacro name
case mtype of
"provideenvironment" -> return Nothing