You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$$\textsf{Github released Tex support and colors* to the markdown and you din't realized}$$
$\normalsize{\textsf{*You can use Tex to produce colors, but the real objective of it is to write math so it is more of a workaround that works perfectly.}}$
$\color{#58A6FF}\textsf{\largeⓘ\kern{0.2cm}\normalsize Note}$ Somethings are different here on gist and on the actual markdown of README's on github or the markdown of issues, etc.
To learn the syntax of Tex you can look at the Katexdocs, you can also check the sorted docs.
Katex are not exacly Tex, but their docs are very well made and easy to understand, also most features of one are in the other. And the syntax is the same.
Tex
To start writting with Tex syntax you need to use $ at the start and end of the text. $foo$.
$foo$
If you want to centralize you can put 2 $. $$foo$$ is a centralized text.
$$foo$$
But as you can see the text isn't sans-serif by default and is unreadable if you don't use the \text{foo} to write your text.
$lorem ipsum dolor sit amet$ <- Without \text{}
$\text{ lorem ipsum dolor sit amet}$ <- With \text{}
Font Styles
To change the font style you need to add suffixes to the \text.
suffix
syntax
command
result
none
\text
$\text{lorem ipsum}$
$\text{lorem ipsum}$
\rm
\textrm
$\textrm{lorem ipsum}$
$\textrm{lorem ipsum}$
\sf
\textsf
$\textsf{lorem ipsum}$
$\textsf{lorem ipsum}$
\bf
\textbf
$\textbf{lorem ipsum}$
$\textbf{lorem ipsum}$
\up
\textup
$\textup{lorem ipsum}$
$\textup{lorem ipsum}$
\tt
\texttt
$\texttt{lorem ipsum}$
$\texttt{lorem ipsum}$
\it
\textit
$\textit{lorem ipsum}$
$\textit{lorem ipsum}$
Colors
To use colors you can use \color or \textcolor.
You can also use background colors with \colorbox or \fcolorbox if you also want a color border (fcolorbox uses 2 params {}).