Newer
Older
templates / lectures / content.tex
\slidesmag{5}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{slide}

	\begin{lecturecontent}

		\item ...

		\item ...

	\end{lecturecontent}

\end{slide}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{slide}

\section{section}

\begin{dimitem}

	\item ...

	\item ...

\end{dimitem}

\subsection{subsection}

Blah blah.

\end{slide}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{slide}

\section{code example}

Directly above.

\begin{codeblock}[gobble=2]
	// students can be any collection class

	// old way of traversing
	Iterator<Student> it = students.iterator();

	while(it.hasNext()) {
		Student aStudent = it.next();
		System.out.println(aStudent);
	}

	// new way of traversing using Java 5 for-each loop
	for (Student aStudent : students) {
		System.out.println(aStudent);
	}

	String blah = "this is a string";
\end{codeblock}

Directly below.

\newslide

\section{small code}

Directly above.

\begin{smallcodeblock}[gobble=2]
	// students can be any collection class

	// old way of traversing
	Iterator<Student> it = students.iterator();

	while(it.hasNext()) {
		Student aStudent = it.next();
		System.out.println(aStudent);
	}

	// new way of traversing using Java 5 for-each loop
	for (Student aStudent : students) {
		System.out.println(aStudent);
	}

	String blah = "this is a string";
\end{smallcodeblock}

Directly below.

\subsection{inline code}

Blah blah \code{blah blah blah()} blah blah.

\end{slide}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{document}