Text Formatting ⇒ table of contents
table of contents
the appendices section needs to be ANNEXURES not appendices
the annexures should show up in the toc with page numbers
i should be able to give my own name to each annexure
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
table of contents
Code: Select all
\documentclass[chapterprefix]{scrbook}
\usepackage[main=english]{babel}
\renewcaptionname{english}{\appendixname}{Annexure}% see the KOMA-Script manual, e.g., scrguien.pdf
\usepackage{mwe}% not needed for the real document
\begin{document}
\tableofcontents
\blinddocument
\appendix
\chapter{This is the First Annexure}
\blindtext
\chapter{This is the Second Annexure}
\blindtext
\blinddocument
\blinddocument
\blinddocument
\blinddocument
\blinddocument
\blinddocument
\blinddocument
\blinddocument
\blinddocument
\blinddocument
\end{document}table of contents
https://latex.org/forum/viewtopic.php?f=5&t=32981
please have a look at the appendix part and advise
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
table of contents
%. Please make examples always as short as possible.table of contents
Code: Select all
\documentclass[10pt,a4paper]{article}
\usepackage{printlen}
\usepackage{layouts}
\usepackage{titlesec}
\usepackage{multirow, makecell, tabularx, booktabs}
\usepackage{babel}
\usepackage{setspace}
\usepackage{framed}
\usepackage{blindtext}
\usepackage{tgschola}%------------font YES
%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]
\usepackage[american,siunitx]{circuitikz}
\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}
\begin{center}
%\underline{COPY NO:}\\
\headrule\\[.25in]
{\MakeUppercase {\huge Quality Management System Manual}}\\[2mm]
\headrule\\[4mm]
\textsc{\Large as per requirements of std iso 9001:2015}
\begin{figure}[H]
\centering
\includegraphics[scale=.3]{example-image-a}
\label{DGQA Logo}
\end{figure}
%\vfill
%\line(1,0){400}\\
\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 cqaavl-dgqa@nic.in}\\
\vfill
\line(1,0){400}\\
\scriptsize NOT TO BE COPIED OR REPRODUCED IN FULL OR PART WITHOUT PERMISSION OF CONTROLLER, CQA(AVL)
\end{center}
\end{titlepage}
%****************************************************************************************************
\pagenumbering{roman}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
\section*{Distribution List for Quality Manual}
\end{center}
\addcontentsline{toc}{section}{\numberline{}Distribution List for Quality Manual}
\cleardoublepage
%-----------------------------------------------------------
\section*{Revision History}
\addcontentsline{toc}{section}{\numberline{}Revision History}
\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}
CQA(AVL) shall provide quality assurance activities for armored fighting vehicles (AFV) and there variants as per Directorate General of Quality Assurance (DGQA) guidelines
\section{Normative Reference}\label{sec:Normative Reference}
\begin{quote}
ISO 9001-2015 -- Quality management system requirements\\
ISO 19011:2015 -- Guidelines for auditing management systems\\
DGQA standing orders\\
CQA(AVL) standing orders
\end{quote}
\section{Terms and Definitions}\label{sec:Terms and Definitions}
\begin{tabular}{ll}
\hline
ABBREVIATION & Acronym\\
\hline
AC & Assistant Controller\\
\end{tabular}
\cleardoublepage
%add here
\section{Leadership}
\subsection{Leadership and commitment}
\subsubsection{General}
\cleardoublepage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Annexures}
\addcontentsline{toc}{section}{\numberline{}Annexures}
%-----------------------------------------------
\begin{center}
\hfill \underline{{\textbf{Annexure : QMS/F-01}}}\\[1cm]
% \addcontentsline{toc}{Annexures}{\numberline{}Flow Chart of Corrective Action: QMS/F-01 }
\raisebox{20pt}{\underline{\MakeUppercase{\textbf{flow chart of corrective action}}}}
\cleardoublepage
%-------------------------
\begin{center}
\hfill \underline{{\textbf{Annexure : QMS/F-02}}}\\[1cm]
\underline{\MakeUppercase{\textbf{Procedure for conduct of management review meeting}}}
% \addcontentsline{toc}{Annexures}{\numberline{}Procedure for conduct of management review meeting: QMS/F-02 }
\end{center}
\paragraph{Purpose:}
%-------------------------------
\begin{center}
\hfill \underline{{\textbf{Annexure : QMS/F-03}}}\\[1cm]
\underline{\MakeUppercase{\textbf{Minutes of Management Review meeting }}}
% \addcontentsline{toc}{Annexures}{\numberline{}Minutes of Management Review Meeting: QMS/F-03 }
\end{center}
\paragraph{Date:}
\paragraph{Member Present:}
\paragraph{Members Absent:}
\paragraph{Agenda:}
%---------------------------------------------------------------------
\renewcommand{\labelenumi}{(\alph{enumi})}
\renewcommand{\labelenumii}{(\roman{enumii})}
\begin{enumerate}
\item The status of actions from previous management reviews
\end{enumerate}
\begin{table}[htbp]
\begin{center}
\begin{tabular}{|p{.5in}|p{3in}|p{1.6in}|p{1in}|}
\toprule
S No & Details of Discussion and Action Planned & Responsibility & Target Date\\
\midrule
1 & & &\\
2 & & &\\
3 & & & \\
4 & & & \\
\bottomrule
\end{tabular}
\end{center}
\end{table}
\vspace{1cm}
(Signature of MR) \hspace{3in} (Signature of Controller)\\
\cleardoublepage\
%---------------------------------
\begin{center}
\hfill\underline{{\textbf{Annexure: QMS/F-04}}}\\[1cm]
\underline{\MakeUppercase{\textbf{annual audit plan}}}
% \addcontentsline{toc}{Annexures}{\numberline{}Annual Audit Plan: QMS/F-04 }
\end{center}
\cleardoublepage\
%------------------------------
\begin{center}
\hfill\underline{{\textbf{Annexure: QMS/F-05}}}\\[1cm]
\underline{\MakeUppercase{\textbf{audit schedule}}}
% \addcontentsline{toc}{Annexures}{\numberline{}Audit Schedule: QMS/F-05 }
\end{center}
\cleardoublepage\
%------------------------------------
\begin{center}
\hfill\underline{{\textbf{Annexure: QMS/F-06}}}\\[1cm]
\underline{\MakeUppercase{\textbf{audit observation sheet}}}
% \addcontentsline{toc}{Annexures}{\numberline{}Audit Observation Sheet: QMS/F-06 }
\end{center}
\cleardoublepage\
%----------------------------------------
\begin{center}
\hfill \underline{{\textbf{Annexure: QMS/F-07}}}\\[1cm]
\underline{\MakeUppercase{\textbf{qms retention policy}}}
% \addcontentsline{toc}{Annexures}{\numberline{}QMS Retention Policy: QMS/F-07 }
\end{center}
\cleardoublepage\
%------------------------------------------
\begin{center}
\hfill\underline{{\textbf{Annexure: QMS/F-08}}}\\[1cm]
\underline{\MakeUppercase{\textbf{control on documents }}}
% \addcontentsline{toc}{Annexures}{\numberline{}Control on Documents: QMS/F-08 }
\end{center}
\cleardoublepage\
%----------------------------------------------
\begin{center}
\hfill\underline{{\textbf{Annexure: QMS/F-09}}}\\[1cm]
\underline{\MakeUppercase{\textbf{quality objectives}}}
% \addcontentsline{toc}{Annexures}{\numberline{}Quality Objectives: QMS/F-09 }
\end{center}
\cleardoublepage
%---------------------------------------------------
\begin{landscape}
%\hfill \underline{{\textbf {Annexure: QMS/F-10}}}\\[1cm]
\footnotesize
%-----------------------------------------------------------------
\end{document}
%------------------------------------------------------- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
table of contents
table of contents
Code: Select all
\addcontentsline{toc}{section}{\numberline{}Annual Audit Plan: QMS/F-04 }[img][/img]
but how do I remove the bold font in the Appendix names?
table of contents
Code: Select all
\addcontentsline{toc}{section}{\numberline{}Annual Audit Plan: QMS/F-04 }now changed to --
Code: Select all
\addcontentsline{toc}{subsection}{\numberline{}Annual Audit Plan: QMS/F-04 }- Attachments
-
- ScreenClip.png (157.24 KiB) Viewed 8752 times
- Stefan Kottwitz
- Site Admin
- Posts: 10377
- Joined: Mon Mar 10, 2008 9:44 pm
table of contents
Btw. thanks for posting complete code, and for reducing it! I just got error when I tested it, such as
\end{center} missing, \end{landscape} missing, no language option given to babel. It would be good to test code before posting, so we can test it too. Also btw. when you have repeated code, such as
\hfill \underline{{\textbf{Annexure : ...}}}\\[1cm], consider making a \newcommand for it, that makes changes easier. And I would use \subsection* here.In tables, you can use
\centering instead of \begin{center} ... \end{center}, since the latter adds vertical space. The effect of such switch commands stay within an environment.Code: Select all
\begin{table}[htbp!]
\centering
\begin{tabular}{...}
\end{tabular}
\end{table}