Skip to content

Commit b9242ba

Browse files
committed
Underbrace rendering tests
1 parent 906323f commit b9242ba

9 files changed

Lines changed: 3 additions & 2 deletions

File tree

CSharpMath.Maui.Example/ExamplesPage.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public partial class ExamplesPage : ContentPage {
88
static Dictionary<byte, MathView> labels { get; } = new();
99
public ExamplesPage() {
1010
InitializeComponent();
11-
//TODO: uncomment, before merging this branch with master
1211
var mathViews = demoLabels.Concat(labels).Select(p => p.Value);
1312
foreach (var view in mathViews) {
1413
view.ErrorFontSize = view.FontSize * 0.8f;
3.13 KB
Loading
11.8 KB
Loading
19.9 KB
Loading
-4 Bytes
Loading
3.13 KB
Loading
11.8 KB
Loading
15.5 KB
Loading

CSharpMath.Rendering.Tests/TestRenderingMathData.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ public sealed class TestRenderingMathData : TestRenderingSharedData<TestRenderin
128128
public const string TangentPeriodShift = @"\tan(\theta\pm\frac\pi4)=\frac{\tan\theta\pm1}{1\mp\tan\theta}";
129129
public const string Taylor = @"\begin{eqnarray} e^x &=& \sum_{n=0}^{\infty}\frac{x^n}{n!} \\ \\ \sin(x) &=& \sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+1}}{(2n+1)!} \\ \\ -\ln(1-x) &=& \sum_{n=1}^{\infty}\frac{x^n}{n} \ \ \ \ \ (-1 \leq x < 1) \end{eqnarray}";
130130
public const string TwoSin = @"2 \sin";
131-
131+
public const string Underbrace = @"\underbrace{abcd}";
132+
public const string UnderbraceSubscript = @"\underbrace{abcdefghklmnopqrst} _{eee}";
133+
public const string UnderbraceSubscriptIntegral = @"\underbrace{\frac{abcd}{efgh} \int \limits _a^b f(x)dx} _{\frac{abcd}{efgh} \int \limits _a^b f(x)dx}";
132134
public const string Underline = @"\underline{Underline}";
133135

134136
public const string VectorProjection = @"Proj_\vec{v}\vec{u}=|\vec u|\cos\theta\times\frac\vec v{|\vec v|}=|\vec u|\frac{\vec u \cdot \vec v}{|\vec u||\vec v|}\times\frac\vec v{|\vec v|}\\\text{Suppose \mathit{u} and \mathit v are unit vectors, }Proj_\vec v\vec u = (\vec u\cdot\vec v)\vec v";

0 commit comments

Comments
 (0)