Engineer bro!

Fri Oct 22 2021 (1 month ago)

Engineer by mistake!

I am a software engineer by passion

Series of 5 parts

Embedding iframe on @dsabyte online editor

Writing MathMath in @dsabyte online editor

Writing maths diagrams in @dsabyte online editor is very easy. You just need to write some syntax and semantics to render maths in the editor.

Note - @dsabyte online editor is using katex and latex to render maths diagram.

Way to write maths diagram

@dsabyte online editor supports two types of maths diagrams.

  1. Inline

  2. Block

Inline Math

Inline math can be written using the symbol $. You need to wrap the maths code into two $ singns.

Example

Code

$\frac{n!}{k!(n-k)!}$

Output - n!k!(nk)!\frac{n!}{k!(n-k)!}

Code

Sum of the array is $\sum_{i=0}^{n-1}A[i]$

Output
Sum of the array is i=0n1A[i]\sum_{i=0}^{n-1}A[i]

Note - inline math only supports katex

Block Math

Block-level maths can be written in two formats.

  1. katex

  2. latex

Writing katex

The below code

$$katex
\def\arraystretch{1.5}
   \begin{array}{c:c:c}
   a & b & c \\ \hline
   d & e & f \\
   \hdashline
   g & h & i
\end{array}
$$

Will produce

abcdefghi\def\arraystretch{1.5} \begin{array}{c:c:c} a & b & c \\ \hline d & e & f \\ \hdashline g & h & i \end{array}

Writing latex

Latex can be written in the same way as katex

Katex tutorial

References

  1. math formula

  2. katex

  3. latex

Thank You ❤️

@dsabytehow to mathkatexlatex

Comments (0)

Discussions (0)


© 2021 dsabyte. All rights reserved