Repository: jaantollander/Markdown-Templates Branch: master Commit: c79d06d49735 Files: 38 Total size: 183.2 KB Directory structure: gitextract_5uj9oc1l/ ├── .github/ │ └── FUNDING.yml ├── .gitignore ├── LICENSE ├── README.md ├── beamer/ │ ├── assets/ │ │ └── citation-style.csl │ ├── build.sh │ └── content/ │ ├── bibliography.bib │ └── index.md ├── bibliography/ │ ├── assets/ │ │ └── citation-style.csl │ ├── build/ │ │ ├── output.epub │ │ └── output.html │ ├── build.sh │ └── content/ │ ├── bibliography.bib │ └── index.md ├── colored-equations/ │ ├── build.sh │ ├── index.md │ └── layout.tex ├── epub/ │ ├── assets/ │ │ └── citation-style.csl │ ├── build/ │ │ └── output.epub │ ├── build.sh │ └── content/ │ ├── bibliography.bib │ └── index.md ├── latex-pdf/ │ ├── assets/ │ │ └── citation-style.csl │ ├── build.sh │ ├── content/ │ │ ├── bibliography.bib │ │ └── index.md │ └── layouts/ │ ├── ereader.tex │ └── print.tex ├── revealjs/ │ ├── .gitignore │ ├── assets/ │ │ └── citation-style.csl │ ├── build/ │ │ └── output.html │ ├── build.sh │ └── content/ │ ├── bibliography.bib │ └── index.md └── vector-graphics/ ├── build/ │ ├── output.epub │ └── output.html ├── build.sh └── content/ └── index.md ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/FUNDING.yml ================================================ github: jaantollander ================================================ FILE: .gitignore ================================================ ================================================ FILE: LICENSE ================================================ Copyright <2020> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # Markdown Templates ## Introduction This repository contains templates for creating scientific, academic, and technical documents that require equations, citations, code blocks, Unicode characters, and embedded vector graphics using *Markdown* and *Pandoc* converter. This software also allows us to write LaTeX documents more easily compared to using pure LaTeX. We discuss the details about these templates and how to write scientific Markdown in general in our article [*Scientific Writing with Markdown*](https://jaantollander.com/post/scientific-writing-with-markdown/). The original inspiration came from the article [*How to make a scientific-looking PDF from Markdown (with bibliography)*](https://gist.github.com/maxogden/97190db73ac19fc6c1d9beee1a6e4fc8). ## Requirements To use these templates, we require the following software. 1) [*Pandoc*](https://pandoc.org/) for converting between the Markdown files into other document formats. 2) [*LaTeX*](https://www.latex-project.org/) for creating PDF documents. 3) Shell such as Bash for invoking the build scripts. Then, clone the repository and copy the appropriate template. ## Editors ![](images/markdown-templates-vscode.png) Above, we see how writing documents looks in *Visual Studio Code*. ![](images/markdown-templates-atom.png) Above, we see how writing documents looks in *Atom*. We also recommend having an editor for writing Markdown. Please read the [Editors](https://jaantollander.com/post/scientific-writing-with-markdown/#editors) section in our article. ## Creating Documents The [Creating Documents](https://jaantollander.com/post/scientific-writing-with-markdown/#creating-documents) section in our article explains the template directory structure, build commands and makefiles, and how to set document-specific metadata in the front matter. ================================================ FILE: beamer/assets/citation-style.csl ================================================ ================================================ FILE: beamer/build.sh ================================================ #!/bin/bash CONTENTDIR="content" BUILDDIR="build" FILENAME="index" ASSETSDIR="assets" download_csl() { mkdir "${ASSETSDIR}" -p wget -O "${ASSETSDIR}/citation-style.csl" \ "https://raw.githubusercontent.com/citation-style-language/styles/master/harvard-anglia-ruskin-university.csl" } pdf() { mkdir "${BUILDDIR}" -p echo "Creating pdf output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars+raw_tex" \ --to="beamer" \ --output="${BUILDDIR}/output.pdf" \ --pdf-engine="xelatex" } # Allows to call a function based on arguments passed to the script # Example: `./build.sh pdf` $* ================================================ FILE: beamer/content/bibliography.bib ================================================ @article{dixon1971brief, title={A brief proof of Cauchy’s integral theorem}, author={Dixon, John D}, journal={Proceedings of the American Mathematical Society}, volume={29}, number={3}, pages={625--626}, year={1971} } @online{online, author = {Wikibooks}, title = {Generating Bibliographies with biblatex and biber}, organization = {Wikibooks}, date = {2016}, urldate = {2016-03-07}, url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber}, keywords = {untrusted}, } ================================================ FILE: beamer/content/index.md ================================================ --- author: Jaan Tollander de Balsch title: Slides Example with Beamer date: "2021-01-18" bibliography: "bibliography.bib" urlcolor: "blue" --- # Lorem Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. [@online] # Equation Cauchy's integral formula [@dixon1971brief] $$f(a)=\frac{1}{2πi}∮_γ\frac{f(z)}{z-a}\,dz.$$ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. # Source Code Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ```python def foo(): return "bar" ``` Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. # References ================================================ FILE: bibliography/assets/citation-style.csl ================================================ ================================================ FILE: bibliography/build/output.html ================================================ Referencing Examples

Referencing Examples

Adams (1993)

Babington (1993)

Caxton (1993)

Draper (1993)

Eston (1993)

Farindon (1993)

Gainsford (1993)

Harwood (1993)

Isley (1993)

Joslin (1993)

Kidwelly (1993)

Lambert (1993)

Marcheford (1993)

Wikibooks (2016)

References

Adams, P., 1993. The title of the work. The name of the journal, 4(2), pp.201–213.
Babington, P., 1993. The title of the work. 3rd ed. 10th series. The address: The name of the publisher.
Caxton, P., 1993. The title of the work.
Draper, P., 1993. The title of the work. 5th series.
Eston, P., 1993. The title of the work. In: 5th series, 3rd ed. The address of the publisher: The name of the publisher.pp.201–213.
Farindon, P., 1993. The title of the work. In: T. editor, ed. The title of the book, 5th series, 3rd ed. The address of the publisher: The name of the publisher.pp.201–213.
Gainsford, P., 1993. The title of the work. 3rd ed. The address of the publisher: The organization.
Harwood, P., 1993. The title of the work. Master’s thesis. The school of the thesis.
Isley, P., 1993. The title of the work.
Joslin, P., 1993. The title of the work. PhD thesis. The school of the thesis.
Kidwelly, P. ed., 1993. The title of the work. 5th series. The address of the publisher: The organization; The name of the publisher.
Lambert, P., 1993. The title of the work. The address of the publisher: The institution that published.
Marcheford, P., 1993. The title of the work.
Wikibooks, 2016. Generating bibliographies with biblatex and biber. [online] Available at: <https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber> [Accessed 7 Mar. 2016].
================================================ FILE: bibliography/build.sh ================================================ #!/bin/bash CONTENTDIR="content" BUILDDIR="build" FILENAME="index" ASSETSDIR="assets" download_csl() { mkdir "${ASSETSDIR}" -p wget -O "${ASSETSDIR}/citation-style.csl" \ "https://raw.githubusercontent.com/citation-style-language/styles/master/harvard-anglia-ruskin-university.csl" } pdf() { mkdir "${BUILDDIR}" -p echo "Creating pdf output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="latex" \ --output="${BUILDDIR}/output.pdf" \ --pdf-engine="xelatex" } html() { mkdir "${BUILDDIR}" -p echo "Creating html output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="html5" \ --output="${BUILDDIR}/output.html" \ --self-contained } epub() { mkdir "${BUILDDIR}" -p echo "Creating epub output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="epub" \ --output="${BUILDDIR}/output.epub" } # Allows to call a function based on arguments passed to the script # Example: `./build.sh pdf` $* ================================================ FILE: bibliography/content/bibliography.bib ================================================ @article{article, author = {Peter Adams}, title = {The title of the work}, journal = {The name of the journal}, year = 1993, number = 2, pages = {201-213}, month = 7, note = {An optional note}, volume = 4 } @book{book, author = {Peter Babington}, title = {The title of the work}, publisher = {The name of the publisher}, year = 1993, volume = 4, series = 10, address = {The address}, edition = 3, month = 7, note = {An optional note}, isbn = {3257227892} } @booklet{booklet, title = {The title of the work}, author = {Peter Caxton}, howpublished = {How it was published}, address = {The address of the publisher}, month = 7, year = 1993, note = {An optional note} } @conference{conference, author = {Peter Draper}, title = {The title of the work}, booktitle = {The title of the book}, year = 1993, editor = {The editor}, volume = 4, series = 5, pages = 213, address = {The address of the publisher}, month = 7, organization = {The organization}, publisher = {The publisher}, note = {An optional note} } @inbook{inbook, author = {Peter Eston}, title = {The title of the work}, chapter = 8, pages = {201-213}, publisher = {The name of the publisher}, year = 1993, volume = 4, series = 5, address = {The address of the publisher}, edition = 3, month = 7, note = {An optional note} } @incollection{incollection, author = {Peter Farindon}, title = {The title of the work}, booktitle = {The title of the book}, publisher = {The name of the publisher}, year = 1993, editor = {The editor}, volume = 4, series = 5, chapter = 8, pages = {201-213}, address = {The address of the publisher}, edition = 3, month = 7, note = {An optional note} } @manual{manual, title = {The title of the work}, author = {Peter Gainsford}, organization = {The organization}, address = {The address of the publisher}, edition = 3, month = 7, year = 1993, note = {An optional note} } @mastersthesis{mastersthesis, author = {Peter Harwood}, title = {The title of the work}, school = {The school of the thesis}, year = 1993, address = {The address of the publisher}, month = 7, note = {An optional note} } @misc{misc, author = {Peter Isley}, title = {The title of the work}, howpublished = {How it was published}, month = 7, year = 1993, note = {An optional note} } @phdthesis{phdthesis, author = {Peter Joslin}, title = {The title of the work}, school = {The school of the thesis}, year = 1993, address = {The address of the publisher}, month = 7, note = {An optional note} } @proceedings{proceedings, title = {The title of the work}, year = 1993, editor = {Peter Kidwelly}, volume = 4, series = 5, address = {The address of the publisher}, month = 7, organization = {The organization}, publisher = {The name of the publisher}, note = {An optional note} } @techreport{techreport, author = {Peter Lambert}, title = {The title of the work}, institution = {The institution that published}, year = 1993, number = 2, address = {The address of the publisher}, month = 7, note = {An optional note} } @unpublished{unpublished, author = {Peter Marcheford}, title = {The title of the work}, note = {An optional note}, month = 7, year = 1993 } @online{online, author = {Wikibooks}, title = {Generating Bibliographies with biblatex and biber}, organization = {Wikibooks}, date = {2016}, urldate = {2016-03-07}, url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber}, keywords = {untrusted}, } ================================================ FILE: bibliography/content/index.md ================================================ --- title: Referencing Examples bibliography: "bibliography.bib" link-citations: true urlcolor: "blue" --- @article @book @booklet @conference @inbook @incollection @manual @mastersthesis @misc @phdthesis @proceedings @techreport @unpublished @online # References ================================================ FILE: colored-equations/build.sh ================================================ #!/bin/bash BUILDDIR=build FILENAME=index pdf() { mkdir ${BUILDDIR} -p pandoc ${FILENAME}.md \ --from=markdown+tex_math_single_backslash+tex_math_dollars+raw_tex \ --to=latex \ --output=${BUILDDIR}/output.pdf \ --pdf-engine=xelatex \ --include-in-header="layout.tex" } # Allows to call a function based on arguments passed to the script # Example: `bash build.sh pdf` $* ================================================ FILE: colored-equations/index.md ================================================ --- urlcolor: "blue" --- All credits of the below example belong to Better Explained. You can read more about colorized equations in their article [Colorized Math Equations](https://betterexplained.com/articles/colorized-math-equations/). \definecolor{c1}{RGB}{114,0,172} \definecolor{c2}{RGB}{45,177,93} \definecolor{c3}{RGB}{251,0,29} \definecolor{c4}{RGB}{18,110,213} \definecolor{c5}{RGB}{255,160,109} \definecolor{c6}{RGB}{219,78,158} \newcommand{\plain}{\color{black}} \newcommand{\growth}{\color{c1}} \newcommand{\unitQuantity}{\color{c2}} \newcommand{\unitInterest}{\color{c3}} \newcommand{\unitTime}{\color{c4}} \newcommand{\perfectly}{\color{c5}} \newcommand{\compounded}{\color{c6}} $$ \growth e \plain = \perfectly \lim_{n\to\infty} \plain \left( \unitQuantity 1 + \unitInterest \frac{1}{\compounded n} \plain \right) \unitTime^{1 \cdot \compounded n} $$ \begin{center} \growth The base for continuous growth \plain is \unitQuantity the unit quantity \unitInterest earning unit interest \unitTime for unit time, \compounded compounded \perfectly as fast as possible \end{center} ================================================ FILE: colored-equations/layout.tex ================================================ \usepackage[papersize={4.5in,3in},margin=0.5cm]{geometry} \pagestyle{empty} ================================================ FILE: epub/assets/citation-style.csl ================================================ ================================================ FILE: epub/build.sh ================================================ #!/bin/bash CONTENTDIR="content" BUILDDIR="build" FILENAME="index" ASSETSDIR="assets" download_csl() { mkdir "${ASSETSDIR}" -p wget -O "${ASSETSDIR}/citation-style.csl" \ "https://raw.githubusercontent.com/citation-style-language/styles/master/harvard-anglia-ruskin-university.csl" } epub() { mkdir "${BUILDDIR}" -p echo "Creating EPUB output" pandoc "${CONTENTDIR}/${FILENAME}".md \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="epub" \ --output="${BUILDDIR}/output.epub" \ --epub-cover-image="${ASSETSDIR}/cover.png" \ --mathml \ --toc } # Allows to call a function based on arguments passed to the script # Example: `./build.sh epub` $* ================================================ FILE: epub/content/bibliography.bib ================================================ @article{dixon1971brief, title={A brief proof of Cauchy’s integral theorem}, author={Dixon, John D}, journal={Proceedings of the American Mathematical Society}, volume={29}, number={3}, pages={625--626}, year={1971} } @online{online, author = {Wikibooks}, title = {Generating Bibliographies with biblatex and biber}, organization = {Wikibooks}, date = {2016}, urldate = {2016-03-07}, url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber}, keywords = {untrusted}, } ================================================ FILE: epub/content/index.md ================================================ --- title: "Book Example" date: "2018-05-18" author: "Jaan Tollander de Balsch" bibliography: "bibliography.bib" link-citations: true urlcolor: "blue" --- # Image ![](images/800x400.png) Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. [@online] # Equation Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Cauchy's integral formula [@dixon1971brief] $$f(a)={\frac{1}{2πi}}∮_{γ}{\frac{f(z)}{z-a}}\,dz.$$ What about inline equations? Duis aute irure dolor $\int x^2\,dx$ in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. # Source Code Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ```python def foo(): return "bar" ``` Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. # Table | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | Seen in above table, Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. # References ================================================ FILE: latex-pdf/assets/citation-style.csl ================================================ ================================================ FILE: latex-pdf/build.sh ================================================ #!/bin/bash CONTENTDIR="content" BUILDDIR="build" FILENAME="index" ASSETSDIR="assets" download_csl() { mkdir "${ASSETSDIR}" -p wget -O "${ASSETSDIR}/citation-style.csl" \ "https://raw.githubusercontent.com/citation-style-language/styles/master/harvard-anglia-ruskin-university.csl" } pdf_print() { mkdir "${BUILDDIR}" -p echo "Creating pdf-print output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars+raw_tex" \ --to="latex" \ --output="${BUILDDIR}/output_print.pdf" \ --pdf-engine="xelatex" \ --include-in-header="layouts/print.tex" } pdf_ereader() { mkdir "${BUILDDIR}" -p echo "Creating pdf-ereader output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars+raw_tex" \ --to="latex" \ --output="${BUILDDIR}/output_ereader.pdf" \ --pdf-engine="xelatex" \ --include-in-header="layouts/ereader.tex" } # Allows to call a function based on arguments passed to the script # Example: `./build.sh pdf_print` $* ================================================ FILE: latex-pdf/content/bibliography.bib ================================================ @article{dixon1971brief, title={A brief proof of Cauchy’s integral theorem}, author={Dixon, John D}, journal={Proceedings of the American Mathematical Society}, volume={29}, number={3}, pages={625--626}, year={1971} } @online{online, author = {Wikibooks}, title = {Generating Bibliographies with biblatex and biber}, organization = {Wikibooks}, date = {2016}, urldate = {2016-03-07}, url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber}, keywords = {untrusted}, } ================================================ FILE: latex-pdf/content/index.md ================================================ --- title: "Essay Example" date: "2021-01-19" author: "Jaan Tollander de Balsch" bibliography: "bibliography.bib" link-citations: true urlcolor: "blue" --- # Image ![Description \label{fig:1}](images/800x400.png) Seen in figure \ref{fig:1}, lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. [@online] # Equation Cauchy's integral formula [@dixon1971brief] $$ f(a)=\frac{1}{2πi}∮_γ\frac{f(z)}{z-a}\,dz. \tag{1} \label{eq:1} $$ As seen in equation $\eqref{eq:1}$, duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. # Source Code Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ```python def foo(): return "bar" ``` Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. # Table | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | Table: Table styles. \label{tab:1} Seen in table \ref{tab:1}, Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. # References ================================================ FILE: latex-pdf/layouts/ereader.tex ================================================ \usepackage[papersize={4.5in,6in},margin=0.5cm]{geometry} \newcommand\textbreak{% \begin{center}% \decothreeleft \aldineleft \decosix \aldineright \decothreeright% \end{center}} \pagestyle{empty} ================================================ FILE: latex-pdf/layouts/print.tex ================================================ ================================================ FILE: revealjs/.gitignore ================================================ reveal.js ================================================ FILE: revealjs/assets/citation-style.csl ================================================ ================================================ FILE: revealjs/build/output.html ================================================ Slides Example with Reveal.js

Slides Example with Reveal.js

Jaan Tollander de Balsch

2021-01-18

Lorem

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. (Wikibooks, 2016)

Equation

Cauchy’s integral formula (Dixon, 1971)

\[f(a)=\frac{1}{2πi}∮_γ\frac{f(z)}{z-a}\,dz.\]

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Source Code

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

def foo():
    return "bar"

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Table

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
math \(∫x\,dx\) is neat $1

References

Dixon, J.D., 1971. A brief proof of cauchy’s integral theorem. Proceedings of the American Mathematical Society, 29(3), pp.625–626.
Wikibooks, 2016. Generating bibliographies with biblatex and biber. [online] Available at: <https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber> [Accessed 7 Mar. 2016].
// reveal.js plugins ================================================ FILE: revealjs/build.sh ================================================ #!/bin/bash CONTENTDIR="content" BUILDDIR="build" FILENAME="index" ASSETSDIR="assets" download_csl() { mkdir "${ASSETSDIR}" -p wget -O "${ASSETSDIR}/citation-style.csl" \ "https://raw.githubusercontent.com/citation-style-language/styles/master/harvard-anglia-ruskin-university.csl" } download_revealjs() { mkdir ${BUILDDIR} -p wget https://github.com/hakimel/reveal.js/archive/master.tar.gz tar -xzvf master.tar.gz mv reveal.js-master ${BUILDDIR}/reveal.js rm master.tar.gz } html() { mkdir "${BUILDDIR}" -p echo "Creating html output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --citeproc \ --csl="${ASSETSDIR}/citation-style.csl" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="revealjs" \ --output="${BUILDDIR}/output.html" \ --variable revealjs-url="./reveal.js" \ --mathjax \ --standalone } clean() { rm -r ${BUILDDIR}/* } # Allows to call a function based on arguments passed to the script # Example: `./build.sh html` $* ================================================ FILE: revealjs/content/bibliography.bib ================================================ @article{dixon1971brief, title={A brief proof of Cauchy’s integral theorem}, author={Dixon, John D}, journal={Proceedings of the American Mathematical Society}, volume={29}, number={3}, pages={625--626}, year={1971} } @online{online, author = {Wikibooks}, title = {Generating Bibliographies with biblatex and biber}, organization = {Wikibooks}, date = {2016}, urldate = {2016-03-07}, url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber}, keywords = {untrusted}, } ================================================ FILE: revealjs/content/index.md ================================================ --- author: Jaan Tollander de Balsch title: Slides Example with Reveal.js date: "2021-01-18" bibliography: "bibliography.bib" urlcolor: "blue" theme: black transition: fade --- ## Lorem Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. [@online] ## Equation Cauchy's integral formula [@dixon1971brief]
$$f(a)=\frac{1}{2πi}∮_γ\frac{f(z)}{z-a}\,dz.$$
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
## Source Code Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ```python def foo(): return "bar" ``` Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ## Table | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | math $∫x\,dx$ | is neat | $1 | ## References ================================================ FILE: vector-graphics/build/output.html ================================================ Vector Graphics Examples

Vector Graphics Examples

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Turpis tincidunt id aliquet risus feugiat in ante metus dictum. Iaculis urna id volutpat lacus laoreet. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Suspendisse in est ante in nibh mauris. Eget velit aliquet sagittis id consectetur. Commodo elit at imperdiet dui accumsan sit.

Diam maecenas ultricies mi eget mauris. Sit amet est placerat in egestas erat. Vel pharetra vel turpis nunc eget lorem dolor sed viverra. Leo vel fringilla est ullamcorper eget nulla facilisi etiam dignissim. Purus in massa tempor nec feugiat nisl pretium fusce id. Gravida arcu ac tortor dignissim convallis aenean et tortor at. Dui accumsan sit amet nulla. Sagittis purus sit amet volutpat consequat mauris nunc congue.

Mattis vulputate enim nulla aliquet. Quam id leo in vitae turpis massa sed elementum. Morbi tristique senectus et netus. Vitae proin sagittis nisl rhoncus. Semper auctor neque vitae tempus quam. Aliquet porttitor lacus luctus accumsan tortor posuere ac. Tortor at auctor urna nunc id cursus metus aliquam eleifend. Massa sed elementum tempus egestas sed sed risus. Leo integer malesuada nunc vel risus commodo viverra maecenas.

================================================ FILE: vector-graphics/build.sh ================================================ #!/bin/bash CONTENTDIR="content" BUILDDIR="build" FILENAME="index" ASSETSDIR="assets" pdf() { mkdir "${BUILDDIR}" -p echo "Creating pdf output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="latex" \ --output="${BUILDDIR}/output.pdf" \ --pdf-engine="xelatex" } html() { mkdir "${BUILDDIR}" -p echo "Creating html output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="html5" \ --output="${BUILDDIR}/output.html" \ --self-contained } epub() { mkdir "${BUILDDIR}" -p echo "Creating epub output" pandoc "${CONTENTDIR}/${FILENAME}.md" \ --resource-path="${CONTENTDIR}" \ --from="markdown+tex_math_single_backslash+tex_math_dollars" \ --to="epub" \ --output="${BUILDDIR}/output.epub" } # Allows to call a function based on arguments passed to the script # Example: `./build.sh pdf` $* ================================================ FILE: vector-graphics/content/index.md ================================================ --- title: Vector Graphics Examples --- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Turpis tincidunt id aliquet risus feugiat in ante metus dictum. Iaculis urna id volutpat lacus laoreet. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Suspendisse in est ante in nibh mauris. Eget velit aliquet sagittis id consectetur. Commodo elit at imperdiet dui accumsan sit. ![](images/layered-graph.svg) Diam maecenas ultricies mi eget mauris. Sit amet est placerat in egestas erat. Vel pharetra vel turpis nunc eget lorem dolor sed viverra. Leo vel fringilla est ullamcorper eget nulla facilisi etiam dignissim. Purus in massa tempor nec feugiat nisl pretium fusce id. Gravida arcu ac tortor dignissim convallis aenean et tortor at. Dui accumsan sit amet nulla. Sagittis purus sit amet volutpat consequat mauris nunc congue. ![](images/linear-graph.svg) Mattis vulputate enim nulla aliquet. Quam id leo in vitae turpis massa sed elementum. Morbi tristique senectus et netus. Vitae proin sagittis nisl rhoncus. Semper auctor neque vitae tempus quam. Aliquet porttitor lacus luctus accumsan tortor posuere ac. Tortor at auctor urna nunc id cursus metus aliquam eleifend. Massa sed elementum tempus egestas sed sed risus. Leo integer malesuada nunc vel risus commodo viverra maecenas.