Commit 3b3e0190 authored by Tomos Fearn's avatar Tomos Fearn

worksheet 8 WIP

parent 50ceeb76
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bilingualworkshop}[2018/08/09 - Simple Worksheet Class, Including Logo]
\RequirePackage{palatino}
\LoadClassWithOptions{article}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{lastpage}
\RequirePackage{ifthen}
\newif\ifcym
\newif\ifeng
\def\@wsversion{\relax}
\newcommand{\wsversion}[1]{\gdef\@wsversion{#1}}
\def\@wslang{\relax}
\newcommand{\wslang}{\ifthenelse{\engtrue}{en}{cy}}
\def\@mainlogo{\relax}
\newcommand{\aulogo}[1]{\gdef\@mainlogo{\protect #1}}
\def\@footerLogoOne{\relax}
\newcommand{\footerLogoOne}[1]{\gdef\@footerLogoOne{\protect #1}}
\def\@footerLogoTwo{\relax}
\newcommand{\footerLogoTwo}[1]{\gdef\@footerLogoTwo{\protect #1}}
\def\@footerLogoThree{\relax}
\newcommand{\footerLogoThree}[1]{\gdef\@footerLogoThree{\protect #1}}
\def\@footerLogoFour{\relax}
\newcommand{\footerLogoFour}[1]{\gdef\@footerLogoFour{\protect #1}}
\def\@footerLogoFive{\relax}
\newcommand{\footerLogoFive}[1]{\gdef\@footerLogoFive{\protect #1}}
% Custom Document Formatting
\newcommand\decorativeline[1][1pt]{
\par\noindent%
\rule[0.5ex]{\linewidth}{#1}\par
}
% Set the Paper Size and margins
\RequirePackage{geometry}
\geometry{margin=1.0in}
\geometry{headheight=72.31699pt} % Required height for header and footer to fit the page correctly
\pagestyle{fancyplain}
\rhead{\fancyplain{}{
\ifthenelse{\equal{\@mainlogo}{\relax}}{}
{ % Create With Logo
%\begin{minipage}[t]{1\columnwidth}%
%\begin{flushright}
\vspace{0.5in}
\@mainlogo
\vspace{0in}
%\par\end{flushright}%
%\end{minipage}
}}}
% Tom edited this bit to add total pages
\cfoot{
\thepage\ / \pageref{LastPage}
}
% Tom added this bit to create a footer of associated organisation/institute logos
\lfoot{\fancyplain{}{
\ifthenelse{\equal{\@footerLogoOne}{\relax}}{} { % Create With Logo
%\begin{minipage}[t]{1\columnwidth}%
%\begin{flushright}
\vspace{-0.3in}
\@footerLogoOne \@footerLogoTwo \@footerLogoThree \@footerLogoFour \@footerLogoFive
\vspace{0.8in}
%\par\end{flushright}%
%\end{minipage}
}}}
\rfoot{\fancyplain{}{
\ifthenelse{\equal{\@wsversion}{\relax}}{}{Ver. \@wsversion}
\ifthenelse{\equal{\@wslang}{\relax}}{}{\@wslang}
}
}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[welsh,english]{babel}
\newcommand{\cy}[1]{%
\ifcym\selectlanguage{welsh}#1\fi}
\newcommand{\en}[1]{%
\ifeng\selectlanguage{english}#1\fi}
\renewcommand{\maketitle}{\makeworkshoptitle}
\newcommand\makeworkshoptitle{
{\vskip 2em%
\begin{center}%
{\LARGE \@title \par}%
\end{center}}
% To, From, Subject Block
\decorativeline\bigskip{}
%\printcy
}
\ No newline at end of file
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) (preloaded format=pdflatex 2018.11.29) 20 FEB 2019 16:45
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**.\worksheet7.tex
! Emergency stop.
<*> .\worksheet7.tex
*** (job aborted, file error in nonstop mode)
Here is how much of TeX's memory you used:
3 strings out of 492639
104 string characters out of 6133087
56500 words of memory out of 5000000
3994 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
0i,0n,0p,20b,6s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!
\relax
\providecommand\hyper@newdestlabel[2]{}
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\babel@aux{english}{}
\newlabel{LastPage}{{}{5}{}{page.5}{}}
\xdef\lastpage@lastpage{5}
\xdef\lastpage@lastpageHy{5}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment