diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile
index 2bceb1185841167cf95223dd8be908880f948524..b5d5d1628c1365c4ebe2f9fe4992a235e0fc4024 100755
--- a/jupyterhub/base/Dockerfile
+++ b/jupyterhub/base/Dockerfile
@@ -85,6 +85,14 @@ RUN mkdir -p /usr/local/venv && \
         && \
     ipython kernel install --name=default
 
+RUN apt-get update && \
+    apt-get install -y \
+        texlive-full \
+    && \
+    apt-get clean && \
+    python${PYTHON_VERSION} -m pip install jupyterlab_latex && \
+    jupyter labextension install @jupyterlab/latex
+    
 RUN chmod -x /etc/update-motd.d/*
 
 WORKDIR "${HOME}"
diff --git a/jupyterhub/base/jupyter_notebook_config.py b/jupyterhub/base/jupyter_notebook_config.py
index 1578b9772116ee1c09669e5c01e19c680706e347..79fd21f55a8f8e55baa3c337ca6d8c8d341e2b10 100755
--- a/jupyterhub/base/jupyter_notebook_config.py
+++ b/jupyterhub/base/jupyter_notebook_config.py
@@ -2,3 +2,4 @@ c.NotebookApp.allow_root = True
 c.NotebookApp.terminado_settings = {"shell_command": ["/bin/bash", "-l"]}
 c.MultiKernelManager.default_kernel_name = "default"
 c.NotebookApp.notebook_dir = "/"
+c.LatexConfig.latex_command = "pdflatex"