\documentclass[10pt,a4paper]{article}
\usepackage{printlen}
\usepackage{layouts}
\usepackage{titlesec}
\usepackage{multirow, makecell, tabularx, booktabs}
\usepackage{babel}
\usepackage{setspace}
\usepackage{framed}
\usepackage{blindtext}
\renewcommand*\familydefault{\sfdefault}
%preamble
\usepackage[
height=8.5in, % height of the text block
width=6.5in, % width of the text block
top=78pt, % distance of the text block from the top of the page
headheight=60pt, % height for the header block
headsep=12pt, % distance from the header block to the text block
heightrounded, % ensure an integer number of lines
%showframe, % show the main blocks
verbose, % show the values of the parameters in the log file
]{geometry}
\usepackage{enumitem}
\usepackage[table]{xcolor} %for color of table
\usepackage{booktabs} %for toprule midrule bottomrule in tables
\usepackage{multirow} % Required for multirows
\usepackage{longtable}
\usepackage{rotating}
\usepackage{lscape}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage[none]{hyphenat} %no hyphenation
\usepackage{graphicx}
\usepackage{float}
\usepackage{lastpage} %toget last page number
\usepackage{indentfirst}
\usepackage{smartdiagram}
\usepackage{tikz,xcolor}
\usetikzlibrary{shapes, arrows, matrix, calc}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{arrows.meta,quotes,positioning}
\usepackage{verbatim}
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=2.5cm, draw=black, fill=blue!20]
\tikzstyle{eff} = [ellipse, minimum height=2em, draw=black, fill=pink!20]
\tikzstyle{arrow} = [thick, ->, >=stealth]
\usetikzlibrary{arrows,calc,positioning}
\usetikzlibrary{positioning}
\usetikzlibrary{matrix,fit,calc}
%header and footer
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
\fancyfoot[L]{\footnotesize Prepared in \LaTeX\ Typeset By\\
Colonel JS Bibra\\
Joint Controller\\
Management Representative / CQA(AVL)
}
\fancyfoot[R]{\footnotesize Approved for Issue By\\
S Satish Chandra Kumar\\
Controller\\
CQA(AVL)
}
\fancyhead[L]{\includegraphics[scale=.2]{example-image-a}}
\fancyhead[C]{\footnotesize
Quality Management System Manual \\ ISO 9001:2015 \\ Controllerate of Quality Assurance \\ Armoured Vehicle Electronics\\Avadi, Chennai – 600 054}
\fancyhead[R]{%
\footnotesize
Issue No : \hspace{35pt}02 \\
Issue Date : 15 Sep 2019 \\
Rev No/ Rev Date\hspace{0pt} : \hspace{36pt}00 \\
Page : \hspace{23pt}\thepage\ of \pageref{LastPage}}
\usepackage{fourier-orns}
\renewcommand\headrule{%------------fancy top line of page
\vspace{-6pt}
\hrulefill
\raisebox{-2.1pt}
{\quad\decofourleft\decotwo\decofourright\quad}%
\hrulefill}
\renewcommand*\contentsname{Table of Contents}
%-----------------------------------------
%---------------------------------------
\begin{document}
%title page
\begin{titlepage}
\rule{3mm}{.5pt}%
\rule[-3mm]{.5pt}{1cm}%
\rule{3mm}{.5pt}%
\fontfamily{stix}\selectfont
\pagecolor{brown!20}
\begin{center}
\headrule\\[.25in]
{\MakeUppercase {\huge Quality Management System Manual}}\\[2mm]
\headrule\\[4mm]
\textsc{\Large as per requirements of std iso 9001:2015} \\[4mm]
\begin{figure}[H]
\centering
\includegraphics[scale=.4]{../../images/dgqalogo1.jpg}
\label{DGQA Logo}
\end{figure}
\vspace*{4em}
\textsc{\normalsize CONTROLLERATE OF QUALITY ASSURANCE\\ARMOURED VEHICLE ELECTRONICS\\GOVERNMENT OF INDIA\\ MIN OF DEFENCE (DGQA)\\AVADI, CHENNAI -- 600 054\\tel: 044-26843007, fax: 044-26841881, email:} {\normalsize [email protected]}\\
\vfill
\line(1,0){400}\\
\scriptsize NOT TO BE COPIED OR REPRODUCED IN FULL OR PART WITHOUT PERMISSION OF CONTROLLER, CQA(AVL)
\end{center}
\rule{3mm}{.5pt}%
\rule[-3mm]{.5pt}{1cm}%
\rule{3mm}{.5pt}%
\end{titlepage}
%****************************************************************************************************
\pagenumbering{roman}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Distribution List for Quality Manual}
\addcontentsline{toc}{section}{\numberline{}Distribution List for Quality Manual}
\begin{table}[htbp]
\begin{center}
\begin{tabular}{p{.5in}p{3in}p{2in}}
\toprule
\midrule
COPY NO & DISTRIBUTION & TYPE OF COPY\\
\midrule
1 & Management representative & Master Copy
\bottomrule
\end{tabular}
\end{center}
\end{table} \cleardoublepage
%-----------------------------------------------------------
%---------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%table of contents stuff%
\tableofcontents
\thispagestyle{empty}%no page number on toc%
\cleardoublepage%pagebreak after toc%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%list of figures
\listoffigures
\addcontentsline{toc}{section}{\numberline{}List of Figures}
\cleardoublepage%pagebreak after list of figures%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%main body stuff%
\pagenumbering{arabic}
\setcounter{page}{1}
%---------------------------------------------------------------
%toc
%abbreviation
%figures
%tables
%annexures
%main content
\section{Scope}\label{sec:Scope}
\section{Normative Reference}\label{sec:Normative Reference}
\section{Terms and Definitions}\label{sec:Terms and Definitions}
\begin{tabular}{ll}
\hline
ABBREVIATION & Acronym\\
\hline
AC & Assistant Controller\\
\end{tabular}
\cleardoublepage
\section{Leadership}
\subsection{Leadership and commitment}
\subsubsection{General}
\cleardoublepage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{appendix}
\addcontentsline{toc}{section}{\numberline{}Annexures}
%-----------------------------------------------
\end{appendix}
\end{document}
%------------------------------------------------
- 对于每个部分 /sub~/subsub~ 我想赋予不同的颜色 - 类似于下面的地下城与龙 - 该怎么做?