Skip to content

Commit

Permalink
Add table of contents for lectures
Browse files Browse the repository at this point in the history
Ref. #19
  • Loading branch information
kongr45gpen committed Mar 8, 2018
1 parent e107d41 commit 29ee89a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
test*
graphs/wip*
*.toclec

## Core latex/pdflatex auxiliary files:
*.aux
Expand Down
11 changes: 10 additions & 1 deletion preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
%\usepackage[linesnumbered,lined]{algorithm2e}
\usepackage{glossaries}
\usepackage{xifthen}
\usepackage{tocloft}


\pgfplotsset{compat=1.13}
Expand Down Expand Up @@ -271,8 +272,15 @@
\tikzset{locuszero/.style={draw=red!30!black,circle,inner sep=2pt,fill=white,fill opacity=.6,thick,label={[below]-90:#1}}}
\tikzset{locusbreak/.style={rounded corners=1.5pt,inner sep=2pt,draw,top color=brown,bottom color=black,fill opacity=.8,label={[below]-90:#1}}}

% New plotting utilities
% Lecture specifications

\newcommand{\listlecturename}{Κατάλογος Διαλέξεων}
\newlistof[chapter]{lecture}{toclec}{\listlecturename}
\renewcommand{\cfttoclectitlefont}{\normalfont\Large\bfseries}

\newcommand{\lecture}[2]{%
\refstepcounter{lecture}
\addcontentsline{toclec}{lecture}{\protect\numberline{\thelecture}Διάλεξη #2}
\nointerlineskip \vspace{.4\baselineskip}%\hspace{\fill}
\centerline{%\color{#1}
%\resizebox{1.1\linewidth}{\height}
Expand All @@ -288,6 +296,7 @@
\par\nointerlineskip \vspace{.5\baselineskip}
}

% New plotting utilities
\def\vlowsamples{4}
\def\lowsamples{18}
\def\hisamples{40}
Expand Down
Binary file modified sae2.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions sae2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

\newpage

\listoflecture
\tableofcontents

\newpage
Expand Down

0 comments on commit 29ee89a

Please sign in to comment.