Skip to content

Commit

Permalink
Update the year where necessary
Browse files Browse the repository at this point in the history
Also adding the LaTeX command \CurrentYear to make this easier
to update in the future.
  • Loading branch information
jos-rosenqvist-3812 committed Aug 27, 2018
1 parent 2d2ef26 commit a696d81
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Here are some other inspiring style guides that illustrate the variety in what d

# License

Copyright © 2015-2016. Dept. of Computer Science at Lund University, Lund, Sweden.
Copyright © 2015-2018. Dept. of Computer Science at Lund University, Lund, Sweden.

Contributors: https://github.com/lunduniversity/introprog/blob/master/contributors.tex

Expand Down
7 changes: 3 additions & 4 deletions compendium/assignments.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\Huge\selectfont Introduktion till programmering med Scala}
\\ \vspace{1em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -25,7 +27,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2em}\begin{minipage}{1.0\textwidth}\centering
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand All @@ -45,9 +47,6 @@
% {\end{framed}}


\input{global-constants.tex}


\newcommand{\SlideHeading}[1]{} %ignore slide headings
\newcommand{\Subsection}[1]{} %ignore slide sections
\newcommand{\SlideOnly}[1]{} %ignore slide font size
Expand Down
7 changes: 3 additions & 4 deletions compendium/compendium.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\fontsize{30}{50}\selectfont Introduktion till programmering med Scala}
\\ \vspace{1em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -22,7 +24,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2.5em}\begin{minipage}{1.0\textwidth}\centering\fontsize{14}{17}\selectfont
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand All @@ -42,9 +44,6 @@
% {\end{framed}}


\input{global-constants.tex}


\newcommand{\SlideHeading}[1]{\section*{#1}}

\usepackage[most]{tcolorbox}
Expand Down
6 changes: 3 additions & 3 deletions compendium/compendium1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\Huge\selectfont Introduktion till programmering med Scala}
\\ \vspace{2em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -27,7 +29,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2em}\begin{minipage}{1.0\textwidth}\centering
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand Down Expand Up @@ -63,8 +65,6 @@

\usepackage[framemethod=tikz]{mdframed}

\input{global-constants.tex}

\newif\ifkompendium % to allow conditional text in slides only showing up in compendium
\kompendiumtrue % in slides: \kompendiumfalse

Expand Down
6 changes: 3 additions & 3 deletions compendium/compendium2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\Huge\selectfont Introduktion till programmering med Scala}
\\ \vspace{2em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -26,7 +28,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2em}\begin{minipage}{1.0\textwidth}\centering
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand Down Expand Up @@ -62,8 +64,6 @@

\usepackage[framemethod=tikz]{mdframed}

\input{global-constants.tex}


\newif\ifkompendium % to allow conditional text in slides only showing up in compendium
\kompendiumtrue % in slides: \kompendiumfalse
Expand Down
6 changes: 3 additions & 3 deletions compendium/cover/cover-A3-part2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

\definecolor{Pink}{RGB}{105,200,45}

\newcommand{\YEAR}{2017}
\input{../global-constants.tex}

\begin{document}

Expand Down Expand Up @@ -86,7 +86,7 @@
};

\node[anchor=north] (back) at ($(current page.north)+(-0.4,-15.0)+(0,-6.3)$) {
\fontsize{16}{20}\sffamily\selectfont {\YEAR}};
\fontsize{16}{20}\sffamily\selectfont {\CurrentYear}};

\node[anchor=north] (back) at ($(current page.north)+(-0.4,-15.0)+(0,-7.3)$) {
\fontsize{12}{20}\sffamily\selectfont {DEL 2}};
Expand Down Expand Up @@ -118,7 +118,7 @@

\node[above right, scale=1.3] (modulplan) at ($(current page.west)+(\LeftMarginBack,-13.5)+(1.0,\YPosBack)$) {
\begin{minipage}{0.33\textwidth}
\sffamily Datavetenskap, LTH, Lunds universitet. Licens: CC-BY-SA. Upplaga \YEAR. \\ \texttt{http://cs.lth.se/pgk}
\sffamily Datavetenskap, LTH, Lunds universitet. Licens: CC-BY-SA. Upplaga \CurrentYear. \\ \texttt{http://cs.lth.se/pgk}
\end{minipage}
};

Expand Down
6 changes: 3 additions & 3 deletions compendium/cover/cover-A3.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
% lila90% 411934 orange E95420 lila 2C001E D-rosa: F280A1
\definecolor{Foreground}{HTML}{FFFFFF} % 000000 FFFFFF

\newcommand{\YEAR}{2017}
\input{../global-constants.tex}

\begin{document}

Expand Down Expand Up @@ -96,7 +96,7 @@
};

\node[anchor=north] (back) at ($(current page.north)+(-0.4,-15.0)+(0,-6.3)$) {
\fontsize{16}{20}\sffamily\selectfont {\YEAR}};
\fontsize{16}{20}\sffamily\selectfont {\CurrentYear}};

\node[anchor=north] (back) at ($(current page.north)+(-0.4,-15.0)+(0,-7.3)$) {
\fontsize{16}{20}\sffamily\selectfont {DEL 1}};
Expand Down Expand Up @@ -128,7 +128,7 @@

\node[above right, scale=1.3] (modulplan) at ($(current page.west)+(\LeftMarginBack,-13.5)+(1.0,\YPosBack)$) {
\begin{minipage}{0.33\textwidth}
\sffamily Datavetenskap, LTH, Lunds universitet. Licens: CC-BY-SA. Upplaga \YEAR. \\ \texttt{http://cs.lth.se/pgk}
\sffamily Datavetenskap, LTH, Lunds universitet. Licens: CC-BY-SA. Upplaga \CurrentYear. \\ \texttt{http://cs.lth.se/pgk}
\end{minipage}
};

Expand Down
7 changes: 3 additions & 4 deletions compendium/exercises.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\Huge\selectfont Introduktion till programmering med Scala}
\\ \vspace{1em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -24,7 +26,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2em}\begin{minipage}{1.0\textwidth}\centering
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand All @@ -44,9 +46,6 @@
% {\end{framed}}


\input{global-constants.tex}


\newcommand{\SlideHeading}[1]{} %ignore slide headings
\newcommand{\Subsection}[1]{} %ignore slide sections
\newcommand{\SlideOnly}[1]{} %ignore slide font size
Expand Down
1 change: 1 addition & 0 deletions compendium/global-constants.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
\newcommand{\LibVersion}{0.1.0} % latest version of introlib at https://github.com/lunduniversity/introprog-scalalib
\newcommand{\LibJar}{\texttt{introprog-\LibVersion.jar}}
\newcommand{\JDKApiUrl}{\url{https://docs.oracle.com/javase/8/docs/api/}}
\newcommand{\CurrentYear}{2018}
7 changes: 3 additions & 4 deletions compendium/labs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\Huge\selectfont Introduktion till programmering med Scala}
\\ \vspace{1em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -27,7 +29,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2em}\begin{minipage}{1.0\textwidth}\centering
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand All @@ -47,9 +49,6 @@
% {\end{framed}}


\input{global-constants.tex}


\newcommand{\SlideHeading}[1]{} %ignore slide headings
\newcommand{\Subsection}[1]{} %ignore slide sections
\newcommand{\SlideOnly}[1]{} %ignore slide font size
Expand Down
7 changes: 3 additions & 4 deletions compendium/lectures.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\Huge\selectfont Introduktion till programmering med Scala}
\\ \vspace{1em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -25,7 +27,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2em}\begin{minipage}{1.0\textwidth}\centering
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand All @@ -45,9 +47,6 @@
% {\end{framed}}


\input{global-constants.tex}


\newcommand{\SlideHeading}[1]{\section*{#1}}

\usepackage[most]{tcolorbox}
Expand Down
2 changes: 1 addition & 1 deletion compendium/prechapters/licence-contributors.tex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
\url{http://creativecommons.org/licenses/by-sa/4.0/} \\
Please do \emph{not} distribute your solutions to lab assignments and projects.
\\ \newline
Copyright \copyright~ 2015-2017. \\
Copyright \copyright~ 2015-\CurrentYear. \\
Dept. of Computer Science, LTH, Lund University. Lund. Sweden.\\
}
7 changes: 3 additions & 4 deletions compendium/solutions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

\setlength{\columnsep}{16mm}

\input{global-constants.tex}

\title{
{\vspace{-3.0cm}\bf\sffamily\Huge\selectfont Introduktion till programmering med Scala}
\\ \vspace{1em}%\hspace*{1.5cm}\inputgraphics[width=0.6\textwidth]{../img/gurka} \\
Expand All @@ -20,7 +22,7 @@
%\author{Redaktör: Björn Regnell}
\date{\raggedbottom%
\vspace{-2em}\begin{minipage}{1.0\textwidth}\centering
EDAA45, Lp1-2, HT 2016\\
EDAA45, Lp1-2, HT \CurrentYear\\
Datavetenskap, LTH\\
Lunds Universitet\\
~\\
Expand All @@ -38,9 +40,6 @@
% {\end{framed}}


\input{global-constants.tex}


\usepackage[most]{tcolorbox}
\newenvironment{Slide}[2][]
{\vspace{0.5em}\begin{tcolorbox}[%breakable,
Expand Down
6 changes: 4 additions & 2 deletions slides/all-lectures.tex
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
%!TEX encoding = UTF-8 Unicode
\documentclass{lecturehandouts}

\input{../compendium/global-constants.tex}

\setbeamertemplate{footline}[frame number]
\title[Föreläsningsanteckningar pgk, 2017]{Programmering, grundkurs \code{pgk}}
\title[Föreläsningsanteckningar pgk, \CurrentYear]{Programmering, grundkurs \code{pgk}}
\subtitle{Föreläsningsanteckningar \code{pgk} (EDAA45)}
\author{Björn Regnell}
\institute{Datavetenskap, LTH}
\date{Lp1-2, HT 2017}
\date{Lp1-2, HT \CurrentYear}

\setbeamerfont{section in toc}{size=\small}

Expand Down
7 changes: 5 additions & 2 deletions slides/body/lect-preamble.tex
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
%!TEX encoding = UTF-8 Unicode
\setbeamertemplate{footline}[frame number]
\title[Föreläsningsanteckningar EDAA45, 2016]{EDAA45 Programmering, grundkurs}

\input{../compendium/global-constants.tex}

\title[Föreläsningsanteckningar EDAA45, \CurrentYear]{EDAA45 Programmering, grundkurs}
\subtitle{Läsvecka \vecka: \veckotema}
\author{Björn Regnell}
\institute{Datavetenskap, LTH}
\date{Lp1-2, HT 2017}
\date{Lp1-2, HT \CurrentYear}

\input{../compendium/generated/names-generated.tex}

0 comments on commit a696d81

Please sign in to comment.