1

I would like to create a template that would operate according to a default scheme but would offer some flexibility.

For example, (in the preamble?) there would be a question:

TOC = [Y/N] %Default is Y, yes.

My questions are:

  1. Am I actually looking to create a class? (rather than a template).
  2. How is it done?

Thanks

Ranc
  • 111
  • 3
    If you want to define a significant number of new commands and/or environments, a package or class would be better. In general a package is more light-weight than a class, and would be preferable if the general setup of an existing class is sufficient, but you want to add or change some details. You can then use the option mechanism to specify the different Y/N answers, or even other parameters. For example by using the xkeyval package. – Pieter van Oostrum Dec 11 '16 at 07:30
  • It seems to me that you are looking for a template engine. Unfortunately, the term template is very confusing for LaTeX users and used in many different ways. – Johannes_B Dec 11 '16 at 07:47
  • 2
    Please also have a look at our questioin here: What is a template? – Johannes_B Dec 11 '16 at 07:56
  • Is there any news here? – Johannes_B Feb 12 '17 at 10:44
  • Any news here? Have you tried a key-value-options package? – TeXnician Jan 06 '18 at 10:21
  • @TeXnician Since there was never any clarification and/or comments by the OP, what to do? As of now, the question is too-broad or opinion based. A possible answer would work based on pure assumptions. – Johannes_B Mar 25 '18 at 08:27
  • Have a look at this post. As it stands this question is unclear and very broad. – TeXnician Mar 25 '18 at 08:30
  • @Johannes_B I've voted to close as too broad. – TeXnician Mar 25 '18 at 08:31

0 Answers0