diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..5e479ec --- /dev/null +++ b/README.rst @@ -0,0 +1,30 @@ +cookiecutter-beamer +=================== + +Cookiecutter template for a LaTeX Beamer presentation. + +.. image:: https://raw.github.com/audreyr/cookiecutter/aa309b73bdc974788ba265d843a65bb94c2e608e/cookiecutter_medium.png + + +Installation +------------ + +- Debian: + + # Installing some dependencies + sudo apt-get install texlive-base texlive-fonts-recommended texlive-latex-base texlive-latex-recommended texify multex-bin tetex-frogg tex-gyre texlive-xetex texlive-pictures texlive-luatex texlive-bibtex-extra texlive-extra-utils texlive-font-utils texlive-fonts-extra texlive-formats-extra texlive-generic-extra texlive-games texlive-plain-extra texlive-latex-extra texlive-science texlive-base texlive-fonts-recommended texlive-latex-base ttf-dejavu-core ttf-gfs-* ttf-dejavu ttf-liberation ttf-bitstream-vera + + sudo cp *.sty /usr/share/texmf-texlive/tex/latex/ + + sudo texhash + + # Install python Pygments + sudo pip install Pygments + + # Run the pdflatex command + make + +Author +------ + + - Luis Martin Gil - www.luismartingil.com \ No newline at end of file diff --git a/bin/main.pdf b/bin/main.pdf new file mode 100644 index 0000000..8b612d7 Binary files /dev/null and b/bin/main.pdf differ diff --git a/bin/main000.png b/bin/main000.png new file mode 100644 index 0000000..14bff4c Binary files /dev/null and b/bin/main000.png differ diff --git a/bin/main001.png b/bin/main001.png new file mode 100644 index 0000000..48ccdbf Binary files /dev/null and b/bin/main001.png differ diff --git a/bin/main002.png b/bin/main002.png new file mode 100644 index 0000000..5758446 Binary files /dev/null and b/bin/main002.png differ diff --git a/bin/main003.png b/bin/main003.png new file mode 100644 index 0000000..54ce8d1 Binary files /dev/null and b/bin/main003.png differ diff --git a/bin/main004.png b/bin/main004.png new file mode 100644 index 0000000..55f473a Binary files /dev/null and b/bin/main004.png differ diff --git a/bin/main005.png b/bin/main005.png new file mode 100644 index 0000000..25ae4c3 Binary files /dev/null and b/bin/main005.png differ diff --git a/bin/main006.png b/bin/main006.png new file mode 100644 index 0000000..625292d Binary files /dev/null and b/bin/main006.png differ diff --git a/bin/main007.png b/bin/main007.png new file mode 100644 index 0000000..19a129c Binary files /dev/null and b/bin/main007.png differ diff --git a/bin/main008.png b/bin/main008.png new file mode 100644 index 0000000..1789271 Binary files /dev/null and b/bin/main008.png differ diff --git a/cookiecutter.json b/cookiecutter.json new file mode 100644 index 0000000..85ec4a4 --- /dev/null +++ b/cookiecutter.json @@ -0,0 +1,7 @@ +{ + "email": "myname@myserver.com", + "company": "My Company", + "repo_name": "testproject", + "project_name": "Test project", + "project_short_description": "This is a test project for Beamer and cookiecutter." +} diff --git a/{{cookiecutter.repo_name}}/.gitignore b/{{cookiecutter.repo_name}}/.gitignore new file mode 100644 index 0000000..2d60618 --- /dev/null +++ b/{{cookiecutter.repo_name}}/.gitignore @@ -0,0 +1,8 @@ +*~ +*.toc +*.snm +*.out +*.log +*.aux +*.pyg +*.nav diff --git a/{{cookiecutter.repo_name}}/Makefile b/{{cookiecutter.repo_name}}/Makefile new file mode 100644 index 0000000..c93e895 --- /dev/null +++ b/{{cookiecutter.repo_name}}/Makefile @@ -0,0 +1,15 @@ +all: + pdflatex -shell-escape main.tex + pdflatex -shell-escape main.tex # doing twice for the toc file... +clean: + find . -type f -name "*.vrb" -exec rm -f '{}' \; + find . -type f -name "*.out" -exec rm -f '{}' \; + find . -type f -name "*.snm" -exec rm -f '{}' \; + find . -type f -name "*.mtc*" -exec rm -f '{}' \; + find . -type f -name "*.toc" -exec rm -f '{}' \; + find . -type f -name "*.aux" -exec rm -f '{}' \; + find . -type f -name "*.log" -exec rm -f '{}' \; + find . -type f -name "*.maf" -exec rm -f '{}' \; + find . -type f -name "*.nav" -exec rm -f '{}' \; + find . -type f -name "*.pyg" -exec rm -f '{}' \; + find . -type f -name "*~" -exec rm -f '{}' \; \ No newline at end of file diff --git a/{{cookiecutter.repo_name}}/logos/mycompany-logo-watermark.png b/{{cookiecutter.repo_name}}/logos/mycompany-logo-watermark.png new file mode 100644 index 0000000..48bcb53 Binary files /dev/null and b/{{cookiecutter.repo_name}}/logos/mycompany-logo-watermark.png differ diff --git a/{{cookiecutter.repo_name}}/logos/mycompany-logo.png b/{{cookiecutter.repo_name}}/logos/mycompany-logo.png new file mode 100644 index 0000000..28fcb29 Binary files /dev/null and b/{{cookiecutter.repo_name}}/logos/mycompany-logo.png differ diff --git a/{{cookiecutter.repo_name}}/lstcustom.sty b/{{cookiecutter.repo_name}}/lstcustom.sty new file mode 100755 index 0000000..74b08b9 --- /dev/null +++ b/{{cookiecutter.repo_name}}/lstcustom.sty @@ -0,0 +1,252 @@ +{% raw %} + +\usepackage{color} + +\lstdefinelanguage{pseudo}{ + keywords={procedure,end,return,integer,real,foreach,for,each, + do,if,then,else,while,until,true,false,algorithm}, + comment=[l]{//} +} + +\lstdefinelanguage{oaw}{ + morekeywords={import, this, create, let, then, Void, extension, JAVA, + IMPORT, DEFINE, ENDDEFINE, LET, ENDLET, FOR, FILE, ENDFILE, ITERATOR, FOREACH, + AS, IF, ENDFOREACH, ENDIF, EXPAND, INSTANCEOF, USING, SEPARATOR, CSTART, CEND, + PROTECT, ENDPROTECT, ID, EXTENSION, + context, ERROR, WARNING, INFO, enum}, + morecomment=[l]{//}, + morecomment=[s]{/*}{*/}, + % FIXME: listings does not see guillemots, so any regions with them wont work + morecomment=[s]{«REM»}{«ENDREM»}, + morecomment=[s]{«REM}{»}, + morestring=[s]{'}{'}, + morestring=[s]{"}{"}, + escapechar={@}, + % required for use with UTF-8 + literate={«}{\guillemotleft}{1} + {»}{\guillemotright}{1} +} + +% extension, if, then, else, switch, Void, Boolean, Integer, Real, String, let + +\lstdefinelanguage{shell} +{alsodigit={>}, + morekeywords={linux>}, + backgroundcolor=\color{lstbackgroundshellcolor} +} + +\lstdefinelanguage{csimul} +{alsodigit={>}, + alsodigit={\%}, + morekeywords={CONDITIONER>, COUNTER>, \%}, + backgroundcolor=\color{lstbackgroundshellcolor}, + morecomment=[l]{\#} +} + +\lstdefinelanguage{Esterel} +{morekeywords={ + abort, and, assert, await, + bool, + call, case, clock, combine, constant, + data, do, doup, dodown, dopar, + each, emit, else, elseif, end, every, exec, exit, extends, + for, function, + generic, + goto, + halt, handle, + if, immediate, in, input, inputoutput, integer, interface, + loop, + map, module, multiclock, mux, + not, nothing, + or, output, + pause, positive, pre, present, procedure, + relation, repeat, return, run, + sensor, seq, signal, signed, suspend, sustain, + task, then, times, trap, type, + unsigned, + var, + weak, when, with}, + morecomment=[l]{\%} +} + +\lstdefinelanguage{Lustre} +{keywords={ + and, assert, + bool, + current, + else, + float, + if, int, + let, + node, not, + or, + pre, + returns, + tel, then, + var, + when + }, + literate={-}{{--}}2 {->}{{$\to$~}}2 , + morecomment=[l]{--}, +} + +\lstdefinelanguage{KEP} +{morekeywords={ + ABORT, ABORTI, ADD, ADDC, AWAIT, AWAITI, AWAITN, + CALL, CAWAIT, CAWAITE, CMP, CMPS, + EMIT, EMITV, EMITD, EMITR, EXIT, GOTO, HALT, INPUT, JOIN, JW, LABORT, LABORTI, + LWABORT, LWABORTI, LOAD, MUL, NOTHING, OUTPUT, PAUSE, PAR, PARE, + PRE, PRIO, PRESENT, + SETV, + SIGNAL, SIGNALV, SUSPEND, SUSPENDI, SUSTAIN, SUSTAINV, SUSTAIND, + SUSTAINR, TABORT, TABORTI, TWABORT, TWABORTI, WABORT, WABORTI, + %chkabort, jmp, ldaaddr + }, + morecomment=[l]{//}, + morecomment=[s]{/*}{*/}, + morecomment=[l]{\%}, + morestring=[b]" +} + +\lstdefinelanguage{KLP} +{morekeywords={ + ADD, ADDI, AND, + DIV, DIVI, DONE, + EQ, + GOTO, + IADD, IAND, IDIV, IEQ, IGE, IGT, ILE, ILT, INITC, INITV, INPUT, + ICMOV, IRMOV, ISUB, IVMOV, IOR, IXOR, + IMUL, + JF, JMP, JNZ, JT, JZ, + LOCAL, + MUL, MULI, + NEQ, + OUTPUT, + PRIO, + RRMOV, + SETCLK, SETPC, + SUB, SUBI, + VVMOV, + XOR + }, + morecomment=[l]{//}, + morecomment=[l]{\#}, + morecomment=[s]{/*}{*/}, + morecomment=[l]{\%}, + morestring=[b]", +} + +\lstdefinelanguage{Kit} +{morekeywords={% +statechart, model, version, input, output, var, label, type, history, hi, +deephistory, dh, initial, in, fork, fk, join, jn, junction, jc, sync, sy, +choice, ch, dynamicchoice, dc, suspend, sd, final, doActivity, do, +entryActivity, entry, exitActivity, exit, bindActivity, bind, localEvent, +localVariable, priority, weakAbortion, wa, strongAbortion, sa, +normalTermination, nt, suspension, sp, conditional, co, internalTransition, +it, integer, float, double, boolean, combine, with, pos, pp, lp, width, +height, collapsed, true, false% +}, + morecomment=[l]{\#}, +} + +\lstdefinelanguage{Repic}{ + morekeywords={ + abort, await, chkabort, emit, fork, goto, jmp, join, + ldaaddr, present, sync}, + morecomment=[l]{\%} +} + + +\newcommand{\lstfontfamily}{\ttfamily} +%\newcommand{\lstfontfamily}{\sffamily} % Adapt to schneider +\newcommand{\textlst}[1]{\texttt{#1}} +\newcommand{\mathlst}[1]{\mathtt{#1}} +\lstdefinestyle{tiny}{basicstyle=\tiny\lstfontfamily} +\lstdefinestyle{scriptsize}{basicstyle=\scriptsize\lstfontfamily} +\lstdefinestyle{footnotesize}{basicstyle=\footnotesize\lstfontfamily} +\lstdefinestyle{small}{basicstyle=\small\lstfontfamily} +\lstdefinestyle{normalsize}{basicstyle=\normalsize\lstfontfamily} +\lstdefinestyle{large}{basicstyle=\lstfontfamily} + +\lstdefinestyle{monitor}{morekeywords={monitor, export}} +\lstdefinestyle{ConcPascal}{language=Pascal,style=monitor} + +% To make this accessible to Emacs/AUCTeX (C-c C-f C-o), +% add something like this to TeX-mode-hook: +% (setq LaTeX-font-list +% (append '((?{\^O} "\\codefont{" "}")) +% LaTeX-font-list)) +%\newcommand{\codefont}[1]{{\renewcommand{\textnormal}[1]{\textlst{#1}}\lstfontfamily #1}} +\newcommand{\mathcodefont}[1]{\mathtt{#1}} +\newcommand{\codefont}[1]{{\lstfontfamily #1}} +\newlength{\lstframexleftmargin} +\setlength{\lstframexleftmargin}{1mm} + +% rulesepcolor and backgroundcolor are set in beamercustom{presentation|handout}.sty +\lstdefinestyle{mydefault}{ + style=scriptsize, + emphstyle=\color{red}, + framexleftmargin=\lstframexleftmargin, + frame=shadowbox, + keywordstyle=\structure, + commentstyle=\itshape, + columns=flexible, % Columns not rigid - gives nicer spacing + gobble=4, % Gobble first 4 characters of each line + escapeinside=`', + escapechar=@, + lineskip=+0.2ex, + rulesepcolor=\color{lstrulesepcolor}, + % WARNING: For some reason, the settin of backgroundcolor must take + % place at the very end!!! + backgroundcolor=\color{lstbackgroundprogcolor} +} + +\definecolor{darkviolet}{rgb}{0.5,0,0.4} +\definecolor{darkgreen}{rgb}{0,0.4,0.2} +\definecolor{darkblue}{rgb}{0.1,0.1,0.9} +\definecolor{darkgrey}{rgb}{0.5,0.5,0.5} +\definecolor{lightblue}{rgb}{0.4,0.4,1} + +\lstdefinestyle{eclipse}{ + basicstyle=\small\lstfontfamily, + emphstyle=\color{red}\bfseries, + keywordstyle=\color{darkviolet}\bfseries, + commentstyle=\color{darkgreen}, + stringstyle=\color{darkblue}, + numberstyle=\color{darkgrey}\lstfontfamily, + emphstyle=\color{red}, + % get also javadoc style comments + morecomment=[s][\color{lightblue}]{/**}{*/}, + %columns=fullflexible, %spaceflexible, %flexible, fullflexible +% escapeinside=`', +% escapechar=@, + showstringspaces=false, + numbers=left +} + +\lstdefinestyle{black}{ + basicstyle=\small\lstfontfamily, + numbers=left, + columns=fullflexible, + breaklines=true, + mathescape=true, + escapechar=\#, + tabsize=4, + frame=lines, + showstringspaces=false +} + +% use proper tt font that supports bold printing, e.g. by +% \usepackage{courier} +\lstdefinestyle{seminar}{ + basicstyle=\small\ttfamily, + numbers=left, + breaklines=true, + mathescape=true, + escapechar=\#, + tabsize=4, + showstringspaces=false +} + +{% endraw %} diff --git a/{{cookiecutter.repo_name}}/main.tex b/{{cookiecutter.repo_name}}/main.tex new file mode 100644 index 0000000..ad5704f --- /dev/null +++ b/{{cookiecutter.repo_name}}/main.tex @@ -0,0 +1,163 @@ +{% raw %} + +\documentclass[compress]{beamer} + +\setbeamersize{text margin left = 2.5em} + +\usepackage{tipa} +\usepackage{tikz} +\usepackage{lmodern} +\usepackage{amsmath,amssymb} +\usepackage{colortbl} +\usepackage{epstopdf} +\usepackage{parcolumns} +\usepackage{listings} +\usepackage{color} +\usepackage{url} +\usepackage{caption} +\usepackage[abs]{overpic} +\usepackage{multicol} +\usepackage{xcolor} +\usepackage{minted} + +\definecolor{dkgreen}{rgb}{0,0.6,0} +\definecolor{gray}{rgb}{0.5,0.5,0.5} +\definecolor{mauve}{rgb}{0.58,0,0.82} +\definecolor{gray}{rgb}{0.4,0.4,0.4} +\definecolor{darkblue}{rgb}{0.0,0.0,0.6} +\definecolor{cyan}{rgb}{0.0,0.6,0.6} +\definecolor{my_color}{RGB}{114, 129, 210} +\definecolor{mycompany_red}{RGB}{217,31,20} +\definecolor{mycompany_blue}{RGB}{4,118,176} + +\newenvironment{changemargin}[2]{% + \begin{list}{}{% + \setlength{\topsep}{0pt}% + \setlength{\leftmargin}{#1}% + \setlength{\rightmargin}{#2}% + \setlength{\listparindent}{\parindent}% + \setlength{\itemindent}{\parindent}% + \setlength{\parsep}{\parskip}% + }% + \item[]} +{\end{list}} + +\lstset{ % + basicstyle=\tiny, + framexleftmargin=3mm, + xleftmargin=3mm, + numbers=left, + numberstyle=\tiny\color{gray}, + stepnumber=1, + numbersep=2pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + frame=single, + rulecolor=\color{gray}, + tabsize=1, + breaklines=true, + breakatwhitespace=true, + escapeinside={\%*}{*)}, + morekeywords={*,...} +} + +\lstdefinelanguage{XML} +{ +basicstyle=\ttfamily\color{darkblue}\bfseries, +morestring=[b]'', +morestring=[s]{>}{<}, +morecomment=[s]{}, +stringstyle=\color{black}, +identifierstyle=\color{darkblue}, +keywordstyle=\color{cyan}, +morekeywords={xmlns,version,type} +} + + +\usetikzlibrary{positioning} +\usetikzlibrary{arrows} +\usetikzlibrary{arrows,decorations.pathmorphing,through,backgrounds,positioning,fit,petri} +\usetikzlibrary{shapes,shadows} +\usetikzlibrary{shapes.multipart} +\usetikzlibrary{calc} +\usetikzlibrary{decorations.pathreplacing} +\usepackage{animate} + +\setbeamertemplate{navigation symbols}{} +\pgfdeclareimage[height=0.45cm]{logos/mycompany-logo.png}{logos/mycompany-logo.png} +\logo{\pgfuseimage{logos/mycompany-logo.png}} +\setbeamertemplate{items}[ball] +\setbeamertemplate{blocks}[rounded][shadow=true] +\usetheme{Warsaw} + +\setbeamercolor{title}{fg=white} +\setbeamercolor{frametitle}{fg=white} +\setbeamercolor{structure}{fg=my_color} +\setbeamercolor*{palette quaternary}{fg=white,bg=UniBlue!30!black} + +%\useoutertheme{infolines} +%\useoutertheme[subsection=true]{tree} +%\useoutertheme[subsection=true]{smoothtree} +%\useoutertheme[subsection=true]{tree} +\useoutertheme{miniframes} +\useinnertheme{rectangles} + +% fix clipped headline (bug with Warsaw/infolines) +%\addtobeamertemplate{headline}{}{\vskip2pt} + +\beamersetuncovermixins{\opaqueness<1>{25}}{\opaqueness<2->{15}} + +\begin{document} + +{% endraw %} + +\title{ {{cookiecutter.project_name}} } +\author{ {{cookiecutter.email}} } +\institute{ {{cookiecutter.company}} \textsuperscript{\textregistered}} +{% raw %} +\date{\today} +\defbeamertemplate*{footline}{shadow theme} +{% + \leavevmode% + \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fil,rightskip=.3cm]{author in head/foot}% + \usebeamerfont{author in head/foot}\insertframenumber\,/\,\inserttotalframenumber\hfill\insertshortauthor + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% + \usebeamerfont{title in head/foot}\insertshorttitle% + \end{beamercolorbox}}% + \vskip0pt% +} + +\usebackgroundtemplate{\centering\includegraphics[width=\paperwidth]{logos/mycompany-logo-watermark.png}} + +\begin{frame} + \titlepage +\end{frame} + +\begin{frame}{\contentsname} +\begin{multicols}{2} +\scriptsize\tableofcontents +\end{multicols} +\end{frame} + +\begin{frame} +\frametitle{Table of contents} +\scriptsize\tableofcontents +\end{frame} + +\AtBeginSection[] +{ + \begin{frame} + \frametitle{Contents} + \scriptsize\tableofcontents[currentsection,hideothersubsection] + \end{frame} +} + +% sections +\input{section1.tex} +\input{section2.tex} + +\end{document} + +{% endraw %} diff --git a/{{cookiecutter.repo_name}}/minted.sty b/{{cookiecutter.repo_name}}/minted.sty new file mode 100755 index 0000000..3adcd4c --- /dev/null +++ b/{{cookiecutter.repo_name}}/minted.sty @@ -0,0 +1,243 @@ +{% raw %} + +%% +%% This is file `minted.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% minted.dtx (with options: `package') +%% Copyright 2010--2011 Konrad Rudolph +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% Additionally, the project may be distributed under the terms of the new BSD +%% license. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Konrad Rudolph. +%% +%% This work consists of the files minted.dtx and minted.ins +%% and the derived file minted.sty. +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{minted}[2011/09/17 v1.7 Yet another Pygments shim for LaTeX] +\RequirePackage{keyval} +\RequirePackage{fancyvrb} +\RequirePackage{xcolor} +\RequirePackage{float} +\RequirePackage{ifthen} +\RequirePackage{calc} +\RequirePackage{ifplatform} +\DeclareOption{chapter}{\def\minted@float@within{chapter}} +\DeclareOption{section}{\def\minted@float@within{section}} +\ProcessOptions\relax +\ifwindows + \providecommand\DeleteFile[1]{\immediate\write18{del #1}} +\else + \providecommand\DeleteFile[1]{\immediate\write18{rm #1}} +\fi +\newboolean{AppExists} +\newcommand\TestAppExists[1]{ + \ifwindows + \DeleteFile{\jobname.aex} + \immediate\write18{for \string^\@percentchar i in (#1.exe #1.bat #1.cmd) + do set >\jobname.aex >\jobname.aex} %$ + \newread\@appexistsfile + \immediate\openin\@appexistsfile\jobname.aex + \expandafter\def\expandafter\@tmp@cr\expandafter{\the\endlinechar} + \endlinechar=-1\relax + \readline\@appexistsfile to \@apppathifexists + \endlinechar=\@tmp@cr + \ifthenelse{\equal{\@apppathifexists}{}} + {\AppExistsfalse} + {\AppExiststrue} + \immediate\closein\@appexistsfile + \DeleteFile{\jobname.aex} +\immediate\typeout{file deleted} + \else + \immediate\write18{which #1 && touch \jobname.aex} + \IfFileExists{\jobname.aex} + {\AppExiststrue + \DeleteFile{\jobname.aex}} + {\AppExistsfalse} + \fi} +\newcommand\minted@resetoptions{} +\newcommand\minted@defopt[1]{ + \expandafter\def\expandafter\minted@resetoptions\expandafter{% + \minted@resetoptions + \@namedef{minted@opt@#1}{}}} +\newcommand\minted@opt[1]{ + \expandafter\detokenize% + \expandafter\expandafter\expandafter{\csname minted@opt@#1\endcsname}} +\newcommand\minted@define@opt[3][]{ + \minted@defopt{#2} + \ifthenelse{\equal{#1}{}}{ + \define@key{minted@opt}{#2}{\@namedef{minted@opt@#2}{#3}}} + {\define@key{minted@opt}{#2}[#1]{\@namedef{minted@opt@#2}{#3}}}} +\newcommand\minted@define@switch[3][]{ + \minted@defopt{#2} + \define@booleankey{minted@opt}{#2} + {\@namedef{minted@opt@#2}{#3}} + {\@namedef{minted@opt@#2}{#1}}} +\minted@defopt{extra} +\newcommand\minted@define@extra[1]{ + \define@key{minted@opt}{#1}{ + \expandafter\def\expandafter\minted@opt@extra\expandafter{% + \minted@opt@extra,#1=##1}}} +\newcommand\minted@define@extra@switch[1]{ + \define@booleankey{minted@opt}{#1} + {\expandafter\def\expandafter\minted@opt@extra\expandafter{% + \minted@opt@extra,#1}} + {\expandafter\def\expandafter\minted@opt@extra\expandafter{% + \minted@opt@extra,#1=false}}} +\minted@define@switch{texcl}{-P texcomments} +\minted@define@switch{mathescape}{-P mathescape} +\minted@define@switch{linenos}{-P linenos} +\minted@define@switch{startinline}{-P startinline} +\minted@define@switch[-P funcnamehighlighting=False]% + {funcnamehighlighting}{-P funcnamehighlighting} +\minted@define@opt{gobble}{-F gobble:n=#1} +\minted@define@opt{bgcolor}{#1} +\minted@define@extra{frame} +\minted@define@extra{framesep} +\minted@define@extra{framerule} +\minted@define@extra{rulecolor} +\minted@define@extra{numbersep} +\minted@define@extra{firstnumber} +\minted@define@extra{stepnumber} +\minted@define@extra{firstline} +\minted@define@extra{lastline} +\minted@define@extra{baselinestretch} +\minted@define@extra{xleftmargin} +\minted@define@extra{xrightmargin} +\minted@define@extra{fillcolor} +\minted@define@extra{tabsize} +\minted@define@extra{fontfamily} +\minted@define@extra{fontsize} +\minted@define@extra{fontshape} +\minted@define@extra{fontseries} +\minted@define@extra{formatcom} +\minted@define@extra{label} +\minted@define@extra@switch{numberblanklines} +\minted@define@extra@switch{showspaces} +\minted@define@extra@switch{resetmargins} +\minted@define@extra@switch{samepage} +\minted@define@extra@switch{showtabs} +\minted@define@extra@switch{obeytabs} +\newsavebox{\minted@bgbox} +\newenvironment{minted@colorbg}[1]{ + \def\minted@bgcol{#1} + \noindent + \begin{lrbox}{\minted@bgbox} + \begin{minipage}{\linewidth-2\fboxsep}} + {\end{minipage} + \end{lrbox}% + \colorbox{\minted@bgcol}{\usebox{\minted@bgbox}}} +\newwrite\minted@code +\newcommand\minted@savecode[1]{ + \immediate\openout\minted@code\jobname.pyg + \immediate\write\minted@code{#1} + \immediate\closeout\minted@code} +\newcommand\minted@pygmentize[2][\jobname.pyg]{ + \def\minted@cmd{pygmentize -l #2 -f latex -F tokenmerge + \minted@opt{gobble} \minted@opt{texcl} \minted@opt{mathescape} + \minted@opt{startinline} \minted@opt{funcnamehighlighting} + \minted@opt{linenos} -P "verboptions=\minted@opt{extra}" + -o \jobname.out.pyg #1} + \immediate\write18{\minted@cmd} + % For debugging, uncomment: + %\immediate\typeout{\minted@cmd} + \ifthenelse{\equal{\minted@opt@bgcolor}{}} + {} + {\begin{minted@colorbg}{\minted@opt@bgcolor}} + \input{\jobname.out.pyg} + \ifthenelse{\equal{\minted@opt@bgcolor}{}} + {} + {\end{minted@colorbg}} + \DeleteFile{\jobname.out.pyg}} +\newcommand\minted@usedefaultstyle{\usemintedstyle{default}} +\newcommand\usemintedstyle[1]{ + \renewcommand\minted@usedefaultstyle{} + \immediate\write18{pygmentize -S #1 -f latex > \jobname.pyg} + \input{\jobname.pyg}} +\newcommand\mint[3][]{ + \DefineShortVerb{#3} + \minted@resetoptions + \setkeys{minted@opt}{#1} + \SaveVerb[aftersave={ + \UndefineShortVerb{#3} + \minted@savecode{\FV@SV@minted@verb} + \minted@pygmentize{#2} + \DeleteFile{\jobname.pyg}}]{minted@verb}#3} +\newcommand\minted@proglang[1]{} +\newenvironment{minted}[2][] + {\VerbatimEnvironment + \renewcommand{\minted@proglang}[1]{#2} + \minted@resetoptions + \setkeys{minted@opt}{#1} + \begin{VerbatimOut}[codes={\catcode`\^^I=12}]{\jobname.pyg}}% + {\end{VerbatimOut} + \minted@pygmentize{\minted@proglang{}} + \DeleteFile{\jobname.pyg}} +\newcommand\inputminted[3][]{ + \minted@resetoptions + \setkeys{minted@opt}{#1} + \minted@pygmentize[#3]{#2}} +\newcommand\newminted[3][]{ + \ifthenelse{\equal{#1}{}} + {\def\minted@envname{#2code}} + {\def\minted@envname{#1}} + \newenvironment{\minted@envname} + {\VerbatimEnvironment\begin{minted}[#3]{#2}} + {\end{minted}} + \newenvironment{\minted@envname *}[1] + {\VerbatimEnvironment\begin{minted}[#3,##1]{#2}} + {\end{minted}}} +\newcommand\newmint[3][]{ + \ifthenelse{\equal{#1}{}} + {\def\minted@shortname{#2}} + {\def\minted@shortname{#1}} + \expandafter\newcommand\csname\minted@shortname\endcsname[2][]{ + \mint[#3,##1]{#2}##2}} +\newcommand\newmintedfile[3][]{ + \ifthenelse{\equal{#1}{}} + {\def\minted@shortname{#2file}} + {\def\minted@shortname{#1}} + \expandafter\newcommand\csname\minted@shortname\endcsname[2][]{ + \inputminted[#3,##1]{#2}{##2}}} +\@ifundefined{minted@float@within} + {\newfloat{listing}{h}{lol}} + {\newfloat{listing}{h}{lol}[\minted@float@within]} +\newcommand\listingscaption{Listing} +\floatname{listing}{\listingscaption} +\newcommand\listoflistingscaption{List of listings} +\providecommand\listoflistings{\listof{listing}{\listoflistingscaption}} +\AtBeginDocument{ + \minted@usedefaultstyle} +\AtEndOfPackage{ + \ifnum\pdf@shellescape=1\relax\else + \PackageError{minted} + {You must invoke LaTeX with the + -shell-escape flag} + {Pass the -shell-escape flag to LaTeX. Refer to the minted.sty + documentation for more information.}\fi + \TestAppExists{pygmentize} + \ifAppExists\else + \PackageError{minted} + {You must have `pygmentize' installed + to use this package} + {Refer to the installation instructions in the minted + documentation for more information.} + \fi} +\endinput +%% +%% End of file `minted.sty'. + +{% endraw %} diff --git a/{{cookiecutter.repo_name}}/section1.tex b/{{cookiecutter.repo_name}}/section1.tex new file mode 100644 index 0000000..b15b845 --- /dev/null +++ b/{{cookiecutter.repo_name}}/section1.tex @@ -0,0 +1,28 @@ +\section{Section1} +% +\subsection{Subsection a} +\begin{frame}[label=sectiona] +\frametitle{subsection a title} + +{{cookiecutter.project_short_description}} + +\begin{enumerate} +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\end{enumerate} +\end{frame} + + +% +\subsection{Subsection b} +\begin{frame}[label=sectionb] +\frametitle{subsection b title} +\begin{enumerate} +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\end{enumerate} +\end{frame} diff --git a/{{cookiecutter.repo_name}}/section2.tex b/{{cookiecutter.repo_name}}/section2.tex new file mode 100644 index 0000000..08ed94e --- /dev/null +++ b/{{cookiecutter.repo_name}}/section2.tex @@ -0,0 +1,28 @@ +\section{Section2} +% +\subsection{Subsection c} +\begin{frame}[label=sectionc] +\frametitle{subsection c title} + +{{cookiecutter.project_short_description}} + +\begin{enumerate} +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\end{enumerate} +\end{frame} + + +% +\subsection{Subsection d} +\begin{frame}[label=sectiond] +\frametitle{subsection d title} +\begin{enumerate} +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\item Bla bla bla.\\ +\end{enumerate} +\end{frame}