Looked a long time for a solution to my problem, but said problem did not seem to lend itself well to "google-eez"!
Here's my problem: I have a Beamer presentation that I present to various customers. Since I like to customize said presentation to suit each customer's organization, I have several "chunks" of code, about 10 lines each, in my parent Beamer .tex file that pull in logos, set colors, display organization names - all things that serve to "personalize" the presentation to a given customer. Each separate customer's presentation, of course, requires that another 10 line chunk of code be inserted into said parent .tex document. As you might imagine, after a while these "personalization chunks" serve to muddle up said parent .tex document.
What I'd like to do is to create separate "data" files, one for each customer, that contain the particulars that are unique to each customer (or, if possible, to store all said customer data, from all customers, into a single file). Then, I'd like to be able to, using a single line in the parent .tex document, extract the customization data from the proper data file(s).
Italicized text was added by the OP on February 16, 2016: Please keep in mind that my desire is to be able to generate, on demand, a customized presentation just a few days before I am to deliver same.
Something like:
\documentclass{beamer}
\usepackage{xcolor}
\newcommand{\nameoforg}{1st line from FileA.data}% Name of organization
\newcommand{\mainRGB}{2nd line from FileA.data}% Title color code
\newcommand{\backRGB}{3rd line from FileA.data}% Background color code
\newcommand{\clientlogowidth}{4th line from FileA.data}% Logo width
\newcommand{\clientlogo}{5th line from FileA.data}% Logo file name
\definecolor{mainslidecolor}{RGB}{\mainRGB}
\definecolor{backslidecolor}{RGB}{\backRGB}
\begin{document}
\title[\nameoforg]{Presentation Title}
\titlegraphic{\includegraphics[width=\clientlogowidth]{\clientlogo}}
\begin{frame}
this is boring
\end{frame}
\end{document}
FileA.txt, of course, is one of the "data" files (or, perhaps, the sole such file, if that is possible) that I addressed above.
Some of my research seemed to indicate that the catchfile package was the answer to my woes, but I could not understand said package's documentation.
How can I do this? And, is it possible to combine all of my "data" files into one file (which I'd really like to do), or is it best to keep them separate, one to a customer?





\newcommandin a separate.texfile and using\input{filename}? – JP-Ellis Feb 15 '16 at 22:44.csvfile be appropriate for this (e.g.,datatoolorcsvsimple)? (Easiest to use if the.csvdoesn't have to include any formatting itself.) Or thetextmergpackage? – jon Feb 15 '16 at 23:29\renewcommands you then\inputwould be easy. Keeping all your data in one file would be easy too. – Ethan Bolker Feb 15 '16 at 23:44