I want to make manual bibliography like this: enter link description here. (Don't ask me why i didn't use bibtex or thebibliography).
But whenever i put \usepackage{hanging} on preamble, it shows errors:
TeX capacity exceeded, sorry [input stack size=5000]
Overfull \hbox (4.84334pt too wide) in paragraph
\headhight is too small (12.0pt): Make it at least 14.49998pt.
But, when i comment (using "%") or delete that package, it backs to normal, there's no error. That means, somehow there's something wrong about hanging package?
I tried to looking for duplicate quetion and i found this. One of the answerer said that there's a conflict on the package. So, i think that the problem is like that.
Anyway, here is my MWE. It's impossible to show the whole document, cz it's 58 pages, i'll just show my main document.
\documentclass[a4paper,12pt,oneside,openany]{book}
\usepackage{pgf, tikz}
\usepackage[a4paper, inner=4cm, outer=3cm, top=4cm, bottom=3cm]{geometry}
\usepackage{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{setspace}
\usepackage[titles]{tocloft}
\usepackage{tocbibind}
\usepackage{indentfirst}
\usepackage{blindtext}
\usepackage{tocloft}
\usepackage{etoolbox}
\usepackage{enumitem}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage[column=O]{cellspace}
\usepackage{caption}
\usepackage{afterpage}
\usepackage{mathtools}
\usepackage{subcaption}
\usepackage{wrapfig}
\usepackage{cancel}
\usepackage{longtable}
\usepackage[indonesian]{babel}
\addto{\captionsindonesian}{\renewcommand{\bibname}{DAFTAR PUSTAKA}}
\usepackage{lipsum}
\usepackage{pdflscape}
\usepackage{makecell}
\usepackage{ragged2e}
\usepackage{hanging}
\newlist{ColEnum}{enumerate}{1}
\setlist[ColEnum,1]{label = \arabic*), left = 0pt, nosep,
before= {\begin{minipage}[t]{\hsize}\RaggedRight},
after = {\end{minipage}}}
\usetikzlibrary{arrows.meta,
chains,
matrix,
positioning,
quotes,
shapes.geometric}
\tikzset{FlowChart/.style = {
base/.style = {draw, minimum width=32mm, minimum height=8mm,
align=center},
startstop/.style = {base, ellipse},
process/.style = {base, rectangle},
io/.style = {base, trapezium, trapezium stretches,
trapezium left angle=70, trapezium right angle=110,
fill=blue!30},
decision/.style = {base, diamond, aspect=1.3, inner xsep=1pt},
arr/.style = {-Stealth, semithick}
}
}
\DeclareMathOperator{\Res}{Res}
\numberwithin{equation}{section}
\setlength{\cellspacetoplimit}{5pt}
\setlength{\cellspacebottomlimit}{4pt}
\theoremstyle{plain}
\newtheorem{thm}{Teorema}[section]
\newtheorem{cl}{Corollary}[section]
\newtheorem{lm}{Lemma}[section]
\theoremstyle{definition}
\newtheorem{defn}{Definisi}[section]
\newtheorem{exmp}{Contoh}
\renewcommand{\proofname}{\rm\bf{Bukti}}
\renewcommand\tablename{Tabel}
\renewcommand\figurename{Gambar}
\patchcmd{\section}{\bfseries}{\bfseries\boldmath}{}{}
\patchcmd{\tableofcontents}{\contentsname}{\MakeUppercase\contentsname}{}{}
\patchcmd{\listoffigures}{\listfigurename}{\MakeUppercase\listfigurename}{}{}
\patchcmd{\listoftables}{\listtablename}{\MakeUppercase\listtablename}{}{}
%\patchcmd{\bibliography}{\bibname}{\MakeUppercase\bibname}{}{}
\setlength{\cftbeforesecskip}{10pt}
\setlength{\cftbeforesubsecskip}{10pt}
\fancyhf{}
\cfoot{\thepage}
\linespread{1.5}
\pagestyle{plain}
\renewcommand\cftchapdotsep{\cftdotsep}
\titleformat{\chapter}[block]
{\normalfont\bfseries\centering}
{}{0pt}{}
\titleformat{\section}
{\normalfont\bfseries}
{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\bfseries}
{\thesubsection}{1em}{}
\titlespacing{\chapter}{0pt}{0pt}{20pt}
\titlespacing{\section}{0pt}{0pt}{0pt}
\titlespacing*{\subsection}{0pt}{0pt}{0pt}
\renewcommand{\contentsname}{DAFTAR ISI}
\renewcommand{\listtablename}{DAFTAR TABEL}
\renewcommand{\listfigurename}{DAFTAR GAMBAR}
\newcommand\dd{\mathop{}!\mathrm{d}}
%\addtocontents{toc}{\protect\null\protect\hfill{Halaman}\protect\par}
\setlength\parindent{1.25cm}
\addtocontents{toc}{~\hfill{Halaman}\par}
\addtocontents{toc}{\protect\afterpage{~\hfill{Halaman}\par\medskip}}
\addtocontents{lot}{~\hfill{Halaman}\par}
\addtocontents{lof}{~\hfill{Halaman}\par}
\makeatletter
\def\ttl@mkchap@i#1#2#3#4#5#6#7{%
\ttl@assign@tempskipa#3\relax\beforetitleunit
\vspace{@tempskipa}%<<<<<< REMOVE THE * AFTER \vspace
\global@afterindenttrue
\ifcase#5 \global@afterindentfalse\fi
\ttl@assign@tempskipb#4\relax\aftertitleunit
\ttl@topmode{@tempskipb}{%
\ttl@select{#6}{#1}{#2}{#7}}%
\ttl@finmarks % Outside the box!
@ifundefined{ttlp@#6}{}{\ttlp@write{#6}}}
\makeatother
\begin{document}
\clearpage
\thispagestyle{empty}
\include{cover1}
\frontmatter %
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\arraystretch}{2.0}
\include{cover2}
\begin{spacing}{0.1}
\tableofcontents
\end{spacing}
\begin{spacing}{1.5}
\listoffigures
\listoftables
\end{spacing}
\mainmatter
\pagestyle{fancyplain}
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\include{bab1}
\include{bab2}
\include{bab3}
\backmatter
%\include{dafpus}
\include{lampiran}
\end{document}
\usepackage{hanging}command. My document is rather large, and I guess a hint is this:TeX capacity exceeded, sorry [input stack size=5000]. I believe there is some unintended behavior from the hanging package along with some other package commands. It might be due to memory issue by an infinite loop: https://tex.stackexchange.com/questions/24247/tex-capacity-exceeded-sorry-input-stack-size-5000 – DisabledWhale Jan 17 '22 at 09:01