Learn how to customize the IITJ MTP Template Generator templates to match your needs.
Table of Contents
- Formatting Options
- Modifying Templates
- Custom Logos
- Adding Custom Sections
- Bibliography Styles
- Advanced Customization
Formatting Options
Font Size
Change the base font size in your config:
formatting:
font_size: 12 # Options: 10, 11, 12
Or modify the template directly in proposal.tex or main.tex:
\documentclass[12pt]{article} % Change 12pt to 10pt or 11pt
Line Spacing
Adjust line spacing in your config:
formatting:
line_spacing: 1.5 # Options: 1.0, 1.5, 2.0
Or in the template:
\setstretch{1.5} % Change to 1.0 or 2.0
Page Margins
Modify margins in the template:
\geometry{
paper=a4paper,
left=0.75in, % Left margin
right=0.75in, % Right margin
top=1in, % Top margin
bottom=1in % Bottom margin
}
Font
The template uses Times New Roman font. To change fonts, modify the template:
\usepackage{times} % Times New Roman
% Or for other fonts:
% \usepackage{helvet} % Helvetica
% \usepackage{palatino} % Palatino
Colors
For Beamer presentations (Phase 2), you can customize colors:
\usecolortheme{default} % blue
\usecolortheme{crane} % orange
\usecolortheme{beaver} % red
For reports, add custom colors:
\usepackage{xcolor}
\definecolor{primarycolor}{RGB}{0, 102, 204}
Modifying Templates
Directory Structure
Templates are located in:
templates/proposal/- Proposal report templatestemplates/major-project/- Major project templates
Jinja2 Syntax
Templates use Jinja2 syntax with LaTeX-friendly delimiters:
- Variables:
\VAR{VARIABLE_NAME} - Blocks:
\BLOCK{if condition}...\BLOCK{endif} - Comments:
\#{comment}
Example: Adding a Custom Variable
- In your config file:
custom:
project_code: "CS-2024-001"
- In
scripts/utils/template_engine.py, add toprepare_context():
'PROJECT_CODE': config.get('custom', {}).get('project_code', ''),
- In your template:
Project Code: \VAR{PROJECT_CODE}
Custom Logos
Using Your University Logo
- Via Config File:
assets:
logo_path: "./path/to/logo.png"
- Via Command Line:
python scripts/generate.py --config config.yaml --logo path/to/logo.png
Logo Requirements
- Format: PNG, JPG, or PDF
- Size: Minimum 300x300 pixels
- Aspect Ratio: Square (1:1) recommended
- Quality: High resolution for print
Adjusting Logo Size
In titlePage.tex:
\includegraphics[width=0.3\textwidth]{logo.png} % Change 0.3 to adjust size
Adding Custom Sections
For Proposal Reports
- Create a new section file in
templates/proposal/sections/:
touch templates/proposal/sections/my_section.tex
- Add content to
my_section.tex:
% TODO: Add your custom section content here
\subsection{Custom Subsection}
Content goes here...
- Include it in
proposal.tex:
\section{My Custom Section}
\input{sections/my_section.tex}
For Major Project Reports
Same process, but use templates/major-project/chapters/ directory.
Bibliography Styles
Using IEEE Style (Default)
\bibliographystyle{IEEEtran}
\bibliography{refs}
Using APA Style
- Download
apa.bstfrom CTAN - Place it in your template directory
- Update the template:
\bibliographystyle{apa}
\bibliography{refs}
Using ACM Style
- Download
ACM-Reference-Format.bst - Place it in your template directory
- Update the template:
\bibliographystyle{ACM-Reference-Format}
\bibliography{refs}
Custom Bibliography Format
Modify the .bst file or create your own using makebst tool.
Advanced Customization
Custom Chapter Formatting
Modify chapter headings using titlesec:
\usepackage{titlesec}
\titleformat{\section}
{\normalfont\Large\bfseries\centering} % Format
{\thesection} % Label
{1em} % Sep
{} % Before code
\titleformat{\subsection}
{\normalfont\large\bfseries}
{\thesubsection}
{1em}
{}
Custom Headers and Footers
Add page headers and footers:
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\leftmark}
\fancyhead[R]{\thepage}
\fancyfoot[C]{Your University Name}
Custom Title Page Layout
Modify titlePage.tex to change the layout:
% Change from right-aligned to centered
\begin{center}
\Huge{\textbf{\ttitle}}
\end{center}
Adding a Table of Abbreviations
- Create
abbreviations.tex:
\section*{List of Abbreviations}
\begin{tabular}{ll}
API & Application Programming Interface \\
HTML & HyperText Markup Language \\
WCAG & Web Content Accessibility Guidelines \\
\end{tabular}
- Include it in main file:
\newpage
\input{abbreviations.tex}
Custom Figure and Table Numbering
Change numbering style:
% Chapter.Section.Number format
\counterwithin{figure}{section}
\counterwithin{table}{section}
% Continuous numbering
\counterwithout{figure}{section}
\counterwithout{table}{section}
Adding Appendices
\appendix
\section{Appendix A: Additional Data}
\input{appendices/appendix_a.tex}
\section{Appendix B: Code Listings}
\input{appendices/appendix_b.tex}
Template Inheritance
Creating a University-Specific Template
- Copy the base template:
cp -r templates/proposal templates/proposal-myuni
- Modify the copied template
- Update generator to support new template type
Sharing Custom Templates
- Fork the repository
- Add your custom template
- Submit a pull request
- Document your customizations
Tips and Best Practices
- Test Changes: Always test template modifications by generating a sample report
- Version Control: Keep your customizations in version control
- Document Changes: Add comments explaining custom modifications
- Backup Originals: Keep a copy of original templates before modifying
- Validate LaTeX: Use a LaTeX editor with syntax checking
- Incremental Changes: Make small changes and test frequently
Common Customizations
Remove List of Figures/Tables
In main.tex or proposal.tex, comment out:
% \listoffigures
% \listoftables
Change Date Format
\usepackage{datetime}
\newdateformat{mydate}{\THEDAY\ \monthname[\THEMONTH] \THEYEAR}
\mydate\today
Add Line Numbers (for Review)
\usepackage{lineno}
\linenumbers
Two-Column Layout
\documentclass[12pt,twocolumn]{article}
Getting Help
- Check existing templates for examples
- Consult LaTeX documentation
- Ask in GitHub Discussions
- See FAQ for common issues
Need more customization options? Open an issue on GitHub!