Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions share/templates/latex/base.tex.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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{%
Expand Down
83 changes: 83 additions & 0 deletions tests/files/notebook6_physics_chemistry.ipynb
Original file line number Diff line number Diff line change
@@ -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
}
Loading