mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 06:18:05 +02:00
Flashcard experiments
This commit is contained in:
parent
4285b25613
commit
1b06df379c
5 changed files with 64 additions and 1 deletions
|
@ -62,3 +62,4 @@ in dem Erstellen dieses Skripts steckt:
|
|||
|04.02.2014 | 09:50 - 11:40 | Digitalisieren der Vorlesung von 04.02.2014
|
||||
|04.02.2014 | 18:15 - 19:30 | Verbesserungen von Marco eingefügt (Danke!); Beispiel 3.2 erstellt
|
||||
|05.02.2014 | 08:15 - 08:30 | Verbesserungen von Jérôme eingefügt (Danke!)
|
||||
|06.02.2014 | 08:15 - 08:30 | Verbesserungen
|
||||
|
|
Binary file not shown.
49
documents/GeoTopo/definitions/flashcards-try.tex
Normal file
49
documents/GeoTopo/definitions/flashcards-try.tex
Normal file
|
@ -0,0 +1,49 @@
|
|||
\documentclass[mycards,frame]{flashcards}
|
||||
\usepackage{amsmath,amssymb}% math symbols / fonts
|
||||
\usepackage[utf8]{inputenc} % this is needed for umlauts
|
||||
\usepackage[ngerman]{babel} % this is needed for umlauts
|
||||
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
|
||||
\usepackage{ntheorem}
|
||||
\newcommand{\thmfoot}{}
|
||||
\theoremstyle{break}
|
||||
\setlength\theoremindent{0.7cm}
|
||||
\theoremheaderfont{\kern-0.7cm\normalfont\bfseries}
|
||||
\theorembodyfont{\normalfont} % nicht mehr kursiv
|
||||
\theoremseparator{\thmfoot}
|
||||
\newtheorem{definition}{Definition}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{flashcard}{Jordankurve}
|
||||
\begin{definition}
|
||||
Sei $X$ ein topologischer Raum. Eine (geschlossene)
|
||||
\textbf{Jordankurve} in $X$ ist ein Homöomorphismus
|
||||
$\gamma: [0, 1] \rightarrow C \subseteq X$
|
||||
($\gamma: S^1 \rightarrow C \subseteq X$)
|
||||
\end{definition}
|
||||
\end{flashcard}
|
||||
|
||||
\begin{flashcard}{Knoten}
|
||||
\begin{definition}
|
||||
Eine geschlossene Jordankurve in $r^3$ heißt \textbf{Knoten}.
|
||||
\end{definition}
|
||||
\end{flashcard}
|
||||
|
||||
\begin{flashcard}{äquivalente Knoten}
|
||||
\begin{definition}
|
||||
Zwei Knoten $\gamma_1, \gamma_2: S^1 \rightarrow r^3$ heißen
|
||||
\textbf{äquivalent}, wenn es eine stetige Abbildung
|
||||
\[H: S^1 \times [0,1] \Rightarrow r^3\]
|
||||
gibt mit
|
||||
\begin{align*}
|
||||
H(z,0) &= \gamma_1(z)\\
|
||||
H(z,1) &= \gamma_2(z)
|
||||
\end{align*}
|
||||
und für jedes
|
||||
feste $t \in [0,1]$ ist
|
||||
\[H_z: S^1 \rightarrow r^2, z \mapsto H(z,t)\]
|
||||
ein Knoten. Die Abbildung $H$ heißt \textbf{Isotopie} zwischen
|
||||
$\gamma_1$ und $\gamma_2$.
|
||||
\end{definition}
|
||||
\end{flashcard}
|
||||
\end{document}
|
|
@ -9,7 +9,8 @@ def get_definitions(filename):
|
|||
|
||||
pattern = re.compile(r"\\begin{definition}.*?\\end{definition}", re.DOTALL)
|
||||
m = re.findall(pattern, content)
|
||||
return "\\vspace*{\\fill}"+("\n\\vspace*{\\fill}\\clearpage\\vspace*{\\fill}\n".join(m))
|
||||
return "\n\n".join('\\vspace*{{\\fill}}\n{0}\n\\vspace*{{\\fill}}\\clearpage'.format(definition) for definition in m)
|
||||
#return "\n\n".join('\\begin{{flashcard}}{{a}}\n{0}\n\\end{{flashcard}}'.format(definition) for definition in m)
|
||||
|
||||
def write_definitions_to_template(definitions, template="mathe-vorlage.tex", target="definitionen.tex"):
|
||||
with open(template) as f:
|
||||
|
|
12
documents/GeoTopo/definitions/mycards.cfg
Normal file
12
documents/GeoTopo/definitions/mycards.cfg
Normal file
|
@ -0,0 +1,12 @@
|
|||
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
|
||||
\ProvidesFile{avery5388.cfg}
|
||||
\newcommand{\cardpaper}{a4paper}
|
||||
\newcommand{\cardpapermode}{portrait}
|
||||
\newcommand{\cardrows}{4}
|
||||
\newcommand{\cardcolumns}{2}
|
||||
\setlength{\cardheight}{70mm}
|
||||
\setlength{\cardwidth}{100mm}
|
||||
\setlength{\topoffset}{0mm}
|
||||
\setlength{\oddoffset}{0mm}
|
||||
\setlength{\evenoffset}{0mm}
|
||||
\endinput
|
Loading…
Add table
Add a link
Reference in a new issue