From eefce2a8ddd55bf8889648a8a02ae597bae66e69 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Thu, 28 Sep 2023 10:35:56 +0200 Subject: [PATCH] Add setup file for beamer presentations Signed-off-by: Magic_RB --- emacs-lisp/setupfiles/beamer-metropolis.org | 20 ++++++++++++++++++++ emacs-lisp/setupfiles/latex-base.org | 8 +++++--- home-manager/modules/emacs/default.nix | 1 + 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 emacs-lisp/setupfiles/beamer-metropolis.org diff --git a/emacs-lisp/setupfiles/beamer-metropolis.org b/emacs-lisp/setupfiles/beamer-metropolis.org new file mode 100644 index 0000000..f116fec --- /dev/null +++ b/emacs-lisp/setupfiles/beamer-metropolis.org @@ -0,0 +1,20 @@ +#+OPTIONS: H:2 num:t toc:t \n:nil ::t |:t ^:t -:t f:t *:t tex:t d:(HIDE) tags:not-in-toc <:t +#+OPTIONS: d:nil todo:t pri:nil +#+property: header-args :eval yes +#+latex_compiler: xelatex +#+startup: beamer +#+latex_class: beamer +#+latex_class_options: [bigger, xcolor={svgnames,table}] +#+beamer_theme: metropolis [numbering=counter,progressbar=foot] +#+setupfile: ~/roam/emacs-lisp/setupfiles/latex-base.org +# #+options: ':nil *:t -:t ::t <:t H:2 \n:nil ^:t arch:headline author:t broken-links:nil c:nil creator:nil +# #+options: d:(not "LOGBOOK") date:t e:t email:nil f:t inline:t num:t p:nil pri:nil prop:nil stat:t tags:t tasks:t tex:t tags:not-in-toc +# #+options: timestamp:t title:t toc:t todo:t |:t +#+columns: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra) +#+language: en +#+select_tags: export +#+exclude_tags: noexport +#+cite_export: +#+latex_header: \usepackage{varwidth} +#+latex_header: \usepackage{tabularx, colortbl} +#+startup: nolatexpreview diff --git a/emacs-lisp/setupfiles/latex-base.org b/emacs-lisp/setupfiles/latex-base.org index 8f97abe..99a442b 100644 --- a/emacs-lisp/setupfiles/latex-base.org +++ b/emacs-lisp/setupfiles/latex-base.org @@ -1,12 +1,14 @@ +#+options: ^:{} #+latex_header: \usepackage{xcolor} #+latex_header: \usepackage{algorithm2e} #+latex_header: \SetKwProg{Fn}{Function}{:}{end} -#+latex_header: \usepackage{cmbright} +# #+latex_header: \usepackage{cmbright} #+latex_header: \usepackage{textcomp} #+latex_header: \usepackage{tikz} -#+latex_header: \usetikzlibrary{shapes.geometric} -#+latex_header: \usepackage{mathtools} #+latex_header: \usepackage{circuitikz} +#+latex_header: \usetikzlibrary{shapes.geometric, shapes.misc} +#+latex_header: \usetikzlibrary{fit, tikzmark, calc} +#+latex_header: \usepackage{mathtools} #+latex_header: \usepackage{fancyvrb} #+latex_header: \usepackage{blkarray} #+latex_header: \usepackage{ifthen} diff --git a/home-manager/modules/emacs/default.nix b/home-manager/modules/emacs/default.nix index eb0856f..20bc6df 100644 --- a/home-manager/modules/emacs/default.nix +++ b/home-manager/modules/emacs/default.nix @@ -70,6 +70,7 @@ fd isync imagemagick + texlive.combined.scheme-full ]; }; };