implemented sub

This commit is contained in:
2017-05-25 16:23:10 -04:00
parent 443c213c2b
commit 986b700ea6
2 changed files with 14 additions and 1 deletions

View File

@@ -10,7 +10,11 @@
<local:LatexViewer FontSize="80">
<!-- e^{\pi i}=-1\{\textrm{in the complex plane} \\\\-->
b^x+b^y=b^{x+y}
a^x+a^y=a^{x+y} \\
log_ax^n=nlog_ax \\
M^1_2
<!-- A \ \alpha \quad N \ \nu \\-->
<!-- B \ \beta \quad \Xi \ \xi \\-->

View File

@@ -76,6 +76,15 @@ namespace LatexEditor.Parser.Segments
val.Offset = new Point(val.Offset.X, val.Offset.Y + 0.45);
}
}
if (head.Value == "_")
{
if (PopLatexSegment(tokens, out var content))
{
val = content;
val.Size *= 0.7;
val.Offset = new Point(val.Offset.X, val.Offset.Y - 0.45);
}
}
break;
case "escape":