@@ -16,22 +16,30 @@
\ R e q u i r e P a c k a g e { g e o m e t r y }
\ R e q u i r e P a c k a g e { s e t s p a c e }
\ R e q u i r e P a c k a g e { g r a p h i c x }
\ R e q u i r e P a c k a g e { h y p e r r e f }
\ R e q u i r e P a c k a g e { e t o o l b o x }
\ R e q u i r e P a c k a g e { t o c l o f t }
\ R e q u i r e P a c k a g e { t o c b i b i n d }
\ R e q u i r e P a c k a g e { a m s m a t h , a m s f o n t s , a m s s y m b }
\ R e q u i r e P a c k a g e { s v g } % A l l o w s i n c l u d i n g S V G i m a g e s d i r e c t l y
\ R e q u i r e P a c k a g e { i n d e n t f i r s t } % M a k e s first p a r a g r a p h a f t e r h e a d i n g s i n d e n t e d
\ R e q u i r e P a c k a g e { f l o a t } % P r o v i d e s [ H ] option to f o r c e f i g u r e / table p l a c e m e n t
\ R e q u i r e P a c k a g e { h y p e r r e f }
% P o l y g l o s s i a set language
\ s e t m a i n l a n g u a g e { b a h a s a i }
% \ s e t o t h e r l a n g u a g e { e n g l i s h }
+ \ s e t d e f a u l t l a n g u a g e [ v a r i a n t = i n d o n e s i a n ] { m a l a y } % P r o p e r I n d o n e s i a n language s e t u p
+ \ s e t o t h e r l a n g u a g e { e n g l i s h } % E n a b l e s E n g l i s h as s e c o n d a r y language
+ \ D e f i n e B i b l i o g r a p h y S t r i n g s { e n g l i s h } { % % C u s t o m i z e s b i b l i o g r a p h y t e x t
+ a n d o t h e r s = { d k k \ a d d d o t } , % C h a n g e s " e t a l . " t o " d k k . "
+ p a g e s = { h l m \ a d d d o t } , % C h a n g e s " p p . " t o " h l m . "
+ }
% C o n d i t i o n a l l y load t h e w a t e r m a r k p a c k a g e and s e t t i n g s
\ if @ d r a f t m a r k
\ R e q u i r e P a c k a g e { d r a f t w a t e r m a r k }
\ S e t W a t e r m a r k T e x t { D r a f t : \ t o d a y [ w i p ] }
\ S e t W a t e r m a r k C o l o r [ g r a y ] { 0 . 7 }
\ S e t W a t e r m a r k F o n t S i z e { 2 c m }
\ S e t W a t e r m a r k T e x t { n u l u h / t h e s i s ( w i p ) d r a f t : \ t o d a y }
\ S e t W a t e r m a r k C o l o r [ g r a y ] { 0 . 8 } % O p a c i t y : 0.8 = 20 % transparent
\ S e t W a t e r m a r k F o n t S i z e { 1 . 5 c m }
\ S e t W a t e r m a r k A n g l e { 9 0 }
\ S e t W a t e r m a r k H o r C e n t e r { 1 . 5 c m }
\ f i
@@ -79,7 +87,10 @@
}
% C h a p t e r f o r m a t t i n g
\ t i t l e s p a c i n g { \ c h a p t e r } { 0 p t } { 0 p t } { * 1 . 5 }
\ t i t l e s p a c i n g { \ c h a p t e r } { 0 p t } { 0 c m } { * 1 . 5 } % 0 p t → 0 c m : s a m e value , d i f f e r e n t u n i t
% 0 p t = no space a b o v e c h a p t e r title
% * 1.5 = 1.5 × line s p a c i n g a f t e r title
\ t i t l e f o r m a t { \ c h a p t e r } [ display ]
{ \ n o r m a l s i z e \ b f s e r i e s \ c e n t e r i n g }
{ B A B ~ \ R o m a n { c h a p t e r } } % < < display format
@@ -91,6 +102,10 @@
\ t i t l e f o r m a t { \ s u b s e c t i o n }
{ \ n o r m a l s i z e \ b f s e r i e s } { \ t h e s u b s e c t i o n } { 1 e m } { }
% Section n u m b e r i n g d e p t h
\ s e t c o u n t e r { s e c n u m d e p t h } { 3 } % E n a b l e s n u m b e r i n g for :
% 1 = c h a p t e r s , 2 = s e c t i o n s , 3 = s u b s e c t i o n s
% E n s u r e c h a p t e r r e f e r e n c e in T O C matches
\ r e n e w c o m m a n d { \ c f t c h a p p r e s n u m } { B A B ~ }
\ r e n e w c o m m a n d { \ c f t c h a p a f t e r s n u m } { \ q u a d }
@@ -108,16 +123,22 @@
% D o t l e a d e r s , s p a c i n g , i n d e n t a t i o n
\ s e t l e n g t h { \ c f t b e f o r e t o c t i t l e s k i p } { 0 c m } % Space a b o v e "DAFTAR ISI" title
\ s e t l e n g t h { \ c f t b e f o r e l o f t i t l e s k i p } { 0 c m } % Space a b o v e "DAFTAR GAMBAR" title
\ s e t l e n g t h { \ c f t b e f o r e l o t t i t l e s k i p } { 0 c m } % Space a b o v e "DAFTAR TABEL" title
\ s e t l e n g t h { \ c f t b e f o r e c h a p s k i p } { 0 e m }
\ s e t l e n g t h { \ c f t c h a p i n d e n t } { 0 p t }
\ s e t l e n g t h { \ c f t s e c i n d e n t } { 0 e m }
\ s e t l e n g t h { \ c f t s u b s e c i n d e n t } { 2 . 5 em }
\ s e t l e n g t h { \ c f t s u b s e c i n d e n t } { 2 e m }
\ s e t l e n g t h { \ c f t c h a p n u m w i d t h } { 3 . 5 e m }
\ s e t l e n g t h { \ c f t s e c n u m w i d t h } { 3 . 5 e m }
\ s e t l e n g t h { \ c f t s e c n u m w i d t h } { 2 e m }
\ s e t l e n g t h { \ c f t s u b s e c n u m w i d t h } { 2 . 5 e m }
\ s e t l e n g t h { \ c f t f i g n u m w i d t h } { 5 e m }
\ s e t l e n g t h { \ c f t t a b n u m w i d t h } { 4 e m }
\ r e n e w c o m m a n d \ c f t c h a p d o t s e p { 4 . 5 } % h t t p s : //tex.stackexchange.com/a/273764
\ r e n e w c o m m a n d \ c f t c h a p d o t s e p { 1 } % D e n s e r d o t s ( c l o s e r t o g e t h e r ) h t t p s : //tex.stackexchange.com/a/273764
\ r e n e w c o m m a n d \ c f t s e c d o t s e p { 1 } % Apply to s e c t i o n s t o o
\ r e n e w c o m m a n d \ c f t s u b s e c d o t s e p { 1 } % Apply to s u b s e c t i o n s t o o
\ r e n e w c o m m a n d { \ c f t c h a p l e a d e r } { \ n o r m a l f o n t \ c f t d o t f i l l { \ c f t s e c d o t s e p } }
\ r e n e w c o m m a n d { \ c f t c h a p p a g e f o n t } { \ n o r m a l f o n t }
\ r e n e w c o m m a n d { \ c f t f i g p r e s n u m } { \ f i g u r e n a m e ~ }
@@ -143,15 +164,42 @@
\ r e n e w c o m m a n d { \ c f t a f t e r l o t t i t l e } { \ h f i l l }
% \ r e n e w c o m m a n d { \ c f t t o c t i t l e f o n t } { \ b f s e r i e s \ M a k e U p p e r c a s e }
% \ r e n e w c o m m a n d { \ c f t a f t e r t o c t i t l e } { \ v s k i p 2 e m }
\ m a k e a t l e t t e r
% E x t r a c t i n g t h e Year from \ today
\ n e w c o m m a n d { \ t h e y e a r } { %
\ e x p a n d a f t e r \ @ c a r \ e x p a n d a f t e r \ @ g o b b l e \ t h e \ y e a r \ @ n i l
}
% % Apply a c u s t o m f a n c y h d r l a y o u t o n l y on t h e first page of each \ c h a p t e r , and use no header / f o o t e r e l s e w h e r e
% % \ l e t \ o l d c h a p t e r \ c h a p t e r
% % \ r e n e w c o m m a n d { \ c h a p t e r } { %
% % \ c l e a r d o u b l e p a g e
% % \ p a g e s t y l e { f an c y p l ai n c h a p t e r } %
% % \ o l d c h a p t e r
% % \ t h i s p a g e s t y l e { f a n c y p l a i n c h a p t e r } % e n s u r e c h a p t e r s t a r t p a g e u s e s i t
% % \ p a g e s t y l e { f a n c y p l a i n } % s w i t c h f o r s u b s e q u e n t p a g e s
% % }
% Declare i n t e r n a l m a c r o s as i n i t i a l l y empty
\ n e w c o m m a n d { \ @ a u t h o r i d } { }
\ n e w c o m m a n d { \ @ f i r s t a d v i s o r } { }
\ n e w c o m m a n d { \ @ s e c o n d a d v i s o r } { }
\ n e w c o m m a n d { \ @ h e a d d e p a r t e m e n t } { }
\ n e w c o m m a n d { \ @ h e a d d e p a r t e m e n t i d } { }
\ n e w c o m m a n d { \ @ f a c u l t y } { }
\ n e w c o m m a n d { \ @ p r o g r a m } { }
\ n e w c o m m a n d { \ @ u n i v e r s i t y } { }
\ n e w c o m m a n d { \ @ y e a r o f s u b m i s s i o n } { }
% Define user c o m m a n d s to set t h e s e values .
\ n e w c o m m a n d { \ a u t h o r i d } [ 1 ] { \ g d e f \ @ a u t h o r i d { # 1 } }
\ n e w c o m m a n d { \ f i r s t a d v i s o r } [ 1 ] { \ g d e f \ @ f i r s t a d v i s o r { # 1 } }
\ n e w c o m m a n d { \ s e c o n d a d v i s o r } [ 1 ] { \ g d e f \ @ s e c o n d a d v i s o r { # 1 } }
\ n e w c o m m a n d { \ h e a d d e p a r t e m e n t } [ 1 ] { \ g d e f \ @ h e a d d e p a r t e m e n t { # 1 } }
\ n e w c o m m a n d { \ h e a d d e p a r t e m e n t i d } [ 1 ] { \ g d e f \ @ h e a d d e p a r t e m e n t i d { # 1 } }
\ n e w c o m m a n d { \ f a c u l t y } [ 1 ] { \ g d e f \ @ f a c u l t y { # 1 } }
\ n e w c o m m a n d { \ p r o g r a m } [ 1 ] { \ g d e f \ @ p r o g r a m { # 1 } }
\ n e w c o m m a n d { \ u n i v e r s i t y } [ 1 ] { \ g d e f \ @ u n i v e r s i t y { # 1 } }
% \ n e w c o m m a n d { \ y e a r o f s u b m i s s i o n } [ 1 ] { \ g d e f \ @ y e a r o f s u b m i s s i o n { # 1 } }
% Now e x p o s e r o b u s t “ t h e ‑ ” g e t t e r s to a c c e s s t h e values
\ n e w c o m m a n d { \ t h e a u t h o r i d } { \ @ a u t h o r i d }
\ n e w c o m m a n d { \ t h e f i r s t a d v i s o r } { \ @ f i r s t a d v i s o r }
\ n e w c o m m a n d { \ t h e s e c o n d a d v i s o r } { \ @ s e c o n d a d v i s o r }
\ n e w c o m m a n d { \ t h e h e a d d e p a r t e m e n t } { \ @ h e a d d e p a r t e m e n t }
\ n e w c o m m a n d { \ t h e h e a d d e p a r t e m e n t i d } { \ @ h e a d d e p a r t e m e n t i d }
\ n e w c o m m a n d { \ t h e f a c u l t y } { \ @ f a c u l t y }
\ n e w c o m m a n d { \ t h e p r o g r a m } { \ @ p r o g r a m }
\ n e w c o m m a n d { \ t h e u n i v e r s i t y } { \ @ u n i v e r s i t y }
\ m a k e a t o t h e r
\ e n d i n p u t