diff --git a/BSC_MSC-NAME-YEAR.tex b/BSC_MSC-NAME-YEAR.tex index 5dba510..468ea33 100644 --- a/BSC_MSC-NAME-YEAR.tex +++ b/BSC_MSC-NAME-YEAR.tex @@ -2,7 +2,8 @@ \usepackage[]{ruthesis} %% Options in []: %% IS Icelandic is main language -\title{B.Sc.\ and M.Sc.\ Thesis Template for \theInstitution{}}{B.Sc.\ and M.Sc.\ Thesis Template for \theInstitution{} in Icelandic} +\title{B.Sc.\ and M.Sc.\ Thesis Template for \theInstitution{}} +\titleIS{B.Sc.\ and M.Sc.\ Thesis Template for \theInstitution{} in Icelandic} \author{Joseph T. Foley}%Use \and as an author separator \date{2020}{2}{2}%{Year}{Month}{Day}%use numbers diff --git a/PHD-NAME-YEAR.tex b/PHD-NAME-YEAR.tex index 6336bb7..1b2b4cd 100644 --- a/PHD-NAME-YEAR.tex +++ b/PHD-NAME-YEAR.tex @@ -2,7 +2,8 @@ \usepackage[]{ruthesis} %% Options in []: %% IS Icelandic is main language -\title{Ph.D.\ Dissertation Template for \theInstitution{}}{Ph.D.\ Dissertation Template for \theInstitution{} in Icelandic} +\title{Ph.D.\ Dissertation Template for \theInstitution{}} +\titleIS{Ph.D.\ Dissertation Template for \theInstitution{} in Icelandic} \author{Joseph T. Foley}%Use \and as an author separator \date{2020}{2}{2}%{Year}{Month}{Day}%use numbers diff --git a/ruthesis.sty b/ruthesis.sty index c1ed7b0..33e424a 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -250,6 +250,8 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%% TITLE PAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Memoir titlepage definition and info at p.64 + %% Some may need a different front logo \newcommand{\frontlogo@ruthesis}{ru-logo} @@ -495,11 +497,8 @@ {\end{compactitem}} -%% Memoir titlepage definition and info at p.64 -%% maketitlehookc is between the author and the date -\newcommand{\thetitle}{**Title in English**} \newcommand{\thetitleIS}{**Title in Icelandic**} -\renewcommand{\title}[2]{\renewcommand{\thetitle}{#1}\renewcommand{\thetitleIS}{#2}} +\newcommand{\titleIS}[1]{\renewcommand{\thetitleIS}{#1}} %% Clean up some formatting for the text \renewcommand{\thepage}{\roman{page}} @@ -697,7 +696,7 @@ \renewenvironment{abstract} -{\selectlanguage{english}\begin{coverleft}{\centering% +{\begin{otherlanguage}{english}\begin{coverleft}{\centering% {\titletitlefont\thetitle\\}%% \vspace{\baselineskip} \theauthor\\% @@ -707,10 +706,10 @@ \setlength{\parskip}{\baselineskip}% \par\vspace*{2\baselineskip}% \textbf{Abstract}\par\vspace{1ex}} -{\par\end{coverleft}\newpage} +{\par\end{coverleft}\end{otherlanguage}\newpage} \newenvironment{abstractIS} -{\selectlanguage{icelandic}\begin{coverleft}{\centering% +{\begin{otherlanguage}{icelandic}\begin{coverleft}{\centering% {\titletitlefont\thetitleIS\\}%% \vspace{\baselineskip} \theauthor\\% @@ -720,7 +719,7 @@ \setlength{\parskip}{\baselineskip}% \par\vspace*{2\baselineskip}% \textbf{Útdráttur}\par\vspace{1ex}} -{\par\end{coverleft}\newpage} +{\par\end{coverleft}\end{otherlanguage}\newpage}