File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 26
26
27
27
import Text.XML.Light
28
28
import Text.TeXMath.Types
29
+ import Text.TeXMath.Shared (isUppercaseGreek )
29
30
import Data.Generics (everywhere , mkT )
30
31
import Data.Char (isSymbol , isPunctuation )
31
32
import Data.Either (lefts , isLeft , rights )
@@ -223,7 +224,10 @@ showExp props e =
223
224
224
225
EIdentifier " " -> [str props " \x200B " ] -- 0-width space
225
226
-- to avoid the dashed box we get otherwise; see #118
226
- EIdentifier x -> [str props x]
227
+ EIdentifier x
228
+ | isUppercaseGreek x
229
+ , null props -> [str [mnodeA " sty" " p" () ] x]
230
+ | otherwise -> [str props x]
227
231
EMathOperator x -> [str (mnodeA " sty" " p" () : props) x]
228
232
ESymbol ty xs
229
233
| Just (c, xs') <- T. uncons xs
Original file line number Diff line number Diff line change 13821
13821
<m:sSubSup>
13822
13822
<m:e>
13823
13823
<m:r>
13824
+ <m:rPr>
13825
+ <m:sty m:val="p" />
13826
+ </m:rPr>
13824
13827
<m:t>Γ</m:t>
13825
13828
</m:r>
13826
13829
</m:e>
16522
16525
<m:sSup>
16523
16526
<m:e>
16524
16527
<m:r>
16528
+ <m:rPr>
16529
+ <m:sty m:val="p" />
16530
+ </m:rPr>
16525
16531
<m:t>Ω</m:t>
16526
16532
</m:r>
16527
16533
</m:e>
16573
16579
<m:sSup>
16574
16580
<m:e>
16575
16581
<m:r>
16582
+ <m:rPr>
16583
+ <m:sty m:val="p" />
16584
+ </m:rPr>
16576
16585
<m:t>Ω</m:t>
16577
16586
</m:r>
16578
16587
</m:e>
16647
16656
<m:sSup>
16648
16657
<m:e>
16649
16658
<m:r>
16659
+ <m:rPr>
16660
+ <m:sty m:val="p" />
16661
+ </m:rPr>
16650
16662
<m:t>Ω</m:t>
16651
16663
</m:r>
16652
16664
</m:e>
16696
16708
<m:t>;</m:t>
16697
16709
</m:r>
16698
16710
<m:r>
16711
+ <m:rPr>
16712
+ <m:sty m:val="p" />
16713
+ </m:rPr>
16699
16714
<m:t>Ω</m:t>
16700
16715
</m:r>
16701
16716
<m:r>
Original file line number Diff line number Diff line change 55
55
<m:t>+</m:t>
56
56
</m:r>
57
57
<m:r>
58
+ <m:rPr>
59
+ <m:sty m:val="p" />
60
+ </m:rPr>
58
61
<m:t>Γ</m:t>
59
62
</m:r>
60
63
<m:r>
You can’t perform that action at this time.
0 commit comments