I am working on a specifications file which should be used for multiple projects. Ideally what I would like to have is a generic latex file where I can enable project specific additions, but these additions would be different for each project. At the moment I am using \if statements, but this leads to very unreadable tex code. Ideally I would like to externalised these things into separate files. How would I achieve this?
Example:
%TEX program = xelatex
\documentclass[10pt,oneside,article]{memoir}
\title{Specs for Project}
\newif\ifprojectA
\projectAfalse
\newif\ifprojectB
\projectBfalse
\begin{document}
\chapter{The Chapter}
The font in this project used should be \ifprojectA Times New Roman
\else \ifprojectB Palatino \else
Helvetica \fi
\end{document}
So if none of the projects are defined, I get a default, but if I set one of the projects to true I get a specific project result. Instead of all of these \if and putting the specific text inside the \if I would like to be able to refer to an external page where I can insert the relevant text. Is this possible?