-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00451c7
commit 7b7584f
Showing
3 changed files
with
77 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
all: exercises-01-python.pdf exercises-02-python-cont.pdf exercises-03-classes.pdf exercises-04-numpy.pdf junk | ||
|
||
include = include.tex | ||
|
||
%.pdf: %.tex | ||
xelatex $< | ||
xelatex $< | ||
|
||
|
||
junk: | ||
rm *.aux *.log *.dvi *.ps -f | ||
|
||
clean: | ||
rm *.aux *.log *.dvi *.ps -f | ||
rm exercises-*.pdf -f | ||
|
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
\usepackage{xltxtra} | ||
\usepackage{polyglossia} | ||
\usepackage{fancyhdr} | ||
\usepackage{geometry} | ||
\usepackage{enumitem} | ||
\usepackage{versions} | ||
\usepackage{hyperref} | ||
|
||
%\includeversion{solution} | ||
\excludeversion{solution} | ||
|
||
\geometry{a4paper,left=15mm,right=15mm,top=20mm,bottom=20mm} | ||
\pagestyle{fancy} | ||
\chead{UNIQ+ Summer School - Scientific Python} | ||
\rhead{\today} | ||
\cfoot{\thepage} | ||
|
||
\setlength{\headheight}{23pt} | ||
\setlength{\parindent}{0.0in} | ||
\setlength{\parskip}{0.0in} | ||
|
||
|
||
\usepackage{listings} %iclude code in your document | ||
\usepackage{color} | ||
\definecolor{deepblue}{rgb}{0,0,0.5} | ||
\definecolor{deepred}{rgb}{0.6,0,0} | ||
\definecolor{deepgreen}{rgb}{0,0.5,0} | ||
|
||
\lstloadlanguages{Matlab} %use listings with Matlab for Pseudocode | ||
\lstnewenvironment{pseudocode}[1][] | ||
{\lstset{ | ||
language=Matlab, | ||
basicstyle=\scriptsize, | ||
keywordstyle=\color{blue}, | ||
xleftmargin=.04\textwidth,#1}} | ||
{} | ||
\lstnewenvironment{python}[1][] | ||
{\lstset{ | ||
language=Python, | ||
basicstyle=\scriptsize, | ||
keywordstyle=\color{deepblue}, | ||
otherkeywords={self}, % Add keywords here | ||
keywordstyle=\color{deepblue}, | ||
emph={MyClass,__init__,__str__}, % Custom highlighting | ||
emphstyle=\color{deepred}, % Custom highlighting style | ||
stringstyle=\color{deepgreen}, | ||
xleftmargin=.04\textwidth,#1}} | ||
{} | ||
\newcommand{\cf}[1]{\lstinline | ||
[ | ||
language=Python, | ||
keywordstyle=\color{deepblue}, | ||
otherkeywords={self}, % Add keywords here | ||
keywordstyle=\color{deepblue}, | ||
emph={MyClass,__init__,__str__}, % Custom highlighting | ||
emphstyle=\color{deepred}, % Custom highlighting style | ||
stringstyle=\color{deepgreen} | ||
] | ||
{#1}} | ||
|