File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ module Text.TeXMath.Shared
35
35
, handleDownup
36
36
, isUppercaseGreek
37
37
, toPrimes
38
+ , isRLSequence
38
39
) where
39
40
40
41
@@ -375,3 +376,8 @@ toPrimes (ESymbol ty s) | ty == Pun || ty == Ord = go s
375
376
Just (' \x2057 ' , t') -> (" ''''" <> ) <$> go t'
376
377
_ -> Nothing
377
378
toPrimes _ = Nothing
379
+
380
+ isRLSequence :: [Alignment ] -> Bool
381
+ isRLSequence [AlignRight , AlignLeft ] = True
382
+ isRLSequence (AlignRight : AlignLeft : as) = isRLSequence as
383
+ isRLSequence _ = False
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ writeExp (EStyled ttype es) = do
287
287
tell [ControlSeq txtcmd]
288
288
tellGroup (mapM_ writeExp $ everywhere (mkT (fromUnicode ttype)) es)
289
289
writeExp (EArray as rows)
290
- | isRLSequence as = do
290
+ | S. isRLSequence as = do
291
291
env <- asks mathEnv
292
292
if " amsmath" `elem` env
293
293
then table " aligned" [] rows
@@ -298,11 +298,6 @@ writeExp (EArray aligns rows) = do
298
298
then table " matrix" [] rows
299
299
else table " array" aligns rows
300
300
301
- isRLSequence :: [Alignment ] -> Bool
302
- isRLSequence [AlignRight , AlignLeft ] = True
303
- isRLSequence (AlignRight : AlignLeft : as) = isRLSequence as
304
- isRLSequence _ = False
305
-
306
301
table :: T. Text -> [Alignment ] -> [ArrayLine ] -> Math ()
307
302
table name aligns rows = do
308
303
tell [ControlSeq " \\ begin" , Grouped [Literal name]]
You can’t perform that action at this time.
0 commit comments