diff --git a/README.rst b/README.rst index 6673ac5..905b91b 100644 --- a/README.rst +++ b/README.rst @@ -6,6 +6,8 @@ Cookiecutter template for a LaTeX Beamer presentation. Installation ------------ +Install latex dependencies and Pygments for source code highlight. + - Debian: # Installing some dependencies diff --git a/bin/main.pdf b/bin/main.pdf index 8b612d7..7a9d668 100644 Binary files a/bin/main.pdf and b/bin/main.pdf differ diff --git a/bin/main000.png b/bin/main000.png index 14bff4c..87faa02 100644 Binary files a/bin/main000.png and b/bin/main000.png differ diff --git a/bin/main001.png b/bin/main001.png index 48ccdbf..f622063 100644 Binary files a/bin/main001.png and b/bin/main001.png differ diff --git a/bin/main002.png b/bin/main002.png index 5758446..7d8d051 100644 Binary files a/bin/main002.png and b/bin/main002.png differ diff --git a/bin/main003.png b/bin/main003.png index 54ce8d1..2dbafd0 100644 Binary files a/bin/main003.png and b/bin/main003.png differ diff --git a/bin/main004.png b/bin/main004.png index 55f473a..159b750 100644 Binary files a/bin/main004.png and b/bin/main004.png differ diff --git a/bin/main005.png b/bin/main005.png index 25ae4c3..ee27172 100644 Binary files a/bin/main005.png and b/bin/main005.png differ diff --git a/bin/main006.png b/bin/main006.png index 625292d..28401ff 100644 Binary files a/bin/main006.png and b/bin/main006.png differ diff --git a/bin/main007.png b/bin/main007.png index 19a129c..fb8af72 100644 Binary files a/bin/main007.png and b/bin/main007.png differ diff --git a/bin/main008.png b/bin/main008.png index 1789271..fbab0d4 100644 Binary files a/bin/main008.png and b/bin/main008.png differ diff --git a/{{cookiecutter.repo_name}}/section2.tex b/{{cookiecutter.repo_name}}/section2.tex index 08ed94e..61a2661 100644 --- a/{{cookiecutter.repo_name}}/section2.tex +++ b/{{cookiecutter.repo_name}}/section2.tex @@ -1,17 +1,39 @@ \section{Section2} % \subsection{Subsection c} -\begin{frame}[label=sectionc] +\begin{frame}[label=sectionc, t, fragile] \frametitle{subsection c title} -{{cookiecutter.project_short_description}} +Highlighted source code using minted. + +\usemintedstyle{perldoc} + +\begin{minted}[linenos, + numbersep=12pt, + firstnumber=1, + firstline=1, + frame=lines, + framerule=0.1pt, + rulecolor=\definecolor{bg}{rgb}{0.95,0.95,0.95}, + fontsize=\tiny, + framesep=2mm]{python} +import numpy as np + +def incmatrix(genl1,genl2): + m = len(genl1) + n = len(genl2) + M = None #to become the incidence matrix + VT = np.zeros((n*m,1), int) #dummy variable + + #compute the bitwise xor matrix + M1 = bitxormatrix(genl1) + M2 = np.triu(bitxormatrix(genl2),1) + + # Removed lines + + return M +\end{minted} -\begin{enumerate} -\item Bla bla bla.\\ -\item Bla bla bla.\\ -\item Bla bla bla.\\ -\item Bla bla bla.\\ -\end{enumerate} \end{frame} @@ -19,10 +41,10 @@ \subsection{Subsection c} \subsection{Subsection d} \begin{frame}[label=sectiond] \frametitle{subsection d title} -\begin{enumerate} +\begin{itemize} \item Bla bla bla.\\ \item Bla bla bla.\\ \item Bla bla bla.\\ \item Bla bla bla.\\ -\end{enumerate} +\end{itemize} \end{frame}