Jephian's testing area

Inline math:

  • $$x^2$$: \(x^2\) (the only correct way for kramdown…)
  • $x^2$: $x^2$ (content might be parsed by kramdown)
  • \\(x^2\\): \(x^2\) (content might be parsed by kramdown)
  • <span markdown=0>$x^2$</span>: $x^2$ (passing raw code)

or <div display="inline" markdown=0>$x^2$</div> to make

$x^2$

(which is not necessary).

Display math:

blank line + $$display math$$ + blank line (kramdown way)

\[A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}.\]

at the beginning of a line do <div>\[display math\]</div> (row code)

\[A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}.\]
  • inside a list: at the beginning of a line do indent <div>\[display math\]</div> (row code)
    \[A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}.\]

Anywhere do <span display:"block" markdown=0>\[display math\]</div> (row code, faked inline element)
Consider the matrix \[A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}.\]

Macro:

  • defined by macros in the head tag: $\R$
  • defined by $\gdef\teste{\mathbf{e}}$: $\gdef\teste{\mathbf{e}}$ $\teste$
  • defined by $\newcommand{\testf}{\mathbf{f}}$: $\newcommand{\testf}{\mathbf{f}}$ $\testf$
    (This part need to set globalGroup: true in KaTeX setting.)

Code block

from manim import *
class Test(Scene):
    square = Square()
    self.play(Create(square))

Line wrap

(no space after) (one space after) (two space after)
last line

沒空格 一個空格 兩個空格
最後一行

Original content of this page

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.

Jekyll requires blog post files to be named according to the following format:

YEAR-MONTH-DAY-title.MARKUP

Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.

Check out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo. If you have questions, you can ask them on Jekyll Talk.