Text Formatting ⇒ table of contents
table of contents
I need to put 10 appendices in a manual
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
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
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
table of contents
Please ask a concrete question and illustrate your problem with a
minimal working example. Currently I would answer something like:

Code: Select all
Code, edit and compile here:
\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}
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

table of contents
thanks--have put the quality manual latex code here--
https://latex.org/forum/viewtopic.php?f=5&t=32981
please have a look at the appendix part and advise
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
Never ever. The code at the other questions contains a lot of things that are unrelated to the appendix or the table of contents. I do not have the time to read such an extended code to find out, what could be relevant. You also should remove all the not necessary code you've deactivated using
%
. Please make examples always as short as possible.Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

table of contents
Done--the code is cropped and uploaded
Code: Select all
Code, edit and compile here:
\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 blockwidth=6.5in, % width of the text blocktop=78pt, % distance of the text block from the top of the pageheadheight=60pt, % height for the header blockheadsep=12pt, % distance from the header block to the text blockheightrounded, % ensure an integer number of lines%showframe, % show the main blocksverbose, % 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}
Last edited by jsbibra on Fri Nov 01, 2019 4:19 am, edited 1 time in total.
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
table of contents
Do you really think, that this is a minimal example for your problem with the appendix or the table of contents? Maybe another one has the time to analyze more than ½ thousand lines of code …
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

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
ok--got it by adding subsection in the code instead of section
--original
now changed to --
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 8327 times
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
table of contents
Great to see that you got it working.
Btw. thanks for posting complete code, and for reducing it! I just got error when I tested it, such as
Also btw. when you have repeated code, such as
In tables, you can use
Stefan
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
Code, edit and compile here:
\begin{table}[htbp!]\centering\begin{tabular}{...}\end{tabular}\end{table}
LaTeX.org admin