From fbcedcf9d5624edf774038a59ac5ce85e7e570d0 Mon Sep 17 00:00:00 2001 From: Christopher Olah Date: Fri, 20 Jan 2017 01:25:18 -0800 Subject: [PATCH] more on citations and appendix in bibliography --- examples/tutorial.html | 53 +++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/examples/tutorial.html b/examples/tutorial.html index fd4bce7..d2e4014 100644 --- a/examples/tutorial.html +++ b/examples/tutorial.html @@ -136,32 +136,36 @@ title={DRAW: A recurrent neural network for image generation}, author={Gregor, Karol and Danihelka, Ivo and Graves, Alex and Rezende, Danilo Jimenez and Wierstra, Daan}, journal={arXivreprint arXiv:1502.04623}, - year={2015} - } - @article{mercier2011humans, - title={Why do humans reason? Arguments for an argumentative theory}, - author={Mercier, Hugo and Sperber, Dan}, - journal={Behavioral and brain sciences}, - volume={34}, - number={02}, - pages={57--74}, - year={2011}, - publisher={Cambridge Univ Press} + year={2015}, + url={https://arxiv.org/pdf/1502.04623.pdf}, } </script> +

(We strongly encourage you to populate the url bibtex field where possible so that we can provide links for citations.)

-

Citations are then used in the article body with the <dt-cite> tag. The article attribute is a reference to the id provided in the bibiography.

+

Citations are then used in the article body with the <dt-cite> tag. The key attribute is a reference to the id provided in the bibiography. The key attribute can take multiple ids, separated by commas.

<dt-cite key="gregor2015draw"></dt-cite> + +

The citation is presented inline like this: (a number that displays more information on hover). If you have an appendix, a bibliography is automatically created and populated in it.

+

Distill chose a numerical inline citation style to improve readability of citation dense articles and because many of the benefits of longer citations are obviated by dispalying more information on hover. However, we consider it good style to mention author last names if you discuss something at length and it fits into the flow well -- the authors are human and it's nice for them to have the community associate them with their work.

+

Footnotes

-

Just wrap the text you would like to show up in a footnote in a dt-fn tag. The number of the footnote will be automatically generated. This text will be shown on hover.

+

Just wrap the text you would like to show up in a footnote in a <dt-fn> tag. The number of the footnote will be automatically generated. This text will be shown on hover.

<dt-fn>This will become a hoverable footnote.</dt-fn> @@ -215,6 +219,29 @@ +
+

Appendix

+ +

An appendix can be added after your article, using the <dt-appendix> tag.

+ + + <dt-article> + ... + </dt-article> + + <dt-appendix> + <h3>Appendix Section Title</h3> + <p>section content<p> + </dt-appendix> + + +

You may wish to include the following sections in your appendix:

+ + +

And You’re Off

That should do it. If you have any questions or bugs to file, feel free to open an issue on GitHub.