Tests of Jupyter Book features#
Click the .md
button under the download icon on the top middle right to see the markdown code for this section. The file theme.css has color assignments and the like. Customize? (See https://jupyterbook.org/advanced/html.html#custom-assets)
colon_fence#
To allow you to use ::: fences for admonitions, in order to make them easier to render in interfaces that do not support MyST.
Important
Note
This text is standard Markdown. We’re using the “colon_fence” extension.
replacements#
Test of “replacements” extension: ®, ® en-dash: – and em-dash: —
Trying “linkify” extension: google.com
substitutions#
Inline: I’m a substitution
Block level:
Note
I’m a substitution
col1 |
col2 |
---|---|
Note I’m a substitution |
definition lists#
- Term 1
Definition
- Term 2
Definition
images#
Now for some text in between.
videos#
HTML admonitions#
This is the title
This is the content of an admonition.
Note
Some content
A title
Paragraph 1
Paragraph 2
Customized admonitions#
Extra credit
An “extra credit” exercise is presented here.
An extra exercise
An “extra credit” exercise is presented here. The css doesn’t work yet.
This is a title
An example of an admonition with a title and a warning style.
Dropdown answer#
The old hidden fish trick!
Some hidden toggle content!
Maybe this needs to be in an .ipynb file?
Question
The matrix product of 2 rank 2 tensors
Answer
First answer is: \( a_{ij} b_{jk} = c_{ik} \)
Let’s try again here.
Answer
Spread things out a bit.
Click the button to reveal!
Some hidden toggle content!
Different admonitions: note, warning, tip, caution, attention, danger, error, hint, important
Note
Notes require no arguments, so content can start here.
Warning
This is an example of a warning directive.
Tip
This is an example of a tip directive.
Attention
This is an example of an attention directive.
Danger
This is an example of a danger directive.
Error
This is an example of an error directive.
Hint
This is an example of a hint directive.
Important
This is an example of an important directive.
Grids#
“Grids allow you to structure arbitrary chunks of content in a grid-like system. You can also control things like the width of columns, the “gutters” between columns, etc.”
A
B
C
D
“You can control how many columns are in each grid item with the :columns:
option. Grids are split into 12 units of length, and this can be used to split up items as you wish. For example:”
A
B
C
D
“There is a short-hand for adding grids made up of cards, by using the {grid-item-card}
directive. For example:””
Here’s the first card.
Here’s the second card.
Here’s the third card.
More dropdowns#
Here’s my dropdown
And here’s my dropdown content
Turning an admonition into a dropdown (see above as well):
Note
The note body will be hidden!
::::{admonition} Question
What is the pdf $p(x)$ if we know **definitely** that $x = x_0$ (i.e., fixed)?
:::{admonition} Answer
:class: dropdown
$p(x) = \delta(x-x_0)\quad$ [Note that $p(x)$ is normalized.]
:::
::::
Footnotes#
You can include footnotes in your book using standard Markdown syntax. This will include a numbered reference to the footnote in-line, and append the footnote to a list of footnotes at the bottom of the page.
To create a footnote, first insert a reference in-line with this syntax (look at the markdown for how this plays out): [1].
You can define [1] anywhere in the page, though its definition will always be placed at the bottom of your built page.
Quotations and epigraphs#
Standard markdown first:
Here is a cool quotation.
From me, Jo the Jovyan
Now with the epigraph admonition. (Epigraphs draw more attention to a quote and highlight its author. You should keep these relatively short so that they don’t take up too much vertical space.)
Here is a cool quotation.
—Jo the Jovyan
Glossaries#
To reference terms in your glossary, use the {term} role. For example, Term one becomes Term one and A second term becomes A second term.
Tabbed content#
My first tab
My second tab with some code
!
This can be used to show off many different view of the same content, such as providing multiple language examples. For example:
int main(const int argc, const char **argv) {
return 0;
}
def main():
return
class Main {
public static void main(String[] args) {
}
}
function main()
end
PROGRAM main
END PROGRAM main
Learn more about tabs#
See the sphinx-design
tabs documentation for more information on how to use this.