SPB Git

Repository Public MIT Research preview

atlas-theme.sty 5.8 KB 124 lines latex

1% atlas-theme.sty — ATLAS IA Beamer theme: typography, colours, frame chrome, components.2\NeedsTeXFormat{LaTeX2e}3\ProvidesPackage{atlas-theme}[2026/11/22 ATLAS IA Beamer theme]4\RequirePackage{etoolbox}5\RequirePackage{atlas-colors}6\input{typography.tex}7\usefonttheme{professionalfonts}8\RequirePackage{unicode-math}9\IfFontExistsTF{FiraMath-Regular.otf}{\setmathfont{FiraMath-Regular.otf}}{}10\RequirePackage[english, french]{babel}11\frenchsetup{AutoSpacePunctuation=true}12\RequirePackage{csquotes}13\RequirePackage{atlas-figures}14\RequirePackage{atlas-accessibility}15\RequirePackage[most]{tcolorbox}16\RequirePackage{booktabs}17\RequirePackage{array}18\RequirePackage{colortbl}19\RequirePackage[backend=biber, style=numeric, sorting=nyt, maxbibnames=4, url=true, doi=false,20  isbn=false, eprint=false]{biblatex}2122% ---- Course identity: generated from course.yaml by tools/sync_course.py -------------------23\input{atlas-course.tex}2425% ---- Session identity: set once in each main.tex ------------------------------------------26% \AtlasSessionSetup{<ID>}{<part number>}{<part title>}{<session title>}{<subtitle>}27\newcommand{\AtlasSessionId}{S00}28\newcommand{\AtlasPartNum}{}29\newcommand{\AtlasPartTitle}{}30\newcommand{\AtlasSessionTitle}{}31\newcommand{\AtlasSessionSubtitle}{}32\newcommand{\AtlasSessionSetup}[5]{%33  \renewcommand{\AtlasSessionId}{#1}\renewcommand{\AtlasPartNum}{#2}%34  \renewcommand{\AtlasPartTitle}{#3}\renewcommand{\AtlasSessionTitle}{#4}%35  \renewcommand{\AtlasSessionSubtitle}{#5}%36  \title{#4}\subtitle{#5}\author{\AtlasAuthorName}\institute{\AtlasAuthorInstitute}\date{}%37  \hypersetup{pdftitle={\AtlasCourseShort\ #1 — #4}, pdfauthor={\AtlasAuthorName},38    pdfsubject={\AtlasCourseTitle}, pdfkeywords={\AtlasCourseShort, #1, \AtlasAuthorInstitutionShort, MOOC}}%39}4041% ---- Geometry and base colours ----------------------------------------------------------------42\newlength{\AtlasMargin}\setlength{\AtlasMargin}{9mm}43\setbeamersize{text margin left=\AtlasMargin, text margin right=\AtlasMargin}44\setbeamercolor{normal text}{fg=atlasFg, bg=atlasBg}45\setbeamercolor{background canvas}{bg=atlasBg}46\setbeamercolor{structure}{fg=atlasFlow}47\setbeamercolor{alerted text}{fg=atlasUncertain}48\setbeamercolor{frametitle}{fg=atlasFg, bg=atlasBg}49\setbeamercolor{bibliography entry author}{fg=atlasFg}50\setbeamercolor{bibliography entry title}{fg=atlasFg}51\setbeamercolor{bibliography entry location}{fg=atlasMuted}52\setbeamercolor{bibliography entry note}{fg=atlasMuted}53\setbeamercolor{bibliography item}{fg=atlasFlow}54\setbeamercolor{note page}{fg=atlasFg, bg=atlasBg}55\setbeamercolor{note title}{fg=atlasFg, bg=atlasPanel}56\setbeamercolor{note date}{fg=atlasMuted}57\usebeamercolor[fg]{normal text}58\setbeamertemplate{navigation symbols}{}59\setbeamertemplate{bibliography item}{\insertbiblabel}60\setbeamerfont{normal text}{size=\AtlasSizeBody}61\AtBeginDocument{\AtlasSizeBody}62\setlength{\parskip}{0pt}6364% ---- Lists --------------------------------------------------------------------------------------65\setbeamertemplate{itemize item}{\raisebox{.32ex}{\color{atlasFlow}\rule{.72ex}{.72ex}}}66\setbeamertemplate{itemize subitem}{\raisebox{.38ex}{\color{atlasMuted}\rule{.9ex}{.22ex}}}67\setbeamertemplate{enumerate item}{{\color{atlasFlow}\bfseries\insertenumlabel.}}68\setlength{\leftmargini}{5.2mm}69\setlength{\leftmarginii}{5mm}70\AtBeginEnvironment{itemize}{\setlength{\itemsep}{1.4mm}}71\AtBeginEnvironment{enumerate}{\setlength{\itemsep}{1.4mm}}7273% ---- Frame title: kicker (module ID + section) and title ----------------------------------------74\newcommand{\atlas@kicker}{%75  \AtlasSessionId\enspace\textbullet\enspace76  \ifdefempty{\insertsectionhead}{Partie \AtlasPartNum\ : \AtlasPartTitle}{\insertsectionhead}}77\newcommand{\atlas@nohyph}{\hyphenpenalty=10000\exhyphenpenalty=10000\raggedright}78\setbeamertemplate{frametitle}{%79  \nointerlineskip\vskip 4.6mm80  {\AtlasSizeTiny\color{atlasMuted}\atlas@kicker\par}%81  \nointerlineskip\vskip 1.7mm82  {\AtlasSizeTitle\AtlasDisplayFont\color{atlasFg}\atlas@nohyph\insertframetitle\par}%83  \nointerlineskip\vskip 2.1mm84  \hbox{\color{atlasFlow}\vrule height .85mm width 11mm}%85  \nointerlineskip\vskip -1.2mm86}87% Ragged-right body text everywhere: justified text in narrow slide columns produces rivers.88\AtBeginEnvironment{frame}{\raggedright}89\AtBeginEnvironment{column}{\raggedright}9091% ---- Footline: discreet attribution, course, module ID, progress bar ----------------------------92\setbeamertemplate{footline}{%93  \hbox to\paperwidth{\hskip\AtlasMargin\AtlasSizeTiny\color{atlasMuted}%94    \AtlasFooterAttribution\hfill\AtlasCourseShort\hfill95    \AtlasSessionId\enspace\textbullet\enspace\insertframenumber\,/\,\inserttotalframenumber96    \hskip\AtlasMargin}%97  \vskip 1.7mm98  \dimen0=\paperwidth99  \ifnum\inserttotalframenumber>\insertframenumber\relax100    \dimen0=\dimexpr\paperwidth*\insertframenumber/\inserttotalframenumber\relax101  \fi102  \hbox to\paperwidth{%103    {\color{atlasFlow}\vrule height .75mm width \dimen0}%104    {\color{atlasRule}\leaders\hrule height .75mm\hfill}}%105}106107% ---- Notes --------------------------------------------------------------------------------------108\ifatlasnotes\setbeameroption{show notes}\fi109% Note pages are always light (white page, dark text): they are read on a second screen or on paper.110\setbeamertemplate{note page}{%111  \vskip 6mm112  \begin{minipage}{\textwidth}\raggedright113    {\AtlasSizeTiny\color{atlasGraphite}\AtlasSessionId\enspace\textbullet\enspace Notes de présentation —114      diapositive \insertframenumber\enspace\textbullet\enspace\AtlasFooterAttribution\par}\vskip 1.5mm115    {\AtlasSizeLead\AtlasDisplayFont\color{atlasNight}\insertframetitle\par}\vskip 3mm116    {\AtlasSizeBody\color{atlasNight}\insertnote\par}117  \end{minipage}}118119% ---- Components ---------------------------------------------------------------------------------120\input{atlas-boxes.tex}121\input{atlas-frames.tex}122\input{atlas-code.tex}123\endinput124
Files main
Menu

Theme