Text Formattingtable of contents

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

table of contents

Post by jsbibra »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Ijon Tichy »

Please ask a concrete question and illustrate your problem with a Infominimal 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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

table of contents

Post by jsbibra »

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
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

table of contents

Post by Ijon Tichy »

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. :cry:
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

table of contents

Post by jsbibra »

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 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}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last edited by jsbibra on Fri Nov 01, 2019 4:19 am, edited 1 time in total.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

table of contents

Post by Ijon Tichy »

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. :cry:
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

table of contents

Post by jsbibra »

reduced further please
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

table of contents

Post by jsbibra »

Code: Select all

\addcontentsline{toc}{section}{\numberline{}Annual Audit Plan: QMS/F-04 }
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
okay thanks --I got it working by adding the above line to my code
[img]
ScreenClip.png
ScreenClip.png (66.34 KiB) Viewed 8339 times
[/img]

but how do I remove the bold font in the Appendix names?
jsbibra
Posts: 17
Joined: Tue Sep 10, 2019 2:25 pm

table of contents

Post by jsbibra »

ok--got it by adding subsection in the code instead of section

Code: Select all

\addcontentsline{toc}{section}{\numberline{}Annual Audit Plan: QMS/F-04 }
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
--original

now changed to --

Code: Select all

\addcontentsline{toc}{subsection}{\numberline{}Annual Audit Plan: QMS/F-04 }
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Attachments
ScreenClip.png
ScreenClip.png (157.24 KiB) Viewed 8327 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

table of contents

Post by Stefan Kottwitz »

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 \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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
Post Reply