Browse Source

Beispielfolien in der Einführung überarbeitet

Kein TikZ mehr.

Signed-off-by: Daniel Borchmann <daniel@algebra20.de>
master
Daniel 3 years ago
parent
commit
7521a0519a
2 changed files with 48 additions and 40 deletions
  1. 1
    0
      latexkurs.cls
  2. 47
    40
      lecture-00-intro.tex

+ 1
- 0
latexkurs.cls View File

@@ -16,6 +16,7 @@
16 16
 \RequirePackage{booktabs}
17 17
 \RequirePackage{ccicons}
18 18
 \RequirePackage{calc}
19
+\RequirePackage{mdframed}
19 20
 
20 21
 \RequirePackage{luacode}
21 22
 \RequirePackage{pgfplots}

+ 47
- 40
lecture-00-intro.tex View File

@@ -161,51 +161,58 @@
161 161
 \begin{frame}[fragile]
162 162
   \frametitle{Was macht \LaTeX{}?}
163 163
 
164
-  \begin{tikzpicture}[node distance=0.5cm]
165
-    \only<2-3>{%
166
-      \node (c) [anchor=north west, rounded corners, fill=blue!20, draw] {%
167
-        \begin{tabular}{l}
168
-          \texttt{\textbackslash documentclass\{article\}}  \\
169
-          \texttt{\textbackslash begin\{document\}}\\
170
-          \texttt{Die Mathematik ist doch die angenehmste Wissenschaft.}\\
171
-          \texttt{\textbackslash end\{document\}}
172
-        \end{tabular}};
173
-    }
174
-    \only<beamer| beamer:3>{
175
-      \node [below=of c, anchor=north, rounded corners, draw]{%
176
-        \includegraphics[width=3cm]{pics/texex1.pdf}};
177
-    }
178
-    \only<beamer| beamer:4->{
179
-      \node (x) [anchor=north, rounded corners, draw]{%
180
-        \includegraphics[width=0.98\linewidth, clip, viewport=50 650 500 750]{%
181
-          pics/texex1.pdf}};
182
-      \node [anchor=north, rounded corners, draw, below=of x]{%
183
-        \includegraphics[width=0.98\linewidth, clip, viewport=80 0 530 100]{%
184
-          pics/texex1.pdf}};
185
-    }
186
-    \only<handout>{
187
-      \node[below=of c, anchor=north] {%
188
-        \textrm{Die Mathematik ist doch die angenehmste Wissenschaft}};
189
-    }
190
-  \end{tikzpicture}
164
+    \onslide<2->
165
+\begin{lstlisting}
166
+\documentclass{article}
167
+\begin{document}
168
+  Die Mathematik ist doch die angenehmste Wissenschaft;
169
+\end{document}
170
+\end{lstlisting}
171
+
172
+  \begin{overlayarea}{\textwidth}{0.5\textheight}
173
+
174
+  \only<beamer| beamer:3>{
175
+    \begin{center}
176
+      \fbox{\includegraphics[width=3cm]{pics/texex1.pdf}}
177
+    \end{center}}
178
+
179
+  \only<beamer| beamer:4->{
180
+    \begin{mdframed}
181
+      \includegraphics[width=0.98\linewidth, clip, viewport=50 700 500 750]{%
182
+        pics/texex1.pdf}
183
+      \vskip2\bigskipamount
184
+      \includegraphics[width=0.98\linewidth, clip, viewport=80 20 530 80]{%
185
+        pics/texex1.pdf}
186
+    \end{mdframed}}
187
+
188
+  \only<handout>{
189
+    \begin{center}
190
+      \textrm{Die Mathematik ist doch die angenehmste Wissenschaft}
191
+    \end{center}}
192
+
193
+  \end{overlayarea}
194
+
191 195
 \end{frame}
192 196
 
193 197
 \begin{frame}[fragile]
194 198
   \frametitle{Was macht \LaTeX{}?}
195 199
 
196
-  \begin{tikzpicture}
197
-    \onslide<2-3>{%
198
-      \node (c) [anchor= north west, rounded corners, fill=blue!20, draw]{
199
-        \begin{tabular}{l}
200
-          \texttt{\textbackslash documentclass\{article\}}  \\
201
-          \texttt{\textbackslash usepackage\{amsmath\}}\\
202
-          \texttt{\textbackslash begin\{document\}}\\
203
-          \texttt{\ \ The formula is \$\textbackslash frac\{-b \textbackslash pm \textbackslash sqrt\{b\^{}2 - 4ac\}\}\{2a\}\$}\\
204
-          \texttt{\textbackslash end\{document\}}
205
-        \end{tabular}};}
206
-    \onslide<3-3>{\node [anchor=north west,below=of c,rounded corners, draw]{%
207
-        The formula is $\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$};}
208
-  \end{tikzpicture}
200
+  \onslide<2->
201
+
202
+\begin{lstlisting}[mathescape=false]
203
+\documentclass{article}
204
+\usepackage{amsmath}
205
+\begin{document}
206
+  The formula is $\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
207
+\end{document}
208
+\end{lstlisting}
209
+
210
+  \onslide<3->
211
+
212
+  \begin{center}
213
+    The formula is $\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
214
+  \end{center}
215
+
209 216
 \end{frame}
210 217
 
211 218
 \begin{frame}[fragile]

Loading…
Cancel
Save