I am searching for the easiest way possible to allow someone (who for example may not be strong with LaTeX) to control the contents of a specific document. To give more context, I am looking to create a collection of "main" documents with the same format, composed almost exclusively of different combinations of a set of about 30 "smaller" documents (each of these are essentially sections or subsections inside of the "main" documents). An important note is that the "smaller" documents often undergo minor updates, so they are called into the "main" documents from separate files (to avoid having to change many "main" documents by hand when small changes occur).
What I have arrived at thus far is a general "main" document which contains toggles in the preamble that control which "smaller" documents appear in the "main" document. Everything is working fine at this point, where the only step for the person creating the "main" documents is to comment "%
" before \toggletrue
in the preamble if they don't want that specific "smaller" document in the "main" document they are making (for example below "TheFirstDocument" wouldn't appear in the "main" document). Also what I have written below isn't meant to compile of course (missing files and packages), it is just to show a general example.
My question is, is there a way to create a very friendly user interface where perhaps the person making the "main" documents could just check off boxes of which "smaller" documents they wanted to include? If this isn't possible with LaTeX itself does anyone have suggestions of the easiest thing to turn to from here to achieve that?
\documentclass{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Select Desired Documents %%%
\newtoggle{TheFirstDocument}
%\toggletrue{TheFirstDocument}
\newtoggle{TheSecondDocument}
\toggletrue{TheSecondDocument}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\iftoggle{TheFirstDocument}
{ExecuteMetaData[TheFirstDocument.tex]{tag}
}
{%nothing
}
\iftoggle{TheSecondDocument}
{ExecuteMetaData[TheSecondDocument.tex]{tag}
}
{%nothing
}
\end{document}
\input
/\include
(or perhaps)\includeonly
don't already do?