diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e264e156..806fa654b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,7 +39,8 @@ jobs: run: | sudo apt-get update sudo apt-get install texlive-plain-generic inkscape texlive-xetex latexmk - sudo apt-get install xvfb x11-utils libxkbcommon-x11-0 libxcb-xinerama0 python3-pyqt5 + sudo apt-get install texlive-fonts-recommended texlive-science texlive-latex-base + sudo apt-get install xvfb x11-utils libxkbcommon-x11-0 libxcb-xinerama0 python3-pyqt5 # pandoc is not up to date in the ubuntu repos, so we install directly wget https://github.com/jgm/pandoc/releases/download/3.1.2/pandoc-3.1.2-1-amd64.deb && sudo dpkg -i pandoc-3.1.2-1-amd64.deb @@ -113,6 +114,7 @@ jobs: run: | sudo apt-get update sudo apt-get install texlive-plain-generic inkscape texlive-xetex latexmk + sudo apt-get install texlive-fonts-recommended texlive-science texlive-latex-base sudo apt-get install xvfb x11-utils libxkbcommon-x11-0 libxcb-xinerama0 python3-pyqt5 # pandoc is not up to date in the ubuntu repos, so we install directly @@ -136,6 +138,7 @@ jobs: run: | sudo apt-get update sudo apt-get install texlive-plain-generic inkscape texlive-xetex latexmk + sudo apt-get install texlive-fonts-recommended texlive-science texlive-latex-base sudo apt-get install xvfb x11-utils libxkbcommon-x11-0 libxcb-xinerama0 python3-pyqt5 # pandoc is not up to date in the ubuntu repos, so we install directly diff --git a/share/templates/latex/base.tex.j2 b/share/templates/latex/base.tex.j2 index 3f814615f..0d7f297a8 100644 --- a/share/templates/latex/base.tex.j2 +++ b/share/templates/latex/base.tex.j2 @@ -36,6 +36,11 @@ override this.-=)) \usepackage{geometry} % Used to adjust the document margins \usepackage{amsmath} % Equations \usepackage{amssymb} % Equations + \usepackage{amsthm} % Theorem styling + \usepackage{physics} % Calculus symbols typically used in physics + \usepackage{wasysym} % Symbols for planets, constellations and much more + \usepackage[version=4]{mhchem} % Chemical Reactions + \usepackage{textcomp} % defines textquotesingle % Hack from http://tex.stackexchange.com/a/47451/13684: \AtBeginDocument{% diff --git a/tests/files/notebook6_physics_chemistry.ipynb b/tests/files/notebook6_physics_chemistry.ipynb new file mode 100644 index 000000000..6cfac5abd --- /dev/null +++ b/tests/files/notebook6_physics_chemistry.ipynb @@ -0,0 +1,83 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "902a3483", + "metadata": {}, + "source": [ + "## Math Symbol\n", + "\n", + "$$x^0 \\ne 1$$\n", + "\n", + "This is a definition \n", + "\n", + "$$x^0 \\equiv 1$$\n", + "\n", + "But it could also be \n", + "\n", + "$$x^0 \\equiv 0$$" + ] + }, + { + "cell_type": "markdown", + "id": "d7c929b0-9fc8-4e78-b479-c640e9856083", + "metadata": {}, + "source": [ + "## Physics\n", + "$$T = 100 \\degree C$$\n", + "\n", + "where\\\n", + "$T \\equiv$ Boiling Point of Water at $P = 1atm$" + ] + }, + { + "cell_type": "markdown", + "id": "62ae52bc", + "metadata": {}, + "source": [ + "## Astronomy\n", + "\n", + "| Cosmological Body | Symbol |\n", + "|-------------------|-------------|\n", + "| Sun | $\\astrosun$ |\n", + "| Earth | $\\earth$ |\n", + "| Mars | $\\mars$ |\n", + "| Jupiter | $\\jupiter$ |" + ] + }, + { + "cell_type": "markdown", + "id": "bd31eb9f-2c94-4dd5-85bd-e0d50ebd5807", + "metadata": {}, + "source": [ + "## Chemistry\n", + "\n", + "*Methane Combustion*\n", + "\n", + "$$\\ce{CH4 + 2O2 -> CO2 + 2H2O}$$" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.2" + }, + "name": "notebook6_physics_chemistry.ipynb" + }, + "nbformat": 4, + "nbformat_minor": 5 +}