Commit 1277b069 authored by Mareš Martin's avatar Mareš Martin
Browse files

Různé experimenty

parents
all: x.pdf y.pdf
%.pdf: %.md
pandoc -f markdown -t beamer $< -o $@
# Debugging output...
%.tex: %.md
pandoc -f markdown -t beamer $< -o $@ -s
y.pdf: y.tex
pdflatex $<
---
title: 'Programování 1: Úvod do Pythonu'
author: Martin Mareš
institute: Katedra aplikované matematiky MFF UK
date: ZS 2019
theme: Warsaw
toc: false
indent: true
header-includes: \setbeamerfont{title page}{family=\rmfamily}
---
# Jak si nainstalovat Python
- <http://www.python.org/>
- Python 3.x (pozor, ne 2.x)
- prostředí IDLE
- <https://www.jetbrains.com/pycharm/>
- mnohem pokročilejší vývojové prostředí
# Python jako kalkulačka
1+1
>>> 2
2+3*4+1
>>> 15
2+3 * 4+1
>>> 15
(2+3)*(4+1)
>>> 25
2**10
>>> 1024
2**100
>>> 1267650600228229401496703205376
# ZZZ
## Nadpis
aaa
bbb
ccc
bbb
aaa
# Druhý slajd
xyzzy
# Třetí slajd
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{palatino}
\usetheme{Warsaw}
\title{Programování 1: Úvod do Pythonu}
\author[Martin Mareš]{Martin Mareš\\\texttt{mj@ucw.cz}}
\institute{Katedra Aplikované Matematiky\\MFF UK Praha}
\date{2019}
\begin{document}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{}
\setbeamerfont{title page}{family=\rmfamily}
\begin{frame}
\titlepage
\end{frame}
\def\<{\color{red}}
\def\>{\color{black}>>> \color{blue}}
% ----------------------------------------------------------------------
\begin{frame}[fragile]{Python jako kalkulačka: celá čísla}
\begin{semiverbatim}
\<1+1
\>2
\<2+3*4+1
\>15
\<2+3 * 4+1
\>15
\<(2+3)*(4+1)
\>25
\<2**10
\>1024
\<2**100
\>1267650600228229401496703205376
\end{semiverbatim}
\end{frame}
% ----------------------------------------------------------------------
\begin{frame}[fragile]{Python jako kalkulačka: celá čísla}
\begin{semiverbatim}
\<1+1
\>2
\<2+3*4+1
\>15
\<2+3 * 4+1
\>15
\<(2+3)*(4+1)
\>25
\<2**10
\>1024
\<2**100
\>1267650600228229401496703205376
\end{semiverbatim}
\end{frame}
% ----------------------------------------------------------------------
\end{document}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment