| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% File: udiss.dtx |
| 4 |
% ---------------------------------------------------------- |
| 5 |
% Bundle: udiss |
| 6 |
% Version: v0.1 (October 1, 2024) |
| 7 |
% Author: TUGIndia |
| 8 |
% Description: A LaTeX bundle for typesetting dissertations |
| 9 |
% Bugs: puszcza.gnu.org.ua/bugs/?group=udiss |
| 10 |
% Licenses: GPLv3+, GFDLv1.3+ |
| 11 |
% ---------------------------------------------------------- |
| 12 |
% The LaTeX bundle udiss v0.1 |
| 13 |
% Copyright © 2024 TUGIndia |
| 14 |
% |
| 15 |
% This program is free software: you can redistribute it |
| 16 |
% and/or modify it under the terms of the GNU General Public |
| 17 |
% License as published by the Free Software Foundation, |
| 18 |
% either version 3 of the License, or (at your option) any |
| 19 |
% later version. |
| 20 |
% |
| 21 |
% This program is distributed in the hope that it will be |
| 22 |
% useful, but WITHOUT ANY WARRANTY; without even the implied |
| 23 |
% warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 24 |
% PURPOSE. See the GNU General Public License for more |
| 25 |
% details. |
| 26 |
% |
| 27 |
% You should have received a copy of the GNU General Public |
| 28 |
% License along with this program. If not, see |
| 29 |
% <https://www.gnu.org/licenses/>. |
| 30 |
% ---------------------------------------------------------- |
| 31 |
% arara: lualatex |
| 32 |
% arara: lualatex |
| 33 |
% arara: clean: { |
| 34 |
% arara: --> extensions: [ |
| 35 |
% arara: --> log,aux,glo,idx,ist, |
| 36 |
% arara: --> out,toc,hd |
| 37 |
% arara: --> ] |
| 38 |
% arara: --> } |
| 39 |
% ---------------------------------------------------------- |
| 40 |
% \fi |
| 41 |
% \iffalse |
| 42 |
%<*internal> |
| 43 |
\iffalse |
| 44 |
%</internal> |
| 45 |
%<*readme> |
| 46 |
------------------------------------------------------------ |
| 47 |
Class: udiss |
| 48 |
Author: TUGIndia |
| 49 |
Description: A LaTeX bundle for typesetting dissertations |
| 50 |
Bugs: puszcza.gnu.org.ua/bugs/?group=udiss |
| 51 |
Licenses: GPLv3+, GFDLv1.3+ |
| 52 |
------------------------------------------------------------ |
| 53 |
%</readme> |
| 54 |
%<*internal> |
| 55 |
\fi |
| 56 |
%</internal> |
| 57 |
%<*driver> |
| 58 |
\documentclass{l3doc} |
| 59 |
\usepackage[provide*=*]{babel} |
| 60 |
\babelprovide[import,main]{english} |
| 61 |
\babelprovide[import,onchar={ids fonts}]{marathi} |
| 62 |
\usepackage[svgnames]{xcolor} |
| 63 |
\usepackage{fontawesome5} |
| 64 |
\usepackage{gfdl} |
| 65 |
\usepackage{microtype} |
| 66 |
\usepackage{unicode-math} |
| 67 |
\usepackage{hologo} |
| 68 |
\babelfont{rm}[% |
| 69 |
IgnoreFontspecFile,% |
| 70 |
Extension = {.otf},% |
| 71 |
ItalicFont = {NewCM10-BookItalic},% |
| 72 |
BoldFont = {NewCM10-Bold},% |
| 73 |
BoldItalicFont = {NewCM10-BoldItalic},% |
| 74 |
SlantedFont = {NewCM10-Book},% |
| 75 |
BoldSlantedFont = {NewCM10-Bold},% |
| 76 |
Numbers = {OldStyle},% |
| 77 |
CharacterVariant = {6}% |
| 78 |
]{NewCM10-Book} |
| 79 |
\babelfont{sf}[% |
| 80 |
IgnoreFontspecFile,% |
| 81 |
Extension = {.otf},% |
| 82 |
ItalicFont = {NewCMSans10-BookOblique},% |
| 83 |
BoldFont = {NewCMSans10-Bold},% |
| 84 |
BoldItalicFont = {NewCMSans10-BoldOblique},% |
| 85 |
SlantedFont = {NewCMSans10-Book},% |
| 86 |
BoldSlantedFont = {NewCMSans10-Bold},% |
| 87 |
Numbers = {OldStyle},% |
| 88 |
CharacterVariant = {6}% |
| 89 |
]{NewCMSans10-Book} |
| 90 |
\babelfont{tt}[% |
| 91 |
IgnoreFontspecFile,% |
| 92 |
Extension = {.otf},% |
| 93 |
BoldFont = {NewCMMono10-Bold},% |
| 94 |
ItalicFont = {NewCMMono10-Italic}% |
| 95 |
]{NewCMMono10-Book} |
| 96 |
\setmathfont[% |
| 97 |
IgnoreFontspecFile,% |
| 98 |
Extension = {.otf},% |
| 99 |
CharacterVariant = {1}% |
| 100 |
]{NewCMMath-Book} |
| 101 |
\newfontfamily\newcmnewnum[% |
| 102 |
IgnoreFontspecFile,% |
| 103 |
Extension = {.otf}% |
| 104 |
]{NewCM10-Book} |
| 105 |
\newfontfamily\newcmnewone[% |
| 106 |
IgnoreFontspecFile,% |
| 107 |
Extension = {.otf},% |
| 108 |
Numbers = {OldStyle}% |
| 109 |
]{NewCM10-Book} |
| 110 |
\newfontfamily\expkvkp[% |
| 111 |
BoldFont = {KpRoman-Bold.otf}% |
| 112 |
]{KpRoman-Regular.otf} |
| 113 |
\babelfont[marathi]{tt}[% |
| 114 |
IgnoreFontspecFile,% |
| 115 |
Script = {Devanagari},% |
| 116 |
Language = {Marathi},% |
| 117 |
Renderer = {HarfBuzz},% |
| 118 |
ItalicFont = {NewCMMono10-Book.otf}% |
| 119 |
]{Mukta-Regular.ttf} |
| 120 |
\colorlet{udisslink}{red!60!black} |
| 121 |
\colorlet{udissurl}{blue!60!black} |
| 122 |
\colorlet{udisscite}{green!60!black} |
| 123 |
\hypersetup{% |
| 124 |
unicode,% |
| 125 |
colorlinks,% |
| 126 |
linkcolor = {udisslink},% |
| 127 |
citecolor = {udisscite},% |
| 128 |
urlcolor = {udissurl},% |
| 129 |
pdftitle = {The udiss bundle},% |
| 130 |
pdfauthor = {TUGIndia},% |
| 131 |
pdfcreator = {TUGIndia},% |
| 132 |
pdfsubject = {% |
| 133 |
A LaTeX bundle for typesetting dissertations% |
| 134 |
},% |
| 135 |
pdfkeywords = {% |
| 136 |
LaTeX, dissertations, thesis, bundle, academia% |
| 137 |
}% |
| 138 |
} |
| 139 |
\gfdlcopyrightholders{% |
| 140 |
\texorpdfstring{% |
| 141 |
\TUGIndia |
| 142 |
}{% |
| 143 |
TUGIndia% |
| 144 |
}% |
| 145 |
} |
| 146 |
\gfdlcopyrightdescription{% |
| 147 |
\texorpdfstring{The \cls{udiss} bundle}% |
| 148 |
{The udiss bundle}% |
| 149 |
} |
| 150 |
\gfdlcopyrightableyears{2024} |
| 151 |
\usepackage{cleveref} |
| 152 |
\usepackage{stackengine} |
| 153 |
\setquotestyle{british} |
| 154 |
\def\udisstval{% |
| 155 |
\hfill |
| 156 |
\begingroup |
| 157 |
\ttfamily |
| 158 |
\textcolor{udisslink}{true}\,\textbar\,false% |
| 159 |
\endgroup |
| 160 |
} |
| 161 |
\def\udissfval{% |
| 162 |
\hfill |
| 163 |
\begingroup |
| 164 |
\ttfamily |
| 165 |
true\,\textbar\,\textcolor{udisslink}{false}% |
| 166 |
\endgroup |
| 167 |
} |
| 168 |
\def\udisscolorred{% |
| 169 |
\hfill |
| 170 |
\begingroup |
| 171 |
\ttfamily |
| 172 |
\color{udisslink}% |
| 173 |
udisslink% |
| 174 |
\endgroup |
| 175 |
} |
| 176 |
\def\udisscolorblue{% |
| 177 |
\hfill |
| 178 |
\begingroup |
| 179 |
\ttfamily |
| 180 |
\color{udisslink}% |
| 181 |
udissurl% |
| 182 |
\endgroup |
| 183 |
} |
| 184 |
\def\udisscolorgreen{% |
| 185 |
\hfill |
| 186 |
\begingroup |
| 187 |
\ttfamily |
| 188 |
\color{udisslink}% |
| 189 |
udisscite% |
| 190 |
\endgroup |
| 191 |
} |
| 192 |
\def\udissarr{% |
| 193 |
\hfill |
| 194 |
\begingroup |
| 195 |
\ttfamily |
| 196 |
\color{udisslink}% |
| 197 |
all-rights-reserved% |
| 198 |
\endgroup |
| 199 |
} |
| 200 |
\makeatletter |
| 201 |
% Adapted from manfnt.sty (LPPL v1.0+) |
| 202 |
\DeclareFontFamily{U}{manfnt}{} |
| 203 |
\DeclareFontShape{U}{manfnt}{m}{n}{ <-> manfnt }{} |
| 204 |
\def\manfntsymbol#1{% |
| 205 |
\begingroup |
| 206 |
\fontencoding{U} |
| 207 |
\fontfamily{manfnt}\selectfont |
| 208 |
\symbol{#1}% |
| 209 |
\endgroup |
| 210 |
} |
| 211 |
\def\dbend{% |
| 212 |
\manfntsymbol{127}% |
| 213 |
\hspace*{0.5em}% |
| 214 |
} |
| 215 |
\def\ddbend{% |
| 216 |
\manfntsymbol{127}% |
| 217 |
\manfntsymbol{127}% |
| 218 |
\hspace*{0.5em}% |
| 219 |
} |
| 220 |
\makeatother |
| 221 |
\ExplSyntaxOn |
| 222 |
%% Answer on TopAnswers by Udi Fogiel (LPPL v1.3c+) |
| 223 |
%% URL: https://topanswers.xyz/tex?q=8033 |
| 224 |
\NewDocumentCommand \textfunction { v }{ |
| 225 |
\__codedoc_function_index:n { #1 } |
| 226 |
\__codedoc_function_label:nN { #1 } \c_false_bool |
| 227 |
\texttt{#1} |
| 228 |
} |
| 229 |
\ExplSyntaxOff |
| 230 |
\def\TUGIndia{\textsc{tugindia}} |
| 231 |
\def\babelurl{% |
| 232 |
https://latex3.github.io/babel/guides/% |
| 233 |
which-method-for-which-language.html% |
| 234 |
} |
| 235 |
\definecolor{ekvred}{HTML}{9F393D} |
| 236 |
\colorlet{ekvgrey}{black!75} |
| 237 |
\NewDocumentCommand\expkvlogo{ m }{% |
| 238 |
%% Stolen from Jonathan's sources: preamble-logos.tex |
| 239 |
%% LPPL 1.3c+ |
| 240 |
%% /texmf-dist/doc/latex/expkv-bundle/preamble-logos.tex |
| 241 |
\begingroup |
| 242 |
\expkvkp |
| 243 |
\bfseries |
| 244 |
{% |
| 245 |
\color{ekvgrey}e% |
| 246 |
\kern-.05em x\kern-.05em% |
| 247 |
}% |
| 248 |
\lower.493ex\hbox{% |
| 249 |
{\color{ekvgrey}P}% |
| 250 |
\kern-.1em{\color{ekvred}k}}% |
| 251 |
\kern-.18em{\color{ekvred}v}% |
| 252 |
\IfBlankF{#1}{% |
| 253 |
\begingroup |
| 254 |
\color{ekvgrey}% |
| 255 |
\kern.05em\rule[-.1ex]{.08em}{1.2ex}% |
| 256 |
\kern.05em\textsc{#1}% |
| 257 |
\endgroup |
| 258 |
}% |
| 259 |
\endgroup |
| 260 |
} |
| 261 |
|
| 262 |
\begin{document} |
| 263 |
\DocInput{udiss.dtx} |
| 264 |
\end{document} |
| 265 |
%</driver> |
| 266 |
% \fi |
| 267 |
% \title{The \cls{udiss} bundle} |
| 268 |
% \author{\TUGIndia} |
| 269 |
% \date{^^A |
| 270 |
% Version 0.1---October 1, 2024\\[1ex]^^A |
| 271 |
% {^^A |
| 272 |
% \small\faIcon{link}\quad |
| 273 |
% \url{https://ctan.org/pkg/udiss}^^A |
| 274 |
% }\\^^A |
| 275 |
% {^^A |
| 276 |
% \small\faIcon{bug}\quad |
| 277 |
% \url{https://puszcza.gnu.org.ua/bugs/?group=udiss}^^A |
| 278 |
% }^^A |
| 279 |
% } |
| 280 |
% |
| 281 |
% \maketitle |
| 282 |
% |
| 283 |
% \tableofcontents |
| 284 |
% |
| 285 |
% \DoNotIndex{% |
| 286 |
% \@empty,\@percentchar,\AddToHook,\ClassError, |
| 287 |
% \ClassWarningNoLine,\IfBlankTF,\IfBooleanTF, |
| 288 |
% \IfFileExists,\IfLanguageName,\LoadClass, |
| 289 |
% \MessageBreak,\NewDocumentCommand,\PassOptionsToClass, |
| 290 |
% \PassOptionsToPackage,\ProcessList,\ProvidesClass, |
| 291 |
% \RenewDocumentCommand,\RequirePackage,\RequireTUTeX, |
| 292 |
% \SplitList,\addcontentsline,\addfontfeature, |
| 293 |
% \addtocounter,\alph,\babelfont,\babelprovide,\begin, |
| 294 |
% \begingroup,\bfseries,\bigskip,\clearpage,\color, |
| 295 |
% \colorlet,\def,\definecolor,\dimexpr,\docLicenseThis, |
| 296 |
% \documentclass,\edef,\ekvdefinekeys, |
| 297 |
% \ekvoProcessGlobalOptions,\ekvoProcessLocalOptions, |
| 298 |
% \ekvset,\else,\empty,\end,\endcsname,\endgroup,\enquote, |
| 299 |
% \expandafter,\expanded,\fbox,\fboxsep,\fi, |
| 300 |
% \fontspec,\hrule,\hspace,\hypersetup,\ifLuaTeX, |
| 301 |
% \ifnum,\ifx,\includegraphics,\input,\itshap, |
| 302 |
% \udiss@lgbbl,\let,\linewidth,\loop,\medskip, |
| 303 |
% \newcounter,\newif,\newpage,\noindent,\normalfont, |
| 304 |
% \numexpr,\pagestyle,\parindent,\protected,\relax, |
| 305 |
% \repeat,\setlength,\setmathfont,\space,\stepcounter, |
| 306 |
% \stretch,\string,\tableofcontents,\textLF, |
| 307 |
% \textheight,\the,\thispagestyle,\unexpanded,\vfill, |
| 308 |
% \vspace,\year,\itshape,\csname,\fboxrule,\flushleft, |
| 309 |
% \flushright,\LARGE,\listoffigures,\listoftables, |
| 310 |
% \localecounter,\makeatletter,\makeatother,\normalsize, |
| 311 |
% \Require,\theenumiii,\theenumiv^^A |
| 312 |
% } |
| 313 |
% |
| 314 |
% \begin{documentation} |
| 315 |
% \section{Introduction} |
| 316 |
% \label{int} |
| 317 |
% |
| 318 |
% The \cls{udiss} bundle is a \LaTeX-class-file developed to |
| 319 |
% assist students in typesetting their \emph{u}niversity |
| 320 |
% \emph{diss}ertations. It is a collection of multiple |
| 321 |
% support files. This is the first experimental version. We |
| 322 |
% need feedback and comments from the community to make it |
| 323 |
% better. Currently, nothing should be considered |
| 324 |
% \enquote{stable}. Soon after getting comments and reviews |
| 325 |
% from the community, we will move towards a stable version. |
| 326 |
% |
| 327 |
% Universities often have strict requirements regarding the |
| 328 |
% formatting of the dissertations/theses submitted to them. |
| 329 |
% This bundle pre-supplies a generic style |
| 330 |
% (university-agnostic) for creating dissertations. It can |
| 331 |
% be loaded simply with: |
| 332 |
% |
| 333 |
% \begin{verbatim} |
| 334 |
% \documentclass{udiss} |
| 335 |
% \end{verbatim} |
| 336 |
% |
| 337 |
% But, apart from the generic style, it also supplies |
| 338 |
% university or department specific files for some selected |
| 339 |
% institutions. Each specialised class file comes |
| 340 |
% with an identifier. E.g., if you want to use the template |
| 341 |
% for the Kerala university, you may use the |ukerala| tag |
| 342 |
% and load its template like in the following: |
| 343 |
% |
| 344 |
% \begin{verbatim} |
| 345 |
% \documentclass{udiss} |
| 346 |
% \dissertationstyle{ukerala} |
| 347 |
% \end{verbatim} |
| 348 |
% |
| 349 |
% We are willing to expand. If you want your institution to |
| 350 |
% be supported by us, please have a look at the instructions |
| 351 |
% given in \cref{req}. If you want to develop your own |
| 352 |
% style, please have a look at the developer's instruction |
| 353 |
% given in \cref{dev}. If you want to get your class |
| 354 |
% published under this bundle, please have a look at the |
| 355 |
% contribution guidelines given in \cref{con}. |
| 356 |
% |
| 357 |
% This document explains the user interface as well as the |
| 358 |
% implementation of the class. It has three major parts. |
| 359 |
% The first one contains the documentation of the class |
| 360 |
% (\cref{doc}), the second one contains the developer's |
| 361 |
% manual (\cref{dev}) and the third one contains the |
| 362 |
% implementation of it (\cref{imp}). |
| 363 |
% |
| 364 |
% Before getting started with the documentation, just a |
| 365 |
% brief note about our approach. As of version 0.1, we are |
| 366 |
% planning to have a radically all-modern and |
| 367 |
% backwards-blind approach. This is a Unicode-only package, |
| 368 |
% meaning, it won't work with the classic PDF\LaTeX. We load |
| 369 |
% the modern, well maintaned and inclusive implementation of |
| 370 |
% the Latin Modern family, i.e., the New Computer Modern |
| 371 |
% family (\url{ctan.org/pkg/newcm}). For using/testing the |
| 372 |
% class, please use the latest \TeX\ Live (all packages |
| 373 |
% updated, as of 2024-09-27). Both \hologo{XeLaTeX} and |
| 374 |
% Lua\LaTeX\ supported, but the latter is recommended as it |
| 375 |
% identifies scripts without markup. |
| 376 |
% |
| 377 |
% \section{Documentation} |
| 378 |
% \label{doc} |
| 379 |
% |
| 380 |
% This part of the document describes everything that a |
| 381 |
% normal user of this class should know. It enlists all the |
| 382 |
% features of the class. |
| 383 |
% |
| 384 |
% \subsection{User manual} |
| 385 |
% |
| 386 |
% Since this is a class that typesets dissertations, it |
| 387 |
% requires some basic information which is provided using |
| 388 |
% the following macros. |
| 389 |
% |
| 390 |
% We provide the usual \LaTeX-like macros for the |
| 391 |
% convenience, but these macros have |
| 392 |
% \emph{key-value}-equivalents as well. |
| 393 |
% |
| 394 |
% \begin{function}{\title,\author,\pronouns} |
| 395 |
% \begin{syntax} |
| 396 |
% \cs{title}\marg{the-title-of-the-dissertation}^^A |
| 397 |
% \ignorespaces\hfill^^A |
| 398 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 399 |
% \cs{author}\marg{name-of-the-author}^^A |
| 400 |
% \ignorespaces\hfill^^A |
| 401 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 402 |
% \cs{pronouns}\marg{the-pronouns-of-the-author} |
| 403 |
% \end{syntax} |
| 404 |
% Like in most standard \LaTeX\ classes, |\title| |
| 405 |
% command saves the title of the dissertation from its |
| 406 |
% argument. This is one of the commands which we mark as |
| 407 |
% \emph{strict}. In the manual, all such commands are |
| 408 |
% marked with a |
| 409 |
% {\footnotesize\faIcon{exclamation-triangle}} symbol at |
| 410 |
% the right end. If such commands (or their parametric |
| 411 |
% equivalents as shown in the following paragraph) are not |
| 412 |
% provided, the compilation is interrupted with an error. |
| 413 |
% The |\author| command doesn't return any error if the |
| 414 |
% class option |blind| is loaded. Since the |blind| option |
| 415 |
% is used for anonymous submissions, the author |
| 416 |
% information is irrelevant anyways and hence, is ignored. |
| 417 |
% |
| 418 |
% These macros are available as class options too. One |
| 419 |
% just has to use |title=|\marg{title} in the optional |
| 420 |
% argument of the |\documentclass| command. Similarly, |
| 421 |
% |author| and |pronouns| also are available. |
| 422 |
% \end{function} |
| 423 |
% |
| 424 |
% \begin{function}{\subtitle,\shorttitle} |
| 425 |
% \begin{syntax} |
| 426 |
% \cs{subtitle}\marg{the-subtitle-of-the-dissertation} |
| 427 |
% \cs{shorttitle}\marg{a-short-title-for-headers} |
| 428 |
% \end{syntax} |
| 429 |
% Dissertations often have a subtitle too, but it is not |
| 430 |
% an absolute requirement, so optionally, one may want to |
| 431 |
% use |\subtitle| command. Sometimes the title and the |
| 432 |
% subtitle are too long for the running header. One may |
| 433 |
% provide a short title with |\shorttitle| for this |
| 434 |
% purpose. Depending on the selected template and options, |
| 435 |
% it will be printed. |
| 436 |
% |
| 437 |
% These commands are also available as class options |
| 438 |
% |subtitle| and |shorttitle|. |
| 439 |
% \end{function} |
| 440 |
% |
| 441 |
% \begin{function}{\stream,\discipline,\degree} |
| 442 |
% \begin{syntax} |
| 443 |
% \cs{stream}\marg{the-name-of-the-stream}^^A |
| 444 |
% \ignorespaces\hfill^^A |
| 445 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 446 |
% \cs{discipline}\marg{the-name-of-the-discipline}^^A |
| 447 |
% \ignorespaces\hfill^^A |
| 448 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 449 |
% \cs{degree}\marg{the-name-of-the-degree}^^A |
| 450 |
% \ignorespaces\hfill^^A |
| 451 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 452 |
% \end{syntax} |
| 453 |
% These details are used at several places in the class. |
| 454 |
% E.g., the declaration, the \enquote{fulfilment} |
| 455 |
% statement printed on the first page. Like most other |
| 456 |
% macros, these too have straight forward |
| 457 |
% \emph{key-value}-equivalents |stream|, |discipline| and |
| 458 |
% |degree|. |
| 459 |
% \end{function} |
| 460 |
% |
| 461 |
% \begin{function}{\supervisor,\university,\department} |
| 462 |
% \begin{syntax} |
| 463 |
% \cs{supervisor}\marg{name-of-the-supervisor}^^A |
| 464 |
% \ignorespaces\hfill^^A |
| 465 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 466 |
% \cs{university}\marg{name-of-the-university}^^A |
| 467 |
% \ignorespaces\hfill^^A |
| 468 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 469 |
% \cs{department}\marg{name-of-the-department}^^A |
| 470 |
% \ignorespaces\hfill^^A |
| 471 |
% {\footnotesize\faIcon{exclamation-triangle}} |
| 472 |
% \end{syntax} |
| 473 |
% These commands are not seen in other standard |
| 474 |
% \LaTeX-classes, but \cls{udiss} requires them |
| 475 |
% obligatorily (only except in the |blind| mode). |
| 476 |
% |
| 477 |
% |supervisor|, |university| and |department| are the |
| 478 |
% \emph{key-value}-equivalents. |
| 479 |
% \end{function} |
| 480 |
% |
| 481 |
% \begin{function}{\logo,\logo*} |
| 482 |
% \begin{syntax} |
| 483 |
% \cs{logo}\marg{file-name} |
| 484 |
% \cs{logo*}\marg{\TeX-code} |
| 485 |
% \end{syntax} |
| 486 |
% Some departments mandate printing the university logos |
| 487 |
% in the dissertation. If this command is used, the logo |
| 488 |
% is printed. The location of the logo can be customised |
| 489 |
% as per the requirement. The class provides options for |
| 490 |
% that. |
| 491 |
% |
| 492 |
% If you are mad about \TeX\ and have a code for printing |
| 493 |
% the logo of your institute, use this command with a star |
| 494 |
% and in its argument, paste your code to get it printed |
| 495 |
% at an appropriate place. |
| 496 |
% |
| 497 |
% We have |logo| and |logo*| as the |
| 498 |
% \emph{key-value}-equivalents. |
| 499 |
% \end{function} |
| 500 |
% |
| 501 |
% \begin{function}{language,ldfbabel,nofontwarning} |
| 502 |
% \begin{syntax} |
| 503 |
% |language|=\marg{babel-language-names} |
| 504 |
% |ldfbabel|=\marg{babel-ldf-language-names} |
| 505 |
% |nofontwarning|=\marg{truth-value}\udissfval |
| 506 |
% \end{syntax} |
| 507 |
% The \pkg{babel} package has a complex mechanism for |
| 508 |
% loading languages. The complex design has its own |
| 509 |
% advantages, especially with regards to backwards |
| 510 |
% compatibility. For detailed explanation, it's best to go |
| 511 |
% through the user manual of \pkg{babel}, or its official |
| 512 |
% online documentation, especially the web-page at: |
| 513 |
% \url{\babelurl}. |
| 514 |
% |
| 515 |
% To help those who are completely at sea, we briefly will |
| 516 |
% have a look at the two mechanisms \pkg{babel} provides. |
| 517 |
% One is the original method of loading the |
| 518 |
% language-name(s) as class option(s), so something like: |
| 519 |
% |
| 520 |
% \begin{verbatim} |
| 521 |
% \usepackage[italian,hindi,english]{babel} |
| 522 |
% \end{verbatim} |
| 523 |
% |
| 524 |
% The last one from the list is understood as the |
| 525 |
% \enquote{main} language of the document. These languages |
| 526 |
% are defined using the so-called |.ldf|-files. A lot of |
| 527 |
% support for some languages is available using this |
| 528 |
% mechanism. For some European languages, e.g., French, |
| 529 |
% the difference between the two mechanisms is too sharp |
| 530 |
% and it has been found that a lot of native speakers |
| 531 |
% still prefer the old, stable way of using |.ldf|-files. |
| 532 |
% If you are one of them and you are used to loading |
| 533 |
% language-names as options to package \pkg{babel}, you |
| 534 |
% should use the |ldfbabel| option of \cls{udiss}. But we |
| 535 |
% advise against it. |
| 536 |
% |
| 537 |
% The second approach provided by \pkg{babel} for loading |
| 538 |
% languages is as follows: |
| 539 |
% |
| 540 |
% \bigskip |
| 541 |
% |\babelprovide|\marg{language-name} |
| 542 |
% \bigskip |
| 543 |
% |
| 544 |
% This method follows and uses the Unicode Common Locale |
| 545 |
% Data Repository (CLDR) for creating the resources. This |
| 546 |
% data is saved in |.ini| files. This is a more modern |
| 547 |
% approach, in our opinion. But it may cost us a little |
| 548 |
% bit of inconvenience since it doesn't support the common |
| 549 |
% short-hands which are provided by the |.ldf| files. But |
| 550 |
% short-hands make the input more and more \TeX-dependent |
| 551 |
% and thus less productive, so we don't endorse it. That |
| 552 |
% is why the more intuitive name for language-options in |
| 553 |
% this class is for the |.ini|-based approach. We load the |
| 554 |
% |english| language by default if no other is loaded. For |
| 555 |
% this too, we go with the |.ini| file developed for |
| 556 |
% English. |
| 557 |
% |
| 558 |
% The syntax of both these options is exactly like the one |
| 559 |
% provided by \pkg{babel}. One may provide a |
| 560 |
% comma-separated list and the last one of them will be |
| 561 |
% set as the main language of the document. Have a look at |
| 562 |
% \cref{dev} for more details regarding this. |
| 563 |
% |
| 564 |
% We also provide some auxiliary \TeX\ files with the |
| 565 |
% class for setting the font-families as well as the |
| 566 |
% language-specifics as required by \pkg{babel}. If a file |
| 567 |
% like that it is not found, we issue a warning. If the |
| 568 |
% users want that warning to be silent, they can use the |
| 569 |
% option |nofontwarning|. |
| 570 |
% \end{function} |
| 571 |
% |
| 572 |
% \begin{function}{license,copyright-yrs,localcopyright} |
| 573 |
% \begin{syntax} |
| 574 |
% |license|=\marg{all-rights-reserved/CC-BY-SA/GFDL}^^A |
| 575 |
% \udissarr |
| 576 |
% |copyright-yrs|=\marg{copyrightable-years}\hfill^^A |
| 577 |
% {\color{udisslink}|\the\year|} |
| 578 |
% |localcopyright|=\marg{the-word-for-copyright}^^A |
| 579 |
% \hfill{\color{udisslink}|Copyright|} |
| 580 |
% \end{syntax} |
| 581 |
% This is an option to set a license for the dissertation. |
| 582 |
% We encourage users to use free culture licenses. |
| 583 |
% Currently we support two popular licenses, i.e., |
| 584 |
% \enquote{CC-BY-SA 4.0+ International} and \enquote{GFDL |
| 585 |
% v1.3+}. We don't set any license by default as we |
| 586 |
% believe making a work \enquote{free} (as in freedom) |
| 587 |
% should be the decision of the author and hence |
| 588 |
% \enquote{all rights are reserved} by default. If you are |
| 589 |
% not using the |blind| package option, your output will |
| 590 |
% have a copyright notice with your (author's) name and |
| 591 |
% the current year as the copyrightable year in the |
| 592 |
% metadata of the PDF. If you are wondering why, the |
| 593 |
% |blind| option is for preserving the anonymity of the |
| 594 |
% author and the copyright-notices require a |
| 595 |
% copyright-holder by default, thus with |blind| option, |
| 596 |
% we have disabled choosing licenses. If you want to |
| 597 |
% change the copyrightable year(s), you may use the option |
| 598 |
% |copyright-yrs|. Since the package is supposed to |
| 599 |
% support multilingual typesetting, we have provided an |
| 600 |
% option to change the word \enquote{Copyright} to the one |
| 601 |
% in the main language of your document. |
| 602 |
% \end{function} |
| 603 |
% |
| 604 |
% \begin{function}{placeholders} |
| 605 |
% \begin{syntax} |
| 606 |
% |placeholders| |
| 607 |
% \end{syntax} |
| 608 |
% If you want to see how the things so far discussed come |
| 609 |
% together, you may just load this option. It places |
| 610 |
% placeholders for all the options discussed for creating |
| 611 |
% a sample document. |
| 612 |
% \end{function} |
| 613 |
% |
| 614 |
% \begin{function}{^^A |
| 615 |
% lot,lof,declaration,declarationtxt,decllocal^^A |
| 616 |
% } |
| 617 |
% \begin{syntax} |
| 618 |
% |lot|=\marg{truth-value}\udissfval |
| 619 |
% |lof|=\marg{truth-value}\udissfval |
| 620 |
% |declaration|=\marg{truth-value}\udissfval |
| 621 |
% \end{syntax} |
| 622 |
% By default, the class only prints the table of contents. |
| 623 |
% If the author requires the list of figures (|lof|) or |
| 624 |
% tables (|lot|), they may use the respective option. |
| 625 |
% These are boolean keys which take either |true| or |
| 626 |
% |false| as their values. Not passing any truth-value to |
| 627 |
% a |key| is equivalent to using |key=true|. Similarly, |
| 628 |
% many universities require a declaration from the |
| 629 |
% candidate regarding the originality of the work. We have |
| 630 |
% provided a sample draft of the declaration in a |
| 631 |
% renewable macro, but it is not enabled by default. After |
| 632 |
% getting comments from the community, we will decide what |
| 633 |
% should be done with it. Note that the default value for |
| 634 |
% all these keys is |false|\footnote{^^A |
| 635 |
% Throughout the documentation, at the right corner, we |
| 636 |
% enlist the possible values to a key and the default |
| 637 |
% one is marked in red.^^A |
| 638 |
% }. Declaration text can be edited using |declarationtxt| |
| 639 |
% option. The local word for declaration is stored in |
| 640 |
% |decllocal| (defaulting to \enquote{Declaration}). |
| 641 |
% \end{function} |
| 642 |
% |
| 643 |
% \begin{function}{blind} |
| 644 |
% \begin{syntax} |
| 645 |
% |blind|=\marg{truth-value}\udissfval |
| 646 |
% \end{syntax} |
| 647 |
% At times, anonymous submissions are required where the |
| 648 |
% name of the author and supervisor is hidden. |
| 649 |
% \end{function} |
| 650 |
% |
| 651 |
% \begin{function}{framed-title} |
| 652 |
% \begin{syntax} |
| 653 |
% |framed-title|=\marg{truth-value}\udissfval |
| 654 |
% \end{syntax} |
| 655 |
% By default the title-page is very minimal. If a user |
| 656 |
% wants to have a frame around the title-page, they may |
| 657 |
% use this option. |
| 658 |
% \end{function} |
| 659 |
% |
| 660 |
% \begin{function}{^^A |
| 661 |
% print,norefcolors,colorprint,udisslinkclr,^^A |
| 662 |
% udissurlclr,udissciteclr^^A |
| 663 |
% } |
| 664 |
% \begin{syntax} |
| 665 |
% |print|=\marg{truth-value}\udissfval |
| 666 |
% |norefcolors|=\marg{truth-value}\udissfval |
| 667 |
% |udisslinkclr|=\marg{link-colour}\udisscolorred |
| 668 |
% |udissurlclr|=\marg{url-colour}\udisscolorblue |
| 669 |
% |udissciteclr|=\marg{cite-colour}\udisscolorgreen |
| 670 |
% \end{syntax} |
| 671 |
% Many departments require the submissions to be made in |
| 672 |
% the print form as well. For that, |print| is a boolean |
| 673 |
% option. It creates outputs suitable for the print |
| 674 |
% submissions. The class, by default, does not use |print| |
| 675 |
% option. The default output of the class is suitable for |
| 676 |
% digital submissions. The following settings are always |
| 677 |
% turned on by the class in normal circumstances: |
| 678 |
% |
| 679 |
% \begin{itemize} |
| 680 |
% \item The \pkg{hyperref} package is loaded. |
| 681 |
% \item The \pkg{xcolor} package is loaded. Some colours |
| 682 |
% for the internal cross-references are pre-selected. |
| 683 |
% \end{itemize} |
| 684 |
% |
| 685 |
% If you don't want colours for the hyperlinks in your |
| 686 |
% digital document, you may use the |norefcolors| |
| 687 |
% option. If you don't like the pre-defined colour-scheme |
| 688 |
% given by us for the digital documents, you may use the |
| 689 |
% class options specifically developed for changing them. |
| 690 |
% They are |udisslinkclr|, |udissurlclr| and |
| 691 |
% |udissciteclr|. The arguments of these options are |
| 692 |
% either the pre-defined colours by package |xcolor| or |
| 693 |
% user-defined colours with the |\colorlet| or |
| 694 |
% |\definecolor| commands. The default colour-scheme |
| 695 |
% used by us is as seen in the macro explanation above. |
| 696 |
% |
| 697 |
% More importantly though, if a PDF with colours is given |
| 698 |
% for printing and the printer is using the black and |
| 699 |
% white mode, then the coloured words look faded in the |
| 700 |
% print out. To avoid this, we load the \pkg{xcolor} |
| 701 |
% package only when the |print| option is \emph{not} |
| 702 |
% loaded (basically always, by default). For performance |
| 703 |
% reasons, we don't load the |hyperref| package when |
| 704 |
% |print| is loaded. Hyper-references make sense only in a |
| 705 |
% digital PDF, so to optimise PDF compilation, in |print| |
| 706 |
% mode, we don't load |hyperref|. |
| 707 |
% \end{function} |
| 708 |
% |
| 709 |
% Note that if you are using the |license| option with |
| 710 |
% |CC-BY-SA|, the \pkg{doclicense} package |\Require|d for |
| 711 |
% printing the license automatically loads the |
| 712 |
% \pkg{hyperref} package. We don't have any control over it |
| 713 |
% and hence, you will see the hyperlink boxes around the |
| 714 |
% CC-text. You can safely ignore them as the text is still |
| 715 |
% in black colour and your objective is anyways just to |
| 716 |
% \emph{print} the output. |
| 717 |
% |
| 718 |
% \begin{function}{oldstylenumoff,oldone} |
| 719 |
% \begin{syntax} |
| 720 |
% |oldstylenumoff|=\marg{truth-value}\udissfval |
| 721 |
% |oldone|=\marg{truth-value}\udissfval |
| 722 |
% \end{syntax} |
| 723 |
% In text, the old style numbers look better. The numbers |
| 724 |
% in the current document are old style. Lining numbers, |
| 725 |
% on the other hand, don't have ascenders and descenders. |
| 726 |
% |
| 727 |
% If you prefer the lining numbers, you may turn this |
| 728 |
% option on and all the fonts will start showing lining |
| 729 |
% numbers. Note that printing of old style numbers also |
| 730 |
% depends upon whether the font has old style numbers or |
| 731 |
% not. The relevant settings are added to the font |
| 732 |
% automatically, but while selecting the font, first make |
| 733 |
% sure whether the old style table is present or not. |
| 734 |
% |
| 735 |
% Apart from that, the New Computer Modern font family |
| 736 |
% provides an old-style shape for the number 1 (this exact |
| 737 |
% shape!), but this shape is provided as a character |
| 738 |
% variant and character variants cannot be loaded |
| 739 |
% globally, since various fonts may have various variants |
| 740 |
% at that slot, hence if someone wants this shape, they |
| 741 |
% will have to use the |oldone| option. Without this |
| 742 |
% option the number looks like as seen on the first line |
| 743 |
% and that's the default style of \cls{udiss}. |
| 744 |
% |
| 745 |
% \begin{quote} |
| 746 |
% {\newcmnewone 0123456789}\hfill |
| 747 |
% \begingroup |
| 748 |
% \ttfamily\footnotesize\color{udisslink}^^A |
| 749 |
% Old style with default 1^^A |
| 750 |
% \endgroup |
| 751 |
% |
| 752 |
% 0123456789\hfill |
| 753 |
% \texttt{\footnotesize Old style with the old 1}^^A |
| 754 |
% |
| 755 |
% {\newcmnewnum 0123456789}\hfill |
| 756 |
% \texttt{\footnotesize Lining}^^A |
| 757 |
% \end{quote} |
| 758 |
% \end{function} |
| 759 |
% |
| 760 |
% \begin{function}{fulfilment} |
| 761 |
% \begin{syntax} |
| 762 |
% |fulfilment|=\ignorespaces^^A |
| 763 |
% \marg{the-titlepage-sentence-about-course-requirement} |
| 764 |
% \end{syntax} |
| 765 |
% The title-page prints a sentence which says: |
| 766 |
% |
| 767 |
% \begin{quote} |
| 768 |
% A dissertation submitted in the partial fulfilment of |
| 769 |
% the requirements for the |\udiss@degree|\ program |
| 770 |
% in |\udiss@discipline|. |
| 771 |
% \end{quote} |
| 772 |
% |
| 773 |
% In order to change it, one may use this package option. |
| 774 |
% If you want to use the internal macros for univesity |
| 775 |
% and department names, don't forget to use |
| 776 |
% |\makeatletter| and |\makeatother|. |
| 777 |
% \end{function} |
| 778 |
% |
| 779 |
% As described in the introduction (\cref{int}), the users |
| 780 |
% can choose to load the generic style or a specialised |
| 781 |
% style. For that, we have the following macro: |
| 782 |
% |
| 783 |
% \begin{function}{\dissertationstyle} |
| 784 |
% \begin{syntax} |
| 785 |
% \cs{dissertationstyle}\marg{style-for-dissertation} |
| 786 |
% \end{syntax} |
| 787 |
% With this command, you may select the institute or the |
| 788 |
% style. It will set certain defaults. |
| 789 |
% |
| 790 |
% We provide limited support as of v0.1 (only for |
| 791 |
% university of Kerala). We wish to expand more. Send us |
| 792 |
% support requests for adding your institute to the list. |
| 793 |
% \end{function} |
| 794 |
% |
| 795 |
% \subsection{Multilingual typesetting} |
| 796 |
% |
| 797 |
% The \cls{udiss} class aims at supporting multilingual |
| 798 |
% typesetting by default. We load the \pkg{babel} package |
| 799 |
% for linguistic support, \pkg{fontspec} and |
| 800 |
% \pkg{unicode-math} package for loading fonts. It's the |
| 801 |
% best to not load them again. For loading languages, it's |
| 802 |
% best to use the package internal mechanism. If you find |
| 803 |
% something missing in the mechanism, you may load |
| 804 |
% \pkg{babel} or \pkg{fontspec} commands directly. Please |
| 805 |
% consider reporting a missing feature so that we can |
| 806 |
% implement it in the future versions. |
| 807 |
% |
| 808 |
% We will see two examples of loading languages. |
| 809 |
% |
| 810 |
% \subsection[Developer's manual]{^^A |
| 811 |
% Developer's manual\marginpar{\hfill\dbend}\\[0.5ex]^^A |
| 812 |
% \small\normalfont\itshape |
| 813 |
% \quad Only if you sure about what you are doing^^A |
| 814 |
% } |
| 815 |
% \label{dev} |
| 816 |
% |
| 817 |
% As the section title and the double bend suggests, this |
| 818 |
% area is for advanced customisation. Only enter it if you |
| 819 |
% have sufficient confidence to avoid errors. |
| 820 |
% |
| 821 |
% |
| 822 |
% \subsubsection{Fonts} |
| 823 |
% |
| 824 |
% We are a Unicode-only class, so we need to take care of |
| 825 |
% three major font families, i.e., Roman, |
| 826 |
% \texttt{Typewriter} and \textsf{Sans} (stylisation |
| 827 |
% intentional, for demonstration). The \pkg{fontspec} |
| 828 |
% package takes care of Unicode fonts in \LaTeX, but we, |
| 829 |
% additionally, load package \pkg{unicode-math} too, to set |
| 830 |
% math-fonts. Even though, this much is practically enough |
| 831 |
% for font-selection, we go with the \pkg{babel}'s mechanism |
| 832 |
% of loading language-specific fonts, so that the fonts |
| 833 |
% don't apply globally. Our class already takes care of most |
| 834 |
% of the requirements regarding font, but if you want to |
| 835 |
% tinker with the defaults, you are advised to read this |
| 836 |
% section. The following parameters are for you. |
| 837 |
% |
| 838 |
% \begin{function}{explicitext,ignorefsoff} |
| 839 |
% \begin{syntax} |
| 840 |
% |explicitext|=\marg{truth-value}\udissfval |
| 841 |
% |ignorefsoff|=\marg{truth-value}\udisstval |
| 842 |
% \end{syntax} |
| 843 |
% Without this option, one cannot use the |Extension| |
| 844 |
% parameter of package \pkg{fontspec}/\pkg{unicode-math}. |
| 845 |
% We have some options later which set the extension for |
| 846 |
% |rm|, |sf| and |tt| families. They are also useless if |
| 847 |
% this key is not used. A word of caution: loading |
| 848 |
% explicit extensions for fonts is restrictive. Suppose |
| 849 |
% you want to use KpRoman-Regular as your normal font, |
| 850 |
% but, say, FreeSerifBold as your bold font (please don't, |
| 851 |
% this is solely for exemplification :P), loading an |
| 852 |
% explicit extension will cause errors as the former is an |
| 853 |
% OpenType font and the latter is a TrueType one. So if |
| 854 |
% you are 200\% sure that all the fonts you need use one |
| 855 |
% particular extension \emph{only}, then use this option. |
| 856 |
% Otherwise, you are better off without it. |
| 857 |
% |
| 858 |
% The \TeX-tree contains many files having the |
| 859 |
% |.fontspec| extension. These files contain predefined |
| 860 |
% settings for fonts which the users may not always want. |
| 861 |
% Thus, we ignore these files by default. If you are very |
| 862 |
% sure that you want to load |.fontspec| files, you may |
| 863 |
% turn our conditional off and the |.fontspec|-files, will |
| 864 |
% be loaded correctly. |
| 865 |
% \end{function} |
| 866 |
% |
| 867 |
% \begin{function}{^^A |
| 868 |
% rmfeatures,sffeatures,ttfeatures,mathfeatures^^A |
| 869 |
% } |
| 870 |
% \begin{syntax} |
| 871 |
% |rmfeatures|=\marg{font-features-for-serif-fonts} |
| 872 |
% |sffeatures|=\marg{font-features-for-sans-fonts} |
| 873 |
% |ttfeatures|=\marg{font-features-for-mono-fonts} |
| 874 |
% |mathfeatures|=\marg{font-features-for-math-fonts} |
| 875 |
% \end{syntax} |
| 876 |
% We have |udiss|-options for most commonly used optional |
| 877 |
% parameters of fonts, still there are a lot of them |
| 878 |
% available which we didn't consider important for the |
| 879 |
% purpose of this class, e.g., |Scale|, |Color|. If you |
| 880 |
% want to use these features with your fonts, you may use |
| 881 |
% these four options as per your need. The value of this |
| 882 |
% key is directly injected in the font-loading commands. |
| 883 |
% \end{function} |
| 884 |
% |
| 885 |
% \begin{function}{rmfntext,sffntext,ttfntext,mathfntext} |
| 886 |
% \begin{syntax} |
| 887 |
% |rmfntext|=\ignorespaces^^A |
| 888 |
% \marg{font-extension-for-serif-fonts}\ignorespaces^^A |
| 889 |
% \hfill\texttt{ttf\,\textbar\,otf} |
| 890 |
% |sffntext|=\ignorespaces^^A |
| 891 |
% \marg{font-extension-for-sans-fonts}\ignorespaces^^A |
| 892 |
% \hfill\texttt{ttf\,\textbar\,otf} |
| 893 |
% |ttfntext|=\ignorespaces^^A |
| 894 |
% \marg{font-extension-for-mono-fonts}\ignorespaces^^A |
| 895 |
% \hfill\texttt{ttf\,\textbar\,otf} |
| 896 |
% |mathfntext|=\ignorespaces^^A |
| 897 |
% \marg{font-extension-for-math-fonts}\ignorespaces^^A |
| 898 |
% \hfill\texttt{ttf\,\textbar\,otf} |
| 899 |
% \end{syntax} |
| 900 |
% With these four options, one may choose either |
| 901 |
% |ttf| or |otf| extension for a particular font family. |
| 902 |
% As mentioned before, it applies to all the fonts loaded |
| 903 |
% in that family. Note that these options are only used |
| 904 |
% when the |explicitext| option is active. This is why |
| 905 |
% there is no default value set. By default this explicit |
| 906 |
% extension method itself is not used. |
| 907 |
% \end{function} |
| 908 |
% |
| 909 |
% If you want to know the default fonts we load always with |
| 910 |
% \cls{udiss}, you may refer to \cref{udissenfonts}. |
| 911 |
% |
| 912 |
% \begin{table} |
| 913 |
% \centering |
| 914 |
% \small |
| 915 |
% \begin{tabular}{llll} |
| 916 |
% \toprule |
| 917 |
% \textfunction{rmfont} & |
| 918 |
% \textfunction{sffont} & |
| 919 |
% \textfunction{ttfont} \\ |
| 920 |
% NewCM10-Book & |
| 921 |
% NewCMSans10-Book & |
| 922 |
% NewCMMono10-Book \\ |
| 923 |
% \specialrule{0pt}{\aboverulesep}{\aboverulesep} |
| 924 |
% \textfunction{rmbffont} & |
| 925 |
% \textfunction{sfbffont} & |
| 926 |
% \textfunction{ttbffont} \\ |
| 927 |
% NewCM10-Bold & |
| 928 |
% NewCMSans10-Bold & |
| 929 |
% NewCMMono10-Bold \\ |
| 930 |
% \specialrule{0pt}{\aboverulesep}{\aboverulesep} |
| 931 |
% \textfunction{rmitfont} & |
| 932 |
% \textfunction{sfitfont} & |
| 933 |
% \textfunction{ttitfont} \\ |
| 934 |
% NewCM10-BookItalic & |
| 935 |
% NewCMSans10-BookItalic & |
| 936 |
% NewCMMono10-BookItalic \\ |
| 937 |
% \specialrule{0pt}{\aboverulesep}{\aboverulesep} |
| 938 |
% \textfunction{rmbfitfont} & |
| 939 |
% \textfunction{sfbfitfont} & |
| 940 |
% \textfunction{ttbfitfont} \\ |
| 941 |
% NewCM10-BoldItalic & |
| 942 |
% NewCMSans10-BoldOblique & |
| 943 |
% NewCMMono10-BoldOblique \\ |
| 944 |
% \specialrule{0pt}{\aboverulesep}{\aboverulesep} |
| 945 |
% \textfunction{rmslfont} & |
| 946 |
% \textfunction{sfslfont} & |
| 947 |
% \textfunction{ttslfont} \\ |
| 948 |
% NewCM10-Book & |
| 949 |
% NewCMSans10-BookOblique & |
| 950 |
% NewCMMono10-Book \\ |
| 951 |
% \specialrule{0pt}{\aboverulesep}{\aboverulesep} |
| 952 |
% \textfunction{rmbfslfont} & |
| 953 |
% \textfunction{sfbfslfont} & |
| 954 |
% \textfunction{ttbfslfont} \\ |
| 955 |
% NewCM10-Bold & |
| 956 |
% NewCMSans10-BoldOblique & |
| 957 |
% NewCMMono10-BoldOblique \\ |
| 958 |
% \midrule |
| 959 |
% \textfunction{mathfont} & & \\ |
| 960 |
% NewCMMath-Book & & \\ |
| 961 |
% \specialrule{0pt}{\aboverulesep}{\aboverulesep} |
| 962 |
% \textfunction{mathbffont} & & \\ |
| 963 |
% NewCMMath-Bold & & \\ |
| 964 |
% \bottomrule |
| 965 |
% \end{tabular} |
| 966 |
% \caption{Default fonts for English language (all otfs)} |
| 967 |
% \label{udissenfonts} |
| 968 |
% \end{table} |
| 969 |
% |
| 970 |
% \subsubsection{Title-page customisation} |
| 971 |
% |
| 972 |
% The title-page prints several fields and very often |
| 973 |
% authors are very picky about it. Most of the things we |
| 974 |
% offer in it are customisable. One may change the following |
| 975 |
% things for all the major fields on the title-page. |
| 976 |
% |
| 977 |
% \begin{enumerate} |
| 978 |
% \item The font |
| 979 |
% \item The font-size |
| 980 |
% \item The font-color |
| 981 |
% \item The font-shape (e.g., |\itshape|, |\scshape| etc.) |
| 982 |
% \item Additional features to the font loaded |
| 983 |
% \end{enumerate} |
| 984 |
% |
| 985 |
% All the parameters (along with their default values) are |
| 986 |
% listed in \cref{titlepagetbl}. The table uses \enquote{-} |
| 987 |
% when there is no change in the default, only the fields |
| 988 |
% having a special value are marked. |
| 989 |
% |
| 990 |
% \begin{table} |
| 991 |
% \small |
| 992 |
% \centering |
| 993 |
% \begin{tabular}{>{\itshape\normalsize}llllll} |
| 994 |
% \toprule |
| 995 |
% Title & |
| 996 |
% - & |
| 997 |
% |\bfseries| & |
| 998 |
% huge & |
| 999 |
% black & |
| 1000 |
% -\\ |
| 1001 |
% & \scriptsize\textfunction{titlefont} & |
| 1002 |
% \scriptsize\textfunction{titleshape} & |
| 1003 |
% \scriptsize\textfunction{titlesize} & |
| 1004 |
% \scriptsize\textfunction{titlecolor} & |
| 1005 |
% \scriptsize\textfunction{titleffeat}\\ |
| 1006 |
% \cmidrule{2-6} |
| 1007 |
% Subtitle & |
| 1008 |
% - & |
| 1009 |
% |\normalfont| & |
| 1010 |
% large & |
| 1011 |
% black & |
| 1012 |
% -\\ |
| 1013 |
% & \scriptsize\textfunction{subtitlefont} & |
| 1014 |
% \scriptsize\textfunction{subtitleshape} & |
| 1015 |
% \scriptsize\textfunction{subtitlesize} & |
| 1016 |
% \scriptsize\textfunction{subtitlecolor} & |
| 1017 |
% \scriptsize\textfunction{subtitleffeat}\\ |
| 1018 |
% \cmidrule{2-6} |
| 1019 |
% Author & |
| 1020 |
% - & |
| 1021 |
% |\normalfont| & |
| 1022 |
% large & |
| 1023 |
% black & |
| 1024 |
% -\\ |
| 1025 |
% & \scriptsize\textfunction{authorfont} & |
| 1026 |
% \scriptsize\textfunction{authorshape} & |
| 1027 |
% \scriptsize\textfunction{authorsize} & |
| 1028 |
% \scriptsize\textfunction{authorcolor} & |
| 1029 |
% \scriptsize\textfunction{authorffeat}\\ |
| 1030 |
% \cmidrule{2-6} |
| 1031 |
% University & |
| 1032 |
% - & |
| 1033 |
% |\normalfont| & |
| 1034 |
% |\normalsize| & |
| 1035 |
% black & |
| 1036 |
% -\\ |
| 1037 |
% & \scriptsize\textfunction{unifont} & |
| 1038 |
% \scriptsize\textfunction{unishape} & |
| 1039 |
% \scriptsize\textfunction{unisize} & |
| 1040 |
% \scriptsize\textfunction{unicolor} & |
| 1041 |
% \scriptsize\textfunction{uniffeat}\\ |
| 1042 |
% \cmidrule{2-6} |
| 1043 |
% Department & |
| 1044 |
% - & |
| 1045 |
% |\normalfont| & |
| 1046 |
% |small| & |
| 1047 |
% black & |
| 1048 |
% -\\ |
| 1049 |
% & \scriptsize\textfunction{deptfont} & |
| 1050 |
% \scriptsize\textfunction{deptshape} & |
| 1051 |
% \scriptsize\textfunction{deptsize} & |
| 1052 |
% \scriptsize\textfunction{deptcolor} & |
| 1053 |
% \scriptsize\textfunction{deptffeat}\\ |
| 1054 |
% \cmidrule{2-6} |
| 1055 |
% Fulfilment & |
| 1056 |
% - & |
| 1057 |
% |\normalfont| & |
| 1058 |
% small & |
| 1059 |
% black & |
| 1060 |
% -\\ |
| 1061 |
% & \scriptsize\textfunction{fffont} & |
| 1062 |
% \scriptsize\textfunction{ffshape} & |
| 1063 |
% \scriptsize\textfunction{ffsize} & |
| 1064 |
% \scriptsize\textfunction{ffcolor} & |
| 1065 |
% \scriptsize\textfunction{fffeat}\\ |
| 1066 |
% \bottomrule |
| 1067 |
% \end{tabular} |
| 1068 |
% \caption{Customising title-page} |
| 1069 |
% \label{titlepagetbl} |
| 1070 |
% \end{table} |
| 1071 |
% |
| 1072 |
% \begin{function}{logowidth,logoheight} |
| 1073 |
% \begin{syntax} |
| 1074 |
% |logowidth|=\marg{logo-width-proportion}\hfill^^A |
| 1075 |
% \begingroup^^A |
| 1076 |
% \ttfamily\color{udisslink}^^A |
| 1077 |
% 0.3^^A |
| 1078 |
% \endgroup |
| 1079 |
% |logoheight|=\marg{logo-height-proportion}\hfill^^A |
| 1080 |
% \begingroup^^A |
| 1081 |
% \ttfamily\color{udisslink}^^A |
| 1082 |
% 0.075^^A |
| 1083 |
% \endgroup |
| 1084 |
% \end{syntax} |
| 1085 |
% By default the width of the logo is |
| 1086 |
% 0.3$\times$|\linewidth| and 0.075$\times$|\textheight|. |
| 1087 |
% If you want to change these default numbers, you may use |
| 1088 |
% these parameters. |
| 1089 |
% \end{function} |
| 1090 |
% \subsection[^^A |
| 1091 |
% Contributing to our repository^^A |
| 1092 |
% ]{^^A |
| 1093 |
% Contributing to the bundle^^A |
| 1094 |
% \marginpar{\hfill\ddbend}\\[0.5ex]^^A |
| 1095 |
% \small\normalfont\itshape |
| 1096 |
% \quad Only if you are ready to bear with us :P^^A |
| 1097 |
% } |
| 1098 |
% \label{con} |
| 1099 |
% |
| 1100 |
% We welcome contributions to our code. Our code is hosted |
| 1101 |
% at Puszcza, a free-software-based web-space. But for |
| 1102 |
% consistency, we request our supporters to write the code |
| 1103 |
% using 60 characters per line limit. Try to adhere to the |
| 1104 |
% coding conventions. If there is a slight violation here |
| 1105 |
% and there in your patches, please don't mind us editing |
| 1106 |
% your code first and then merging it in the main branch. |
| 1107 |
% |
| 1108 |
% We release our code with GPLv3+ and the documentation with |
| 1109 |
% GFDLv1.3+. Your patches also will have to comply with the |
| 1110 |
% conditions of these licenses. |
| 1111 |
% |
| 1112 |
% If you wish to document your patches, please avoid |
| 1113 |
% gendered language. Use \emph{they/them} pronouns when |
| 1114 |
% referring to users. |
| 1115 |
% |
| 1116 |
% Apart from university-styles, we also need support for |
| 1117 |
% language and fonts. If you know free/libre Unicode fonts |
| 1118 |
% for your language, please release them on CTAN or let us |
| 1119 |
% know about them, so that we will release using our |
| 1120 |
% templates. Provide appropriate translations for the fields |
| 1121 |
% provided in class. |
| 1122 |
% |
| 1123 |
% The class comes with a test-suit. You are advised to run |
| 1124 |
% |l3build check| command before pushing a patch. This way |
| 1125 |
% we can be sure that the patch doesn't break any of the |
| 1126 |
% already existing features. If you think something was |
| 1127 |
% buggy in the original design and you got a fix for that, |
| 1128 |
% kindly run |l3build save| on the concerned test file and |
| 1129 |
% push the changed |.lvt| and |.tlg|s also. |
| 1130 |
% |
| 1131 |
% \section{Requests for new templates} |
| 1132 |
% \label{req} |
| 1133 |
% |
| 1134 |
% We are open to your support-requests too. Just let us know |
| 1135 |
% the norms and conventions of your institution. Let us know |
| 1136 |
% which fields you would like to have pre-filled in the |
| 1137 |
% style file. If you require the logo to be printed on the |
| 1138 |
% title-page, send it to us in a decent resolution. We will |
| 1139 |
% include it in our bundle. |
| 1140 |
% \end{documentation} |
| 1141 |
% |
| 1142 |
% \begin{implementation} |
| 1143 |
% \section{Implementation} |
| 1144 |
% \label{imp} |
| 1145 |
% |
| 1146 |
% In this section, we explain how this program was |
| 1147 |
% developed. We discuss the tools used by us for developing |
| 1148 |
% the features offered in this class. The features can be |
| 1149 |
% seen in the left margin hyperlinked to their respective |
| 1150 |
% place in the documentation section \cref{doc}. |
| 1151 |
% |
| 1152 |
% We first declare the tag used by the |.ins| file for |
| 1153 |
% stripping the source-code of the generic class. We will |
| 1154 |
% have several tags for generating the other class-files, |
| 1155 |
% but for the convenience of maintenance, we will have all |
| 1156 |
% the code in this central |.dtx| file. |
| 1157 |
% |
| 1158 |
% \begin{macrocode} |
| 1159 |
%<*class> |
| 1160 |
% \end{macrocode} |
| 1161 |
% |
| 1162 |
% First we declare the class with some elementary |
| 1163 |
% information. |
| 1164 |
% |
| 1165 |
% \begin{macrocode} |
| 1166 |
\ProvidesClass{udiss}[2024/10/01 v0.1 |
| 1167 |
A LaTeX bundle for typesetting dissertations (TUGIndia)] |
| 1168 |
% \end{macrocode} |
| 1169 |
% |
| 1170 |
% We develop the options for the class using |
| 1171 |
% |\ekvdefinekeys| command. This command is provided by the |
| 1172 |
% \expkvlogo{def} package, whereas for creating |
| 1173 |
% class/package options, we use the \expkvlogo{opt} |
| 1174 |
% package. For performance reasons, we don't use the entire |
| 1175 |
% \expkvlogo{bundle}. |
| 1176 |
% |
| 1177 |
% \begin{macrocode} |
| 1178 |
\RequirePackage{expkv-def,expkv-opt} |
| 1179 |
% \end{macrocode} |
| 1180 |
% |
| 1181 |
% \begin{macro}{\pronouns,pronouns} |
| 1182 |
% Mostly we have implemented the macros in the same order |
| 1183 |
% as they are documented, but the exception is of the |
| 1184 |
% first two, i.e., |\title| and |\author|. These commands |
| 1185 |
% are developed by the standard classes too and hence, |
| 1186 |
% after loading the class (\cls{memoir} in our case) their |
| 1187 |
% definitions are rewritten. Thus these two macros are |
| 1188 |
% developed a little late in the code. Rest is still in |
| 1189 |
% line with the documentation. The method of saving the |
| 1190 |
% values of the macros is an indirect one. We use internal |
| 1191 |
% macros (e.g., |\udiss@title|) for saving them. |
| 1192 |
% |
| 1193 |
% We start with the |pronouns| field. Since it is |
| 1194 |
% optional, we don't need any errors here. At each step, |
| 1195 |
% we set some if-conditionals. All of them follow the |
| 1196 |
% standard convention of prefixing the class/package name |
| 1197 |
% and the |@| symbol for internalising. Have a look at the |
| 1198 |
% following two conditionals which we use immediately |
| 1199 |
% while defining the |pronouns| field: |
| 1200 |
% |
| 1201 |
% \begin{macrocode} |
| 1202 |
\newif\ifudiss@pronouns |
| 1203 |
\newif\ifudiss@blind |
| 1204 |
% \end{macrocode} |
| 1205 |
% |
| 1206 |
% We use the \pkg{xparse}-syntax for developing user-side |
| 1207 |
% macros. First we check if the class option |blind| is |
| 1208 |
% loaded. If it is so, there is no point in saving |
| 1209 |
% |pronouns|, hence it is skipped. The following code does |
| 1210 |
% that: |
| 1211 |
% |
| 1212 |
% \begin{macrocode} |
| 1213 |
\NewDocumentCommand{ \pronouns }{ m }{% |
| 1214 |
\ifudiss@blind |
| 1215 |
\else |
| 1216 |
\def\udiss@pronouns{#1}% |
| 1217 |
\fi |
| 1218 |
} |
| 1219 |
% \end{macrocode} |
| 1220 |
% |
| 1221 |
% As mentioned before, we use \expkvlogo{def} and |
| 1222 |
% \expkvlogo{opt} packages for developing the |
| 1223 |
% \emph{key-values}. The former proives a command |
| 1224 |
% |\ekvdefinekeys| that defines all the \emph{key}s. We |
| 1225 |
% could have called it just once in the code and developed |
| 1226 |
% all the \emph{key}s at one go, but in order to keep the |
| 1227 |
% implementation in line with the documentation and for a |
| 1228 |
% generally better readable code, we segment it in several |
| 1229 |
% pieces and develop the respective options with different |
| 1230 |
% calls of |\ekvdefinekeys|. Note that the set used for |
| 1231 |
% all of them is still the same, i.e., |udiss|. Storing a |
| 1232 |
% value passed to a key in a specific macro for later use |
| 1233 |
% is quite straight-forward in \expkvlogo{def}, but since |
| 1234 |
% we need to set some macros conditionally, we will use |
| 1235 |
% the |code| \emph{type} of \expkvlogo{}. The first |
| 1236 |
% non-space-token followed by the invocation of this type |
| 1237 |
% is the name of the \emph{key}. Its argument is an |
| 1238 |
% arbitrary \TeX-code where we can use have the usual |
| 1239 |
% \TeX-argument-call, i.e., |#1|. |
| 1240 |
% |
| 1241 |
% |
| 1242 |
% \begin{macrocode} |
| 1243 |
\ekvdefinekeys{udiss}{% |
| 1244 |
code pronouns = {% |
| 1245 |
\ifudiss@blind |
| 1246 |
\else |
| 1247 |
\def\udiss@pronouns{(#1)}% |
| 1248 |
\fi |
| 1249 |
\udiss@pronounstrue |
| 1250 |
}% |
| 1251 |
} |
| 1252 |
% \end{macrocode} |
| 1253 |
% \end{macro} |
| 1254 |
% |
| 1255 |
% The |\ifudiss@blind| conditional was developed in order to |
| 1256 |
% conditionally save (and print) some information which |
| 1257 |
% identifies the author. If a user loads the option |blind|, |
| 1258 |
% they don't need that information to be printed and since |
| 1259 |
% it is not supposed to be printed, why to even save it? |
| 1260 |
% Thus we save it only when needed. |
| 1261 |
% |
| 1262 |
% \begin{macro}{title,author} |
| 1263 |
% |
| 1264 |
% Since we don't allow blank arguments for \emph{strict} |
| 1265 |
% commands/parameters, we check their existence there and |
| 1266 |
% there and generate an error if found blank. Since we |
| 1267 |
% need to error twice (once with the macro, once with the |
| 1268 |
% parameter, we save the code for generating the error in |
| 1269 |
% a handy internal macro. Let's have a look at one |
| 1270 |
% developed for the |title| field. |
| 1271 |
% |
| 1272 |
% \begin{macrocode} |
| 1273 |
\newif\ifudiss@title |
| 1274 |
\def\udiss@blank@title@err{% |
| 1275 |
\ClassError{udiss}{% |
| 1276 |
The `title' field cannot be blank% |
| 1277 |
}{% |
| 1278 |
You have provided an empty argument to the `title' |
| 1279 |
field. This is not\MessageBreak permitted by the class.% |
| 1280 |
}% |
| 1281 |
} |
| 1282 |
% \end{macrocode} |
| 1283 |
% |
| 1284 |
% We use the same method for all the other \emph{strict} |
| 1285 |
% commands too. |
| 1286 |
% |
| 1287 |
% \begin{macrocode}\newif\ifudiss@author |
| 1288 |
\def\udiss@blank@author@err{% |
| 1289 |
\ClassError{udiss}{% |
| 1290 |
The `author' field cannot be blank% |
| 1291 |
}{% |
| 1292 |
You have provided an empty argument to the `author' |
| 1293 |
field. This is not\MessageBreak permitted by the class.% |
| 1294 |
}% |
| 1295 |
} |
| 1296 |
% \end{macrocode} |
| 1297 |
% |
| 1298 |
% Now we start developing the code for the |title| and |
| 1299 |
% |author| parameters. In order to check whether a macro |
| 1300 |
% is empty or not, we need to use the |
| 1301 |
% |\ifx\macro|$_{1}$|\macro|$_{2}$ construct. But since |
| 1302 |
% we have an argument and not a ready macro for |
| 1303 |
% comparison, we first we develop an internal macro with |
| 1304 |
% the argument as its value. |
| 1305 |
% |
| 1306 |
% \begin{macrocode} |
| 1307 |
\ekvdefinekeys{udiss}{% |
| 1308 |
code title = {% |
| 1309 |
\def\udiss@tmp@title{#1}% |
| 1310 |
% \end{macrocode} |
| 1311 |
% |
| 1312 |
% The true branch of this conditional, i.e., everything |
| 1313 |
% till either |\else| or |\fi| is found, defines the |
| 1314 |
% actual macro to be used while typesetting, i.e., |
| 1315 |
% |\udiss@title|, but since the user has provided a blank |
| 1316 |
% macro, we give a cryptic value to the macro, e.g., |
| 1317 |
% |-NoValidTitle-|. Note that this gets printed in the |
| 1318 |
% document even though the user gets an error. Since we |
| 1319 |
% use this regularly, a user may search for |-NoValid| in |
| 1320 |
% the output to find out all the values they missed |
| 1321 |
% providing. |
| 1322 |
% |
| 1323 |
% \begin{macrocode} |
| 1324 |
\ifx\udiss@tmp@title\empty |
| 1325 |
\def\udiss@title{-NoValidTitle-}% |
| 1326 |
% \end{macrocode} |
| 1327 |
% |
| 1328 |
% After this, we print the error for the blank argument. |
| 1329 |
% In the |\else| branch (which means the user did |
| 1330 |
% \emph{not} pass a blank argument, but provided a |
| 1331 |
% legit value), we define the command with the actual |
| 1332 |
% user-given-value. This is the most ideal condition. |
| 1333 |
% |
| 1334 |
% \begin{macrocode} |
| 1335 |
\udiss@blank@title@err |
| 1336 |
\else |
| 1337 |
\def\udiss@title{#1}% |
| 1338 |
\fi |
| 1339 |
},% |
| 1340 |
% \end{macrocode} |
| 1341 |
% |
| 1342 |
% We repeat the same pattern for the \emph{strict} commands |
| 1343 |
% now. Here is the code for |author|. |
| 1344 |
% |
| 1345 |
% \begin{macrocode} |
| 1346 |
code author = {% |
| 1347 |
\def\udiss@tmp@author{#1}% |
| 1348 |
\ifx\udiss@tmp@author\empty |
| 1349 |
\def\udiss@author{-NoValidAuthor-}% |
| 1350 |
\udiss@blank@author@err |
| 1351 |
\else |
| 1352 |
\def\udiss@author{#1}% |
| 1353 |
\fi |
| 1354 |
}% |
| 1355 |
} |
| 1356 |
% \end{macrocode} |
| 1357 |
% \end{macro} |
| 1358 |
% |
| 1359 |
% \begin{macro}{subtitle,\subtitle,shorttitle,\shorttitle} |
| 1360 |
% Here is the code for the |subtitle| and |shorttitle| |
| 1361 |
% fields. As they aren't \emph{strict}, no errors needed |
| 1362 |
% for them. We need a conditional though. We set it to |
| 1363 |
% true so that it is understood that this field was not |
| 1364 |
% forgotten by the author. Only if their value is true, we |
| 1365 |
% print them later. |
| 1366 |
% |
| 1367 |
% \begin{macrocode} |
| 1368 |
\newif\ifudiss@subtitle |
| 1369 |
\newif\ifudiss@shorttitle |
| 1370 |
\ekvdefinekeys{udiss}{% |
| 1371 |
code subtitle = {% |
| 1372 |
\IfBlankTF{#1}{% |
| 1373 |
\def\udiss@subtitle{-NoValidSubtitle-}% |
| 1374 |
\udiss@subtitletrue |
| 1375 |
}{% |
| 1376 |
\def\udiss@subtitle{#1}% |
| 1377 |
\udiss@subtitletrue |
| 1378 |
}% |
| 1379 |
},% |
| 1380 |
code shorttitle = {% |
| 1381 |
\IfBlankTF{#1}{% |
| 1382 |
\def\udiss@shorttitle{-NoValidSubtitle-}% |
| 1383 |
\udiss@shorttitletrue |
| 1384 |
}{% |
| 1385 |
\def\udiss@shorttitle{#1}% |
| 1386 |
\udiss@shorttitletrue |
| 1387 |
}% |
| 1388 |
}% |
| 1389 |
} |
| 1390 |
\NewDocumentCommand{ \subtitle }{ m }{% |
| 1391 |
\def\udiss@subtitle{#1}% |
| 1392 |
\udiss@subtitletrue |
| 1393 |
} |
| 1394 |
\NewDocumentCommand{ \shorttitle }{ m }{% |
| 1395 |
\def\udiss@shorttitle{#1}% |
| 1396 |
\udiss@shorttitletrue |
| 1397 |
} |
| 1398 |
% \end{macrocode} |
| 1399 |
% \end{macro} |
| 1400 |
% |
| 1401 |
% \begin{macro}{^^A |
| 1402 |
% stream,\stream,discipline,\discipline,^^A |
| 1403 |
% degree,\degree^^A |
| 1404 |
% } |
| 1405 |
% Again some compulsory fields, so we develop the errors, |
| 1406 |
% then the \emph{key}s and then the macros. |
| 1407 |
% |
| 1408 |
% \begin{macrocode} |
| 1409 |
\newif\ifudiss@stream |
| 1410 |
\def\udiss@blank@stream@err{% |
| 1411 |
\ClassError{udiss}{% |
| 1412 |
The `stream' field cannot be blank% |
| 1413 |
}{% |
| 1414 |
You have provided an empty argument to the `stream' |
| 1415 |
field. This is not\MessageBreak permitted by the class.% |
| 1416 |
}% |
| 1417 |
} |
| 1418 |
\newif\ifudiss@discipline |
| 1419 |
\def\udiss@blank@discipline@err{% |
| 1420 |
\ClassError{udiss}{% |
| 1421 |
The `discipline' field cannot be blank% |
| 1422 |
}{% |
| 1423 |
You have provided an empty argument to the `discipline' |
| 1424 |
field. This is not\MessageBreak permitted by the class.% |
| 1425 |
}% |
| 1426 |
} |
| 1427 |
\newif\ifudiss@degree |
| 1428 |
\def\udiss@blank@degree@err{% |
| 1429 |
\ClassError{udiss}{% |
| 1430 |
The `degree' field cannot be blank% |
| 1431 |
}{% |
| 1432 |
You have provided an empty argument to the `degree' |
| 1433 |
field. This is not\MessageBreak permitted by the class.% |
| 1434 |
}% |
| 1435 |
} |
| 1436 |
\ekvdefinekeys{udiss}{% |
| 1437 |
code stream = {% |
| 1438 |
\def\udiss@tmp@stream{#1}% |
| 1439 |
\ifx\udiss@tmp@stream\empty |
| 1440 |
\def\udiss@stream{-NoValidStream-}% |
| 1441 |
\udiss@blank@stream@err |
| 1442 |
\else |
| 1443 |
\def\udiss@stream{#1}% |
| 1444 |
\fi |
| 1445 |
},% |
| 1446 |
code discipline = {% |
| 1447 |
\def\udiss@tmp@discipline{#1}% |
| 1448 |
\ifx\udiss@tmp@discipline\empty |
| 1449 |
\def\udiss@discipline{-NoValidDiscipline-}% |
| 1450 |
\udiss@blank@discipline@err |
| 1451 |
\else |
| 1452 |
\def\udiss@discipline{#1}% |
| 1453 |
\fi |
| 1454 |
},% |
| 1455 |
code degree = {% |
| 1456 |
\def\udiss@tmp@degree{#1}% |
| 1457 |
\ifx\udiss@tmp@degree\empty |
| 1458 |
\def\udiss@degree{-NoValidDegree-}% |
| 1459 |
\udiss@blank@degree@err |
| 1460 |
\else |
| 1461 |
\def\udiss@degree{#1}% |
| 1462 |
\fi |
| 1463 |
}% |
| 1464 |
} |
| 1465 |
\NewDocumentCommand{ \stream }{ m }{% |
| 1466 |
\IfBlankTF{#1}{% |
| 1467 |
\udiss@blank@stream@err |
| 1468 |
\def\udiss@stream{-NoValidStream-}% |
| 1469 |
}{% |
| 1470 |
\def\udiss@stream{#1}% |
| 1471 |
}% |
| 1472 |
\IfBlankTF{#1}{% |
| 1473 |
\udiss@streamtrue |
| 1474 |
}{% |
| 1475 |
\def\udiss@stream{#1}% |
| 1476 |
\udiss@streamtrue |
| 1477 |
}% |
| 1478 |
} |
| 1479 |
\NewDocumentCommand{ \discipline }{ m }{% |
| 1480 |
\IfBlankTF{#1}{% |
| 1481 |
\udiss@blank@discipline@err |
| 1482 |
\def\udiss@discipline{-NoValidDiscipline-}% |
| 1483 |
}{% |
| 1484 |
\def\udiss@discipline{#1}% |
| 1485 |
}% |
| 1486 |
\IfBlankTF{#1}{% |
| 1487 |
\udiss@disciplinetrue |
| 1488 |
}{% |
| 1489 |
\def\udiss@discipline{#1}% |
| 1490 |
\udiss@disciplinetrue |
| 1491 |
}% |
| 1492 |
} |
| 1493 |
\NewDocumentCommand{ \degree }{ m }{% |
| 1494 |
\IfBlankTF{#1}{% |
| 1495 |
\udiss@blank@degree@err |
| 1496 |
\def\udiss@degree{-NoValidDegree-}% |
| 1497 |
}{% |
| 1498 |
\def\udiss@degree{#1}% |
| 1499 |
}% |
| 1500 |
\IfBlankTF{#1}{% |
| 1501 |
\udiss@degreetrue |
| 1502 |
}{% |
| 1503 |
\def\udiss@degree{#1}% |
| 1504 |
\udiss@degreetrue |
| 1505 |
}% |
| 1506 |
} |
| 1507 |
% \end{macrocode} |
| 1508 |
% \end{macro} |
| 1509 |
% |
| 1510 |
% We then develop the last set of \emph{strict} macros which |
| 1511 |
% are used in the declaration and some on the title-page |
| 1512 |
% too. The method is no different. |
| 1513 |
% |
| 1514 |
% \begin{macro}{^^A |
| 1515 |
% supervisor,\supervisor,university,\university,^^A |
| 1516 |
% department,\department^^A |
| 1517 |
% } |
| 1518 |
% \begin{macrocode} |
| 1519 |
\newif\ifudiss@supervisor |
| 1520 |
\newif\ifudiss@university |
| 1521 |
\newif\ifudiss@department |
| 1522 |
\def\udiss@blank@supervisor@err{% |
| 1523 |
\ClassError{udiss}{% |
| 1524 |
The `supervisor' field cannot be blank% |
| 1525 |
}{% |
| 1526 |
You have provided an empty argument to the `supervisor' |
| 1527 |
field. This is not\MessageBreak permitted by the class.% |
| 1528 |
}% |
| 1529 |
} |
| 1530 |
\def\udiss@blank@university@err{% |
| 1531 |
\ClassError{udiss}{% |
| 1532 |
The `university' field cannot be blank% |
| 1533 |
}{% |
| 1534 |
You have provided an empty argument to the `university' |
| 1535 |
field. This is not\MessageBreak permitted by the class.% |
| 1536 |
}% |
| 1537 |
} |
| 1538 |
\def\udiss@blank@department@err{% |
| 1539 |
\ClassError{udiss}{% |
| 1540 |
The `department' field cannot be blank% |
| 1541 |
}{% |
| 1542 |
You have provided an empty argument to the `department' |
| 1543 |
field. This is not\MessageBreak permitted by the class.% |
| 1544 |
}% |
| 1545 |
} |
| 1546 |
\ekvdefinekeys{udiss}{% |
| 1547 |
code supervisor = {% |
| 1548 |
\def\udiss@tmp@supervisor{#1}% |
| 1549 |
\ifx\udiss@tmp@supervisor\empty |
| 1550 |
\def\udiss@supervisor{-NoValidSupervisor-}% |
| 1551 |
\udiss@blank@supervisor@err |
| 1552 |
\else |
| 1553 |
\def\udiss@supervisor{#1}% |
| 1554 |
\fi |
| 1555 |
},% |
| 1556 |
code university = {% |
| 1557 |
\def\udiss@tmp@university{#1}% |
| 1558 |
\ifx\udiss@tmp@university\empty |
| 1559 |
\def\udiss@university{-NoValidUniversity-}% |
| 1560 |
\udiss@blank@university@err |
| 1561 |
\else |
| 1562 |
\def\udiss@university{#1}% |
| 1563 |
\fi |
| 1564 |
},% |
| 1565 |
code department = {% |
| 1566 |
\def\udiss@tmp@department{#1}% |
| 1567 |
\ifx\udiss@tmp@department\empty |
| 1568 |
\def\udiss@department{-NoValidDepartment-}% |
| 1569 |
\udiss@blank@department@err |
| 1570 |
\else |
| 1571 |
\def\udiss@department{#1}% |
| 1572 |
\fi |
| 1573 |
}% |
| 1574 |
} |
| 1575 |
\NewDocumentCommand{ \supervisor }{ m }{% |
| 1576 |
\IfBlankTF{#1}{% |
| 1577 |
\udiss@blank@supervisor@err |
| 1578 |
\def\udiss@supervisor{-NoValidSupervisor-}% |
| 1579 |
}{% |
| 1580 |
\def\udiss@supervisor{#1}% |
| 1581 |
}% |
| 1582 |
\IfBlankTF{#1}{% |
| 1583 |
\udiss@supervisortrue |
| 1584 |
}{% |
| 1585 |
\def\udiss@supervisor{#1}% |
| 1586 |
\udiss@supervisortrue |
| 1587 |
}% |
| 1588 |
} |
| 1589 |
\NewDocumentCommand{ \university }{ m }{% |
| 1590 |
\IfBlankTF{#1}{% |
| 1591 |
\udiss@blank@university@err |
| 1592 |
\def\udiss@author{-NoValidUniversity-}% |
| 1593 |
}{% |
| 1594 |
\def\udiss@university{#1}% |
| 1595 |
}% |
| 1596 |
\IfBlankTF{#1}{% |
| 1597 |
\udiss@universitytrue |
| 1598 |
}{% |
| 1599 |
\def\udiss@university{#1}% |
| 1600 |
\udiss@universitytrue |
| 1601 |
}% |
| 1602 |
} |
| 1603 |
\NewDocumentCommand{ \department }{ m }{% |
| 1604 |
\IfBlankTF{#1}{% |
| 1605 |
\udiss@blank@department@err |
| 1606 |
\def\udiss@author{-NoValidDepartment-}% |
| 1607 |
}{% |
| 1608 |
\def\udiss@department{#1}% |
| 1609 |
}% |
| 1610 |
\IfBlankTF{#1}{% |
| 1611 |
\udiss@departmenttrue |
| 1612 |
}{% |
| 1613 |
\def\udiss@department{#1}% |
| 1614 |
\udiss@departmenttrue |
| 1615 |
}% |
| 1616 |
} |
| 1617 |
% \end{macrocode} |
| 1618 |
% \end{macro} |
| 1619 |
% |
| 1620 |
% \begin{macro}{ \logo,\logo* } |
| 1621 |
% We develop the |\logo| command with a starred variant |
| 1622 |
% using the intuitive \pkg{xparse} trickery. Notice the |
| 1623 |
% use of two different conditionals |\ifudiss@logo| and |
| 1624 |
% |\ifudiss@texlogo|. |
| 1625 |
% |
| 1626 |
% \begin{macrocode} |
| 1627 |
\newif\ifudiss@logo |
| 1628 |
\newif\ifudiss@texlogo |
| 1629 |
\NewDocumentCommand{ \logo }{ s +m }{% |
| 1630 |
\IfBooleanTF{#1}{% |
| 1631 |
\def\udiss@texlogo{#2}% |
| 1632 |
\udiss@texlogotrue |
| 1633 |
}{% |
| 1634 |
\def\udiss@logo{#2}% |
| 1635 |
}% |
| 1636 |
\udiss@logotrue |
| 1637 |
} |
| 1638 |
% \end{macrocode} |
| 1639 |
% \end{macro} |
| 1640 |
% |
| 1641 |
% \begin{macro}{logo,logo*} |
| 1642 |
% \expkvlogo{} doesn't have a way to have starred |
| 1643 |
% variants of the keys, but we can always create a |
| 1644 |
% different key with an additional star. That's what we do |
| 1645 |
% here. |
| 1646 |
% |
| 1647 |
% \begin{macrocode} |
| 1648 |
\ekvdefinekeys{udiss}{% |
| 1649 |
code logo = {% |
| 1650 |
\def\udiss@logo{#1}% |
| 1651 |
\udiss@logotrue |
| 1652 |
},% |
| 1653 |
code logo* = {% |
| 1654 |
\def\udiss@texlogo{#1}% |
| 1655 |
\udiss@logotrue |
| 1656 |
\udiss@texlogotrue |
| 1657 |
}% |
| 1658 |
} |
| 1659 |
% \end{macrocode} |
| 1660 |
% \end{macro} |
| 1661 |
% |
| 1662 |
% Now we move to the complicated task of developing the |
| 1663 |
% mechanism for loading languages. In order to imitate the |
| 1664 |
% syntax of |babel|, we need a parser which inteprets |
| 1665 |
% comma-separated language-names. We develop a new counter |
| 1666 |
% called |udiss@langbabel| and use it with |\alph| inside |
| 1667 |
% |\csname| in order to produce an ordered sequence of |
| 1668 |
% macros that store the different language-names. After |
| 1669 |
% parsing, the language macros should look like |
| 1670 |
% |\udiss@langbabel@a|, |\udiss@langbabel@a| etc. The |
| 1671 |
% following code does that. The |\udiss@lgbbl| macro is the |
| 1672 |
% internal parser for the language-names. |
| 1673 |
% |
| 1674 |
% \begin{macrocode} |
| 1675 |
\newcounter{udiss@langbabel} |
| 1676 |
\stepcounter{udiss@langbabel} |
| 1677 |
\def\udiss@int@langbabel#1{% |
| 1678 |
\expandafter\edef |
| 1679 |
\csname |
| 1680 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 1681 |
\endcsname{#1}% |
| 1682 |
\stepcounter{udiss@langbabel}% |
| 1683 |
} |
| 1684 |
\NewDocumentCommand\udiss@lgbbl{ >{ \SplitList{,} } m }{% |
| 1685 |
\ProcessList{#1}{\udiss@int@langbabel}% |
| 1686 |
} |
| 1687 |
% \end{macrocode} |
| 1688 |
% |
| 1689 |
% \begin{macro}{language,ldfbabel,nofontwarning} |
| 1690 |
% We first create the if-conditionals required for this |
| 1691 |
% job. |
| 1692 |
% |
| 1693 |
% \begin{macrocode} |
| 1694 |
\newif\ifudiss@lg@used |
| 1695 |
\newif\ifudiss@ldfbabel |
| 1696 |
% \end{macrocode} |
| 1697 |
% |
| 1698 |
% The |language| key takes the comma-separated list as its |
| 1699 |
% argument and passes the list to the |\udiss@lgbbl| |
| 1700 |
% macro which we just saw. So whenever we pass multiple |
| 1701 |
% languages to the option |language|, it is parsed by |
| 1702 |
% |\udiss@lgbbl|. We then turn the |\ifudiss@lg@used| |
| 1703 |
% conditional on, so that when neither of these options |
| 1704 |
% are used by the user, we can do something. |
| 1705 |
% |
| 1706 |
% \begin{macrocode} |
| 1707 |
\ekvdefinekeys{udiss}{% |
| 1708 |
code language = {% |
| 1709 |
\udiss@lgbbl{#1}% |
| 1710 |
\udiss@lg@usedtrue |
| 1711 |
},% |
| 1712 |
% \end{macrocode} |
| 1713 |
% |
| 1714 |
% On the other hand though, the process is quite simple |
| 1715 |
% and straight forward. We need to store the list of the |
| 1716 |
% |.ldf|-languages in a macro and later pass it to the |
| 1717 |
% \pkg{babel} package as \pkg{babel} already understands |
| 1718 |
% how to parse it. We store the list in the |
| 1719 |
% |\udiss@ldfbabel@list| macro. With this option, we have |
| 1720 |
% to turn an additional conditional on, i.e., |
| 1721 |
% |\ifudiss@ldfbabel|. Usually we don't use the |.ldf| |
| 1722 |
% mechanism at all as mentioned in \cref{doc}. |
| 1723 |
% |
| 1724 |
% \begin{macrocode} |
| 1725 |
code ldfbabel = {% |
| 1726 |
\def\udiss@ldfbabel@list{#1}% |
| 1727 |
\udiss@lg@usedtrue |
| 1728 |
\udiss@ldfbabeltrue |
| 1729 |
},% |
| 1730 |
% \end{macrocode} |
| 1731 |
% |
| 1732 |
% The |nofontwarning| option is developed using the |
| 1733 |
% |invbool| \emph{type} which creates (or uses, if present) |
| 1734 |
% a conditional and sets it to true. In this case, it is |
| 1735 |
% |\ifudiss@font@warning|. Unless the option |nofontwarning| |
| 1736 |
% is used, the aforementioned condition is true. |
| 1737 |
% |
| 1738 |
% \begin{macrocode} |
| 1739 |
invbool nofontwarning = {\ifudiss@font@warning}% |
| 1740 |
} |
| 1741 |
% \end{macrocode} |
| 1742 |
% \end{macro} |
| 1743 |
% |
| 1744 |
% \begin{macro}{license,copyright-yrs,localcopyright} |
| 1745 |
% Now we develop the options for setting a license with |
| 1746 |
% the legit copyrightable years. As usual, we first |
| 1747 |
% develop the required conditionals. |
| 1748 |
% |
| 1749 |
% \begin{macrocode} |
| 1750 |
\newif\ifudiss@free@culture |
| 1751 |
\newif\ifudiss@ccbysa |
| 1752 |
\newif\ifudiss@gfdl |
| 1753 |
% \end{macrocode} |
| 1754 |
% |
| 1755 |
% We use a new \expkvlogo{} \emph{type}s for license which |
| 1756 |
% is |choice|. It takes a definite list of |choice|s that |
| 1757 |
% run some arbitrary code. We define an internal macro |
| 1758 |
% |\udiss@license@notice| which holds the notice text of |
| 1759 |
% the selected licenses. We set the |
| 1760 |
% |\ifudiss@free@culture| conditional to true if the |
| 1761 |
% user's |choice| is |CC-BY-SA| or |GFDL|. Why we do this |
| 1762 |
% is because if the choice is |all-rights-reserved|, it |
| 1763 |
% need not be explicitly mentioned. It is always assumed. |
| 1764 |
% Also, it is seen in PDF's metadata. For this, we enable |
| 1765 |
% the conditional. Using the |initial| \emph{prefix} of |
| 1766 |
% \expkvlogo{}, we set the |all-rights-reserved| as the |
| 1767 |
% default choice of users. |
| 1768 |
% |
| 1769 |
% \begin{macrocode} |
| 1770 |
\ekvdefinekeys{udiss}{% |
| 1771 |
choice license = {% |
| 1772 |
all-rights-reserved = {% |
| 1773 |
\def\udiss@license@notice{% |
| 1774 |
All rights reserved.\textLF |
| 1775 |
}% |
| 1776 |
},% |
| 1777 |
CC-BY-SA = {% |
| 1778 |
\def\udiss@license@notice{% |
| 1779 |
This work is available under the "Creative Commons |
| 1780 |
Attribution ShareAlike 4.0 International" license.% |
| 1781 |
}% |
| 1782 |
\def\udiss@free@license@url{% |
| 1783 |
https://creativecommons.org/licenses/% |
| 1784 |
by-sa/4.0/legalcode.txt% |
| 1785 |
}% |
| 1786 |
\udiss@free@culturetrue |
| 1787 |
\udiss@ccbysatrue |
| 1788 |
},% |
| 1789 |
GFDL = {% |
| 1790 |
\def\udiss@license@notice{% |
| 1791 |
Permission is granted to copy, distribute and/or |
| 1792 |
modify this document under the terms of the GNU Free |
| 1793 |
Documentation License, Version 1.3 or any later |
| 1794 |
version published by the Free Software Foundation; |
| 1795 |
with no Invariant Sections, no Front-Cover Texts, |
| 1796 |
and no Back-Cover Texts. A copy of the license is |
| 1797 |
included in the section entitled “GNU Free |
| 1798 |
Documentation License”.% |
| 1799 |
}% |
| 1800 |
\def\udiss@free@license@url{% |
| 1801 |
https://www.gnu.org/licenses/fdl-1.3.txt% |
| 1802 |
}% |
| 1803 |
\udiss@free@culturetrue |
| 1804 |
\udiss@gfdltrue |
| 1805 |
},% |
| 1806 |
},% |
| 1807 |
initial license = {all-rights-reserved},% |
| 1808 |
% \end{macrocode} |
| 1809 |
% |
| 1810 |
% Then we use the |store| \emph{type} which, as the name |
| 1811 |
% suggests, |store|s the value given by the user in a |
| 1812 |
% macro. Again, with the |initial| \emph{prefix}, we set |
| 1813 |
% the initial values for the two options. |
| 1814 |
% |
| 1815 |
% \begin{macrocode} |
| 1816 |
store copyright-yrs = {\udiss@copyrightable@years},% |
| 1817 |
initial copyright-yrs = {\the\year},% |
| 1818 |
store localcopyright = {\udiss@local@copyright},% |
| 1819 |
initial localcopyright = {Copyright},% |
| 1820 |
% \end{macrocode} |
| 1821 |
% \end{macro} |
| 1822 |
% |
| 1823 |
% \begin{macro}{placeholders} |
| 1824 |
% This option pre-fills all the necessary fields with some |
| 1825 |
% random (and rather delusional :P) values. We use the |
| 1826 |
% |nmeta| \emph{type} of \expkvlogo{} for this. This type |
| 1827 |
% uses the already developed keys with some values. When |
| 1828 |
% the key developed with |nmeta| is used by the user, it |
| 1829 |
% behaves as if the user has passed the keys inside it |
| 1830 |
% with the corresponding values. |
| 1831 |
% |
| 1832 |
% \begin{macrocode} |
| 1833 |
nmeta placeholders = {% |
| 1834 |
title = {% |
| 1835 |
A groundbreaking dissertation% |
| 1836 |
},% |
| 1837 |
author = {% |
| 1838 |
Jane Doe% |
| 1839 |
},% |
| 1840 |
pronouns = {She/her},% |
| 1841 |
subtitle = {% |
| 1842 |
A milestone study on a longstanding question |
| 1843 |
in a discipline% |
| 1844 |
},% |
| 1845 |
shorttitle = {A Milestone study},% |
| 1846 |
stream = {intriguing stream},% |
| 1847 |
discipline = {rigorous discipline}, |
| 1848 |
degree = {enriching degree},% |
| 1849 |
supervisor = {A kind supervisor},% |
| 1850 |
university = {An ideal university},% |
| 1851 |
department = {A homely department},% |
| 1852 |
license = {CC-BY-SA},% |
| 1853 |
copyright-yrs = {2022, 2023, 2024}% |
| 1854 |
}% |
| 1855 |
} |
| 1856 |
% \end{macrocode} |
| 1857 |
% \end{macro} |
| 1858 |
% |
| 1859 |
% \begin{macro}{^^A |
| 1860 |
% lot,lof,declaration,declarationtxt,decllocal^^A |
| 1861 |
% } |
| 1862 |
% The list of tables and figures are conditionals |
| 1863 |
% developed with the |bool| \emph{type} of \expkvlogo{} |
| 1864 |
% which creates (or uses, if already present) a boolean. |
| 1865 |
% It is by default set to the false value. The declaration |
| 1866 |
% also is a |bool|ean as it is turned off by default. |
| 1867 |
% |
| 1868 |
% \begin{macrocode} |
| 1869 |
\ekvdefinekeys{udiss}{% |
| 1870 |
bool lot = {\ifudiss@lot},% |
| 1871 |
bool lof = {\ifudiss@lof},% |
| 1872 |
bool declaration = {\ifudiss@declaration},% |
| 1873 |
% \end{macrocode} |
| 1874 |
% |
| 1875 |
% The |declarationtxt| \emph{key} contains text which has |
| 1876 |
% paragraphs inside it and the default \emph{key-value}s |
| 1877 |
% of \expkvlogo{} are |\def| type (meaning, they don't |
| 1878 |
% accept |\par| tokens). So in order to have the effect of |
| 1879 |
% |\long\def|, we need to use |long| \emph{prefix} of |
| 1880 |
% \expkvlogo{}. We set an initial value for this too. Then |
| 1881 |
% we store the value for the local word for declaration. |
| 1882 |
% |
| 1883 |
% \begin{macrocode} |
| 1884 |
long |
| 1885 |
store declarationtxt = {\udiss@declaration},% |
| 1886 |
initial declarationtxt = {% |
| 1887 |
\noindent As required by the university regulations, I |
| 1888 |
wish to state that the work embodied in this thesis |
| 1889 |
titled \enquote{\udiss@title: \udiss@subtitle} forms |
| 1890 |
my own contribution to the research work carried out |
| 1891 |
under the guidance of \udiss@supervisor\ at the |
| 1892 |
\udiss@university, \udiss@department. |
| 1893 |
|
| 1894 |
This work has not been submitted for any other degree |
| 1895 |
of this or any other university. Whenever references |
| 1896 |
have been made to previous works of others, it has |
| 1897 |
been clearly indicated as such and included in the |
| 1898 |
bibliography. |
| 1899 |
|
| 1900 |
\bigskip |
| 1901 |
\flushright{% |
| 1902 |
Date: \today |
| 1903 |
|
| 1904 |
\vspace{4em}% |
| 1905 |
|
| 1906 |
Name: \udiss@author |
| 1907 |
}% |
| 1908 |
|
| 1909 |
\bigskip\bigskip |
| 1910 |
\flushleft{% |
| 1911 |
Certified by:% |
| 1912 |
|
| 1913 |
\vspace{4em}% |
| 1914 |
|
| 1915 |
\udiss@supervisor |
| 1916 |
}% |
| 1917 |
},% |
| 1918 |
store decllocal = {\udiss@decllocal},% |
| 1919 |
initial decllocal = {Declaration}% |
| 1920 |
} |
| 1921 |
% \end{macrocode} |
| 1922 |
% \end{macro} |
| 1923 |
% |
| 1924 |
% \begin{macro}{^^A |
| 1925 |
% print,norefcolors,udisslinkclr,^^A |
| 1926 |
% udissurlclr,udissciteclr^^A |
| 1927 |
% } |
| 1928 |
% The |print| key is created using the |bool| \emph{type}. |
| 1929 |
% The |norefcolors| option, on the other hand, uses the |
| 1930 |
% |invbool| \emph{type}. For |udisslinkclr|, |udissurlclr| |
| 1931 |
% and |udissciteclr| we use the |store| \emph{type} along |
| 1932 |
% with some |initial| values. |
| 1933 |
% |
| 1934 |
% \begin{macrocode} |
| 1935 |
\ekvdefinekeys{udiss}{% |
| 1936 |
bool print = {\ifudiss@print},% |
| 1937 |
invbool norefcolors = {\ifudiss@colors},% |
| 1938 |
store udisslinkclr = {\udiss@int@link@color},% |
| 1939 |
initial udisslinkclr = {udisslink},% |
| 1940 |
store udissurlclr = {\udiss@int@url@color},% |
| 1941 |
initial udissurlclr = {udissurl},% |
| 1942 |
store udissciteclr = {\udiss@int@cite@color},% |
| 1943 |
initial udissciteclr = {udisscite}% |
| 1944 |
} |
| 1945 |
% \end{macrocode} |
| 1946 |
% \end{macro} |
| 1947 |
% |
| 1948 |
% \begin{macro}{blind} |
| 1949 |
% The next boolean is for printing blind documents. |
| 1950 |
% |
| 1951 |
% \begin{macrocode} |
| 1952 |
\ekvdefinekeys{udiss}{% |
| 1953 |
bool blind = {\ifudiss@blind}% |
| 1954 |
} |
| 1955 |
% \end{macrocode} |
| 1956 |
% \end{macro} |
| 1957 |
% |
| 1958 |
% \begin{macro}{framed-title} |
| 1959 |
% We provide a conditional for producing a framed |
| 1960 |
% title-page. The conditional will be used later while |
| 1961 |
% typesetting. |
| 1962 |
% |
| 1963 |
% \begin{macrocode} |
| 1964 |
\ekvdefinekeys{udiss}{% |
| 1965 |
bool framed-title = {\ifudiss@ftitle}% |
| 1966 |
} |
| 1967 |
% \end{macrocode} |
| 1968 |
% \end{macro} |
| 1969 |
% |
| 1970 |
% \begin{macro}{oldone,oldstylenumoff} |
| 1971 |
% We set the old style numerals as the default for |
| 1972 |
% typesetting. We provide an inverse boolean for setting |
| 1973 |
% the old style numbers off. The special shape for number |
| 1974 |
% one is enabled only with the boolean key |oldone|. We |
| 1975 |
% develop it here. |
| 1976 |
% |
| 1977 |
% \begin{macrocode} |
| 1978 |
\ekvdefinekeys{udiss}{% |
| 1979 |
invbool oldstylenumoff = {\ifudiss@oldstylenum},% |
| 1980 |
bool oldone = {\ifudiss@oldone}% |
| 1981 |
} |
| 1982 |
% \end{macrocode} |
| 1983 |
% \end{macro} |
| 1984 |
% |
| 1985 |
% \begin{macro}{explicitext,ignorefsoff} |
| 1986 |
% To turn on the explicit extension mechanism of the |
| 1987 |
% font-loading packages, we provide a conditional. It is |
| 1988 |
% disabled by default and hence is of the |bool| type. |
| 1989 |
% |
| 1990 |
% \begin{macrocode} |
| 1991 |
\ekvdefinekeys{udiss}{% |
| 1992 |
bool explicitext = {\ifudiss@explicitext},% |
| 1993 |
invbool ignorefsoff = {\ifudiss@ignorefontspec}% |
| 1994 |
} |
| 1995 |
% \end{macrocode} |
| 1996 |
% \end{macro} |
| 1997 |
% |
| 1998 |
% \begin{macro}{fulfilment} |
| 1999 |
% In order to store the sentence written on the |
| 2000 |
% title-page, we again use the common |store| and |
| 2001 |
% |initial store| pair. |
| 2002 |
% \begin{macrocode} |
| 2003 |
\ekvdefinekeys{udiss}{% |
| 2004 |
store fulfilment = {\udiss@fulfilment},% |
| 2005 |
initial fulfilment = {% |
| 2006 |
A dissertation submitted in the partial fulfilment of |
| 2007 |
the requirements for the \udiss@degree\ program in |
| 2008 |
\udiss@discipline.% |
| 2009 |
}% |
| 2010 |
} |
| 2011 |
% \end{macrocode} |
| 2012 |
% \end{macro} |
| 2013 |
% |
| 2014 |
% All of the upcoming \emph{key}s are font-selection keys. |
| 2015 |
% We set their defaults as explained in \cref{udissenfonts}. |
| 2016 |
% |
| 2017 |
% \begin{macro}{^^A |
| 2018 |
% rmfont,rmbffont,rmitfont,rmbfitfont,^^A |
| 2019 |
% rmslfont,rmbfslfont^^A |
| 2020 |
% } |
| 2021 |
% The following sets the default text font for the |
| 2022 |
% document. We are using NewCM family as the default |
| 2023 |
% font-family. But as of now, the NewCM fonts don't have |
| 2024 |
% all the variants. E.g., it lacks slanted/oblique shapes |
| 2025 |
% in the natural weight, but we provide the regular ones |
| 2026 |
% in place of them. |
| 2027 |
% |
| 2028 |
% \begin{macrocode} |
| 2029 |
\ekvdefinekeys{udiss}{% |
| 2030 |
store rmfont = {\udiss@rmfont},% |
| 2031 |
initial rmfont = {NewCM10-Book.otf},% |
| 2032 |
store rmbffont = {\udiss@rmbffont},% |
| 2033 |
initial rmbffont = {NewCM10-Bold.otf},% |
| 2034 |
store rmitfont = {\udiss@rmitfont},% |
| 2035 |
initial rmitfont = {NewCM10-BookItalic.otf},% |
| 2036 |
store rmbfitfont = {\udiss@rmbfitfont},% |
| 2037 |
initial rmbfitfont = {NewCM10-BoldItalic.otf},% |
| 2038 |
store rmslfont = {\udiss@rmslfont},% |
| 2039 |
initial rmslfont = {NewCM10-Book.otf},% |
| 2040 |
store rmbfslfont = {\udiss@rmbfslfont},% |
| 2041 |
initial rmbfslfont = {NewCM10-Bold.otf},% |
| 2042 |
% \end{macrocode} |
| 2043 |
% \end{macro} |
| 2044 |
% |
| 2045 |
% \begin{macro}{^^A |
| 2046 |
% sffont,sfbffont,sfitfont,sfbfitfont,^^A |
| 2047 |
% sfslfont,sfbfslfont^^A |
| 2048 |
% } |
| 2049 |
% |
| 2050 |
% Similarly, we store values for the sans fonts too. NewCM |
| 2051 |
% lacks certain variants in sans, but again, the options |
| 2052 |
% are set font-agnostically and hence they are more in |
| 2053 |
% number than the actually available variants. The sans |
| 2054 |
% fonts in NewCM, don't have an Italic design. We have |
| 2055 |
% used the oblique version of the fonts there instead. |
| 2056 |
% Note that the same designs are used for the slanted |
| 2057 |
% fonts too. |
| 2058 |
% |
| 2059 |
% \begin{macrocode} |
| 2060 |
store sffont = {\udiss@sffont},% |
| 2061 |
initial sffont = {NewCMSans10-Book.otf},% |
| 2062 |
store sfbffont = {\udiss@sfbffont},% |
| 2063 |
initial sfbffont = {NewCMSans10-Bold.otf},% |
| 2064 |
store sfitfont = {\udiss@sfitfont}, |
| 2065 |
initial sfitfont = {NewCMSans10-BookOblique.otf},% |
| 2066 |
store sfbfitfont = {\udiss@sfbfitfont},% |
| 2067 |
initial sfbfitfont = {NewCMSans10-BoldOblique.otf},% |
| 2068 |
store sfslfont = {\udiss@sfslfont},% |
| 2069 |
initial sfslfont = {NewCMSans10-BookOblique.otf},% |
| 2070 |
store sfbfslfont = {\udiss@sfbfslfont},% |
| 2071 |
initial sfbfslfont = {NewCMSans10-BoldOblique.otf},% |
| 2072 |
% \end{macrocode} |
| 2073 |
% \end{macro} |
| 2074 |
% |
| 2075 |
% \begin{macro}{^^A |
| 2076 |
% ttfont,ttbffont,ttitfont,ttbfitfont,^^A |
| 2077 |
% ttslfont,ttbfslfont^^A |
| 2078 |
% } |
| 2079 |
% The settings for typewriter fonts are loaded in the below |
| 2080 |
% code. We have a strange situation here. NewCM provides |
| 2081 |
% |BookItalic|, but doesn't have a |BoldItalic|. We instead |
| 2082 |
% have |BoldOblique|. Thus we set the |BookItalic| as the |
| 2083 |
% |ttitfont| and |BoldOblique| as the |ttbfit| font. The |
| 2084 |
% same pair for |ttslfont| and |ttbfslfont|. |
| 2085 |
% |
| 2086 |
% \begin{macrocode} |
| 2087 |
store ttfont = {\udiss@ttfont},% |
| 2088 |
initial ttfont = {NewCMMono10-Book.otf},% |
| 2089 |
store ttbffont = {\udiss@ttbffont}, |
| 2090 |
initial ttbffont = {NewCMMono10-Bold.otf},% |
| 2091 |
store ttitfont = {\udiss@ttitfont},% |
| 2092 |
initial ttitfont = {NewCMMono10-BookItalic.otf},% |
| 2093 |
store ttbfitfont = {\udiss@ttbfitfont},% |
| 2094 |
initial ttbfitfont = {NewCMMono10-BoldOblique.otf},% |
| 2095 |
store ttslfont = {\udiss@ttslfont},% |
| 2096 |
initial ttslfont = {NewCM10-Book.otf},% |
| 2097 |
store ttbfslfont = {\udiss@ttbfslfont},% |
| 2098 |
initial ttbfslfont = {NewCMMono10-BoldOblique.otf},% |
| 2099 |
% \end{macrocode} |
| 2100 |
% \end{macro} |
| 2101 |
% |
| 2102 |
% \begin{macro}{mathfont,mathbffont} |
| 2103 |
% Maths fonts have very little variation, so we just have |
| 2104 |
% two parameters for selecting the fonts and two of the |
| 2105 |
% usual parameters for features and extensions. |
| 2106 |
% |
| 2107 |
% \begin{macrocode} |
| 2108 |
store mathfont = {\udiss@mathfont},% |
| 2109 |
initial mathfont = {NewCMMath-Book.otf},% |
| 2110 |
store mathbffont = {\udiss@mathbffont},% |
| 2111 |
initial mathbffont = {NewCMMath-Bold.otf},% |
| 2112 |
% \end{macrocode} |
| 2113 |
% \end{macro} |
| 2114 |
% |
| 2115 |
% \begin{macro}{^^A |
| 2116 |
% rmfeatures,rmfntext,sffeatures,sffntext,^^A |
| 2117 |
% ttfeatures,ttfntext,mathfeatures,mathfntext^^A |
| 2118 |
% } |
| 2119 |
% If the user wants to add features to the selected fonts, |
| 2120 |
% they are allowed to use these commands and if they use |
| 2121 |
% the |explicitext| option, they can choose the font |
| 2122 |
% extensions too using the \emph{key}s specifically |
| 2123 |
% developed for that. We use |store| and |choice| |
| 2124 |
% \emph{type}s for this. |
| 2125 |
% |
| 2126 |
% \begin{macrocode} |
| 2127 |
store rmfeatures = {\udiss@rmfeatures},% |
| 2128 |
choice rmfntext = {% |
| 2129 |
ttf = {% |
| 2130 |
\ifudiss@explicitext |
| 2131 |
\def\udiss@rmfntext{ttf}% |
| 2132 |
\else |
| 2133 |
\ClassError{udiss}{% |
| 2134 |
Option `explicitext' is needed for adding |
| 2135 |
font extensions% |
| 2136 |
}{% |
| 2137 |
You have loaded font-option `rmfntext' to |
| 2138 |
add extension to font-names. |
| 2139 |
This\MessageBreak option is supposed to be |
| 2140 |
used only with the `explicitext' option. |
| 2141 |
E.g., for\MessageBreak loading, say, |
| 2142 |
FreeSerif, you may choose one of the |
| 2143 |
following two methods:% |
| 2144 |
\MessageBreak\MessageBreak |
| 2145 |
1. The recommended method:% |
| 2146 |
\MessageBreak |
| 2147 |
\space\space\space |
| 2148 |
----8<---------------8<----% |
| 2149 |
\MessageBreak |
| 2150 |
\space\space\space |
| 2151 |
\string\documentclass[\@percentchar |
| 2152 |
\MessageBreak |
| 2153 |
\space\space\space\space\space |
| 2154 |
rmfont = {FreeSerif.ttf}\@percentchar |
| 2155 |
\MessageBreak |
| 2156 |
\space\space\space |
| 2157 |
]{udiss}\MessageBreak |
| 2158 |
\space\space\space |
| 2159 |
----8<---------------8<----% |
| 2160 |
\MessageBreak\MessageBreak |
| 2161 |
2. The alternative:% |
| 2162 |
\MessageBreak |
| 2163 |
\space\space\space |
| 2164 |
----8<------------8<----% |
| 2165 |
\MessageBreak |
| 2166 |
\space\space\space |
| 2167 |
\string\documentclass[\@percentchar |
| 2168 |
\MessageBreak |
| 2169 |
\space\space\space\space\space |
| 2170 |
explicitext,\@percentchar |
| 2171 |
\MessageBreak |
| 2172 |
\space\space\space\space\space |
| 2173 |
rmfont = {FreeSerif},\@percentchar |
| 2174 |
\MessageBreak |
| 2175 |
\space\space\space\space\space |
| 2176 |
rmfntext = {ttf}\@percentchar |
| 2177 |
\MessageBreak |
| 2178 |
\space\space\space |
| 2179 |
]{udiss}% |
| 2180 |
\MessageBreak |
| 2181 |
\space\space\space |
| 2182 |
----8<------------8<----% |
| 2183 |
}% |
| 2184 |
\fi |
| 2185 |
},% |
| 2186 |
otf = {% |
| 2187 |
\ifudiss@explicitext |
| 2188 |
\def\udiss@rmfntext{otf}% |
| 2189 |
\else |
| 2190 |
\ClassError{udiss}{% |
| 2191 |
Option `explicitext' is needed for adding |
| 2192 |
font extensions% |
| 2193 |
}{% |
| 2194 |
You have loaded font-option `rmfntext' to |
| 2195 |
add extension to font-names. |
| 2196 |
This\MessageBreak option is supposed to be |
| 2197 |
used only with the `explicitext' option. |
| 2198 |
E.g., for\MessageBreak loading, say, |
| 2199 |
KpRoman-Regular.otf, you may choose one of |
| 2200 |
the following two\MessageBreak |
| 2201 |
methods:% |
| 2202 |
\MessageBreak\MessageBreak |
| 2203 |
1. The recommended method:% |
| 2204 |
\MessageBreak |
| 2205 |
\space\space\space |
| 2206 |
----8<---------------------8<----% |
| 2207 |
\MessageBreak |
| 2208 |
\space\space\space |
| 2209 |
\string\documentclass[\@percentchar |
| 2210 |
\MessageBreak |
| 2211 |
\space\space\space\space\space |
| 2212 |
rmfont = {KpRoman-Regular.otf}% |
| 2213 |
\@percentchar |
| 2214 |
\MessageBreak |
| 2215 |
\space\space\space |
| 2216 |
]{udiss}\MessageBreak |
| 2217 |
\space\space\space |
| 2218 |
----8<---------------------8<----% |
| 2219 |
\MessageBreak |
| 2220 |
\MessageBreak |
| 2221 |
2. The alternative:% |
| 2222 |
\MessageBreak |
| 2223 |
\space\space\space |
| 2224 |
----8<------------------8<----% |
| 2225 |
\MessageBreak |
| 2226 |
\space\space\space |
| 2227 |
\string\documentclass[\@percentchar |
| 2228 |
\MessageBreak |
| 2229 |
\space\space\space\space\space |
| 2230 |
explicitext,\@percentchar |
| 2231 |
\MessageBreak |
| 2232 |
\space\space\space\space\space |
| 2233 |
rmfont = {KpRoman-Regular},% |
| 2234 |
\@percentchar |
| 2235 |
\MessageBreak |
| 2236 |
\space\space\space\space\space |
| 2237 |
rmfntext = {otf}\@percentchar |
| 2238 |
\MessageBreak |
| 2239 |
\space\space\space |
| 2240 |
]{udiss}% |
| 2241 |
\MessageBreak |
| 2242 |
\space\space\space |
| 2243 |
----8<------------------8<----% |
| 2244 |
}% |
| 2245 |
\fi |
| 2246 |
}% |
| 2247 |
},% |
| 2248 |
store sffeatures = {\udiss@sffeatures},% |
| 2249 |
choice sffntext = {% |
| 2250 |
ttf = {% |
| 2251 |
\ifudiss@explicitext |
| 2252 |
\def\udiss@sffntext{ttf}% |
| 2253 |
\else |
| 2254 |
\ClassError{udiss}{% |
| 2255 |
Option `explicitext' is needed for adding |
| 2256 |
font extensions% |
| 2257 |
}{% |
| 2258 |
You have loaded font-option `sffntext' to |
| 2259 |
add extension to font-names. |
| 2260 |
This\MessageBreak option is supposed to be |
| 2261 |
used only with the `explicitext' option. |
| 2262 |
E.g., for\MessageBreak loading, say, |
| 2263 |
FreeSans, you may choose one of the |
| 2264 |
following two methods:% |
| 2265 |
\MessageBreak\MessageBreak |
| 2266 |
1. The recommended method:% |
| 2267 |
\MessageBreak |
| 2268 |
\space\space\space |
| 2269 |
----8<---------------8<----% |
| 2270 |
\MessageBreak |
| 2271 |
\space\space\space |
| 2272 |
\string\documentclass[\@percentchar |
| 2273 |
\MessageBreak |
| 2274 |
\space\space\space\space\space |
| 2275 |
sffont = {FreeSans.ttf}\@percentchar |
| 2276 |
\MessageBreak |
| 2277 |
\space\space\space |
| 2278 |
]{udiss}\MessageBreak |
| 2279 |
\space\space\space |
| 2280 |
----8<---------------8<----% |
| 2281 |
\MessageBreak\MessageBreak |
| 2282 |
2. The alternative:% |
| 2283 |
\MessageBreak |
| 2284 |
\space\space\space |
| 2285 |
----8<------------8<----% |
| 2286 |
\MessageBreak |
| 2287 |
\space\space\space |
| 2288 |
\string\documentclass[\@percentchar |
| 2289 |
\MessageBreak |
| 2290 |
\space\space\space\space\space |
| 2291 |
explicitext,\@percentchar |
| 2292 |
\MessageBreak |
| 2293 |
\space\space\space\space\space |
| 2294 |
sffont = {FreeSans},\@percentchar |
| 2295 |
\MessageBreak |
| 2296 |
\space\space\space\space\space |
| 2297 |
sffntext = {ttf}\@percentchar |
| 2298 |
\MessageBreak |
| 2299 |
\space\space\space |
| 2300 |
]{udiss}% |
| 2301 |
\MessageBreak |
| 2302 |
\space\space\space |
| 2303 |
----8<------------8<----% |
| 2304 |
}% |
| 2305 |
\fi |
| 2306 |
},% |
| 2307 |
otf = {% |
| 2308 |
\ifudiss@explicitext |
| 2309 |
\def\udiss@sffntext{otf}% |
| 2310 |
\else |
| 2311 |
\ClassError{udiss}{% |
| 2312 |
Option `explicitext' is needed for adding |
| 2313 |
font extensions% |
| 2314 |
}{% |
| 2315 |
You have loaded font-option `sffntext' to |
| 2316 |
add extension to font-names. |
| 2317 |
This\MessageBreak option is supposed to be |
| 2318 |
used only with the `explicitext' option. |
| 2319 |
E.g., for\MessageBreak loading, say, |
| 2320 |
KpSans-Regular.otf, you may choose one of |
| 2321 |
the following two\MessageBreak |
| 2322 |
methods:% |
| 2323 |
\MessageBreak\MessageBreak |
| 2324 |
1. The recommended method:% |
| 2325 |
\MessageBreak |
| 2326 |
\space\space\space |
| 2327 |
----8<---------------------8<----% |
| 2328 |
\MessageBreak |
| 2329 |
\space\space\space |
| 2330 |
\string\documentclass[\@percentchar |
| 2331 |
\MessageBreak |
| 2332 |
\space\space\space\space\space |
| 2333 |
sffont = {KpSans-Regular.otf}% |
| 2334 |
\@percentchar |
| 2335 |
\MessageBreak |
| 2336 |
\space\space\space |
| 2337 |
]{udiss}\MessageBreak |
| 2338 |
\space\space\space |
| 2339 |
----8<---------------------8<----% |
| 2340 |
\MessageBreak |
| 2341 |
\MessageBreak |
| 2342 |
2. The alternative:% |
| 2343 |
\MessageBreak |
| 2344 |
\space\space\space |
| 2345 |
----8<------------------8<----% |
| 2346 |
\MessageBreak |
| 2347 |
\space\space\space |
| 2348 |
\string\documentclass[\@percentchar |
| 2349 |
\MessageBreak |
| 2350 |
\space\space\space\space\space |
| 2351 |
explicitext,\@percentchar |
| 2352 |
\MessageBreak |
| 2353 |
\space\space\space\space\space |
| 2354 |
sffont = {KpSans-Regular},% |
| 2355 |
\@percentchar |
| 2356 |
\MessageBreak |
| 2357 |
\space\space\space\space\space |
| 2358 |
sffntext = {otf}\@percentchar |
| 2359 |
\MessageBreak |
| 2360 |
\space\space\space |
| 2361 |
]{udiss}% |
| 2362 |
\MessageBreak |
| 2363 |
\space\space\space |
| 2364 |
----8<------------------8<----% |
| 2365 |
}% |
| 2366 |
\fi |
| 2367 |
}% |
| 2368 |
},% |
| 2369 |
store ttfeatures = {\udiss@ttfeatures},% |
| 2370 |
choice ttfntext = {% |
| 2371 |
ttf = {% |
| 2372 |
\ifudiss@explicitext |
| 2373 |
\def\udiss@ttfntext{ttf}% |
| 2374 |
\else |
| 2375 |
\ClassError{udiss}{% |
| 2376 |
Option `explicitext' is needed for adding |
| 2377 |
font extensions% |
| 2378 |
}{% |
| 2379 |
You have loaded font-option `ttfntext' to |
| 2380 |
add extension to font-names. |
| 2381 |
This\MessageBreak option is supposed to be |
| 2382 |
used only with the `explicitext' option. |
| 2383 |
E.g., for\MessageBreak loading, say, |
| 2384 |
FreeMono, you may choose one of the |
| 2385 |
following two methods:% |
| 2386 |
\MessageBreak\MessageBreak |
| 2387 |
1. The recommended method:% |
| 2388 |
\MessageBreak |
| 2389 |
\space\space\space |
| 2390 |
----8<---------------8<----% |
| 2391 |
\MessageBreak |
| 2392 |
\space\space\space |
| 2393 |
\string\documentclass[\@percentchar |
| 2394 |
\MessageBreak |
| 2395 |
\space\space\space\space\space |
| 2396 |
ttfont = {FreeMono.ttf}\@percentchar |
| 2397 |
\MessageBreak |
| 2398 |
\space\space\space |
| 2399 |
]{udiss}\MessageBreak |
| 2400 |
\space\space\space |
| 2401 |
----8<---------------8<----% |
| 2402 |
\MessageBreak\MessageBreak |
| 2403 |
2. The alternative:% |
| 2404 |
\MessageBreak |
| 2405 |
\space\space\space |
| 2406 |
----8<------------8<----% |
| 2407 |
\MessageBreak |
| 2408 |
\space\space\space |
| 2409 |
\string\documentclass[\@percentchar |
| 2410 |
\MessageBreak |
| 2411 |
\space\space\space\space\space |
| 2412 |
explicitext,\@percentchar |
| 2413 |
\MessageBreak |
| 2414 |
\space\space\space\space\space |
| 2415 |
ttfont = {FreeMono},\@percentchar |
| 2416 |
\MessageBreak |
| 2417 |
\space\space\space\space\space |
| 2418 |
ttfntext = {ttf}\@percentchar |
| 2419 |
\MessageBreak |
| 2420 |
\space\space\space |
| 2421 |
]{udiss}% |
| 2422 |
\MessageBreak |
| 2423 |
\space\space\space |
| 2424 |
----8<------------8<----% |
| 2425 |
}% |
| 2426 |
\fi |
| 2427 |
},% |
| 2428 |
otf = {% |
| 2429 |
\ifudiss@explicitext |
| 2430 |
\def\udiss@ttfntext{otf}% |
| 2431 |
\else |
| 2432 |
\ClassError{udiss}{% |
| 2433 |
Option `explicitext' is needed for adding |
| 2434 |
font extensions% |
| 2435 |
}{% |
| 2436 |
You have loaded font-option `ttfntext' to |
| 2437 |
add extension to font-names. |
| 2438 |
This\MessageBreak option is supposed to be |
| 2439 |
used only with the `explicitext' option. |
| 2440 |
E.g., for\MessageBreak loading, say, |
| 2441 |
KpMono-Regular.otf, you may choose one of |
| 2442 |
the following two\MessageBreak |
| 2443 |
methods:% |
| 2444 |
\MessageBreak\MessageBreak |
| 2445 |
1. The recommended method:% |
| 2446 |
\MessageBreak |
| 2447 |
\space\space\space |
| 2448 |
----8<---------------------8<----% |
| 2449 |
\MessageBreak |
| 2450 |
\space\space\space |
| 2451 |
\string\documentclass[\@percentchar |
| 2452 |
\MessageBreak |
| 2453 |
\space\space\space\space\space |
| 2454 |
ttfont = {KpMono-Regular.otf}% |
| 2455 |
\@percentchar |
| 2456 |
\MessageBreak |
| 2457 |
\space\space\space |
| 2458 |
]{udiss}\MessageBreak |
| 2459 |
\space\space\space |
| 2460 |
----8<---------------------8<----% |
| 2461 |
\MessageBreak |
| 2462 |
\MessageBreak |
| 2463 |
2. The alternative:% |
| 2464 |
\MessageBreak |
| 2465 |
\space\space\space |
| 2466 |
----8<------------------8<----% |
| 2467 |
\MessageBreak |
| 2468 |
\space\space\space |
| 2469 |
\string\documentclass[\@percentchar |
| 2470 |
\MessageBreak |
| 2471 |
\space\space\space\space\space |
| 2472 |
explicitext,\@percentchar |
| 2473 |
\MessageBreak |
| 2474 |
\space\space\space\space\space |
| 2475 |
ttfont = {KpMono-Regular},% |
| 2476 |
\@percentchar |
| 2477 |
\MessageBreak |
| 2478 |
\space\space\space\space\space |
| 2479 |
ttfntext = {otf}\@percentchar |
| 2480 |
\MessageBreak |
| 2481 |
\space\space\space |
| 2482 |
]{udiss}% |
| 2483 |
\MessageBreak |
| 2484 |
\space\space\space |
| 2485 |
----8<------------------8<----% |
| 2486 |
}% |
| 2487 |
\fi |
| 2488 |
}% |
| 2489 |
},% |
| 2490 |
store mathfeatures = {\udiss@mathfeatures},% |
| 2491 |
choice mathfntext = {% |
| 2492 |
ttf = {% |
| 2493 |
\ifudiss@explicitext |
| 2494 |
\def\udiss@mathfntext{ttf}% |
| 2495 |
\else |
| 2496 |
\ClassError{udiss}{% |
| 2497 |
Option `explicitext' is needed for adding |
| 2498 |
font extensions% |
| 2499 |
}{% |
| 2500 |
You have loaded font-option `mathfntext' |
| 2501 |
to add extension to font-names. |
| 2502 |
This\MessageBreak option is supposed to be |
| 2503 |
used only with the `explicitext' option. |
| 2504 |
E.g., for\MessageBreak loading, say, |
| 2505 |
NotoSansMath-Regular, you may choose one |
| 2506 |
of the following two\MessageBreak |
| 2507 |
methods:% |
| 2508 |
\MessageBreak\MessageBreak |
| 2509 |
1. The recommended method:% |
| 2510 |
\MessageBreak |
| 2511 |
\space\space\space |
| 2512 |
----8<----------------------------8<----% |
| 2513 |
\MessageBreak |
| 2514 |
\space\space\space |
| 2515 |
\string\documentclass[\@percentchar |
| 2516 |
\MessageBreak |
| 2517 |
\space\space\space\space\space |
| 2518 |
mathfont = {NotoSansMath-Regular.ttf}% |
| 2519 |
\@percentchar |
| 2520 |
\MessageBreak |
| 2521 |
\space\space\space |
| 2522 |
]{udiss}\MessageBreak |
| 2523 |
\space\space\space |
| 2524 |
----8<----------------------------8<----% |
| 2525 |
\MessageBreak\MessageBreak |
| 2526 |
2. The alternative:% |
| 2527 |
\MessageBreak |
| 2528 |
\space\space\space |
| 2529 |
----8<-------------------------8<----% |
| 2530 |
\MessageBreak |
| 2531 |
\space\space\space |
| 2532 |
\string\documentclass[\@percentchar |
| 2533 |
\MessageBreak |
| 2534 |
\space\space\space\space\space |
| 2535 |
explicitext,\@percentchar |
| 2536 |
\MessageBreak |
| 2537 |
\space\space\space\space\space |
| 2538 |
mathfont = {NotoSansMath-Regular},% |
| 2539 |
\@percentchar |
| 2540 |
\MessageBreak |
| 2541 |
\space\space\space\space\space |
| 2542 |
mathfntext = {ttf}\@percentchar |
| 2543 |
\MessageBreak |
| 2544 |
\space\space\space |
| 2545 |
]{udiss}% |
| 2546 |
\MessageBreak |
| 2547 |
\space\space\space |
| 2548 |
----8<-------------------------8<----% |
| 2549 |
}% |
| 2550 |
\fi |
| 2551 |
},% |
| 2552 |
otf = {% |
| 2553 |
\ifudiss@explicitext |
| 2554 |
\def\udiss@mathfntext{otf}% |
| 2555 |
\else |
| 2556 |
\ClassError{udiss}{% |
| 2557 |
Option `explicitext' is needed for adding |
| 2558 |
font extensions% |
| 2559 |
}{% |
| 2560 |
You have loaded font-option `mathfntext' |
| 2561 |
to add extension to font-names. |
| 2562 |
This\MessageBreak option is supposed to be |
| 2563 |
used only with the `explicitext' option. |
| 2564 |
E.g., for\MessageBreak loading, say, |
| 2565 |
XITSMath-Regular, you may choose one of |
| 2566 |
the following two\MessageBreak methods:% |
| 2567 |
\MessageBreak\MessageBreak |
| 2568 |
1. The recommended method:% |
| 2569 |
\MessageBreak |
| 2570 |
\space\space\space |
| 2571 |
----8<----------------------------8<----% |
| 2572 |
\MessageBreak |
| 2573 |
\space\space\space |
| 2574 |
\string\documentclass[\@percentchar |
| 2575 |
\MessageBreak |
| 2576 |
\space\space\space\space\space |
| 2577 |
mathfont = {XITSMath-Regular.otf}% |
| 2578 |
\@percentchar |
| 2579 |
\MessageBreak |
| 2580 |
\space\space\space |
| 2581 |
]{udiss}\MessageBreak |
| 2582 |
\space\space\space |
| 2583 |
----8<----------------------------8<----% |
| 2584 |
\MessageBreak\MessageBreak |
| 2585 |
2. The alternative:% |
| 2586 |
\MessageBreak |
| 2587 |
\space\space\space |
| 2588 |
----8<-------------------------8<----% |
| 2589 |
\MessageBreak |
| 2590 |
\space\space\space |
| 2591 |
\string\documentclass[\@percentchar |
| 2592 |
\MessageBreak |
| 2593 |
\space\space\space\space\space |
| 2594 |
explicitext,\@percentchar |
| 2595 |
\MessageBreak |
| 2596 |
\space\space\space\space\space |
| 2597 |
mathfont = {XITSMath-Regular},% |
| 2598 |
\@percentchar |
| 2599 |
\MessageBreak |
| 2600 |
\space\space\space\space\space |
| 2601 |
mathfntext = {otf}\@percentchar |
| 2602 |
\MessageBreak |
| 2603 |
\space\space\space |
| 2604 |
]{udiss}% |
| 2605 |
\MessageBreak |
| 2606 |
\space\space\space |
| 2607 |
----8<-------------------------8<----% |
| 2608 |
}% |
| 2609 |
\fi |
| 2610 |
}% |
| 2611 |
},% |
| 2612 |
} |
| 2613 |
% \end{macrocode} |
| 2614 |
% \end{macro} |
| 2615 |
% |
| 2616 |
% \begin{macro}{^^A |
| 2617 |
% titleshape,titlefont,titleffeat,titlesize,titlecolor^^A |
| 2618 |
% } |
| 2619 |
% We store various variables in these keys for customising |
| 2620 |
% the layout of the title-page. The following are the keys |
| 2621 |
% specifically developed for customising the title. The |
| 2622 |
% sizing is done with internal macros specifically |
| 2623 |
% designed for consistent size-changing. We use |
| 2624 |
% \pkg{fontspec}-scaling for that. |
| 2625 |
% |
| 2626 |
% \begin{macrocode} |
| 2627 |
\ekvdefinekeys{udiss}{% |
| 2628 |
store titleshape = {\udiss@title@shape},% |
| 2629 |
initial titleshape = {\bfseries},% |
| 2630 |
store titlefont = {\udiss@title@font},% |
| 2631 |
store titlesize = {\udiss@title@size},% |
| 2632 |
initial titlesize = {\udiss@int@huge},% |
| 2633 |
store titlecolor = {\udiss@title@color},% |
| 2634 |
initial titlecolor = {black},% |
| 2635 |
store titleffeat = {\udiss@title@fontfeats},% |
| 2636 |
initial titleffeat = {}% |
| 2637 |
} |
| 2638 |
% \end{macrocode} |
| 2639 |
% \end{macro} |
| 2640 |
% \begin{macro}{^^A |
| 2641 |
% subtitleshape,subtitlefont,subtitleffeat,^^A |
| 2642 |
% subtitlesize,subtitlecolor^^A |
| 2643 |
% } |
| 2644 |
% The same logic is applied for subtitles and these |
| 2645 |
% variables are created. |
| 2646 |
% |
| 2647 |
% \begin{macrocode} |
| 2648 |
\ekvdefinekeys{udiss}{% |
| 2649 |
store subtitleshape = {\udiss@subtitle@shape},% |
| 2650 |
initial subtitleshape = {\normalfont},% |
| 2651 |
store subtitlefont = {\udiss@subtitle@font},% |
| 2652 |
store subtitlesize = {\udiss@subtitle@size},% |
| 2653 |
initial subtitlesize = {\udiss@int@large},% |
| 2654 |
store subtitlecolor = {\udiss@subtitle@color},% |
| 2655 |
initial subtitlecolor = {black},% |
| 2656 |
store subtitleffeat = {\udiss@subtitle@fontfeats},% |
| 2657 |
initial subtitleffeat = {}% |
| 2658 |
} |
| 2659 |
% \end{macrocode} |
| 2660 |
% \end{macro} |
| 2661 |
% \begin{macro}{^^A |
| 2662 |
% authorshape,authorfont,authorsize,authorcolor,^^A |
| 2663 |
% authorffeat^^A |
| 2664 |
% } |
| 2665 |
% Similarly, we have the following keys for author. |
| 2666 |
% |
| 2667 |
% \begin{macrocode} |
| 2668 |
\ekvdefinekeys{udiss}{% |
| 2669 |
store authorshape = {\udiss@author@shape},% |
| 2670 |
initial authorshape = {\normalfont},% |
| 2671 |
store authorfont = {\udiss@author@font},% |
| 2672 |
store authorsize = {\udiss@author@size},% |
| 2673 |
initial authorsize = {\udiss@int@large},% |
| 2674 |
store authorcolor = {\udiss@author@color},% |
| 2675 |
initial authorcolor = {black},% |
| 2676 |
store authorffeat = {\udiss@author@fontfeats},% |
| 2677 |
initial authorffeat = {}% |
| 2678 |
} |
| 2679 |
% \end{macrocode} |
| 2680 |
% \end{macro} |
| 2681 |
% \begin{macro}{^^A |
| 2682 |
% unishape,unifont,unisize,unicolor,uniffeat^^A |
| 2683 |
% } |
| 2684 |
% The same pattern for printing the university name. |
| 2685 |
% |
| 2686 |
% \begin{macrocode} |
| 2687 |
\ekvdefinekeys{udiss}{% |
| 2688 |
store unishape = {\udiss@uni@shape},% |
| 2689 |
initial unishape = {\itshape},% |
| 2690 |
store unifont = {\udiss@uni@font},% |
| 2691 |
store unisize = {\udiss@uni@size},% |
| 2692 |
initial unisize = {\normalsize},% |
| 2693 |
store unicolor = {\udiss@uni@color},% |
| 2694 |
initial unicolor = {black},% |
| 2695 |
store uniffeat = {\udiss@uni@fontfeats}% |
| 2696 |
} |
| 2697 |
% \end{macrocode} |
| 2698 |
% \end{macro} |
| 2699 |
% \begin{macro}{^^A |
| 2700 |
% deptshape,deptfont,deptsize,deptcolor,deptffeat^^A |
| 2701 |
% } |
| 2702 |
% The following keys for the department. |
| 2703 |
% |
| 2704 |
% \begin{macrocode} |
| 2705 |
\ekvdefinekeys{udiss}{% |
| 2706 |
store deptshape = {\udiss@dept@shape},% |
| 2707 |
initial deptshape = {\normalfont},% |
| 2708 |
store deptfont = {\udiss@dept@font},% |
| 2709 |
store deptsize = {\udiss@dept@size},% |
| 2710 |
initial deptsize = {\udiss@int@small},% |
| 2711 |
store deptcolor = {\udiss@dept@color},% |
| 2712 |
initial deptcolor = {black},% |
| 2713 |
store deptffeat = {\udiss@dept@fontfeats},% |
| 2714 |
initial deptffeat = {}% |
| 2715 |
} |
| 2716 |
% \end{macrocode} |
| 2717 |
% \end{macro} |
| 2718 |
% \begin{macro}{^^A |
| 2719 |
% ffshape,fffont,ffsize,ffcolor,ffffeat^^A |
| 2720 |
% } |
| 2721 |
% These are for the fulfilment-text. |
| 2722 |
% |
| 2723 |
% \begin{macrocode} |
| 2724 |
\ekvdefinekeys{udiss}{% |
| 2725 |
store ffshape = {\udiss@fulfilment@shape},% |
| 2726 |
initial ffshape = {\normalfont},% |
| 2727 |
store fffont = {\udiss@fulfilment@font},% |
| 2728 |
store ffsize = {\udiss@fulfilment@size},% |
| 2729 |
initial ffsize = {\udiss@int@small},% |
| 2730 |
store ffcolor = {\udiss@fulfilment@color},% |
| 2731 |
initial ffcolor = {black},% |
| 2732 |
store fffeat = {\udiss@fulfilment@fontfeats},% |
| 2733 |
initial fffeat = {}% |
| 2734 |
} |
| 2735 |
% \end{macrocode} |
| 2736 |
% \end{macro} |
| 2737 |
% \begin{macro}{^^A |
| 2738 |
% logowidth,logoheight^^A |
| 2739 |
% } |
| 2740 |
% The following parameters save the values for the |
| 2741 |
% logo-height and the logo-width. These are the last |
| 2742 |
% options after which we |\Process| our options. |
| 2743 |
% |
| 2744 |
% \begin{macrocode} |
| 2745 |
\ekvdefinekeys{udiss}{% |
| 2746 |
store logowidth = {\udiss@logo@width},% |
| 2747 |
initial logowidth = {0.3},% |
| 2748 |
store logoheight = {\udiss@logo@hght},% |
| 2749 |
initial logoheight = {0.075}% |
| 2750 |
} |
| 2751 |
\ekvoProcessGlobalOptions{udiss} |
| 2752 |
% \end{macrocode} |
| 2753 |
% \end{macro} |
| 2754 |
% |
| 2755 |
% \begin{macro}{\dissertationstyle} |
| 2756 |
% We develop the command for loading custom styles. It |
| 2757 |
% just inputs files starting with |udiss-style-| followed |
| 2758 |
% by the designated tag, e.g., |ukerala| for the |
| 2759 |
% university of Kerala. |
| 2760 |
% |
| 2761 |
% \begin{macrocode} |
| 2762 |
\NewDocumentCommand{ \dissertationstyle }{ m }{% |
| 2763 |
\AddToHook{begindocument/before}{% |
| 2764 |
\input{udiss-style-#1}% |
| 2765 |
}% |
| 2766 |
} |
| 2767 |
% \end{macrocode} |
| 2768 |
% \end{macro} |
| 2769 |
% |
| 2770 |
% To minimise loading a lot of packages, we use the |
| 2771 |
% \cls{memoir} class which provides many features useful for |
| 2772 |
% document-creation. But we also need to set print and |
| 2773 |
% digital versions of the dissertations. For that we use our |
| 2774 |
% conditional. |
| 2775 |
% |
| 2776 |
% \begin{macrocode} |
| 2777 |
\ifudiss@print |
| 2778 |
\else |
| 2779 |
\PassOptionsToClass{oneside}{memoir}% |
| 2780 |
\fi |
| 2781 |
\LoadClass{memoir} |
| 2782 |
% \end{macrocode} |
| 2783 |
% |
| 2784 |
% \begin{macro}{\title,\author} |
| 2785 |
% We defined most other commands as per the flow of the |
| 2786 |
% documentation, but as mentioned before, we had kept |
| 2787 |
% |\title| and |\author| aside. As mentioned before, we |
| 2788 |
% did so because these commands are defined by the |
| 2789 |
% \cls{memoir} class. If we had defined it before loading |
| 2790 |
% the memoir class (which we just loaded), the commands |
| 2791 |
% would have got renewed after loading the class and thus |
| 2792 |
% our internal macros would have failed. On the other |
| 2793 |
% hand, we could not have loaded the memoir class in the |
| 2794 |
% beginning, because we use the |\ifudiss@print| |
| 2795 |
% conditional, i.e., developed with the help of |
| 2796 |
% \expkvlogo{def} package. Even if we had separated the |
| 2797 |
% code of |print| key, it would have been necessary to |
| 2798 |
% process the keys using |\ekvoProcessGlobalOptions|, but |
| 2799 |
% we could not have done that since there were a lot of |
| 2800 |
% other options pending. This is why, we develop the |
| 2801 |
% |\title| and |\author| commands now. |
| 2802 |
% |
| 2803 |
% \begin{macrocode} |
| 2804 |
\RenewDocumentCommand{ \title }{ m }{% |
| 2805 |
\IfBlankTF{#1}{% |
| 2806 |
\udiss@blank@title@err |
| 2807 |
\def\udiss@title{-NoValidTitle-}% |
| 2808 |
}{% |
| 2809 |
\def\udiss@title{#1}% |
| 2810 |
}% |
| 2811 |
} |
| 2812 |
\RenewDocumentCommand{ \author }{ m }{% |
| 2813 |
\IfBlankTF{#1}{% |
| 2814 |
\udiss@blank@author@err |
| 2815 |
\def\udiss@author{-NoValidAuthor-}% |
| 2816 |
}{% |
| 2817 |
\def\udiss@author{#1}% |
| 2818 |
}% |
| 2819 |
} |
| 2820 |
% \end{macrocode} |
| 2821 |
% \end{macro} |
| 2822 |
% |
| 2823 |
% We are using OpenType fonts for better accessibility. They |
| 2824 |
% are incompatible with the classic PDF\LaTeX\ and require |
| 2825 |
% either Lua\LaTeX\ or \hologo{XeLaTeX} for compilation. To |
| 2826 |
% ensure that one of these two is loaded, we load the |
| 2827 |
% \pkg{iftex} package and mandate a Unicode engine with the |
| 2828 |
% |\RequireTUTeX| command. |
| 2829 |
% |
| 2830 |
% \begin{macrocode} |
| 2831 |
\RequirePackage{iftex} |
| 2832 |
\RequireTUTeX |
| 2833 |
% \end{macrocode} |
| 2834 |
% |
| 2835 |
% We used custom \cls{udiss} size commands. They are |
| 2836 |
% developed with \pkg{fontspec}-scaling as follows: |
| 2837 |
% |
| 2838 |
% \begin{macrocode} |
| 2839 |
\def\udiss@int@HUGE{% |
| 2840 |
\addfontfeature{Scale={2.5}}% |
| 2841 |
} |
| 2842 |
\def\udiss@int@Huge{% |
| 2843 |
\addfontfeature{Scale={2}}% |
| 2844 |
} |
| 2845 |
\def\udiss@int@huge{% |
| 2846 |
\addfontfeature{Scale={1.7}}% |
| 2847 |
} |
| 2848 |
\def\udiss@int@LARGE{% |
| 2849 |
\addfontfeature{Scale={1.4}}% |
| 2850 |
} |
| 2851 |
\def\udiss@int@Large{% |
| 2852 |
\addfontfeature{Scale={1.2}}% |
| 2853 |
} |
| 2854 |
\def\udiss@int@large{% |
| 2855 |
\addfontfeature{Scale={1.1}}% |
| 2856 |
} |
| 2857 |
\def\udiss@int@small{% |
| 2858 |
\addfontfeature{Scale={0.9}}% |
| 2859 |
} |
| 2860 |
\def\udiss@int@footnotesize{% |
| 2861 |
\addfontfeature{Scale={0.8}}% |
| 2862 |
} |
| 2863 |
\def\udiss@int@scriptsize{% |
| 2864 |
\addfontfeature{Scale={0.7}}% |
| 2865 |
} |
| 2866 |
\def\udiss@int@tiny{% |
| 2867 |
\addfontfeature{Scale={0.6}}% |
| 2868 |
} |
| 2869 |
\def\udiss@int@miniscule{% |
| 2870 |
\addfontfeature{Scale={0.5}}% |
| 2871 |
} |
| 2872 |
% \end{macrocode} |
| 2873 |
% |
| 2874 |
% We require the \pkg{babel} package for loading the |
| 2875 |
% language settings. We have the following three situations |
| 2876 |
% with loading languages in \cls{udiss}: |
| 2877 |
% |
| 2878 |
% \begin{enumerate} |
| 2879 |
% \item Users don't load any of the language options at all. |
| 2880 |
% \item Users load languages with option |ldfbabel|. |
| 2881 |
% \item Users load languages with option |language|. |
| 2882 |
% \end{enumerate} |
| 2883 |
% |
| 2884 |
% If a user has used |ldfbabel|, then the macro which stores |
| 2885 |
% the language-list is directly passed to the package using |
| 2886 |
% |\PassOptionsToPackage|. |
| 2887 |
% |
| 2888 |
% \begin{macrocode} |
| 2889 |
\ifudiss@lg@used |
| 2890 |
\ifudiss@ldfbabel |
| 2891 |
\PassOptionsToPackage{% |
| 2892 |
\udiss@ldfbabel@list |
| 2893 |
}{babel}% |
| 2894 |
\fi |
| 2895 |
% \end{macrocode} |
| 2896 |
% |
| 2897 |
% If user hasn't loaded any language options, we assume that |
| 2898 |
% they have no intent to load languages that require |.ldf| |
| 2899 |
% files and hence we mandate loading |.ini| files for all |
| 2900 |
% the languages. In addition to that, we load |english| as |
| 2901 |
% the main language. This takes care of the first two |
| 2902 |
% situations. |
| 2903 |
% |
| 2904 |
% \begin{macrocode} |
| 2905 |
\else |
| 2906 |
\PassOptionsToPackage{english,provide*=*}{babel}% |
| 2907 |
\fi |
| 2908 |
\RequirePackage{babel} |
| 2909 |
% \end{macrocode} |
| 2910 |
% |
| 2911 |
% We also load package \pkg{iflang} for testing |
| 2912 |
% language-names. |
| 2913 |
% |
| 2914 |
% \begin{macrocode} |
| 2915 |
\RequirePackage{iflang} |
| 2916 |
% \end{macrocode} |
| 2917 |
% |
| 2918 |
% First we check if the user has loaded |ldf| languages. We |
| 2919 |
% ignore that branch completely. If it is not loaded and |
| 2920 |
% they have loaded exactly one language, then we set that |
| 2921 |
% language as the main language. Note that when user uses |
| 2922 |
% one language, the value of the counter is 2 as it is |
| 2923 |
% increased by the counter each time. |
| 2924 |
% |
| 2925 |
% \begin{macrocode} |
| 2926 |
\newcounter{udiss@tmp@langcnt} |
| 2927 |
\ifudiss@ldfbabel |
| 2928 |
\else |
| 2929 |
\ifudiss@lg@used |
| 2930 |
\ifnum\theudiss@langbabel=2\relax |
| 2931 |
\addtocounter{udiss@langbabel}{-1}% |
| 2932 |
\ifLuaTeX |
| 2933 |
\babelprovide[% |
| 2934 |
main,% |
| 2935 |
import,% |
| 2936 |
onchar ={ids fonts}% |
| 2937 |
]{% |
| 2938 |
\csname |
| 2939 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 2940 |
\endcsname |
| 2941 |
}% |
| 2942 |
\else |
| 2943 |
\babelprovide[main,import]{% |
| 2944 |
\csname |
| 2945 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 2946 |
\endcsname |
| 2947 |
}% |
| 2948 |
\fi |
| 2949 |
\fi |
| 2950 |
% \end{macrocode}% |
| 2951 |
% |
| 2952 |
% When users use multiple languages, the situation is a bit |
| 2953 |
% more complicated. Because the parser parses and increases |
| 2954 |
% the counter each time. Suppose, the user provided 5 |
| 2955 |
% languages, the parser will create 5 macros \emph{and} |
| 2956 |
% increase the counter for one last time resulting in the |
| 2957 |
% value 6. In order to stop processing when the number of |
| 2958 |
% actually used languages is reached, we need to store the |
| 2959 |
% current number \emph{minus one} because of this. We have |
| 2960 |
% to start a loop from value 1 till it reaches the last |
| 2961 |
% value. For this, we reset the counter. In order % to stop |
| 2962 |
% when all the languages are parsed, we need to remember the |
| 2963 |
% actual value of the counter somewhere. Hence we create a |
| 2964 |
% temporary counter for this and equate it with the value of |
| 2965 |
% our actual counter minus 1. Note that we escape |
| 2966 |
% |\ifudiss@ldfbabel| too. Now we start the calculation when |
| 2967 |
% the counter's value is 3 or more, basically the author has |
| 2968 |
% to use at least two languages in order to activate the |
| 2969 |
% loop ahead. |
| 2970 |
% |
| 2971 |
% \begin{macrocode} |
| 2972 |
\ifnum\theudiss@langbabel>2\relax |
| 2973 |
\setcounter{udiss@tmp@langcnt}{% |
| 2974 |
\numexpr\theudiss@langbabel -1\relax |
| 2975 |
}% |
| 2976 |
% \end{macrocode} |
| 2977 |
% |
| 2978 |
% We now can safely manipulate our actual counter. Starting |
| 2979 |
% from the first language, we load all of them with the |
| 2980 |
% |\babelprovide| command. We reset the counter to 1: |
| 2981 |
% |
| 2982 |
% \begin{macrocode} |
| 2983 |
\setcounter{udiss@langbabel}{1}% |
| 2984 |
% \end{macrocode} |
| 2985 |
% |
| 2986 |
% Now we start a loop. |
| 2987 |
% |
| 2988 |
% \begin{macrocode} |
| 2989 |
\loop |
| 2990 |
% \end{macrocode} |
| 2991 |
% |
| 2992 |
% Only Lua\LaTeX\ supports the |ids fonts| parameter with |
| 2993 |
% |\babelprovide| for applying fonts to the input text with |
| 2994 |
% respect to their Unicode slots. That is why we start the |
| 2995 |
% |\ifLuaTeX| conditional and load the |onchar| option. |
| 2996 |
% Loading a conditional inside |\babelprovide| wasn't |
| 2997 |
% permitted because of expansion, hence we load the entire |
| 2998 |
% command in the else branch. Notice that there is no space |
| 2999 |
% after the |=| sign of the |onchar| option. To know why, |
| 3000 |
% you may want to read this wonderful answer by Jonathan P. |
| 3001 |
% Spratte: \url{https://topanswers.xyz/tex?q=8039#a7652}. |
| 3002 |
% |
| 3003 |
% \begin{macrocode} |
| 3004 |
\ifLuaTeX |
| 3005 |
\babelprovide[% |
| 3006 |
import,% |
| 3007 |
onchar ={ids fonts}% |
| 3008 |
]{% |
| 3009 |
% \end{macrocode} |
| 3010 |
% |
| 3011 |
% Now we pass |\udiss@langbabel@a| as an argument to |
| 3012 |
% |\babelprovide| command (the value of the counter is as of |
| 3013 |
% now 1). |
| 3014 |
% |
| 3015 |
% \begin{macrocode} |
| 3016 |
\csname |
| 3017 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3018 |
\endcsname |
| 3019 |
}% |
| 3020 |
% \end{macrocode} |
| 3021 |
% |
| 3022 |
% We start the |\else| branch and use the same thing again, |
| 3023 |
% just without the |onchar| option . |
| 3024 |
% |
| 3025 |
% \begin{macrocode} |
| 3026 |
\else |
| 3027 |
\babelprovide[import]{% |
| 3028 |
\csname |
| 3029 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3030 |
\endcsname |
| 3031 |
}% |
| 3032 |
\fi |
| 3033 |
% \end{macrocode} |
| 3034 |
% |
| 3035 |
% Woohoo! We loaded the first language successfully. Now, we |
| 3036 |
% increment the counter, but there is another situation |
| 3037 |
% which we have to take into account. What if the user just |
| 3038 |
% loaded a single language with the |language| option? The |
| 3039 |
% loop will run into trouble, that's why we only run the |
| 3040 |
% loop if the value of the total number of languages is more |
| 3041 |
% than one. We had saved it in a temporary counter. |
| 3042 |
% |
| 3043 |
% \begin{macrocode} |
| 3044 |
\ifnum\theudiss@tmp@langcnt=1\relax |
| 3045 |
\else |
| 3046 |
\addtocounter{udiss@langbabel}{1}% |
| 3047 |
\fi |
| 3048 |
% \end{macrocode} |
| 3049 |
% |
| 3050 |
% Now the value of the counter is 2 which means the second |
| 3051 |
% language. We need to again load the same settings for it, |
| 3052 |
% but we can't keep doing this manually since 1) we are lazy |
| 3053 |
% (the most important) 2) we have no idea how many languages |
| 3054 |
% the user has loaded, so now we actually activate the |
| 3055 |
% |\loop| that we had started with the |\repeat| command. It |
| 3056 |
% runs all the commands seen after the |\loop| command (this |
| 3057 |
% includes the one used for increasing the counter too) till |
| 3058 |
% the value of the counter is less than the value of |
| 3059 |
% |udiss@tmp@langcnt|. Remember we had already set it to the |
| 3060 |
% value of the original counter (before setting it to 1) |
| 3061 |
% \emph{minus one}. Now the next command will stop at one |
| 3062 |
% number even lesser than it as we have used the |<| |
| 3063 |
% relation while comparing. Also, here we will close the |
| 3064 |
% if-conditional that checked if more than one languages |
| 3065 |
% were used or not. |
| 3066 |
% |
| 3067 |
% \begin{macrocode} |
| 3068 |
\ifnum\theudiss@langbabel<\theudiss@tmp@langcnt |
| 3069 |
\relax |
| 3070 |
\repeat |
| 3071 |
\fi |
| 3072 |
% \end{macrocode} |
| 3073 |
% |
| 3074 |
% Are you wondering why we did this? Because we want to set |
| 3075 |
% the \emph{exact} last language as the |main| language! The |
| 3076 |
% current value of our counter at this point has that |
| 3077 |
% language. But remember we are out of the loop as well as |
| 3078 |
% the if-conditional. Thus we have to again consider the |
| 3079 |
% situation where user just passed one language. So far what |
| 3080 |
% we have done is load all the languages except the last one |
| 3081 |
% with |\babelprovide|. This includes the single-language |
| 3082 |
% case. Thus we need no further processing in that case. So |
| 3083 |
% we only parse the last pending language if the user had |
| 3084 |
% passed multiple languages. We start an if-conditional and |
| 3085 |
% keep its |if|-branch empty and write the rest in the |
| 3086 |
% |else|-branch. |
| 3087 |
% |
| 3088 |
% \begin{macrocode} |
| 3089 |
\ifnum\theudiss@langbabel=1\relax |
| 3090 |
% \end{macrocode} |
| 3091 |
% |
| 3092 |
% We again use |\babelprovide|, but this time with |main| |
| 3093 |
% option. Load the last language successfully. |
| 3094 |
% |
| 3095 |
% \begin{macrocode} |
| 3096 |
\else |
| 3097 |
\ifLuaTeX |
| 3098 |
\babelprovide[% |
| 3099 |
main,% |
| 3100 |
import,% |
| 3101 |
onchar ={ids fonts}% |
| 3102 |
]{% |
| 3103 |
\csname |
| 3104 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3105 |
\endcsname |
| 3106 |
}% |
| 3107 |
\else |
| 3108 |
\babelprovide[main,import]{% |
| 3109 |
\csname |
| 3110 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3111 |
\endcsname |
| 3112 |
}% |
| 3113 |
\fi |
| 3114 |
\fi |
| 3115 |
% \end{macrocode} |
| 3116 |
% |
| 3117 |
% Now it's the time to load language support files. We need |
| 3118 |
% to load all the language support files and here we don't |
| 3119 |
% have the constraint to treat the last language specially. |
| 3120 |
% Therefore we add 1 to the temporary counter (the one that |
| 3121 |
% was decreased before). |
| 3122 |
% |
| 3123 |
% \begin{macrocode} |
| 3124 |
\setcounter{udiss@tmp@langcnt}{% |
| 3125 |
\numexpr\theudiss@langbabel + 1\relax |
| 3126 |
}% |
| 3127 |
% \end{macrocode} |
| 3128 |
% |
| 3129 |
% We again start from the first language. If the support |
| 3130 |
% file exists for that language, we |\input| it. |
| 3131 |
% |
| 3132 |
% \begin{macrocode} |
| 3133 |
\setcounter{udiss@langbabel}{1}% |
| 3134 |
\loop |
| 3135 |
\IfFileExists{% |
| 3136 |
udiss-fonts-\csname |
| 3137 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3138 |
\endcsname |
| 3139 |
}{% |
| 3140 |
\input{% |
| 3141 |
udiss-fonts-\csname |
| 3142 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3143 |
\endcsname |
| 3144 |
}% |
| 3145 |
% \end{macrocode} |
| 3146 |
% |
| 3147 |
% Otherwise, we check if the warning option is true. By |
| 3148 |
% default it is always true, but if the user has used |
| 3149 |
% |nofontwarning| option to turn them off, this conditional |
| 3150 |
% should do its job. |
| 3151 |
% |
| 3152 |
% \begin{macrocode} |
| 3153 |
}{% |
| 3154 |
\ifudiss@font@warning |
| 3155 |
\ClassWarningNoLine{udiss}{% |
| 3156 |
We don't support \csname |
| 3157 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3158 |
\endcsname\space yet.% |
| 3159 |
\MessageBreak |
| 3160 |
It requires a font-setup. You may add the fonts |
| 3161 |
directly\MessageBreak to your preamble using:% |
| 3162 |
\MessageBreak\MessageBreak |
| 3163 |
\space\space\string\babelfont[% |
| 3164 |
\csname |
| 3165 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3166 |
\endcsname |
| 3167 |
]{rm}{main font}% |
| 3168 |
\MessageBreak |
| 3169 |
\space\space\string\babelfont[% |
| 3170 |
\csname |
| 3171 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3172 |
\endcsname |
| 3173 |
]{sf}{sans font}% |
| 3174 |
\MessageBreak |
| 3175 |
\space\space\string\babelfont[% |
| 3176 |
\csname |
| 3177 |
udiss@langbabel@\alph{udiss@langbabel}% |
| 3178 |
\endcsname |
| 3179 |
]{tt}{mono font}% |
| 3180 |
\MessageBreak\MessageBreak |
| 3181 |
Read more about this in the documentation of |
| 3182 |
`udiss' in a\MessageBreak section called |
| 3183 |
`multilingual typesetting'. Consider% |
| 3184 |
\MessageBreak contacting us with a support |
| 3185 |
request and let us know some\MessageBreak |
| 3186 |
suitable free (libre) fonts for this |
| 3187 |
language. If you\MessageBreak don't wish to see |
| 3188 |
this warning again, use the option% |
| 3189 |
\MessageBreak `nofontwarning' to suppress it% |
| 3190 |
}% |
| 3191 |
\fi |
| 3192 |
}% |
| 3193 |
% \end{macrocode} |
| 3194 |
% |
| 3195 |
% Like before, we increment the counter and start the loop |
| 3196 |
% till this is repeated for all the languages. |
| 3197 |
% |
| 3198 |
% \begin{macrocode} |
| 3199 |
\addtocounter{udiss@langbabel}{1}% |
| 3200 |
\ifnum\theudiss@langbabel<\theudiss@tmp@langcnt\relax |
| 3201 |
\repeat |
| 3202 |
\fi |
| 3203 |
\fi |
| 3204 |
% \end{macrocode} |
| 3205 |
% |
| 3206 |
% After all this processing, we load the Roman, |
| 3207 |
% \texttt{Typewriter} and \textsf{Sans} fonts stored in the |
| 3208 |
% variables set by \emph{key}s. |
| 3209 |
% |
| 3210 |
% \begin{macrocode} |
| 3211 |
\babelfont{rm}[% |
| 3212 |
\ifudiss@ignorefontspec |
| 3213 |
IgnoreFontspecFile,% |
| 3214 |
\fi |
| 3215 |
\ifudiss@explicitext |
| 3216 |
Extension = {.\udiss@rmfntext},% |
| 3217 |
\fi |
| 3218 |
BoldFont = {\udiss@rmbffont},% |
| 3219 |
ItalicFont = {\udiss@rmitfont},% |
| 3220 |
BoldItalicFont = {\udiss@rmbfitfont},% |
| 3221 |
SlantedFont = {\udiss@rmslfont},% |
| 3222 |
BoldSlantedFont = {\udiss@rmbfslfont},% |
| 3223 |
\ifudiss@oldstylenum |
| 3224 |
Numbers = {OldStyle},% |
| 3225 |
\ifudiss@oldone |
| 3226 |
CharacterVariant = {6},% |
| 3227 |
\fi |
| 3228 |
\fi |
| 3229 |
\ifLuaTeX |
| 3230 |
Renderer = {HarfBuzz},% |
| 3231 |
\fi |
| 3232 |
\udiss@rmfeatures |
| 3233 |
]{\udiss@rmfont} |
| 3234 |
\babelfont{sf}[% |
| 3235 |
\ifudiss@ignorefontspec |
| 3236 |
IgnoreFontspecFile,% |
| 3237 |
\fi |
| 3238 |
\ifudiss@explicitext |
| 3239 |
Extension = {.\udiss@sffntext},% |
| 3240 |
\fi |
| 3241 |
BoldFont = {\udiss@sfbffont},% |
| 3242 |
ItalicFont = {\udiss@sfitfont},% |
| 3243 |
BoldItalicFont = {\udiss@sfbfitfont},% |
| 3244 |
SlantedFont = {\udiss@sfslfont},% |
| 3245 |
BoldSlantedFont = {\udiss@sfbfslfont},% |
| 3246 |
\ifudiss@oldstylenum |
| 3247 |
Numbers = {OldStyle},% |
| 3248 |
\ifudiss@oldone |
| 3249 |
CharacterVariant = {6},% |
| 3250 |
\fi |
| 3251 |
\fi |
| 3252 |
\ifLuaTeX |
| 3253 |
Renderer = {HarfBuzz},% |
| 3254 |
\fi |
| 3255 |
\udiss@sffeatures |
| 3256 |
]{\udiss@sffont} |
| 3257 |
\babelfont{tt}[% |
| 3258 |
\ifudiss@ignorefontspec |
| 3259 |
IgnoreFontspecFile,% |
| 3260 |
\fi |
| 3261 |
\ifudiss@explicitext |
| 3262 |
Extension = {.\udiss@ttfntext},% |
| 3263 |
\fi |
| 3264 |
BoldFont = {\udiss@ttbffont},% |
| 3265 |
ItalicFont = {\udiss@ttitfont},% |
| 3266 |
BoldItalicFont = {\udiss@ttbfitfont},% |
| 3267 |
SlantedFont = {\udiss@ttslfont},% |
| 3268 |
BoldSlantedFont = {\udiss@ttbfslfont},% |
| 3269 |
\ifLuaTeX |
| 3270 |
Renderer = {HarfBuzz},% |
| 3271 |
\fi |
| 3272 |
\udiss@ttfeatures |
| 3273 |
]{\udiss@ttfont} |
| 3274 |
% \end{macrocode} |
| 3275 |
% |
| 3276 |
% We load the \pkg{unicode-math} here for loading the math |
| 3277 |
% fonts. After that, inside |\expanded|, we load the |
| 3278 |
% |\setmathfont| command. |
| 3279 |
% |
| 3280 |
% \begin{macrocode} |
| 3281 |
\RequirePackage{unicode-math} |
| 3282 |
\expanded{% |
| 3283 |
\setmathfont[% |
| 3284 |
\ifudiss@ignorefontspec% |
| 3285 |
IgnoreFontspecFile,% |
| 3286 |
\fi% |
| 3287 |
\ifudiss@explicitext |
| 3288 |
Extension = {.\udiss@mathfntext},% |
| 3289 |
\fi |
| 3290 |
BoldFont = {\udiss@mathbffont},% |
| 3291 |
SlantedFont = {\udiss@mathfont},% |
| 3292 |
BoldSlantedFont = {\udiss@mathbffont},% |
| 3293 |
\udiss@mathfeatures% |
| 3294 |
]{\udiss@mathfont}% |
| 3295 |
} |
| 3296 |
% \end{macrocode} |
| 3297 |
% |
| 3298 |
% Now we load a few last packages. |
| 3299 |
% |
| 3300 |
% \begin{macrocode} |
| 3301 |
\RequirePackage{graphicx} |
| 3302 |
\RequirePackage{xcolor} |
| 3303 |
\RequirePackage{csquotes} |
| 3304 |
% \end{macrocode} |
| 3305 |
% |
| 3306 |
% For Creative Commons license, we use the \pkg{doclicense} |
| 3307 |
% package with appropriate settings. |
| 3308 |
% |
| 3309 |
% \begin{macrocode} |
| 3310 |
\ifudiss@ccbysa |
| 3311 |
\RequirePackage[% |
| 3312 |
hyperxmp = {false},% |
| 3313 |
type = {CC},% |
| 3314 |
modifier = {by-sa},% |
| 3315 |
version = {4.0}% |
| 3316 |
]{doclicense} |
| 3317 |
\fi |
| 3318 |
% \end{macrocode} |
| 3319 |
% |
| 3320 |
% We set the \cls{udiss}-specific-colours with the following |
| 3321 |
% commands, but we set them conditionally. If the colours |
| 3322 |
% are disabled, we set the same colours to |black| value. |
| 3323 |
% \begin{macrocode} |
| 3324 |
\ifudiss@colors |
| 3325 |
\colorlet{udisslink}{red!60!black} |
| 3326 |
\colorlet{udissurl}{blue!60!black} |
| 3327 |
\colorlet{udisscite}{green!60!black} |
| 3328 |
\else |
| 3329 |
\colorlet{udisslink}{black} |
| 3330 |
\colorlet{udissurl}{black} |
| 3331 |
\colorlet{udisscite}{black} |
| 3332 |
\fi |
| 3333 |
% \end{macrocode} |
| 3334 |
% |
| 3335 |
% We start the hook |begindocument/before| and check if |
| 3336 |
% author did not provide any of the \emph{strict} fields |
| 3337 |
% and if they have done so, we generate errors. |
| 3338 |
% |
| 3339 |
% \begin{macrocode} |
| 3340 |
\AddToHook{begindocument/before}{% |
| 3341 |
\ifdefined\udiss@title |
| 3342 |
\else |
| 3343 |
\def\udiss@title{\textbf{-NoValidTitle-}}% |
| 3344 |
\ClassError{udiss}{% |
| 3345 |
Title not given% |
| 3346 |
}{% |
| 3347 |
`title' is a compulsory field. Provide it in the |
| 3348 |
preamble like in the following:% |
| 3349 |
\MessageBreak |
| 3350 |
\MessageBreak |
| 3351 |
----8<-----------------------8<----% |
| 3352 |
\MessageBreak\MessageBreak |
| 3353 |
\space\space\string\title{title-of-the-dissertation}% |
| 3354 |
\MessageBreak\MessageBreak |
| 3355 |
----8<-----------------------8<----% |
| 3356 |
\MessageBreak |
| 3357 |
}% |
| 3358 |
\fi |
| 3359 |
\ifdefined\udiss@author |
| 3360 |
\else |
| 3361 |
\def\udiss@author{\textbf{-NoValidAuthor-}}% |
| 3362 |
\ClassError{udiss}{% |
| 3363 |
No author given in a normal (non-blind) document% |
| 3364 |
}{% |
| 3365 |
Do you want a blind document? If yes, then use the |
| 3366 |
package option `blind' like\MessageBreak in the |
| 3367 |
following:% |
| 3368 |
\MessageBreak |
| 3369 |
----8<------------------8<----% |
| 3370 |
\MessageBreak\MessageBreak |
| 3371 |
\space\space\string\documentclass[blind]{udiss}% |
| 3372 |
\MessageBreak\MessageBreak |
| 3373 |
----8<------------------8<----% |
| 3374 |
\MessageBreak |
| 3375 |
Otherwise, `author' is a compulsory field. Provide it |
| 3376 |
in the preamble like in\MessageBreak the following:% |
| 3377 |
\MessageBreak |
| 3378 |
----8<-------------------------8<----% |
| 3379 |
\MessageBreak\MessageBreak |
| 3380 |
\space\space\string\author{author-name}% |
| 3381 |
\MessageBreak\MessageBreak |
| 3382 |
----8<-------------------------8<----% |
| 3383 |
\MessageBreak |
| 3384 |
}% |
| 3385 |
\fi |
| 3386 |
\ifdefined\udiss@stream |
| 3387 |
\else |
| 3388 |
\def\udiss@stream{\textbf{-NoValidStream-}}% |
| 3389 |
\ClassError{udiss}{% |
| 3390 |
Stream not given% |
| 3391 |
}{% |
| 3392 |
`stream' is a compulsory field. Provide it in the |
| 3393 |
preamble like in the following:% |
| 3394 |
\MessageBreak |
| 3395 |
\MessageBreak |
| 3396 |
----8<-----------------------8<----% |
| 3397 |
\MessageBreak\MessageBreak |
| 3398 |
\space\space\string\stream{stream-of-the-candidate}% |
| 3399 |
\MessageBreak\MessageBreak |
| 3400 |
----8<-----------------------8<----% |
| 3401 |
\MessageBreak |
| 3402 |
}% |
| 3403 |
\fi |
| 3404 |
\ifdefined\udiss@discipline |
| 3405 |
\else |
| 3406 |
\def\udiss@discipline{\textbf{-NoValidDiscipline-}}% |
| 3407 |
\ClassError{udiss}{% |
| 3408 |
Discipline not given% |
| 3409 |
}{% |
| 3410 |
`discipline' is a compulsory field. Provide it in the |
| 3411 |
preamble like in the following:% |
| 3412 |
\MessageBreak |
| 3413 |
\MessageBreak |
| 3414 |
----8<-----------------------8<----% |
| 3415 |
\MessageBreak\MessageBreak |
| 3416 |
\space\space\string\discipline% |
| 3417 |
{discipline-of-the-candidate}% |
| 3418 |
\MessageBreak\MessageBreak |
| 3419 |
----8<-----------------------8<----% |
| 3420 |
\MessageBreak |
| 3421 |
}% |
| 3422 |
\fi |
| 3423 |
\ifdefined\udiss@degree |
| 3424 |
\else |
| 3425 |
\def\udiss@degree{\textbf{-NoValidDegree-}}% |
| 3426 |
\ClassError{udiss}{% |
| 3427 |
Degree not given% |
| 3428 |
}{% |
| 3429 |
`degree' is a compulsory field. Provide it in the |
| 3430 |
preamble like in the following:% |
| 3431 |
\MessageBreak |
| 3432 |
\MessageBreak |
| 3433 |
----8<-----------------------8<----% |
| 3434 |
\MessageBreak\MessageBreak |
| 3435 |
\space\space\string\degree{degree-of-the-candidate}% |
| 3436 |
\MessageBreak\MessageBreak |
| 3437 |
----8<-----------------------8<----% |
| 3438 |
\MessageBreak |
| 3439 |
}% |
| 3440 |
\fi |
| 3441 |
\ifdefined\udiss@supervisor |
| 3442 |
\else |
| 3443 |
\def\udiss@title{\textbf{-NoValidTitle-}}% |
| 3444 |
\ClassError{udiss}{% |
| 3445 |
No supervisor given in a normal (non-blind) document% |
| 3446 |
}{% |
| 3447 |
Do you want a blind document? If yes, then use the |
| 3448 |
package option `blind' like\MessageBreak in the |
| 3449 |
following:% |
| 3450 |
\MessageBreak |
| 3451 |
----8<------------------8<----% |
| 3452 |
\MessageBreak\MessageBreak |
| 3453 |
\space\space\string\documentclass[blind]{udiss}% |
| 3454 |
\MessageBreak\MessageBreak |
| 3455 |
----8<------------------8<----% |
| 3456 |
\MessageBreak |
| 3457 |
Otherwise, `supervisor' is a compulsory field. Provide |
| 3458 |
it in the preamble like\MessageBreak in the |
| 3459 |
following:% |
| 3460 |
\MessageBreak |
| 3461 |
----8<-------------------------8<----% |
| 3462 |
\MessageBreak\MessageBreak |
| 3463 |
\space\space\string\supervisor{supervisor's-name}% |
| 3464 |
\MessageBreak\MessageBreak |
| 3465 |
----8<-------------------------8<----% |
| 3466 |
\MessageBreak |
| 3467 |
}% |
| 3468 |
\fi |
| 3469 |
\ifdefined\udiss@university |
| 3470 |
\else |
| 3471 |
\def\udiss@university{\textbf{-NoValidUniversity-}}% |
| 3472 |
\ClassError{udiss}{% |
| 3473 |
No university given in a normal (non-blind) document% |
| 3474 |
}{% |
| 3475 |
Do you want a blind document? If yes, then use the |
| 3476 |
package option `blind' like\MessageBreak in the |
| 3477 |
following:% |
| 3478 |
\MessageBreak |
| 3479 |
----8<------------------8<----% |
| 3480 |
\MessageBreak\MessageBreak |
| 3481 |
\space\space\string\documentclass[blind]{udiss}% |
| 3482 |
\MessageBreak\MessageBreak |
| 3483 |
----8<------------------8<----% |
| 3484 |
\MessageBreak |
| 3485 |
Otherwise, `university' is a compulsory field. Provide |
| 3486 |
it in the preamble like\MessageBreak in the |
| 3487 |
following:% |
| 3488 |
\MessageBreak |
| 3489 |
----8<-------------------------8<----% |
| 3490 |
\MessageBreak\MessageBreak |
| 3491 |
\space\space\string\university{university-name}% |
| 3492 |
\MessageBreak\MessageBreak |
| 3493 |
----8<-------------------------8<----% |
| 3494 |
\MessageBreak |
| 3495 |
}% |
| 3496 |
\fi |
| 3497 |
\ifdefined\udiss@department |
| 3498 |
\else |
| 3499 |
\def\udiss@department{\textbf{-NoValidDepartment-}}% |
| 3500 |
\ClassError{udiss}{% |
| 3501 |
No department given in a normal (non-blind) document% |
| 3502 |
}{% |
| 3503 |
Do you want a blind document? If yes, then use the |
| 3504 |
package option `blind' like\MessageBreak in the |
| 3505 |
following:% |
| 3506 |
\MessageBreak |
| 3507 |
----8<------------------8<----% |
| 3508 |
\MessageBreak\MessageBreak |
| 3509 |
\space\space\string\documentclass[blind]{udiss}% |
| 3510 |
\MessageBreak\MessageBreak |
| 3511 |
----8<------------------8<----% |
| 3512 |
\MessageBreak |
| 3513 |
Otherwise, `department'\space is a compulsory field. |
| 3514 |
Provide it in the preamble like in\MessageBreak the |
| 3515 |
following:% |
| 3516 |
\MessageBreak |
| 3517 |
----8<-------------------------8<----% |
| 3518 |
\MessageBreak\MessageBreak |
| 3519 |
\space\space\string\department{department-name}% |
| 3520 |
\MessageBreak\MessageBreak |
| 3521 |
----8<-------------------------8<----% |
| 3522 |
\MessageBreak |
| 3523 |
}% |
| 3524 |
\fi |
| 3525 |
% \end{macrocode} |
| 3526 |
% |
| 3527 |
% For printing, \pkg{hyperref} and \pkg{hyperxmp} are |
| 3528 |
% irrelevant, so we load them only when the documents are |
| 3529 |
% digital. |
| 3530 |
% |
| 3531 |
% \begin{macrocode} |
| 3532 |
\ifudiss@print |
| 3533 |
\else |
| 3534 |
\RequirePackage{hyperref}% |
| 3535 |
\RequirePackage{hyperxmp}% |
| 3536 |
% \end{macrocode} |
| 3537 |
% |
| 3538 |
% We set the metadata here using |\hypersetup| command. |
| 3539 |
% |
| 3540 |
% \begin{macrocode} |
| 3541 |
\hypersetup{% |
| 3542 |
unicode,% |
| 3543 |
colorlinks,% |
| 3544 |
pdftitle = {\udiss@title}% |
| 3545 |
}% |
| 3546 |
\ifudiss@subtitle |
| 3547 |
\hypersetup{% |
| 3548 |
pdfsubject = {\udiss@subtitle}% |
| 3549 |
}% |
| 3550 |
\fi |
| 3551 |
% \end{macrocode} |
| 3552 |
% |
| 3553 |
% We don't set author's name if the user has used the |
| 3554 |
% |blind| option as it defeats the whole purpose. If it is |
| 3555 |
% not used, we set the copyright information and the |
| 3556 |
% license-url. All-rights-reserved doesn't have a specific |
| 3557 |
% license-url, so it is used only if the user uses a free |
| 3558 |
% culture license. |
| 3559 |
% |
| 3560 |
% \begin{macrocode} |
| 3561 |
\ifudiss@blind |
| 3562 |
\else |
| 3563 |
\hypersetup{% |
| 3564 |
pdfauthor = {\udiss@author},% |
| 3565 |
pdfcopyright = {% |
| 3566 |
\udiss@title\textLF |
| 3567 |
\udiss@local@copyright\ |
| 3568 |
© |
| 3569 |
\udiss@copyrightable@years\ |
| 3570 |
\udiss@author\textLF |
| 3571 |
\udiss@license@notice |
| 3572 |
},% |
| 3573 |
}% |
| 3574 |
\ifudiss@free@culture |
| 3575 |
\hypersetup{% |
| 3576 |
pdflicenseurl = {% |
| 3577 |
\udiss@free@license@url |
| 3578 |
}% |
| 3579 |
}% |
| 3580 |
\fi |
| 3581 |
\fi |
| 3582 |
% \end{macrocode} |
| 3583 |
% |
| 3584 |
% If the color option is not disabled, we load the color |
| 3585 |
% variables with |\hypersetup|. |
| 3586 |
% |
| 3587 |
% \begin{macrocode} |
| 3588 |
\ifudiss@colors |
| 3589 |
\hypersetup{% |
| 3590 |
linkcolor = {\udiss@int@link@color},% |
| 3591 |
urlcolor = {\udiss@int@url@color},% |
| 3592 |
citecolor = {\udiss@int@cite@color}% |
| 3593 |
}% |
| 3594 |
% \end{macrocode} |
| 3595 |
% |
| 3596 |
% Otherwise, we use the |hidelinks| option of \pkg{hyperref} |
| 3597 |
% which creates links, but without colors. |
| 3598 |
% |
| 3599 |
% \begin{macrocode} |
| 3600 |
\else |
| 3601 |
\hypersetup{% |
| 3602 |
hidelinks% |
| 3603 |
}% |
| 3604 |
\fi |
| 3605 |
\fi |
| 3606 |
} |
| 3607 |
% \end{macrocode} |
| 3608 |
% |
| 3609 |
% Now, after setting everything, we typeset the front matter |
| 3610 |
% including title-page, table of contents, optionally list |
| 3611 |
% of figures/tables and declaration with the following code. |
| 3612 |
% |
| 3613 |
% \begin{macrocode} |
| 3614 |
\AddToHook{begindocument/end}{% |
| 3615 |
\begingroup |
| 3616 |
\thispagestyle{titlingpage}% |
| 3617 |
\ifudiss@ftitle |
| 3618 |
\setlength{\fboxsep}{25pt}% |
| 3619 |
\noindent\fbox{% |
| 3620 |
\begin{minipage}% |
| 3621 |
[c][\dimexpr\textheight-2\fboxsep-2\fboxrule]% |
| 3622 |
[c]{\dimexpr\linewidth-2\fboxsep-2\fboxrule}% |
| 3623 |
\fi |
| 3624 |
\hspace{0pt}% |
| 3625 |
\vspace{3em}% |
| 3626 |
\begin{center} |
| 3627 |
\begingroup |
| 3628 |
\udiss@title@shape |
| 3629 |
\ifx\udiss@title@font\empty |
| 3630 |
\else |
| 3631 |
\fontspec[\udiss@title@fontfeats]% |
| 3632 |
{\udiss@title@font}% |
| 3633 |
\fi |
| 3634 |
\udiss@title@size |
| 3635 |
\color{\udiss@title@color}% |
| 3636 |
\udiss@title |
| 3637 |
\endgroup |
| 3638 |
|
| 3639 |
\medskip |
| 3640 |
|
| 3641 |
\ifudiss@subtitle |
| 3642 |
\begingroup |
| 3643 |
\udiss@subtitle@shape |
| 3644 |
\ifx\udiss@subtitle@font\empty |
| 3645 |
\else |
| 3646 |
\fontspec[\udiss@subtitle@fontfeats]% |
| 3647 |
{\udiss@subtitle@font}% |
| 3648 |
\fi |
| 3649 |
\udiss@subtitle@size |
| 3650 |
\color{\udiss@subtitle@color}% |
| 3651 |
\udiss@subtitle |
| 3652 |
\endgroup |
| 3653 |
\fi |
| 3654 |
|
| 3655 |
\vfill |
| 3656 |
|
| 3657 |
\ifudiss@blind |
| 3658 |
\else |
| 3659 |
\begingroup |
| 3660 |
\udiss@author@shape |
| 3661 |
\ifx\udiss@author@font\empty |
| 3662 |
\else |
| 3663 |
\fontspec[\udiss@author@fontfeats]% |
| 3664 |
{\udiss@author@font}% |
| 3665 |
\fi |
| 3666 |
\udiss@author@size |
| 3667 |
\color{\udiss@author@color}% |
| 3668 |
\udiss@author |
| 3669 |
\ifudiss@pronouns |
| 3670 |
\begingroup |
| 3671 |
\space |
| 3672 |
\addfontfeature{Scale={0.6}}% |
| 3673 |
\udiss@pronouns |
| 3674 |
\endgroup |
| 3675 |
\fi |
| 3676 |
\endgroup |
| 3677 |
|
| 3678 |
\vspace{2em}% |
| 3679 |
\fi |
| 3680 |
|
| 3681 |
\begingroup |
| 3682 |
\udiss@fulfilment@shape |
| 3683 |
\ifx\udiss@fulfilment@font\empty |
| 3684 |
\else |
| 3685 |
\fontspec[\udiss@fulfilment@fontfeats]% |
| 3686 |
{\udiss@fulfilment@font}% |
| 3687 |
\fi |
| 3688 |
\udiss@fulfilment@size |
| 3689 |
\color{\udiss@fulfilment@color}% |
| 3690 |
\udiss@fulfilment |
| 3691 |
\endgroup |
| 3692 |
|
| 3693 |
\vfill |
| 3694 |
|
| 3695 |
\begingroup |
| 3696 |
\udiss@uni@shape |
| 3697 |
\ifx\udiss@uni@font\empty |
| 3698 |
\else |
| 3699 |
\fontspec[\udiss@university@fontfeats]% |
| 3700 |
{\udiss@uni@font}% |
| 3701 |
\fi |
| 3702 |
\udiss@uni@size |
| 3703 |
\color{\udiss@uni@color}% |
| 3704 |
\udiss@university |
| 3705 |
\endgroup |
| 3706 |
|
| 3707 |
\vspace{0.5em}% |
| 3708 |
|
| 3709 |
\begingroup |
| 3710 |
\udiss@dept@shape |
| 3711 |
\ifx\udiss@dept@font\empty |
| 3712 |
\else |
| 3713 |
\fontspec[\udiss@dept@fontfeats]% |
| 3714 |
{\udiss@dept@font}% |
| 3715 |
\fi |
| 3716 |
\udiss@dept@size |
| 3717 |
\color{\udiss@dept@color}% |
| 3718 |
\udiss@department |
| 3719 |
\endgroup |
| 3720 |
|
| 3721 |
\ifudiss@logo |
| 3722 |
\bigskip |
| 3723 |
\ifudiss@texlogo |
| 3724 |
\udiss@texlogo |
| 3725 |
\fi |
| 3726 |
\includegraphics[% |
| 3727 |
width = {% |
| 3728 |
\udiss@logo@width\linewidth |
| 3729 |
},% |
| 3730 |
height = {% |
| 3731 |
\udiss@logo@hght\textheight |
| 3732 |
}% |
| 3733 |
]{% |
| 3734 |
\udiss@logo |
| 3735 |
}% |
| 3736 |
\fi |
| 3737 |
\end{center} |
| 3738 |
\ifudiss@ftitle |
| 3739 |
\end{minipage}% |
| 3740 |
}% |
| 3741 |
\fi |
| 3742 |
|
| 3743 |
\newpage |
| 3744 |
|
| 3745 |
\ifudiss@blind |
| 3746 |
\else |
| 3747 |
\ifudiss@free@culture |
| 3748 |
\thispagestyle{titlingpage}% |
| 3749 |
\vspace*{\stretch{1}} |
| 3750 |
\begin{quote} |
| 3751 |
\setlength{\parindent}{0pt}% |
| 3752 |
\begingroup |
| 3753 |
\begin{minipage}{\linewidth} |
| 3754 |
\bfseries |
| 3755 |
\udiss@title |
| 3756 |
|
| 3757 |
\udiss@local@copyright\ |
| 3758 |
© |
| 3759 |
\udiss@copyrightable@years\ |
| 3760 |
\udiss@author |
| 3761 |
|
| 3762 |
\medskip |
| 3763 |
\noindent\hrule \linewidth 0.4pt\relax |
| 3764 |
\end{minipage} |
| 3765 |
\endgroup |
| 3766 |
|
| 3767 |
\ifudiss@gfdl |
| 3768 |
Permission is granted to copy, distribute and/or |
| 3769 |
modify this document under the terms of the GNU |
| 3770 |
Free Documentation License, Version 1.3 or any |
| 3771 |
later version published by the Free Software |
| 3772 |
Foundation; with no Invariant Sections, no |
| 3773 |
Front-Cover Texts, and no Back-Cover Texts. A copy |
| 3774 |
of the license is included in the section entitled |
| 3775 |
\enquote{GNU Free Documentation License}.% |
| 3776 |
\fi |
| 3777 |
\ifudiss@ccbysa |
| 3778 |
\begin{minipage}{\linewidth} |
| 3779 |
\doclicenseThis |
| 3780 |
\end{minipage} |
| 3781 |
\fi |
| 3782 |
\vspace{\stretch{3}} |
| 3783 |
\end{quote} |
| 3784 |
\newpage |
| 3785 |
\fi |
| 3786 |
\fi |
| 3787 |
|
| 3788 |
\tableofcontents* |
| 3789 |
|
| 3790 |
\newpage |
| 3791 |
|
| 3792 |
\ifudiss@blind |
| 3793 |
\else |
| 3794 |
\ifudiss@declaration |
| 3795 |
\thispagestyle{empty}% |
| 3796 |
\begin{center}% |
| 3797 |
{% |
| 3798 |
\LARGE\bfseries |
| 3799 |
\udiss@decllocal |
| 3800 |
}% |
| 3801 |
\end{center}% |
| 3802 |
|
| 3803 |
\udiss@declaration |
| 3804 |
\fi |
| 3805 |
\fi |
| 3806 |
|
| 3807 |
\newpage |
| 3808 |
|
| 3809 |
\ifudiss@lot |
| 3810 |
\listoftables |
| 3811 |
\fi |
| 3812 |
|
| 3813 |
\newpage |
| 3814 |
|
| 3815 |
\ifudiss@lof |
| 3816 |
\listoffigures |
| 3817 |
\fi |
| 3818 |
\endgroup |
| 3819 |
}% |
| 3820 |
% \end{macrocode} |
| 3821 |
% |
| 3822 |
% The following code adds the GFDL v1.3+ notice at the end |
| 3823 |
% of the document if that option was used. |
| 3824 |
% |
| 3825 |
% \begin{macrocode} |
| 3826 |
\ifudiss@blind |
| 3827 |
\else |
| 3828 |
\ifudiss@gfdl |
| 3829 |
\AddToHook{enddocument}{% |
| 3830 |
\newpage |
| 3831 |
\begingroup |
| 3832 |
\pagestyle{plain}% |
| 3833 |
\addcontentsline{toc}% |
| 3834 |
{chapter}% |
| 3835 |
{GNU Free Documentation License}% |
| 3836 |
\input{gfdl-tex-1p3}% |
| 3837 |
\clearpage |
| 3838 |
\endgroup |
| 3839 |
}% |
| 3840 |
\fi |
| 3841 |
\fi |
| 3842 |
%</class> |
| 3843 |
% \end{macrocode} |
| 3844 |
% |
| 3845 |
% Our class ended here. Now we start creating the |
| 3846 |
% language-support files. The first is the Malayalam |
| 3847 |
% language. We use fonts provided at: |
| 3848 |
% \url{https://ctan.org/pkg/rit-fonts}. Notice that this is |
| 3849 |
% done conditionally. If the language is loaded as the main |
| 3850 |
% language, the fonts are set as the default fonts using |
| 3851 |
% class options, else |malayalam| is passed as the optional |
| 3852 |
% argument to |\babelfont|. |
| 3853 |
% |
| 3854 |
% \begin{macrocode} |
| 3855 |
%<*babel-ml> |
| 3856 |
\IfLanguageName{malayalam}{% |
| 3857 |
\ekvset{udiss}{% |
| 3858 |
rmfont = {RIT-Rachana-Regular.ttf},% |
| 3859 |
rmitfont = {RIT-Rachana-Italic.ttf},% |
| 3860 |
rmbffont = {RIT-Rachana-Bold.ttf},% |
| 3861 |
rmbfitfont = {RIT-Rachana-BoldItalic.ttf},% |
| 3862 |
rmfeatures = {% |
| 3863 |
Script = {Malayalam}% |
| 3864 |
},% |
| 3865 |
sffont = {RIT-MeeraNew.ttf},% |
| 3866 |
sfitfont = {RIT-MeeraNew.ttf},% |
| 3867 |
sfbffont = {RIT-tnjoy-bold.ttf},% |
| 3868 |
sfbfitfont = {RIT-tnjoy-bold.ttf},% |
| 3869 |
sffeatures = {% |
| 3870 |
Script = {Malayalam}% |
| 3871 |
},% |
| 3872 |
ttfont = {RIT-MeeraNew.ttf},% |
| 3873 |
ttitfont = {RIT-MeeraNew.ttf},% |
| 3874 |
ttbffont = {RIT-tnjoy-bold.ttf},% |
| 3875 |
ttbfitfont = {RIT-tnjoy-bold.ttf},% |
| 3876 |
sffeatures = {% |
| 3877 |
Script = {Malayalam}% |
| 3878 |
}% |
| 3879 |
}% |
| 3880 |
}{% |
| 3881 |
\babelfont[malayalam]{rm}[% |
| 3882 |
IgnoreFontspecFile,% |
| 3883 |
Script = {Malayalam},% |
| 3884 |
ItalicFont = {RIT-Rachana-Italic.ttf},% |
| 3885 |
BoldFont = {RIT-Rachana-Bold.ttf},% |
| 3886 |
BoldItalicFont = {RIT-Rachana-BoldItalic.ttf},% |
| 3887 |
\ifLuaTeX |
| 3888 |
Renderer = {HarfBuzz}% |
| 3889 |
\fi |
| 3890 |
]{RIT-Rachana-Regular.ttf} |
| 3891 |
\babelfont[malayalam]{sf}[% |
| 3892 |
IgnoreFontspecFile,% |
| 3893 |
Script = {Malayalam},% |
| 3894 |
ItalicFont = {RIT-tnjoy-regular.ttf},% |
| 3895 |
BoldFont = {RIT-tnjoy-bold.ttf},% |
| 3896 |
BoldItalicFont = {RIT-tnjoy-bold.ttf},% |
| 3897 |
\ifLuaTeX |
| 3898 |
Renderer = {HarfBuzz}% |
| 3899 |
\fi |
| 3900 |
]{RIT-tnjoy-regular.ttf} |
| 3901 |
\babelfont[malayalam]{tt}[% |
| 3902 |
IgnoreFontspecFile,% |
| 3903 |
Script = {Malayalam},% |
| 3904 |
ItalicFont = {RIT-tnjoy-regular.ttf},% |
| 3905 |
BoldFont = {RIT-tnjoy-bold.ttf},% |
| 3906 |
BoldItalicFont = {RIT-tnjoy-bold.ttf},% |
| 3907 |
\ifLuaTeX |
| 3908 |
Renderer = {HarfBuzz}% |
| 3909 |
\fi |
| 3910 |
]{RIT-tnjoy-regular.ttf}% |
| 3911 |
} |
| 3912 |
%</babel-ml> |
| 3913 |
% \end{macrocode} |
| 3914 |
% |
| 3915 |
% Marathi requires local numerals and local counters. We |
| 3916 |
% provide that here and set Mukta as the default font |
| 3917 |
% provided in: \url{https://ctan.org/pkg/EkType-Tanka}. |
| 3918 |
% |
| 3919 |
% \begin{macrocode} |
| 3920 |
%<*babel-mr> |
| 3921 |
\babelprovide[% |
| 3922 |
mapdigits,% |
| 3923 |
counters/स्वर = अ आ इ ई उ ऊ ए ऐ ओ औ अं अः ॲ ऋ ऌ ऑ,% |
| 3924 |
counters/अंक = एक दोन तीन चार पाच सहा सात आठ नऊ दहा अकरा |
| 3925 |
बारा तेरा चौदा पंधरा सोळा सतरा अठरा एकोणीस वीस एकवीस बावीस |
| 3926 |
तेवीस चोवीस पंचवीस सव्वीस सत्तावीस अठ्ठावीस एकोणतीस तीस एकतीस |
| 3927 |
बत्तीस तेहतीस चौतीस पस्तीस छत्तीस सदतीस अडतीस एकोणचाळीस चाळीस |
| 3928 |
एकेचाळीस बेचाळीस त्रेचाळीस चव्वेचाळीस पंचेचाळीस शेहेचाळीस सत्तेचाळीस |
| 3929 |
अठ्ठेचाळीस एकोणपन्नास पन्नास एकावन्न बावन्न त्रेपन्न चौपन्न पंचावन्न |
| 3930 |
छप्पन्न सत्तावन्न अठ्ठावन्न एकोणसाठ साठ एकसष्ट बासष्ट त्रेसष्ट चौसष्ट |
| 3931 |
पासष्ट सहासष्ट सदुष्ट अडुसष्ट एकोणसत्तर सत्तर एकाहत्तर बाहत्तर |
| 3932 |
त्र्याहत्तर चौऱ्याहत्तर पंचाहत्तर शाहत्तर सत्त्याहत्तर अठ्ठ्याहत्तर |
| 3933 |
एकोणऐंशी ऐंशी एक्याऐंशी ब्याऐंशी त्र्याऐंशी चौऱ्याऐंशी पंच्याऐंशी श्याऐंशी |
| 3934 |
सत्त्याऐंशी अठ्ठ्याऐंशी एकोणनव्वद नव्वद एक्याण्णव ब्याण्णव त्र्याण्णव |
| 3935 |
चौऱ्याण्णव पंचाण्णव शहाण्णव सत्त्याण्णव अठ्याण्णव नव्याण्णव शंभर,% |
| 3936 |
counters/व्यंजन = क ख ग घ ङ% |
| 3937 |
च छ ज झ ञ% |
| 3938 |
ट ठ ड ढ ण% |
| 3939 |
त थ द ध न% |
| 3940 |
प फ ब भ म% |
| 3941 |
य र ल व श ष स ह ळ,% |
| 3942 |
Alph = अंक,% |
| 3943 |
alph = स्वर% |
| 3944 |
]{marathi} |
| 3945 |
\def\theenumiii{\localecounter{व्यंजन}{enumiii}} |
| 3946 |
\def\theenumiv{\localecounter{अंक}{enumiii}} |
| 3947 |
\IfLanguageName{marathi}{% |
| 3948 |
\ekvset{udiss}{% |
| 3949 |
rmfont = {Mukta-Regular.ttf},% |
| 3950 |
rmitfont = {Mukta-Regular.ttf},% |
| 3951 |
rmbffont = {Mukta-Bold.ttf},% |
| 3952 |
rmbfitfont = {Mukta-Bold.ttf},% |
| 3953 |
rmfeatures = {% |
| 3954 |
Script = {Devanagari}% |
| 3955 |
},% |
| 3956 |
sffont = {Mukta-Regular.ttf},% |
| 3957 |
sfitfont = {Mukta-Regular.ttf},% |
| 3958 |
sfbffont = {Mukta-Bold.ttf},% |
| 3959 |
sfbfitfont = {Mukta-Bold.ttf},% |
| 3960 |
sffeatures = {% |
| 3961 |
Script = {Devanagari}% |
| 3962 |
},% |
| 3963 |
ttfont = {Mukta-Regular.ttf},% |
| 3964 |
ttitfont = {Mukta-Regular.ttf},% |
| 3965 |
ttbffont = {Mukta-Bold.ttf},% |
| 3966 |
ttbfitfont = {Mukta-Bold.ttf},% |
| 3967 |
sffeatures = {% |
| 3968 |
Script = {Devanagari}% |
| 3969 |
}% |
| 3970 |
}% |
| 3971 |
}{% |
| 3972 |
\babelfont[marathi]{rm}[% |
| 3973 |
IgnoreFontspecFile,% |
| 3974 |
ItalicFont = {Mukta-Regular.ttf},% |
| 3975 |
BoldFont = {Mukta-Bold.ttf},% |
| 3976 |
BoldItalicFont = {Mukta-Bold.ttf},% |
| 3977 |
Language = {Marathi},% |
| 3978 |
Script = {Devanagari},% |
| 3979 |
Numbers = {OldStyle},% |
| 3980 |
\ifLuaTeX |
| 3981 |
Renderer = {HarfBuzz}% |
| 3982 |
\fi |
| 3983 |
]{Mukta-Regular.ttf} |
| 3984 |
\babelfont[marathi]{sf}[% |
| 3985 |
IgnoreFontspecFile,% |
| 3986 |
ItalicFont = {Mukta-Regular.ttf},% |
| 3987 |
BoldFont = {Mukta-Bold.ttf},% |
| 3988 |
BoldItalicFont = {Mukta-Bold.ttf},% |
| 3989 |
Language = {Marathi},% |
| 3990 |
Script = {Devanagari},% |
| 3991 |
Numbers = {OldStyle},% |
| 3992 |
\ifLuaTeX |
| 3993 |
Renderer = {HarfBuzz}% |
| 3994 |
\fi |
| 3995 |
]{Mukta-Regular.ttf} |
| 3996 |
\babelfont[marathi]{tt}[% |
| 3997 |
IgnoreFontspecFile,% |
| 3998 |
ItalicFont = {Mukta-Regular.ttf},% |
| 3999 |
BoldFont = {Mukta-Bold.ttf},% |
| 4000 |
BoldItalicFont = {Mukta-Bold.ttf},% |
| 4001 |
Language = {Marathi},% |
| 4002 |
Script = {Devanagari},% |
| 4003 |
Numbers = {OldStyle},% |
| 4004 |
\ifLuaTeX |
| 4005 |
Renderer = {HarfBuzz}% |
| 4006 |
\fi |
| 4007 |
]{Mukta-Regular.ttf}% |
| 4008 |
} |
| 4009 |
%</babel-mr> |
| 4010 |
% \end{macrocode} |
| 4011 |
% |
| 4012 |
% \begin{macrocode} |
| 4013 |
%<*babel-en> |
| 4014 |
\babelfont[english]{rm}[% |
| 4015 |
IgnoreFontspecFile,% |
| 4016 |
Extension = {.otf},% |
| 4017 |
ItalicFont = {NewCM10-BookItalic},% |
| 4018 |
BoldFont = {NewCM10-Bold},% |
| 4019 |
BoldItalicFont = {NewCM10-BoldItalic},% |
| 4020 |
SlantedFont = {NewCM10-Book},% |
| 4021 |
BoldSlantedFont = {NewCM10-Bold},% |
| 4022 |
Numbers = {OldStyle},% |
| 4023 |
CharacterVariant = {6},% |
| 4024 |
\ifLuaTeX |
| 4025 |
Renderer = {HarfBuzz}% |
| 4026 |
\fi |
| 4027 |
]{NewCM10-Book} |
| 4028 |
\babelfont[english]{sf}[% |
| 4029 |
IgnoreFontspecFile,% |
| 4030 |
Extension = {.otf},% |
| 4031 |
ItalicFont = {NewCMSans10-BookOblique},% |
| 4032 |
BoldFont = {NewCMSans10-Bold},% |
| 4033 |
BoldItalicFont = {NewCMSans10-BoldOblique},% |
| 4034 |
SlantedFont = {NewCMSans10-Book},% |
| 4035 |
BoldSlantedFont = {NewCMSans10-Bold},% |
| 4036 |
Numbers = {OldStyle},% |
| 4037 |
CharacterVariant = {6},% |
| 4038 |
\ifLuaTeX |
| 4039 |
Renderer = {HarfBuzz}% |
| 4040 |
\fi |
| 4041 |
]{NewCMSans10-Book} |
| 4042 |
\babelfont[english]{tt}[% |
| 4043 |
IgnoreFontspecFile,% |
| 4044 |
Extension = {.otf},% |
| 4045 |
BoldFont = {NewCMMono10-Bold},% |
| 4046 |
ItalicFont = {NewCMMono10-Italic},% |
| 4047 |
\ifLuaTeX |
| 4048 |
Renderer = {HarfBuzz}% |
| 4049 |
\fi |
| 4050 |
]{NewCMMono10-Book} |
| 4051 |
%</babel-en> |
| 4052 |
% \end{macrocode} |
| 4053 |
% |
| 4054 |
% Hindi and Marathi share the script, but the language |
| 4055 |
% variants Marathi needs are not required by Hindi. So we |
| 4056 |
% use the same font, but with a little different settings |
| 4057 |
% for Hindi. |
| 4058 |
% |
| 4059 |
% \begin{macrocode} |
| 4060 |
%<*babel-hi> |
| 4061 |
\IfLanguageName{hindi}{% |
| 4062 |
\ekvset{udiss}{% |
| 4063 |
rmfont = {Mukta-Regular.ttf},% |
| 4064 |
rmitfont = {Mukta-Regular.ttf},% |
| 4065 |
rmbffont = {Mukta-Bold.ttf},% |
| 4066 |
rmbfitfont = {Mukta-Bold.ttf},% |
| 4067 |
rmfeatures = {% |
| 4068 |
Script = {Devanagari}% |
| 4069 |
},% |
| 4070 |
sffont = {Mukta-Regular.ttf},% |
| 4071 |
sfitfont = {Mukta-Regular.ttf},% |
| 4072 |
sfbffont = {Mukta-Bold.ttf},% |
| 4073 |
sfbfitfont = {Mukta-Bold.ttf},% |
| 4074 |
sffeatures = {% |
| 4075 |
Script = {Devanagari}% |
| 4076 |
},% |
| 4077 |
ttfont = {Mukta-Regular.ttf},% |
| 4078 |
ttitfont = {Mukta-Regular.ttf},% |
| 4079 |
ttbffont = {Mukta-Bold.ttf},% |
| 4080 |
ttbfitfont = {Mukta-Bold.ttf},% |
| 4081 |
sffeatures = {% |
| 4082 |
Script = {Devanagari}% |
| 4083 |
}% |
| 4084 |
}% |
| 4085 |
}{% |
| 4086 |
\babelfont[hindi]{rm}[% |
| 4087 |
IgnoreFontspecFile,% |
| 4088 |
ItalicFont = {Mukta-Regular.ttf},% |
| 4089 |
BoldFont = {Mukta-Bold.ttf},% |
| 4090 |
BoldItalicFont = {Mukta-Bold.ttf},% |
| 4091 |
Language = {Hindi},% |
| 4092 |
Script = {Devanagari},% |
| 4093 |
Numbers = {OldStyle},% |
| 4094 |
\ifLuaTeX |
| 4095 |
Renderer = {HarfBuzz}% |
| 4096 |
\fi |
| 4097 |
]{Mukta-Regular.ttf} |
| 4098 |
\babelfont[hindi]{sf}[% |
| 4099 |
IgnoreFontspecFile,% |
| 4100 |
ItalicFont = {Mukta-Regular.ttf},% |
| 4101 |
BoldFont = {Mukta-Bold.ttf},% |
| 4102 |
BoldItalicFont = {Mukta-Bold.ttf},% |
| 4103 |
Language = {Hindi},% |
| 4104 |
Script = {Devanagari},% |
| 4105 |
Numbers = {OldStyle},% |
| 4106 |
\ifLuaTeX |
| 4107 |
Renderer = {HarfBuzz}% |
| 4108 |
\fi |
| 4109 |
]{Mukta-Regular.ttf} |
| 4110 |
\babelfont[hindi]{tt}[% |
| 4111 |
IgnoreFontspecFile,% |
| 4112 |
ItalicFont = {Mukta-Regular.ttf},% |
| 4113 |
BoldFont = {Mukta-Bold.ttf},% |
| 4114 |
BoldItalicFont = {Mukta-Bold.ttf},% |
| 4115 |
Language = {Hindi},% |
| 4116 |
Script = {Devanagari},% |
| 4117 |
Numbers = {OldStyle},% |
| 4118 |
\ifLuaTeX |
| 4119 |
Renderer = {HarfBuzz}% |
| 4120 |
\fi |
| 4121 |
]{Mukta-Regular.ttf} |
| 4122 |
} |
| 4123 |
%</babel-hi> |
| 4124 |
% \end{macrocode} |
| 4125 |
% |
| 4126 |
% In this tag, we set three main variables for the |ukerala| |
| 4127 |
% dissertation-style. This is just a sample. These style |
| 4128 |
% files can contain much more than this. In the experimental |
| 4129 |
% release, we start with a small sample. We will be |
| 4130 |
% expanding this more. |
| 4131 |
% |
| 4132 |
% \begin{macrocode} |
| 4133 |
%<*ukerala> |
| 4134 |
\ekvset{udiss}{% |
| 4135 |
university = {University of Kerala},% |
| 4136 |
logo = {udiss-logo-ukerala.png},% |
| 4137 |
logoheight = {0.11}% |
| 4138 |
} |
| 4139 |
%</ukerala> |
| 4140 |
% \end{macrocode} |
| 4141 |
% \end{implementation} |
| 4142 |
% \PrintIndex |
| 4143 |
% \Finale |