uni.sty 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. % author Matus Necas, October 2026
  2. % original work by Jan Sumsky <jan.sumsky@gmail.com>, August 2024
  3. %
  4. % Description: Main package coordinator for the custom UNIZA Beamer theme.
  5. % Loads required dependencies, sets global configurations,
  6. % initializes custom counters, and imports all modular style submodules.
  7. \NeedsTeXFormat{LaTeX2e}
  8. \ProvidesPackage{uni}[University Beamer Package]
  9. % ==============================================================================
  10. % 1. REQUIRED PACKAGES
  11. % ==============================================================================
  12. \RequirePackage{xparse} % Advanced argument parsing for robust custom commands
  13. \RequirePackage{graphicx} % Enhanced image inclusion and scaling support
  14. \RequirePackage{booktabs} % Professional-quality horizontal rules for tables
  15. \RequirePackage{amsmath} % Advanced mathematical typesetting environment
  16. \RequirePackage{minted} % Source code syntax highlighting via Pythongments
  17. \RequirePackage{verbatim} % Raw verbatim text block environments
  18. % ==============================================================================
  19. % 2. CONDITIONAL FLAGS & CUSTOM LENGTHS
  20. % ==============================================================================
  21. % Conditional flag for alternative title/cover page layouts
  22. \newif\ifbeamer@uni@cover
  23. \beamer@uni@coverfalse
  24. % Custom vertical/layout length for title adjustments
  25. \newlength{\titlelf}
  26. \setlength{\titlelf}{-9pt}
  27. % ==============================================================================
  28. % 3. BEAMER TEMPLATES & STRUCTURAL DEFAULTS
  29. % ==============================================================================
  30. \setbeamertemplate{caption}[numbered] % Automatically number figures and tables
  31. \setbeamertemplate{section in toc}[sections numbered] % Number sections in the table of contents
  32. % ==============================================================================
  33. % 4. CUSTOM COUNTERS FOR CODE SNIPPETS
  34. % ==============================================================================
  35. % Initialize a dedicated counter for equation-style code blocks and format it (e.g., L1, L2)
  36. \newcounter{codeeq}
  37. \renewcommand{\thecodeeq}{L\arabic{codeeq}}
  38. % ==============================================================================
  39. % 5. MODULAR SUBMODULE IMPORTS
  40. % ==============================================================================
  41. \input{styles/fonts.sty} % Global typography and font size configuration
  42. \input{styles/colors.sty} % Color palette and semantic theme color mapping
  43. \input{styles/footer.sty} % Presentation footer layout, navigation, and logos
  44. \input{styles/titles.sty} % Title slide and section header layouts
  45. \input{styles/contents.sty} % Table of contents slide macro definitions
  46. \input{styles/lists.sty} % Itemize, enumerate, and list spacing setups
  47. \input{styles/slides.sty} % High-level structural slide wrappers (\slideOneColumn, etc.)