diff --git a/docs/docs.pdf b/docs/docs.pdf index 666e463..8f33462 100644 Binary files a/docs/docs.pdf and b/docs/docs.pdf differ diff --git a/docs/docs.tex b/docs/docs.tex index 9b41296..d6a7688 100644 --- a/docs/docs.tex +++ b/docs/docs.tex @@ -37,6 +37,7 @@ % └ ┘ \input{./parts/intro.tex} \input{./parts/usage.tex} +\input{./parts/beamer.tex} \input{./parts/migration.tex} diff --git a/docs/parts/beamer.tex b/docs/parts/beamer.tex new file mode 100644 index 0000000..3a9f934 --- /dev/null +++ b/docs/parts/beamer.tex @@ -0,0 +1,7 @@ +\section{Beamer} +\LaTeX Beamer can be used to create presentations. The official user guide can be found \hlhref{https://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}{here} +and a simple introduction by overleaf can be found \hlhref{https://www.overleaf.com/learn/latex/Beamer}{here}. + +These helpers should mostly work in conjunction with beamer, you should however \bi{absolutely not} use the setup commands, as they are specifically meant for the \textit{article} class. + +If you use the snippets, a basic setup for beamer is provided that also includes the helpers. diff --git a/docs/parts/intro.tex b/docs/parts/intro.tex index 5fe5074..fe8c4e4 100644 --- a/docs/parts/intro.tex +++ b/docs/parts/intro.tex @@ -20,4 +20,3 @@ The docs contain a section (section \ref{sec:migration}) on migrating from V1.X You can install these helper files by downloading this repo and storing it to any location on your PC, remembering where that location is. You may also install the VSCode snippets found in the vscode-snippets folder. These snippets provide autocompletion for many of the commands that this helper file provides. - diff --git a/vscode-snippets/tex.json b/vscode-snippets/tex.json index ceaff85..eb2cf4c 100755 --- a/vscode-snippets/tex.json +++ b/vscode-snippets/tex.json @@ -64,6 +64,37 @@ ], "description": "Prepares a full LaTeX Summary" }, + "LaTeX Beamer Setup": { + "prefix": "latex-beamer", + "body": [ + "\\documentclass{beamer}\n", + "\\input{~/projects/latex/janishutz-helpers.tex}\n", + "\\usepackage{lmodern}", + "\\setFontType{sans}\n", + "\\title{$1}", + "\\author{\\authorTitle}\n", + "\\usetheme{default}", + "\\usecolortheme{beaver}\n", + "\\AtBeginSection[]{", + "\t\\begin{frame}", + "\t\\frametitle{Table of Contents}", + "\t\\tableofcontents[currentsection]", + "\t\\end{frame}", + "}\n", + "\\begin{document}\n", + "\\frame{\\titlepage}\n\n", + "\\begin{frame}\n", + "\t\\frametitle{Table of Contents}", + "\t\\tableofcontents", + "\\end{frame}\n\n", + "\\begin{frame}\n", + "\t\\frametitle{$2}", + "\t$3", + "\\end{frame}\n\n", + "\\end{document}" + ], + "description": "Prepares to write a LaTeX CheatSheet" + }, "Fancy table": { "prefix": "table", "body": [