{ "metadata": { "name": "", "signature": "sha256:013ede031909463ecfa3223c2666fff0ef08ef47e5cb6f875f8004a36bfe1b47" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "An h1 header\n", "============\n", "\n", "Paragraphs are separated by a blank line.\n", "\n", "2nd paragraph. *Italic*, **bold**, `monospace`. Itemized lists\n", "look like:\n", "\n", " * this one\n", " * that one\n", " * the other one\n", "\n", "Note that --- not considering the asterisk --- the actual text\n", "content starts at 4-columns in.\n", "\n", "> Block quotes are\n", "> written like so.\n", ">\n", "> They can span multiple paragraphs,\n", "> if you like.\n", "\n", "Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex. \"it's all in\n", "chapters 12--14\"). Three dots ... will be converted to an ellipsis.\n", "\n", "\n", "\n", "An h2 header\n", "------------\n", "\n", "Here's a numbered list:\n", "\n", " 1. first item\n", " 2. second item\n", " 3. third item\n", "\n", "Note again how the actual text starts at 4 columns in (4 characters\n", "from the left side). Here's a code sample:\n", "\n", " # Let me re-iterate ...\n", " for i in 1 .. 10 { do-something(i) }\n", "\n", "As you probably guessed, indented 4 spaces. By the way, instead of\n", "indenting the block, you can use delimited blocks, if you like:\n", "\n", "~~~\n", "define foobar() {\n", " print \"Welcome to flavor country!\";\n", "}\n", "~~~\n", "\n", "(which makes copying & pasting easier). You can optionally mark the\n", "delimited block for Pandoc to syntax highlight it:\n", "\n", "~~~python\n", "import time\n", "# Quick, count to ten!\n", "for i in range(10):\n", " # (but not *too* quick)\n", " time.sleep(0.5)\n", " print i\n", "~~~\n", "\n", "\n", "\n", "### An h3 header ###\n", "\n", "Now a nested list:\n", "\n", " 1. First, get these ingredients:\n", "\n", " * carrots\n", " * celery\n", " * lentils\n", "\n", " 2. Boil some water.\n", "\n", " 3. Dump everything in the pot and follow\n", " this algorithm:\n", "\n", " find wooden spoon\n", " uncover pot\n", " stir\n", " cover pot\n", " balance wooden spoon precariously on pot handle\n", " wait 10 minutes\n", " goto first step (or shut off burner when done)\n", "\n", " Do not bump wooden spoon or it will fall.\n", "\n", "Notice again how text always lines up on 4-space indents (including\n", "that last line which continues item 3 above). Here's a link to [a\n", "website](http://foo.bar). Here's a link to a [local\n", "doc](local-doc.html). Here's a footnote [^1].\n", "\n", "[^1]: Footnote text goes here.\n", "\n", "Tables can look like this:\n", "\n", "size material color\n", "---- ------------ ------------\n", "9 leather brown\n", "10 hemp canvas natural\n", "11 glass transparent\n", "\n", "Table: Shoes, their sizes, and what they're made of\n", "\n", "(The above is the caption for the table.) Here's a definition list:\n", "\n", "apples\n", " : Good for making applesauce.\n", "oranges\n", " : Citrus!\n", "tomatoes\n", " : There's no \"e\" in tomatoe.\n", "\n", "Again, text is indented 4 spaces. (Alternately, put blank lines in\n", "between each of the above definition list lines to spread things\n", "out more.)\n", "\n", "Inline math equations go in like so: $\\omega = d\\phi / dt$. Display\n", "math should get its own line and be put in in double-dollarsigns:\n", "\n", "$$I = \\int \\rho R^{2} dV$$\n", "\n", "Done." ] }, { "cell_type": "code", "collapsed": false, "input": [ "print \"Hello world\"" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Hello world\n" ] } ], "prompt_number": 1 } ], "metadata": {} } ] }