Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the new house style #15

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
6 changes: 3 additions & 3 deletions examples/build.properties → examples/2008/build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
latextaskjar=../latextask/LatexTask.jar
themedir=../theme/
latextaskjar=../../latextask/LatexTask.jar
themedir=../../theme/
themefiles=beamercolorthemetue2008plain.sty,beamerfontthemetue2008plain.sty,beamerouterthemetue2008plain.sty,beamerthemetue2008.sty,tuestyle2008.sty,logos/tuelogo.pdf
themefiledirs=logos
themefiledirs=logos
2 changes: 1 addition & 1 deletion examples/build.xml → examples/2008/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<fileset dir="../ant-contrib"/>
<fileset dir="../../ant-contrib"/>
</classpath>
</taskdef>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions examples/2015/build-example.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="build-example" basedir="." default="latex">

<target name="clean" description="Delete all generated files, excluding the PDF">
<echo message="Cleaning example '${dirname}'..." />
<delete file="${dirname}/${texname}.aux" />
<delete file="${dirname}/${texname}.log" />
<delete file="${dirname}/${texname}.nav" />
<delete file="${dirname}/${texname}.out" />
<delete file="${dirname}/${texname}.snm" />
<delete file="${dirname}/${texname}.toc" />
<delete file="${dirname}/${texname}.vrb" />
</target>

<target name="clean-all" description="Delete all generated files, including the PDF" depends="clean">
<echo message="Cleaning (all) example '${dirname}'..." />
<delete file="${dirname}/${texname}.dvi" />
<delete file="${dirname}/${texname}.pdf" />
</target>

<target name="latex" description="Run pdflatex">
<echo message="Building example '${dirname}'..." />
<!-- Suppress output from copy task -->
<script language="javascript">
var logger = project.getBuildListeners().firstElement();
logger.setMessageOutputLevel(0);
</script>
<!-- Copy theme files to current directory -->
<copy todir="${dirname}">
<fileset id="copythemefiles" dir="${themedir}" includes="${themefiles}" />
</copy>
<!-- Stop suppressing output -->
<script language="javascript">
var logger = project.getBuildListeners().firstElement();
logger.setMessageOutputLevel(2);
</script>
<!-- Load LatexTask from JAR defined in build.properties file -->
<taskdef name="latextask" classname="LatexTask" classpath="${latextaskjar}" />
<!-- Run LaTeX, twice -->
<latextask dir="${dirname}" input="${texname}.tex" />
<latextask dir="${dirname}" input="${texname}.tex" />
<!-- Delete copied theme files -->
<delete>
<fileset id="deletethemefiles" dir="${dirname}" includes="${themefiles}" />
<dirset id="deletethemefiledirs" dir="${dirname}" includes="${themefiledirs}" />
</delete>
</target>

</project>
4 changes: 4 additions & 0 deletions examples/2015/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
latextaskjar=../../latextask/LatexTask.jar
themedir=../../theme/
themefiles=beamercolorthemetue2015plain.sty,beamerfontthemetue2015plain.sty,beamerouterthemetue2015plain.sty,beamerthemetue2015.sty,tuestyle2015.sty,logos/tuelogo.pdf
themefiledirs=logos
51 changes: 51 additions & 0 deletions examples/2015/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="build-all-examples" basedir="." default="latex">

<property name="dirnames" value="custom-theme,hello-world,hello-world-yellow,quote-environment,title-frame,title-frame-bg-image,title-frame-innovation" />

<include file="build-example.xml" as="build" />

<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<fileset dir="../../ant-contrib"/>
</classpath>
</taskdef>

<target name="clean" description="Delete all generated files, excluding the PDF, for all examples">
<echo message="Cleaning up LaTeX helper files for all examples..." />
<for list="${dirnames}" param="dirname" keepgoing="true">
<sequential>
<antcall target="build.clean" inheritAll="false">
<param name="dirname" value="@{dirname}" />
<param name="texname" value="@{dirname}" />
</antcall>
</sequential>
</for>
</target>

<target name="clean-all" description="Delete all generated files, including the PDF, for all examples">
<echo message="Cleaning up LaTeX helper files and PDF files for all examples..." />
<for list="${dirnames}" param="dirname" keepgoing="true">
<sequential>
<antcall target="build.clean-all" inheritAll="false">
<param name="dirname" value="@{dirname}" />
<param name="texname" value="@{dirname}" />
</antcall>
</sequential>
</for>
</target>

<target name="latex" description="Run pdflatex on all examples">
<echo message="Running pdflatex on all examples..." />
<for list="${dirnames}" param="dirname" keepgoing="true">
<sequential>
<antcall target="build.latex" inheritAll="false">
<param file="build.properties" />
<param name="dirname" value="@{dirname}" />
<param name="texname" value="@{dirname}" />
</antcall>
</sequential>
</for>
</target>

</project>
19 changes: 19 additions & 0 deletions examples/2015/custom-theme/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="examples-custom-theme" basedir=".." default="build.latex">

<property file="build.properties" />
<property name="dirname" value="custom-theme" />
<property name="texname" value="${dirname}" />

<include file="../build-example.xml" as="build" />

<target name="clean" description="Delete all generated files, excluding the PDF" depends="build.clean">
</target>

<target name="clean-all" description="Delete all generated files, including the PDF" depends="build.clean-all">
</target>

<target name="latex" description="Run pdflatex" depends="build.latex">
</target>

</project>
33 changes: 33 additions & 0 deletions examples/2015/custom-theme/custom-theme.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169

% here we use a different theme color, there are many to choose from
% refer to the README file for a list of options
\usetheme[department=winuk,theme=\#00892C]{tue2015}
\mode<presentation>

% title and author
\title{Custom theme}
\author{Thom Castermans}

% document
\begin{document}

\begin{titleframe}
\end{titleframe}

\begin{frame}{Hello strangely coloured world!}
\begin{itemize}
\item This is a simple presentation using the TU/e Beamer theme
\item It should use the correct font automatically, or issue a warning
\item The title bar should have a custom, greenish colour
\begin{itemize}
\item Note that doing this is \emph{not} recommended!
\item The TU/e has a style guide with colours, that are predefined in this Beamer

theme, you should really use those, \alert{seriously}
\item But if you really, really, really, want to... you can do this
\end{itemize}
\end{itemize}
\end{frame}

\end{document}
19 changes: 19 additions & 0 deletions examples/2015/hello-world-yellow/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="examples-hello-world-yellow" basedir=".." default="build.latex">

<property file="build.properties" />
<property name="dirname" value="hello-world-yellow" />
<property name="texname" value="${dirname}" />

<include file="../build-example.xml" as="build" />

<target name="clean" description="Delete all generated files, excluding the PDF" depends="build.clean">
</target>

<target name="clean-all" description="Delete all generated files, including the PDF" depends="build.clean-all">
</target>

<target name="latex" description="Run pdflatex" depends="build.latex">
</target>

</project>
30 changes: 30 additions & 0 deletions examples/2015/hello-world-yellow/hello-world-yellow.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169

% here we use a different theme color, there are many to choose from
% refer to the README file for a list of options
\usetheme[department=winuk,theme=yellow]{tue2015}
\mode<presentation>

% title and author
\title{Hello world!}
\author{Thom Castermans}

% document
\begin{document}

\begin{titleframe}
\end{titleframe}

\begin{frame}{Hello world!}
\begin{itemize}
\item This is a simple presentation using the TU/e Beamer theme
\item It should use the correct font automatically, or issue a warning
\item The title bar should be yellow and have black text
\item The department (at the bottom left) should be

``mathematics and computer science''
\item At the bottom right, the TU/e logo should be shown
\end{itemize}
\end{frame}

\end{document}
19 changes: 19 additions & 0 deletions examples/2015/hello-world/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="examples-hello-world" basedir=".." default="build.latex">

<property file="build.properties" />
<property name="dirname" value="hello-world" />
<property name="texname" value="${dirname}" />

<include file="../build-example.xml" as="build" />

<target name="clean" description="Delete all generated files, excluding the PDF" depends="build.clean">
</target>

<target name="clean-all" description="Delete all generated files, including the PDF" depends="build.clean-all">
</target>

<target name="latex" description="Run pdflatex" depends="build.latex">
</target>

</project>
23 changes: 23 additions & 0 deletions examples/2015/hello-world/hello-world.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169

% colors (theme=...): red (default), blue, cyan, orange, green
\usetheme[department=winuk,theme=cyan]{tue2015}
\mode<presentation>

% title and author
\title{Hello world!}
\author{Thom Castermans}

% document
\begin{document}

\begin{frame}{Hello world!}
\begin{itemize}
\item This is a simple presentation using the 2015 style of the TU/e Beamer theme
\item It should use the correct font automatically, or issue a warning
\item At the top, the TU/e logo should be shown
\item At the bottom, the page number should be shown
\end{itemize}
\end{frame}

\end{document}
19 changes: 19 additions & 0 deletions examples/2015/quote-environment/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="examples-quote-environment" basedir=".." default="build.latex">

<property file="build.properties" />
<property name="dirname" value="quote-environment" />
<property name="texname" value="${dirname}" />

<include file="../build-example.xml" as="build" />

<target name="clean" description="Delete all generated files, excluding the PDF" depends="build.clean">
</target>

<target name="clean-all" description="Delete all generated files, including the PDF" depends="build.clean-all">
</target>

<target name="latex" description="Run pdflatex" depends="build.latex">
</target>

</project>
28 changes: 28 additions & 0 deletions examples/2015/quote-environment/quote-environment.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169

% colors (theme=...): red (default), blue, cyan, orange, green
\usetheme[department=winuk,theme=cyan]{tue2015}
\mode<presentation>

% the default is 60, make the size of the quotes slightly smaller
\renewcommand{\quotesize}{40}

% title and author
\title{Quote environment}
\author{Thom Castermans}

% document
\begin{document}

\begin{frame}{Hello world! This is a quote}
\begin{itemize}
\item This is a simple presentation using the TU/e Beamer theme
\item Edsger Dijkstra was once quoted as saying

\begin{quote}{Edsger Dijkstra (possibly)}[famous Dutch computer scientist]
Two or more? Use a for.
\end{quote}
\end{itemize}
\end{frame}

\end{document}
19 changes: 19 additions & 0 deletions examples/2015/title-frame-bg-image/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="examples-title-frame" basedir=".." default="build.latex">

<property file="build.properties" />
<property name="dirname" value="title-frame-bg-image" />
<property name="texname" value="${dirname}" />

<include file="../build-example.xml" as="build" />

<target name="clean" description="Delete all generated files, excluding the PDF" depends="build.clean">
</target>

<target name="clean-all" description="Delete all generated files, including the PDF" depends="build.clean-all">
</target>

<target name="latex" description="Run pdflatex" depends="build.latex">
</target>

</project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions examples/2015/title-frame-bg-image/title-frame-bg-image.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
\documentclass[12pt, aspectratio=169]{beamer} % aspectratio = either 43 or 169

\graphicspath{{imgs/}}

% colors (theme=...): red (default), blue, cyan, orange, green
\usetheme[department=winuk,theme=cyan,titlebgimage=MetaForum.jpg]{tue2015}
\mode<presentation>

% title and author
\title{Some interesting title on a background}
\author{Thom Castermans}

% document
\begin{document}

\begin{titleframe}
\end{titleframe}

\begin{frame}{First slide}
\begin{itemize}
\item This is a simple presentation using the TU/e Beamer theme
\item It should look like the \textit{hello-world} example
\item The first slide should be a title frame however
\item The title slide should have a render of MetaForum on the background
\end{itemize}
\end{frame}

\end{document}
19 changes: 19 additions & 0 deletions examples/2015/title-frame-innovation/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="examples-title-frame-innovation" basedir=".." default="build.latex">

<property file="build.properties" />
<property name="dirname" value="title-frame-innovation" />
<property name="texname" value="${dirname}" />

<include file="../build-example.xml" as="build" />

<target name="clean" description="Delete all generated files, excluding the PDF" depends="build.clean">
</target>

<target name="clean-all" description="Delete all generated files, including the PDF" depends="build.clean-all">
</target>

<target name="latex" description="Run pdflatex" depends="build.latex">
</target>

</project>
Loading