-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0013fe7
Showing
28 changed files
with
1,249 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VerbEnvir { codebox } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: texlive/texlive:latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Lint | ||
run: make lint | ||
|
||
- name: Build | ||
run: make | ||
|
||
- name: Archive | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: build/*.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
build | ||
_minted* | ||
*.log | ||
*.bak* |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Slides Makefile | ||
# | ||
# Gerard Marull-Paretas <[email protected]> | ||
# Copyright (c) 2021 Teslabs Engineering S.L. | ||
|
||
# programs | ||
MKDIR := mkdir | ||
LATEXMK := latexmk | ||
PDFLATEX := pdflatex | ||
CHKTEX := chktex | ||
LATEXINDENT := latexindent | ||
|
||
# options | ||
BUILD_DIR := build | ||
PDF_OPTS := -shell-escape -interaction=nonstopmode | ||
|
||
# sources | ||
SOURCES := slides.tex | ||
SOURCES_PDF := $(patsubst %.tex,$(BUILD_DIR)/%.pdf,$(SOURCES)) | ||
SOURCES_LINT := $(patsubst %.tex,lint-%,$(SOURCES)) | ||
SOURCES_FMT := $(patsubst %.tex,fmt-%,$(SOURCES)) | ||
|
||
.PHONY: all lint fmt clean | ||
|
||
all: $(SOURCES_PDF) | ||
|
||
$(BUILD_DIR)/%.pdf: %.tex | $(BUILD_DIR) | ||
$(LATEXMK) \ | ||
-pdf \ | ||
-pdflatex="$(PDFLATEX) $(PDF_OPTS)" \ | ||
-jobname=$(patsubst %.pdf,%,$@) \ | ||
$< | ||
|
||
$(BUILD_DIR): | ||
$(MKDIR) -p $(BUILD_DIR) | ||
|
||
lint: $(SOURCES_LINT) | ||
lint-%: %.tex | ||
$(CHKTEX) $< | ||
|
||
fmt: $(SOURCES_FMT) | ||
fmt-%: %.tex | ||
$(LATEXINDENT) -s -l -w $< | ||
|
||
clean: | ||
rm -rf $(BUILD_DIR) _minted-* *.log *.bak* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Using Zephyr for hard real-time applications: motor control | ||
|
||
This repository contains the sources for the talk "Using Zephyr for hard | ||
real-time applications: motor control" presented at the 2021 Zephyr Developer | ||
Summit. | ||
|
||
## Build | ||
|
||
The slides are written using the `beamer` LaTeX class. They can be built | ||
by running: | ||
|
||
```shell | ||
make | ||
``` | ||
|
||
Build files can be cleaned by running: | ||
|
||
```shell | ||
make clean | ||
``` | ||
|
||
## Lint and format | ||
|
||
Slides can be linted for errors by running: | ||
|
||
```shell | ||
make lint | ||
``` | ||
|
||
Additionally, slides can be automatically formatted using: | ||
|
||
```shell | ||
make fmt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
% colors | ||
\definecolor{base-color}{RGB}{87, 173, 104} | ||
|
||
% serif font for mathematical formulas | ||
\usefonttheme[onlymath]{serif} | ||
|
||
% structure color is base-color | ||
\setbeamercolor{structure}{fg=base-color} | ||
|
||
% no navigation bar | ||
\setbeamertemplate{navigation symbols}{} | ||
|
||
% no icons on bibliography | ||
\setbeamertemplate{bibliography item}{} | ||
|
||
% bibliography colors | ||
\setbeamercolor{bibliography entry author}{fg=black} | ||
\setbeamercolor{bibliography entry title}{fg=black} | ||
\setbeamercolor{bibliography entry location}{fg=black} | ||
\setbeamercolor{bibliography entry note}{fg=black} | ||
|
||
% custom title page | ||
\makeatletter | ||
\setbeamertemplate{title page} | ||
{ | ||
\vbox{} | ||
\vfill | ||
\begin{centering} | ||
\includegraphics[scale=0.4]{theme/logo.png}\par | ||
\vskip3em\par | ||
\setbeamerfont{title}{series=\bfseries,size=\huge} | ||
\setbeamercolor{title}{bg=white,fg=structure} | ||
\begin{beamercolorbox}[center]{title} | ||
\usebeamerfont{title}\inserttitle | ||
\end{beamercolorbox} | ||
\begin{beamercolorbox}[center]{subtitle} | ||
\ifx\insertsubtitle\@empty% | ||
\else% | ||
\vskip0.25em% | ||
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}% | ||
\insertsubtitle\par}% | ||
\fi% | ||
\end{beamercolorbox}% | ||
\vskip2em\par | ||
\begin{beamercolorbox}[center]{author} | ||
\usebeamerfont{author}\insertauthor | ||
\end{beamercolorbox} | ||
\begin{beamercolorbox}[center]{date} | ||
\usebeamerfont{date}\insertdate | ||
\end{beamercolorbox}% | ||
\vskip0.5em | ||
\end{centering} | ||
\vfill | ||
} | ||
\makeatother | ||
|
||
% custom frame title | ||
\setbeamerfont{frametitle}{series=\bfseries} | ||
\setbeamertemplate{frametitle} | ||
{% | ||
\begin{centering} | ||
\insertframetitle\par | ||
\end{centering} | ||
} | ||
|
||
% custom frame footer | ||
\setbeamerfont{footline}{size=\fontsize{9}{12}} | ||
\setbeamertemplate{footline} | ||
{% | ||
\hbox{% | ||
\begin{beamercolorbox}[wd=.333333\paperwidth, | ||
ht=4.25ex, | ||
dp=1ex, | ||
left]{structure} | ||
\raisebox{.5\baselineskip}{% | ||
\parbox[t][4ex][t]{.333333\paperwidth}{% | ||
\raisebox{-.3\height}{% | ||
\hskip2ex\includegraphics[height=3ex]{theme/logo.png}% | ||
}% | ||
}% | ||
} | ||
\end{beamercolorbox}% | ||
\begin{beamercolorbox}[wd=.333333\paperwidth, | ||
ht=4.25ex, | ||
dp=1ex, | ||
center]{structure}% | ||
\raisebox{.5\baselineskip}{% | ||
\parbox[t][4ex][t]{.333333\paperwidth}{% | ||
\centering\insertsection% | ||
}% | ||
} | ||
\end{beamercolorbox}% | ||
\begin{beamercolorbox}[wd=.333333\paperwidth, | ||
ht=4.25ex, | ||
dp=1ex, | ||
right]{structure}% | ||
\raisebox{.5\baselineskip}{% | ||
\parbox[t][4ex][t]{.333333\paperwidth}{% | ||
\raggedleft\insertframenumber\hspace*{2ex}% | ||
}% | ||
} | ||
\end{beamercolorbox}}% | ||
}% | ||
|
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
defaultIndent: ' ' | ||
verbatimEnvironments: | ||
codebox: 1 |
Oops, something went wrong.