-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Added a minted source code example.
- Loading branch information
1 parent
adaa74a
commit e365d76
Showing
12 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,50 @@ | ||
\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} | ||
|
||
|
||
% | ||
\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} |