+++ date = "2016-04-20T10:00:00" draft = false tags = [] title = "Writing content with Markdown, LaTeX, and Shortcodes" math = true +++ Content can be written using [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet), [Hugo Shortcodes](http://gohugo.io/extras/shortcodes/), and [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics). Additionally, HTML may be used for advanced formatting. ## Sub-headings ## H2 ### H3 #### H4 ##### H5 ###### H6 ## Emphasis Italics with *asterisks* or _underscores_. Bold with **asterisks** or __underscores__. Combined emphasis with **asterisks and _underscores_**. Strikethrough with ~~two tildes~~. ## Ordered lists 1. First item 2. Another item ## Unordered lists * First item * Another item ## Images Images may be added to a page by placing them in your `static/img/` folder and referencing them using one of the following two notations: A general image: ![alternative text for search engines](/img/screenshot.png) A numbered figure with caption: {{}} ## Links [I'm a link](https://www.google.com) [A post]({{}}) [A publication]({{}}) [A project]({{}}) [Another section]({{}}) ## Blockquote > This is a blockquote. > This is a blockquote. ## Code highlighting Pass the *language* of the code, such as `python`, as a parameter after three backticks: ```python # Example of code highlighting input_string_var = input("Enter some data: ") print("You entered: {}".format(input_string_var)) ``` Result: ```python # Example of code highlighting input_string_var = input("Enter some data: ") print("You entered: {}".format(input_string_var)) ``` ## Twitter tweet To include a single tweet, pass the tweet’s ID from the tweet's URL as parameter to the shortcode: {{}} ## Youtube {{}} ## Vimeo {{}} ## GitHub gist {{}} ## Speaker Deck {{}} ## $\rm \LaTeX$ math ```TeX $$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$ ``` $$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$ ## Table Code: ```Markdown | Command | Description | | ------------------| ------------------------------ | | `hugo` | Build your website. | | `hugo serve -w` | View your website. | ``` Result: | Command | Description | | ------------------| ------------------------------ | | `hugo` | Build your website. | | `hugo serve -w` | View your website. |