In Markdown, you can list items using numbers, a +, a -, or a. However, if the first item in a list or sublist is numbered, Markdown will interpret the entire list as ordered and will automatically number the items linearly, no matter what character you use to denote any given separate item. A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company.
The jupyterconfigwrapper command calls a script that will create encryption keys for the Jupyter notebook, configure the jupyter config file, and sets the default tmux shell to bash. Note, this script modifies existing Jupyter notebook config files (if they exist), but will not overwrite any parameters that have changed from their default values.
In this post, I am gonna show you how to write Mathematic symbols in markdown. since I am writing blog post that hosted by Github with Editor Atom, and use plugin markdown-preview-plus and mathjax-wrapper, and use mathjax Javascript display the math symbols on the web page.
I am not gonna to tell you how to make all these things work together, if you want to do what I am do, please take a little time and search around.
Most import, this post is showing you the basics about math symbols in Latex.
This what wikipedia said about Latex:
One of the greatest motivating forces for Donald Knuth when he began developing the original TeX system was to create something that allowed simple construction of mathematical formulas, while looking professional when printed.
Jupyter Notebook Markdown
Here are some symbols I typed during the learning.
Greek Letters
Symbol | Script |
---|---|
$alpha$ | alpha |
$A$ | A |
$beta$ | beta |
$B$ | B |
$gamma$ | gammma |
$Gamma$ | Gamma |
$pi$ | pi |
$Pi$ | Pi |
$phi$ | phi |
$Phi$ | Phi |
$varphi$ | varphi |
$theta$ | theta |
Operators
Symbol | Script |
---|---|
$cos$ | cos |
$sin$ | sin |
$lim$ | lim |
$exp$ | exp |
$to$ | to |
$infty$ | infty |
$equiv$ | equiv |
$bmod$ | bmod |
$times$ | times |
Power and Indices
Symbol | Script |
---|---|
$k_{n+1}$ | k_{n+1} |
$n^2$ | n^2 |
$k_n^2$ | k_n^2 |
Fractions and Binomials
Symbol | Script |
---|---|
$frac{n!}{k!(n-k)!}$ | frac{n!}{k!(n-k)!} |
$binom{n}{k}$ | binom{n}{k} |
$frac{frac{x}{1}}{x - y}$ | frac{frac{x}{1}}{x - y} |
$^3/_7$ | ^3/_7 |
Roots
Symbol | Script |
---|---|
$sqrt{k}$ | sqrt{k} |
$sqrt[n]{k}$ | sqrt[n]{k} |
Sums and Integrals
Symbol | Script |
---|---|
$sum_{i=1}^{10} t_i$ | sum_{i=1}^{10} t_i |
$int_0^infty mathrm{e}^{-x},mathrm{d}x$ | int_0^infty mathrm{e}^{-x},mathrm{d}x |
$sum$ | sum |
$prod$ | prod |
$coprod$ | coprod |
$bigoplus$ | bigoplus |
$bigotimes$ | bigotimes |
$bigodot$ | bigodot |
$bigcup$ | bigcup |
$bigcap$ | bigcap |
$biguplus$ | biguplus |
$bigsqcup$ | bigsqcup |
$bigvee$ | bigvee |
$bigwedge$ | bigwedge |
$int$ | int |
$oint$ | oint |
$iint$ | iint |
$iiint$ | iiint |
$idotsint$ | idotsint |
$sum_{substack{0<i<m0<j<n}} P(i, j)$ | sum_{substack{0<i<m0<j<n}} P(i, j) |
$intlimits_a^b$ | intlimits_a^b |
Symbol | Script |
---|---|
$a’$ $a^{prime}$ | a` a^{prime} |
$a’’$ | a’’ |
$hat{a}$ | hat{a} |
$bar{a}$ | bar{a} |
$grave{a}$ | grave{a} |
$acute{a}$ | acute{a} |
$dot{a} | dot{a} |
$ddot{a}$ | ddot{a} |
$not{a}$ | not{a} |
$mathring{a}$ | mathring{a} |
$overrightarrow{AB}$ | overrightarrow{AB} |
$overleftarrow{AB}$ | overleftarrow{AB} |
$a’’’$ | a’’’ |
$overline{aaa}$ | overline{aaa} |
$check{a}$ | check{a} |
$vec{a}$ | vec{a} |
$underline{a}$ | underline{a} |
$color{red}x$ | color{red}x |
$pm$ | pm |
$mp$ | mp |
$int y mathrm{d}x$ | int y mathrm{d}x |
$,$ | , |
$:$ | : |
$;$ | ; |
$!$ | ! |
$int y, mathrm{d}x$ | int y, mathrm{d}x |
$dots$ | dots |
$ldots$ | ldots |
$cdots$ | cdots |
$vdots$ | vdots |
$ddots$ | ddots |
Brackets etc
Symbol | Script |
---|---|
$(a)$ | (a) |
$[a]$ | [a] |
${a}$ | {a} |
$langle f rangle$ | langle f rangle |
$lfloor f rfloor$ | lfloor f rfloor |
$lceil f rceil$ | lceil f rceil |
$ulcorner f urcorner$ | ulcorner f urcorner |
Reference
Atom - Atom editor for hackers
markdown-preview-plus - preview your markdown in atom
mathjax-wrapper - display math symbols in atom
mathjax - Javascript lib for browsers
Latex - Latex Homepage
Wiki Latex Mathematics - introduction to math symbols in latex
Github tables - Github Flavored Markdown
This is part two in the Writing in Markdown series. If you prefer, read John Gruber's original guide. I will not be able to add anything new.
Lists come in two flavors in Markdown. There are unordered lists and ordered lists. The first item in a list must be preceded by an empty line. A list item can contain other Markdown formatting, however the list bullet or item number can not. It must be plain text.
Latex Jupyter Notebook
An unordered list is a simple bullet list. There's not much to an unordered list. It must be separated from a text block by one blank like and each list item must be preceded by a hyphen, plus or asterisk. I use hyphen characters ('-') exclusively for bullet lists. I have run into problems when using a mix of hyphens and asterisks with lists. Particularly, I have had issues when copying markdown into other applications.
To create nested lists, indent by one tab (or four spaces if you're antediluvian. Markdown processors will automatically vary the bullet character between list levels. That's the main reason it doesn't matter much whether I use an asterisk or dash for bullets.
Is converted to this:
- Talk to Luke about his father
- Skip the part where I leave him for dead
- Don't mention the youngling 'thing'
- Dinner with Yoda
- Bring DEET
- Bring Pepto
- Dessert?
- Wookie Pie
- Stop by to see Anakin on Death Star
- Submit restraining order against JarJar
But of course sometimes the order of items is crucial. That's where ordered lists come in. The sequence of an ordered list is defined by the sequence of the list items and not by the number prefix of the item
For example, even though the first line is prefixed as item #3 in the list, the Markdown is converted to display as item #1. The actual number is irrelevant. It is only there to indicate that the line should be considered as an ordered list item. Also note that unordered and ordered items can be commingled in the same list, but not at the same indentation level. An ordered list can contain a nested ordered list. But an unordered list items are converted to numbered list items if they are at the same indentation level as another numbered item.
Is converted to the list below. The originally drafted sequence would be lost in converting the Markdown to html or PDF.
- Stop by to see Anakin on Death Star
- Get a ride
- Wash robe
- Clean blood (and hand) off Anakin's old light saber
- Talk to Luke about his father
- Skip the part where I leave him for dead
- Don't mention the youngling 'thing'
- Dinner with Yoda
- Bring DEET
- Bring Pepto
- Dessert?
- Wookie Pie
- Submit restraining order against JarJar
As with all Markdown, these are just tags to interpret the start of a ul or ol html tag block. As long as the first item in a list, all subsequent list items will be interpreted as an ordered list. For example:
Generates this formatted list
Pack Suitcase
- Lightsaber
- Leisure brown robe
- Formal brown robe
- Night time brown robe
- Dress Sandals
Jupyter Vs Ipython
Unfortunately, Markdown never implemented an option to start an ordered (numbered) list at an arbitrary number. The only option I have found is to create the list manually by escaping the Markdown using a <pre> or <code> block. These blocks tell the Markdown processor to skip interpretation of the list all together.
To generate this list:
Alternatively, I can skip the <pre> tag by indenting each list item with one tab (or four spaces). This just makes it a code block which also escapes the Markdown processor.
Jupyter Notebook Cheat Sheet
There are many more details about extending lists to include multiple paragraphs as well as code blocks. I highly recommend reading from the original source as handed down by Gruber.