Welcome to the world of Deep Learning for Natural Language Processing (NLP)! If you’ve enrolled in the course offered by the Technical University of Darmstadt for the summer term of 2023, you might want to get your hands on the lecture slides. This article will guide you through the process of compiling these slides, whether you prefer LaTeX or Docker.
Getting Started with the Slides
The slides for this course are made available in both PDF format and LaTeX source code. If you’re a fan of LaTeX, you’re in for a treat, as the creators have utilized Beamer for a more seamless typesetting experience compared to standard PowerPoint presentations.
Prerequisites
- Familiarity with Linux distributions (e.g., Ubuntu)
- Installation of LaTeX packages
- Docker (optional)
Compiling Slides on Linux
If you’re running a Linux distribution, follow these steps to compile the slides:
sudo apt-get install texlive-latex-recommended texlive-pictures texlive-latex-extra texlive-fonts-extra texlive-bibtex-extra texlive-humanities texlive-science texlive-luatex biber wget -y
After installing the necessary packages, you’ll also need to download the Fira Sans fonts:
wget https://github.com/mozilla/Fira/archive/refs/tags/4.106.zip -O 4.106.zip
unzip -o 4.106.zip
mkdir -p ~/.fonts/FiraSans
cp Fira-4.106/otf/Fira* ~/.fonts/FiraSans
rm -rf Fira-4.106
rm 4.106.zip
fc-cache -f -v
mktexlsr
Now, you can compile each lecture’s slides using:
lualatex dl4nlp2023-lecture*.tex
biber dl4nlp2023-lecture*.bcf
lualatex dl4nlp2023-lecture*.tex
lualatex dl4nlp2023-lecture*.tex
Compiling Slides Using Docker
If you prefer using Docker or you’re on a non-Linux system, follow these steps:
- Install Docker from here.
- Create a directory to clone the repository, e.g.,
mkdir -p tmpslides. - Run Docker interactively:
docker run -it --rm --mount type=bind,source=tmpslides,target=/mnt ubuntu:20.04 /bin/bash
Once you’re in the container, update and install packages as mentioned for Linux:
apt-get update
apt-get dist-upgrade -y
apt-get install texlive-latex-recommended texlive-pictures texlive-latex-extra texlive-fonts-extra texlive-bibtex-extra texlive-humanities texlive-science texlive-luatex biber wget -y
Download the Fira Sans fonts as shown previously, then navigate to your slides directory and compile:
cd /mnt/dl4nlp/latex/lecture01
lualatex dl4nlp2023-lecture*.tex
biber dl4nlp2023-lecture*.bcf
lualatex dl4nlp2023-lecture*.tex
lualatex dl4nlp2023-lecture*.tex
Troubleshooting Common Issues
If you encounter issues during compilation, here are some troubleshooting tips:
- Ensure that all required packages are installed correctly.
- Verify that the font files are properly copied to the designated directory.
- If you run into syntax errors, double-check the LaTeX syntax in your `.tex` files.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Additional Resources
For further reading and resources, you might also want to access:
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

