From ba83966ffb39037547e2b800629972f8bf5e6706 Mon Sep 17 00:00:00 2001 From: "taha@asks2" Date: Thu, 13 Jul 2023 03:31:33 +0200 Subject: [PATCH] Added support for ifprintedition package https://git.solarchemist.se/taha/ifprintedition --- LuaUUThesis.cls | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/LuaUUThesis.cls b/LuaUUThesis.cls index 4e739d9..34b63fb 100644 --- a/LuaUUThesis.cls +++ b/LuaUUThesis.cls @@ -1,5 +1,5 @@ % ============================================== -% Class definition UU LuaThesis - 2018-01-18 +% Class definition UU LuaThesis - 2023-07-12 % ============================================== \ProvidesClass{LuaUUThesis} @@ -12,12 +12,17 @@ \newif\if@culumntitles \newif\if@UU@openright \newif\if@UU@margnum +\newif\if@webedition +\newif\if@printedition \@usepdfgfxtrue \@sfivepapertrue \@UU@chapterafterparttrue \@culumntitlesfalse \@UU@openrightfalse +% set webedition by default +\@webeditiontrue +\@printeditionfalse % Paper resizing commands \providecommand{\UU@setsfivepaper}{ @@ -135,6 +140,16 @@ \DeclareOption{margnum}{ \@UU@margnumtrue } +\DeclareOption{webedition}{ + \PassOptionsToClass{\CurrentOption}{book} + \@webeditiontrue + \@printeditionfalse +} +\DeclareOption{printedition}{ + \PassOptionsToClass{\CurrentOption}{book} + \@printeditiontrue + \@webeditionfalse +} \DeclareOption{twocolumn}{ \ClassWarning{This class does not support \CurrentOption} }