-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmaster-header.tex
More file actions
60 lines (49 loc) · 1.51 KB
/
master-header.tex
File metadata and controls
60 lines (49 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
\documentclass{beamer}
\usetheme{metropolis}
\usepackage{xparse}
\usepackage{xfrac}
\usepackage{xcolor}
\usepackage{cancel}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{spalign}
\usepackage{multirow}
\usetikzlibrary{automata, shapes, arrows, positioning}
\definecolor{links}{HTML}{2A1B81}
\hypersetup{colorlinks,linkcolor=,urlcolor=links}
% https://tex.stackexchange.com/questions/2233/whats-the-best-way-make-an-augmented-coefficient-matrix
\makeatletter
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
\hskip -\arraycolsep
\let\@ifnextchar\new@ifnextchar
\array{#1}}
\makeatother
% https://tex.stackexchange.com/questions/102069/make-a-heading-in-beamer
\newcommand\makeheader[1]{%
\par\bigskip
{\large\bfseries#1}\par\smallskip}
\ExplSyntaxOn
\NewDocumentCommand{\mat}{ O{b} m }
{
\strategy_matlabmatrix:nn { #1 } { #2 }
}
\seq_new:N \l_strategy_rows_seq
\seq_new:N \l_strategy_a_row_seq
\tl_new:N \l_strategy_matrix_tl
\cs_new_protected:Npn \strategy_matlabmatrix:nn #1 #2
{
\tl_clear:N \l_strategy_matrix_tl
\seq_set_split:Nnn \l_strategy_rows_seq { ; } { #2 }
\seq_map_inline:Nn \l_strategy_rows_seq
{
\seq_set_split:Nnn \l_strategy_a_row_seq { ~ } { ##1 }
\tl_put_right:Nx \l_strategy_matrix_tl { \seq_use:Nn \l_strategy_a_row_seq { & } }
\tl_put_right:Nn \l_strategy_matrix_tl { \\ }
}
\begin{#1matrix}
\tl_use:N \l_strategy_matrix_tl
\end{#1matrix}
}
\ExplSyntaxOff
\newenvironment{blueenv}{\only{\setbeamercolor{local structure}{fg=blue}}}{}