I am making a thesis template for a university and am having trouble with designing the title page. They would like the seal of the university to be centered behind the student's name on the title page. Right now, I am using the background package, which allows me to place a background image in a specific location on a page. However, the student's name on the title page is relative to the length of the thesis title (i.e., if the title is longer or shorter, it moves the student's name down or up respectively). Is there a way to anchor the background seal so that it centers behind the student's name and automatically moves with it? I am using Overleaf as my editor. Here is the current mwe:
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage[pages=some, placement=top]{background}
\newcommand{\thesistitle}{CHARACTERIZATION OF DEGRADATION IN TIN PHOSPHIDE ANODES FOR SODIUM-ION BATTERIES}
\newcommand{\studentname}{Student Name}
\newcommand{\degree}{Master of Science in Engineering}%e.g., Master of Science, Doctor of Philosphy, etc.
\newcommand{\department}{The Department of Mechanical and Aerospace Engineering}
\newcommand{\gradyear}{2022}
\newcommand{\gradmonth}{August}
\begin{document}
\backgroundsetup{contents=\includegraphics{Seal.jpg}, opacity=.3, scale=.4, angle=0, hshift=1.5cm, vshift=-4in}
\BgThispage
\newgeometry{left=1.5in,bottom=.5in}
\begin{center}
\large
\singlespacing
\textbf{\thesistitle}
\vspace{2.5cm}
\Large
\textbf{\studentname}\\
\vspace{1.5cm}
\normalsize
\textbf{A THESIS}\\
\vspace{1.5cm}
\textbf{Submitted in partial fulfillment of the requirements \\for the degree of \degree}\\
\vspace{0.1cm}
\textbf{in}\\
\vspace{0.1cm}
\textbf{\department}\\
\vspace{0.1cm}
\textbf{to}\\
\vspace{0.1cm}
\textbf{The Graduate School}\\
\vspace{0.1cm}
\textbf{of}\\
\vspace{0.1cm}
\textbf{The University of ...}\\
\vspace{0.4cm}
\textbf{\gradmonth\ \gradyear}
\end{center}
\end{document}
When compiled, it looks correct with the seal centered behind the student's name. See the picture below.
However, if the title is longer than two lines or shorter than two lines, the seal is no longer centered on the student's name. For example:
Can anyone help me with this? I know that the seal background can manually be adjusted. However, the template is supposed to automatically format the thesis so that the students do not have to adjust the formatting themselves.
Thanks for the help!