I tried to use \newcommand{\faculty}[1]{\gdef\@faculty{#1}} to have others use my template for thesis and just change text in the brackets \faculty{Fakulta strojní} and it changes every faculty name in the document, e.g. in titlepage. It does work until I add more commands, like \department etc. Then it tells me Use of \@ doesn't match its definition. and shows Faculty without F. I am using subfiles package and preamble.tex.
\begin{titlepage}
\centering
\large\textsc{{VŠB - Technická univerzita Ostrava\\
\@faculty\\
\@department}}
\vfill
{\LARGE{\sffamily{\textbf{Název práce}\\
Title name}}}\\
\vfill
\normalsize{
\begin{tabularx}{.8\textwidth}{XX}
Autor: & autor\\
Vedoucí disertační práce: & director
\end{tabularx}\\
\vspace{2em}
Ostrava~2021}\
\end{titlepage}
\documentclass[a4paper, 12pt]{scrartcl}
\input{nastaveni/preamble}
\usepackage{xr}
\usepackage{subfiles}
\externaldocument[M-]{\subfix{main}}
\usepackage{graphicx}
\faculty{Fakulta strojní}
\department{Katedra energetiky}
\begin{document}

\makeatletterand\makeatother? – Dec 16 '20 at 19:22\normalsize{..}should be\normalsize ...,\LARGE{..}should be\LARGE ...etc – David Carlisle Dec 16 '20 at 19:24