This is a follow up to my last question, but since the question I'm asking is substantially different despite trying to solve the same problem, I figured I'd make a new thread.
Anyway, I am trying to make a common title page to use in my documents, where I can just call a package to make a commonly formatted title. I'm hoping to just be able to put something like this in the preamble:
\usepackage[course,title,date,name,id,school,department]{customTitle}
I know that I will need to use the form course={Viscous flow} type of input with the xkeyval package. However, I am having a lot of trouble passing in the values because the TeX language style is much different from the other codes in which I've written.
The limited information that I can find is in a post like this one, but I really don't understand what's going on in the answers section, or how I might be able to apply it to this. Additionally, it looks like I might need to do something different in passing in the values, considering multiple values are embedded in a single set of { } (for example, course, title, AND date all go inside the \title command).
Here is my current style file:
% This style file requires at least LaTeX version 2e.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{customTitle}[2020/07/29 Custom LaTeX title]
\RequirePackage{xkeyval}
\define@key{customTitle}{}
\ProcessOptions\relax %end options processing and return to normal LaTeX syntax
\title{ \normalsize \textsc{[[course]]}
\ [2.0cm]
\rule{\linewidth}{1.0pt}
\ [0.3cm]
\LARGE \textbf{\uppercase{[[title]]}}
\rule{\linewidth}{2.0pt}
\ [0.5cm]
\normalsize [[date]] \vspace*{3\baselineskip}}
\author{
\Large\textbf{[[name]]} \
\small Student ID [[id]] \ [0.5cm]
\small [[school]]\
\small [[department]]
}
\date{\vspace*{5\baselineskip}}
\endinput
I have no idea where to go from here. I also know that there's a way to set default values, but I haven't been able to find anything solid on that which will compile. If an option isn't specified in the package input, I'm just hoping to have it be blank.
Even just help getting the \title{ } tag with multiple values set up will be a great help, hopefully I'll be able to figure the rest out based on that. Thank you!