อ้างอิง
- [@@PER-GRA2007] (see Bibliography below)
- [@@tawsopar2012] (see Bibliography below)
Formatting
Headings
H1
H2
H3
normal text
Lists
Items in itemized lists can be enumerated with +, -, * for unordered lists or with 1., 2., 3. for ordered lists.
- 1.
- 2.
-
3.
-
กล้วย
- มะม่วง
- ส้ม
Code highlighting
Inline code highlight
This is a variable, ‘:url:’ blog This one, ‘save_as’ is not used
more example: ‘a = b + c’
Code block
def hello():
print "Hello, World!"
Some R code
# R code
a <- c(2,3,5,8)
b <- c(3,1,4,1)
variable <- rbind(a,b)
CodeHilite extension
There are two ways to specify the identifier:
def hello():
print "Hello, World!"
print("The triple-colon syntax will *not* show line numbers.")
To display line numbers, use a path-less shebang instead of colons:
1 2 3 | def hello():
print "Hello, World!"
print("The path-less shebang syntax *will* show line numbers.")
|
Hyperlinks
External links
- แบบง่าย — Python.org
- Implicit links — ‘Image and Figure’
- As references, Here’s a link to Python doc and here’s one to Intactive Pyhon, IPython
Another link
Image and Figure
In-line images

Reference-style images

Liquids.tags.img
same photo:
- format 1

- format 2
{:.panel}

Image with a caption
figure are like images but with a caption and whatever else you wish to add
Include file
Include code with the literalinclude directive
It is also possible to include the contents of a file as follows:
For instance, the
sample.pyfile contents can be printed.
`\*{\*% include_code ../code/simple.py [lang:python] [Simple.py code] %}`
""" here is a dummy documentation """
import os
def square(x):
'''
short description of the function square longish explanation: returns the square of x: :math:`x^2`
:param a: an input argument
:returns: x*x
'''
return x*x
assert 4 == square(2)
Footnote and Citations
Some text that requires a footnote 1.
Definition Lists
- ineffable
- the property of being undefinable
- ambisinistrous
- equally clumsy with both hands, from Latin
both left
Abbreviations
การกำหนดคำย่อ
*[HPC]: High-performance computing
*[HPC]: High-performance computing
โดยอัตโมัติข้อความนี้จะมี tooltip ขยายความคำย่อ Due to the increasing computing power of each generation of game consoles, a novel use has emerged where they are repurposed into High-performance computing (HPC) clusters.
ศธ สานฝันเด็กใต้ต่อยอดกีฬาเข้าหลักสูตรการเรียนรู้
Tables
| Lexer | shortname | file extensions |
|---|---|---|
| ‘Python3Lexer’ | python3, py3 | |
| ‘PythonLexer’ | python, py | *.py, *.pyw, *.sc, SConstruct, SConscript, *.tac, *.sage |
| ‘PythonConsoleLexer’ | pycon | |
| ‘PrologLexer’ | prolog | *.prolog, *.pro, *.pl |
Aliases
Using the ‘logo’ :
Using this image alias, you can insert it easily in the text [bird3], like this
. This is especially useful when dealing with complicated code. For instance, in order to include 2 images within a table do as follows:

{: class=”panel” width=”80px”}
| col 1 | col 2 | col 3 |
|---|---|---|
| bird3 | bird3 | this is a very long text to include |
Math & Latex
Math between $..\$, for example, $x^2$, will be rendered inline with respect to the current html block. Note: To use inline math, there must not be any whitespace before the ending ‘$’. So for example:
- Relevant inline math
$e=mc^2$: $e=mc^2$ - Will not render as inline math
$40 vs $50: $40 vs $50
Displayed Math
Math between $$..$$, for example $$x^2$$, $$x^2$$, will be rendered centered in a new paragraph.
(\frac{\pi}{2}) $\pi$
The well known quadratic formula: \x = -b \pm \frac{\sqrt{b^{2}-4ac}}{2a}
n_{\mathrm{offset}} = \sum_{k=0}^{N-1} s_k n_k
One can also include maths inline, such as the following:
The power series, \frac{1}{0!}+\frac{2}{1!}x+\frac{3}{2!}x^2+\frac{4}{3!}x^3+... states that…
Latex
latex :::latex Here is an in-line equation $\sqrt{3x-1}+(1+x)^2$ in the body of the text.
Here is an in-line equation $\sqrt{3x-1}+(1+x)^2$ in the body of the text.
-
indented $\left [ - \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$
-
Unindented $\left [ - \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$
Boxes
Not work .. seealso:: This is a simple seealso note.
.note:
This is a note box.
.warning: note the space between the directive and the text
Topic directive
:::topic Your Topic Title
Subsequent indented lines comprise
the body of the topic, and are
interpreted as body elements.
Sidebar directive
ตัวอย่างไซด์บาร์
{:.sidebar Sidebar Title} :subtitle: Optional Sidebar Subtitle
Subsequent indented lines comprise
the body of the sidebar, and are
interpreted as body elements.
Labels
{:.label-default}
This is a default label content
{:.label-primary}
This is a primary label content
{:.label-success}
This is a success label content
Glossary
Examples:
::: glossary Open Data Open Data Handbook (ไทย), odhandbook and OD4THL
Tags: tag:Python
Miscellenious
nothing
Pelican plugins or extensions
[Normal boring link](http://www.example.com). But this is a [cool link](this>) that links to this site.
Example:
Search in [Wikipedia](wikipedia_en>python), ([here](wikipedia_es>python) in spanish). Also can [search in DuckDuckGo](ddg>python).
Search in Wikipedia, (here in spanish). Also can search in DuckDuckG.
Pelican - attach
using {attach}
![test-interlinks]{attach}(test-interlinks) !{mybirds]{attach}(/images/mybirds-x400.jpg) {Downloadable file]({attach}/images/mybirds-x400.jpg)
Linking to tags and categories
{tag}IPython ! {tag}Python | {tag}testing
{category}Walkthroughs
Test this
Test ref [@PER-GRA:2007] Markdown and LaTeX reference, by Kristine M. Yu, krisyu web
SmartyPants used named entities like — —
instead of decimal-encoded entites like — — .
Links to tags
[tag:python]
In-line code
This is in-line code: (/path/to/img.jpg)
Footnotes
-
Text of the first footnote. ↩