dionesiusap / if-itb-latex

LaTeX template for ITB computer science thesis (last updated for undergraduate thesis 2019/2020 guidelines).
2 stars 1 forks source link

TODO: Fix Table of Contents and Table of Appendices Formatting #1

Open dionesiusap opened 4 years ago

dionesiusap commented 4 years ago

Format as in the guidelines Table of Contents:

BAB I    Pendahuluan
BAB II   Tinjauan Pustaka
BAB III  Analisis dan Perancangan

Table of Appendices:

Lampiran A. Judul Lampiran

Current ToC format Table of Contents:

I    Pendahuluan
II   Tinjauan Pustaka
III  Analisis dan Perancangan

Table of Appendices:

Lampiran A. Judul Lampiran
dionesiusap commented 4 years ago

Current hack to fix ToC format: Add the following lines in the TABLE OF CONTENTS, LISTS OF FIGURES & TABLES section in if-itb-thesis.sty file

\renewcommand{\cftchappresnum}{BAB~} % BAB before number in ToC
\newlength{\mylen} % a scratch length
\settowidth{\mylen}{\bfseries\cftchappresnum\cftchapaftersnum} % extra space
\addtolength{\cftchapnumwidth}{\mylen} % add the extra space

It fixes the ToC format but breaks the ToA as seen below. ToC: Screenshot from 2020-09-27 00-38-12 ToA: Screenshot from 2020-09-27 00-38-51