I have a set of Beamer slides with a variety of styles coded in the preamble. There is a block of code corresponding to each style. The idea in using the slides to to select one block of code corresponding to one style in order to use that style. Rather than instructing users to comment out every line of code for all styles not wanted, is there some way to enable the user to 'switch' easily between these different blocks of code in the preamble, such as setting a variable towards the top of the TeX file to the appropriate style? Thanks for any suggestions.
Out of curiosity, is there some way of doing a similar type of switching between different blocks of code in the body of the LaTeX document? Perhaps defining a block of code in a command would be sensible for this.