Skip to content

Commit

Permalink
An alternative ulisboa/ist chapter style
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomlourenco committed Oct 31, 2023
1 parent 04b0609 commit 4284248
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions NOVAthesisFiles/ChapStyles/ist2.ldf
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ChapterStyle/ist2.ldf
%% NOVA thesis configuration file
%%
%% Customization for the IST chapter style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\typeout{NT FILE ChapterStyle/ist2.ldf}%

%%%%% Configure chapters, headers, footers, and page numbering
\RequirePackage{soul}

\definecolor{istchaptercolor}{rgb}{0.7,0.8,0.9}

\undef{\@nt@ist@chapter}
\newsavebox{\@nt@ist@chapter}
\undef{\@nt@ist@part}
\newsavebox{\@nt@ist@part}


\providecommand{\@nt@ist@chm}[1][4cm]{%
\resizebox{!}{#1}{%
\fboxsep=1pt%
\color{istchaptercolor}\thechapter%
}%
}

\providecommand{\@nt@ist@ptm}[1][4cm]{%
\@nt@ist@chm{#1}
}


\makechapterstyle{ist}{%
% \renewcommand{\chapnamefont}{\normalfont\Large\scshape\raggedleft\so}%
\renewcommand{\chaptitlefont}{\normalfont\huge\bfseries\scshape}%\sffamily}%
% \renewcommand{\chapternamenum}{}
\renewcommand{\printchaptername}{}%
\renewcommand{\printchapternum}{\null\hfill\@nt@ist@chm[2cm]\hspace*{14pt}\par}%
\renewcommand{\afterchapternum}{}%{\vspace*{-11ex}}%
\renewcommand{\printchaptertitle}[1]{\color{darkgray}\chaptitlefont\raggedleft ##1\par}%
%
% \renewcommand{\partnamefont}{\chapnamefont}
% \renewcommand{\parttitlefont}{\chaptitlefont}
% \renewcommand{\partnamenum}{}
\renewcommand{\printpartname}{}%
\renewcommand{\thepart}{\Roman{part}}
\renewcommand{\printpartnum}{\null\hfill\@nt@ist@ptm[4cm]\hspace*{14pt}\par}%
% \renewcommand{\afterpartnum}{\vspace*{-11ex}}%
\renewcommand{\printparttitle}[1]{\color{darkgray}\parttitlefont\raggedleft ##1\par}%
\renewcommand*{\partnumfont}{\normalfont\scshape\MakeLowercase}
}
\chapterstyle{ist}

0 comments on commit 4284248

Please sign in to comment.