File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,6 @@ data Position = Under | Over
156156-- | List of available packages
157157type Env = [T. Text ]
158158
159- -- | Contains @amsmath@, @amssymbol@, and @cancel @
159+ -- | Contains @amsmath@ and @amssymbol @
160160defaultEnv :: [T. Text ]
161- defaultEnv = [" amsmath" , " amssymb" , " cancel " ]
161+ defaultEnv = [" amsmath" , " amssymb" ]
Original file line number Diff line number Diff line change @@ -263,15 +263,11 @@ writeExp (EBoxed e) = do
263263 tellGroup (writeExp e)
264264 else writeExp e
265265writeExp (ECancel st e) = do
266- env <- asks mathEnv
267- if " cancel" `elem` env
268- then do
269- case st of
270- ForwardSlash -> tell [ControlSeq " \\ cancel" ]
271- BackSlash -> tell [ControlSeq " \\ bcancel" ]
272- XSlash -> tell [ControlSeq " \\ xcancel" ]
273- tellGroup (writeExp e)
274- else writeExp e
266+ case st of
267+ ForwardSlash -> tell [ControlSeq " \\ cancel" ]
268+ BackSlash -> tell [ControlSeq " \\ bcancel" ]
269+ XSlash -> tell [ControlSeq " \\ xcancel" ]
270+ tellGroup (writeExp e)
275271writeExp (EScaled size e)
276272 | case e of
277273 (ESymbol Open _) -> True
You can’t perform that action at this time.
0 commit comments