typora字體與字體顏色


字體

基本格式:\字體信息{內容}

羅馬體\rm

\rm{羅馬體abc}>>\(\rm{羅馬體abc}\)

意大利體\it

\it{意大利體}>>\(\it{意大利體}\)

等線體

\sf{等線體abc}>>\(\sf{等線體abc}\)

打字機體\tt

\tt{打字機體} >>$\tt{打字機體} $

花體\cal

\cal{花體abc}>>\(\cal{花體abc}\)

數學斜體

\mit{數學斜體abc}>>\(\mit{數學斜體abc}\)

手寫體\scr

\scr{手寫體abc}>>\(\scr{手寫體abc}\)

顏色

color{顏色}{文字}異或是color{#RGB}{文字}

silver

\(\color{silver}{silversilver}\)

maroon

\(\color{maroon}{maroonmaroon}\)

yellow

\(\color{yellow}{yellowyellow}\)

olive

\(\color{olive}{oliveolive}\)

teal

\(\color{teal}{tealteal}\)

blue

\(\color{blue}{blueblue}\)

purple

\(\color{purple}{purplepurple}\)>>\color{purple}{purplepurple}

grey

\(\color{grey}{greygrey}\)>>\color{grey}{greygrey}

white

\(\color{white}{whitewhite}\)>>\color{white}{whitewhite}

red

\(\color{red}{redred}\)

lime

\(\color{lime}{limelime}\)

green

\(\color{green}{greengreen}\)

auqa

\(\color{auqa}{auqaauqa}\)

\(\color{navy}{navynavy}\)

fuchsia

\(\color{fuchsia}{fuchsiafuchsia}\)

black

\(\color{black}{blackblack}\)

數學標識

左下標

\sideset{a}{b}a和b分別是左右標
a和b都可以用_或者^來表示是上標還是下標
\sideset{_1}{^2}A
顯示效果如下:

\[\sideset{_1}{^2}A \]

左上標

\sideset{a}{b}a和b分別是左右標
a和b都可以用_或者^來表示是上標還是下標
\sideset{1}{2}A
顯示效果如下:

\[\sideset{^1}{^2}A \]

頭上帶點

\dot a + \dot b

\[\dot a + \dot b \]

矢量-頭上帶箭頭

\vec{矢量內容}

\vec{a}+\vec{b}

\[\vec{a}+\vec{b} \]

拔、均值

\overline{內容}

\overline{x}

\[\overline{x} \]

省略號

1 + 2 + \dots + 100

\[1 + 2 + \dots + 100 \]

空格

用\ 來表示

a\ b

\[a\ b \]

文本

基本格式是 \text {內容}

f(n)= \begin{cases}
n/2, & \text{if $n$ is even} \\
3n+1, & \text{if $n$ is odd} \\
\end{cases}

\[f(n)= \begin{cases} n/2, & \text{if $n$ is even} \\ 3n+1, & \text{if $n$ is odd} \\ \end{cases} \]

注意在text里面,普通標記都不再有效,比如

\text{\sqrt{2x+2}}

\[\text{\sqrt{2x+2}} \]

\text{$\sqrt{2x+2}$}

\[\text{$\sqrt{2x+2}$} \]

參考:


大神一號

大神二號

大神三號

大神四號

大神五號

大神六號

大神七號

大神八號

大神九號


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM