Formatting
06 Mar 2023 -
1 minute read
In this post I will showcase some of the “special” features of YAMT.
This post is pretty long, so let’s start with a Table of Content (ToC).
Code:
* random line to make it work. This will be removed.
{:toc}
위 2줄은 항상 세트임을 명심하자
Syntax Highlight
In YAMT you can highlight code in various ways.
Basic example:
public static void main (String[] args){
System.out.println("Hello World!");
}
Code:
``` lang(언어)
//코드 작성
```
Example:
public static void main (String[] args){
System.out.println("Hello World!");
}
Code:
{/% highlight 언어 %}
// 코드
{/% endhighlight 언어 %}
// 반드시 % 앞에있는 /는 제거하고 사용 할 것!
With line numbers:
1
2
3
4
public static void main (String[] args){
System.out.println("Hello World!");
}
Code:
{/% highlight 언어 linenos%}
// 코드 작성
{/% endhighlight 언어 %}
// 반드시 % 앞에있는 /는 제거하고 사용 할 것!
지원되는 언어 목록: Rouge Wiki.
Note: In /assets/css/syntax.css you can change the first declaration to choose if you want a scrollbar or text wrap.
MathJAX and LaTeX 수학식 작성 법
Block:
\[\frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant\]$$ \frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant $$
Inline: \(\frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant\)
$$ \frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant $$
Another block: \[ \frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant \]
\\[ \frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant \\]
Another inline: \( \frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant \)
\\( \frac{v^2} {2} + {g}{z} + \frac{p} {ρ} = constant \\)
Alerts(알림 효과?)
Warning!
<span class = "alert r"></span>
Solved.
<span class = "alert g"></span>
Careful.
<span class = "alert y"></span>