Skip to content

Commit

Permalink
Restructured the exercise templates to allow for the exercises sheets…
Browse files Browse the repository at this point in the history
… to be in subfolders and commited the template images as they have been ignored in previous commits
  • Loading branch information
dominik-probst committed Nov 8, 2023
1 parent 47effa9 commit 2061945
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 34 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
*.bak*
vc.tex
output
!fau_tech.pdf
!i6_icon.pdf
!i6_logo.pdf

# IDEs
.idea
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
\documentclass[
english,
smallborders
]{i6prcsht}
\usepackage{i6common}
\usepackage{i6lecture}
]{../i6prcsht}
\usepackage{../i6common}
\usepackage{../i6lecture}

\usepackage{todonotes}
\usepackage[utf8]{inputenc}
Expand Down
62 changes: 31 additions & 31 deletions exercise/in-person/i6prcsht.cls
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
\RequirePackage[utf8]{inputenc} % Unicode is the only reasonable choice for the heterogeneous environment at LS6. UTF8 is the most common Unicode encoding.
\RequirePackage[T1]{fontenc} % Support for umlaute
\RequirePackage{lmodern} % Computer modern font with enhanced metrics and glyph coverage
\RequirePackageWithOptions{i6exc} % Macros for semester, solution, ...
\RequirePackageWithOptions{../i6exc} % Macros for semester, solution, ...
\RequirePackage{scrlayer-scrpage} % Customized footer
\RequirePackage{graphicx} % Include graphics for footer and title
\RequirePackage{lastpage} % Last page number for footer
Expand Down Expand Up @@ -63,43 +63,43 @@

% Footer
\pagestyle{scrheadings}
\ifoot[]{\parbox{1cm}{\includegraphics[width=1cm]{i6prcsht_res/i6_icon}} \parbox{11cm}{\LectureShort,\ \semester* -- \PracticeTitle\ifSubTitleDefined \\ \fi \PracticeSubTitle}}
\ifoot[]{\parbox{1cm}{\includegraphics[width=1cm]{../i6prcsht_res/i6_icon}} \parbox{11cm}{\LectureShort,\ \semester* -- \PracticeTitle\ifSubTitleDefined \\ \fi \PracticeSubTitle}}
\cfoot[]{}
\ifgerman
% \parbox is only necessary to achieve same vertical position of page number and one-line string in ifoot
\ofoot[\parbox{3cm}{\begin{flushright}
Seite \thepage\ von \pageref{LastPage}
\end{flushright}}]{\parbox{3cm}{\begin{flushright}
Seite \thepage\ von \pageref{LastPage}
\end{flushright}}}
% \parbox is only necessary to achieve same vertical position of page number and one-line string in ifoot
\ofoot[\parbox{3cm}{\begin{flushright}
Seite \thepage\ von \pageref{LastPage}
\end{flushright}}]{\parbox{3cm}{\begin{flushright}
Seite \thepage\ von \pageref{LastPage}
\end{flushright}}}
\else
% \parbox is only necessary to achieve same vertical position of page number and one-line string in ifoot
\ofoot[\parbox{3cm}{\begin{flushright}
Page \thepage\ of \pageref{LastPage}
\end{flushright}}]{\parbox{3cm}{\begin{flushright}
Page \thepage\ of \pageref{LastPage}
\end{flushright}}}
% \parbox is only necessary to achieve same vertical position of page number and one-line string in ifoot
\ofoot[\parbox{3cm}{\begin{flushright}
Page \thepage\ of \pageref{LastPage}
\end{flushright}}]{\parbox{3cm}{\begin{flushright}
Page \thepage\ of \pageref{LastPage}
\end{flushright}}}
\fi

% Title
\titlehead{%
\parbox[c]{4cm}{
\includegraphics[width=4cm]{i6prcsht_res/fau_tech}
}
\hfill
\parbox[c]{6cm}{
\begin{center}
\textsf{
\textbf{\Department}\\
\Chair
}
\end{center}
}
\hfill
\parbox[c]{4cm}{
\hfill % Graphic right aligned
\includegraphics[width=2.6cm]{i6prcsht_res/i6_logo}
}
\parbox[c]{4cm}{
\includegraphics[width=4cm]{../i6prcsht_res/fau_tech}
}
\hfill
\parbox[c]{6cm}{
\begin{center}
\textsf{
\textbf{\Department}\\
\Chair
}
\end{center}
}
\hfill
\parbox[c]{4cm}{
\hfill % Graphic right aligned
\includegraphics[width=2.6cm]{../i6prcsht_res/i6_logo}
}
}
\subject{\ifLectureDefined \LectureLong \\ \fi \semester}
\date{}
Expand Down
Binary file added exercise/in-person/i6prcsht_res/fau_tech.pdf
Binary file not shown.
Binary file added exercise/in-person/i6prcsht_res/i6_icon.pdf
Binary file not shown.
Binary file added exercise/in-person/i6prcsht_res/i6_logo.pdf
Binary file not shown.

0 comments on commit 2061945

Please sign in to comment.