You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The slides were outdated in a few ways, including both changes to our general setup as well as some outdate LaTeX syntax which needs to be either adapted or discarded.
The basic procedure should be roughly the same for each slide .tex file / chunk, based on my initial attempt with the first file here: 4d1fa17
Update the first few lines of each .tex file according to this structure
\documentclass[11pt,compress,t,notes=noshow, xcolor=table]{beamer}
\input{../../style/preamble}
% latex-math includes as needed\input{../../latex-math/basic-math}
\input{../../latex-math/basic-ml}
% Lecture title always has to be there\title{Algorithms and Data Structures}
\begin{document}
\titlemeta{% Chunk title (example: CART, Forests, Boosting, ...), can be empty
Introduction
}{% Lecture title
Introduction
}{% Relative path to title page image: Can be empty but must not start with slides/
}{% Learning goals, wrapped inside itemize environment\item Learn a thing
\item Learn another thing
}
\begin{vbframe}{First slide of the lecture}
Refer to other lectures such as I2ML for more examples if needed.
If I remember correctly, Bernd prefers the \titlemeta command to not use the % comments I inserted for documentation.
Also part of the header is removing reference to preamble4tex.tex which doesn't exist anymore, with \input{../../style/preamble} taking its place.
Remove or adapt outdated LaTeX code. Examples include use of the verbbox environment or the \col command among other things. I did not immediately recognize where they are from and ideally we only use the latex packages which are already included in the style/preamble.tex and only if absolutely necessary use additional packages on a file-per-file basis to avoid additional complexity.
Similarly, latex-math has changed a bit since the slides were originally written. Some commands where renamed liked \thetab which is now \thetav, and other commands were removed while new commands were introduced. This unfortunately will take some work to make best use of latex-math.
Some common warnings can be safely ignored, such as
LaTeX Warning: Reference `endlect:@@0' on page 14 undefined on input line
This is an artifact of the way slide numbers are kept track of and can be considered spurious (I think) as they vanish after latexmk did it's job properly.
Rendering slides individually in the command line with latexmk -pdf slide-file.tex to see if any errors pop up and iterating until everything works would work, but the service repo is also an option, which would then include something like
cd path/to/lecture_service
# Set lecture_algods as the (only) active lectureecho"lecture_algods"> include_lectures
lecheck compile -l algods
── lecture_algods ────────────────────────────────
── 01_intro ──
✔ slides-intro-algods compiles
── 02_kodierung ──
✖ slides-encod-1-character-encoding exited with status 12
→ Checking log for common errors:
• 8: ! LaTeX Error: File `../../2021/style/preamble4tex.tex' not found. 8: Type X to quit or <RETURN> to proceed, 8: or enter new name. (Default extension: tex) and 8: ! LaTeXError: File `../../2021/style/preamble4tex.tex' not found. 8: Type X to quit or <RETURN> to proceed, 8: or enter new name. (Default extension: tex)[...]
At the very end, when all slides are finalized not just "they compile fine"-wise but also content-wise, we need to update the "all"-slide by first ensuring all chapter-order.tex files are up to date and then making sure the "all"-slide renders fine.
slides/all/slides-algods.tex
The text was updated successfully, but these errors were encountered:
The slides were outdated in a few ways, including both changes to our general setup as well as some outdate LaTeX syntax which needs to be either adapted or discarded.
The basic procedure should be roughly the same for each slide
.tex
file / chunk, based on my initial attempt with the first file here: 4d1fa17Refer to other lectures such as I2ML for more examples if needed.
If I remember correctly, Bernd prefers the
\titlemeta
command to not use the% comments
I inserted for documentation.Also part of the header is removing reference to
preamble4tex.tex
which doesn't exist anymore, with\input{../../style/preamble}
taking its place.Remove or adapt outdated LaTeX code. Examples include use of the
verbbox
environment or the\col
command among other things. I did not immediately recognize where they are from and ideally we only use the latex packages which are already included in thestyle/preamble.tex
and only if absolutely necessary use additional packages on a file-per-file basis to avoid additional complexity.Similarly,
latex-math
has changed a bit since the slides were originally written. Some commands where renamed liked\thetab
which is now\thetav
, and other commands were removed while new commands were introduced. This unfortunately will take some work to make best use of latex-math.Some common warnings can be safely ignored, such as
This is an artifact of the way slide numbers are kept track of and can be considered spurious (I think) as they vanish after
latexmk
did it's job properly.Rendering slides individually in the command line with
latexmk -pdf slide-file.tex
to see if any errors pop up and iterating until everything works would work, but the service repo is also an option, which would then include something likeTo-do list to ensure slides at leats compile
At the very end, when all slides are finalized not just "they compile fine"-wise but also content-wise, we need to update the "all"-slide by first ensuring all
chapter-order.tex
files are up to date and then making sure the "all"-slide renders fine.The text was updated successfully, but these errors were encountered: