49 lines
1.4 KiB
TeX
49 lines
1.4 KiB
TeX
\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 doesn’t 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
|
||
} |