Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update slides to work with new setup #1

Open
31 of 32 tasks
jemus42 opened this issue Nov 8, 2024 · 0 comments
Open
31 of 32 tasks

Update slides to work with new setup #1

jemus42 opened this issue Nov 8, 2024 · 0 comments

Comments

@jemus42
Copy link
Member

jemus42 commented Nov 8, 2024

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

  1. 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.

  1. 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.

  2. 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.

  3. 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 lecture
echo "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: ! 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)
[...]

To-do list to ensure slides at leats compile

  • slides/01_intro/slides-intro-algods.tex
  • slides/02_kodierung/slides-encod-1-character-encoding.tex
  • slides/02_kodierung/slides-encod-2-number-encoding.tex
  • slides/02_kodierung/slides-encod-3-machine-numbers-Z.tex
  • slides/02_kodierung/slides-encod-4-machine-numbers-R.tex
  • slides/02_kodierung/slides-encod-5-R-machine-arithmetic.tex
  • slides/03_numerik/slides-numeric-1-matrix-norm.tex
  • slides/03_numerik/slides-numeric-2-error-and-condition.tex
  • slides/03_numerik/slides-numeric-3-stability.tex
  • slides/03_numerik/slides-numeric-4-condition-in-les.tex
  • slides/04_bigo/slides-bigo-1-algorithms-turing.tex
  • slides/04_bigo/slides-bigo-2-introduction-bigo.tex
  • slides/04_bigo/slides-bigo-4-misconceptions-bigo-further-landau-symbols.tex
  • slides/05_quadratur/slides-quadrature-1-introduction.tex
  • slides/05_quadratur/slides-quadrature-2-newton-cotes.tex
  • slides/05_quadratur/slides-quadrature-3-laplace.tex
  • slides/05_quadratur/slides-quadrature-4-monte-carlo.tex
  • slides/06_zufallszahlen/slides-random-numbers-1-introduction.tex
  • slides/06_zufallszahlen/slides-random-numbers-2-congruential-generators.tex
  • slides/06_zufallszahlen/slides-random-numbers-3-mersenne-twister-and-r.tex
  • slides/06_zufallszahlen/slides-random-numbers-4-methods-other-distributions.tex
  • slides/06_zufallszahlen/slides-random-numbers-5-rejection-sampling-and-ars.tex
  • slides/07_matrixzerlegung/slides-matrix-decom-1-introduction-matrix-decomposition.tex
  • slides/07_matrixzerlegung/slides-matrix-decom-2-gaussian-elimination.tex
  • slides/07_matrixzerlegung/slides-matrix-decom-3-cholesky-decomposition.tex
  • slides/07_matrixzerlegung/slides-matrix-decom-5-overdetermined-systems-regression-example.tex
  • slides/08_matrixapproximierung/slides-matrix-approx-1-low-rank-approximation.tex
  • slides/08_matrixapproximierung/slides-matrix-approx-2-svd-pca.tex
  • slides/08_matrixapproximierung/slides-matrix-approx-3-recommender-systems-with-svd.tex
  • slides/08_matrixapproximierung/slides-matrix-approx-4-nmf-and-recommender-systems-with-nmf.tex
  • slides/08_matrixapproximierung/slides-matrix-approx-5-topic-extraction.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant