File based Document Templates |
File based Document Templates are document templates created most easily- Templates of this type will be marked with this icon in the dialog 'Project New':
A file based document template is a simple text file with the extension ".tex", placed in one of the template directories, specified on the tab Path options.
Such a file can contain an optional description, that will be displayed
in the field template description of the dialog 'Project New',
when the template has been selected by the user. To create such a description,
simply place a line starting with %description:
followed by a
space as the frist line of the template.
When creating a project based on a file based document template, TeXnicCenter will copy the selected template file to the project's directory, rename it to the project's name, remove the description line (if there is any) and replace the line delimiters with the ones, specified in the dialog 'Project New'.
Example |
This is a very simple example for a document template:
%description: An Article with a Title Page % Preamble \documentclass{article} \title{Insert the title here} \author{Insert the author here} % Document \begin{document} % create title page and toc \maketitle\thispagestyle{empty}\clearpage \tableofcontents\clearpage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % start text here!! \end{document}