Files
thesis/latex/preamble/appendix.tex

49 lines
1.4 KiB
TeX
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
\usepackage{multirow}
\usepackage{array}
% \usepackage{makecell}
\usepackage{lscape}
\usepackage{etoolbox}
\usepackage{longtable,booktabs}
\usepackage{colortbl,xcolor}
\usepackage{enumitem}
\usepackage{pdfpages}
\usepackage{caption}
\usepackage[titletoc,toc,page]{appendix}
\renewcommand{\appendixtocname}{Lampiran}
\renewcommand{\appendixpagename}{\MakeUppercase{Lampiran}}
\definecolor{Gray}{gray}{0.95}
\newcolumntype{a}{>{\columncolor{Gray}}p}
\renewcommand{\thefootnote}{\textit{\alph{footnote}}}
% \newcolumntype{b}{>{\raggedright\arraybackslash}p}
\makeatletter
% Define rlandscape (right-rotated landscape)
\newenvironment{rlandscape}{%
% Temporarily flip the rotation direction
\patchcmd{\LS@rot}{90}{-90}{}{}
\patchcmd{\endlandscape}{90}{-90}{}{}
% Begin a normal landscape
\begin{landscape}
}{%
% End the landscape
\end{landscape}
% Restore the default rotation (so it doesnt affect other landscapes)
\patchcmd{\LS@rot}{-90}{90}{}{}
\patchcmd{\endlandscape}{-90}{90}{}{}
}
\makeatother
\newcounter{customcounter}
% Environment where \thecustomcounter increments on every use
\newenvironment{customcounterenv}{%
\begingroup
% reset to 0 at env start so first use prints 1
\setcounter{customcounter}{0}%
% locally redefine \thecustomcounter: step, then print arabic value
\renewcommand{\thecustomcounter}{\stepcounter{customcounter}\arabic{customcounter}}%
}{%
\endgroup
}