Skip to content

Commit b153cb2

Browse files
authored
Merge pull request #53 from kashefy/upgrades
column fixes
2 parents 3a6aad8 + 861521a commit b153cb2

File tree

17 files changed

+140
-195
lines changed

17 files changed

+140
-195
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ See [Releases](https://github.com/kashefy/mi2notes/releases) to download the lat
2828

2929
## Instructions on compiling the LaTeX sources ##
3030

31-
Ubuntu:
31+
Ubuntu 18.04:
3232

3333
apt install texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra dvipng texlive-latex-recommended texlive-science texlive-lang-german
3434

@@ -49,7 +49,13 @@ Please keep the scope of changes small to make it easier to spot the differences
4949

5050
For broader changes, open an issue for the proposed broad change so we can discuss it.
5151

52-
At this point I would like to avoid making any major changes to styling but open to discussing them.
52+
## Style ##
53+
54+
At this point I would like to avoid making any major styling changes but open to discussing them.
55+
56+
The notes leave space on the left for your own annotations. You can adjust this space by changing the value for the following under latex/minotes.cls. The changes will apply to all sections:
57+
\newcommand{\mycolumnleft}{0.2} # in the range of 0 to 1 increasing this value leaves more space on the left.
58+
5359

5460
## Acknowledgment ##
5561

latex/minotes.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,5 @@
115115

116116
% vertical space for slides only
117117
\newcommand{\svspace}[1]{}
118+
119+
\newcommand{\mycolumnleft}{0.2}

notes/00_lagrange/tutorial.tex

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515

1616
%\maxdeadcycles=1000 % Workaround for ! Output loop---100 consecutive dead cycles because of too many figures
1717

18-
% The following use of algroithms does not work well with the notes:
19-
%
20-
%
21-
%
22-
%
23-
% instead use the following for your algorithms:
18+
% The following use of algroithms is recommended for the notes:
2419
%
2520
%\begin{figure}[!t]
2621
%\removelatexerror
@@ -52,7 +47,9 @@
5247

5348
\newpage
5449

55-
\columnratio{0.2,0.8}\textbf{}
50+
% The variable mycolumnleft is set in the minotes class
51+
% The column settings are ignored by the slides
52+
\columnratio{\mycolumnleft,1-\mycolumnleft}
5653
\begin{paracol}{2}
5754
%\setlength{\columnseprule}{0.1pt}
5855
%\setlength{\columnsep}{5em}

notes/01_pca/tutorial.slides.tex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
\input{../../latex/headerMIslides}
22
\input{../../latex/customcommands}
33

4-
\subtitle{1.1 Intro \& 1.2 Connectionist Neuron}
54
\mathtoolsset{showonlyrefs}
65

76
\newcommand{\slidesonly}[1]{#1}

notes/01_pca/tutorial.tex

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717

1818
\maxdeadcycles=1000 % Workaround for ! Output loop---100 consecutive dead cycles because of too many figures
1919

20-
% The following use of algroithms does not work well with the notes:
21-
%
22-
%
23-
%
24-
%
25-
% instead use the following for your algorithms:
20+
% The following use of algroithms is recommended for the notes:
2621
%
2722
%\begin{figure}[!t]
2823
%\removelatexerror
@@ -44,24 +39,25 @@
4439

4540
\ttopic{\tutorialtitle}
4641

47-
\columnratio{0.2,0.8}\textbf{}
48-
\begin{paracol}{2}
49-
%\setlength{\columnseprule}{0.1pt}
50-
%\setlength{\columnsep}{5em}
51-
52-
\begin{rightcolumn}
53-
54-
% notes version will ignore it
5542
\begin{frame}
56-
\titlepage
43+
\titlepage
5744
\end{frame}
5845

5946
\begin{frame}
60-
\tableofcontents[subsubsectionstyle=hide]
47+
\tableofcontents[subsubsectionstyle=hide]
6148
\end{frame}
6249

6350
\newpage
6451

52+
% The variable mycolumnleft is set in the minotes class
53+
% The column settings are ignored by the slides
54+
\columnratio{\mycolumnleft,1-\mycolumnleft}
55+
\begin{paracol}{2}
56+
%\setlength{\columnseprule}{0.1pt}
57+
%\setlength{\columnsep}{5em}
58+
59+
\begin{rightcolumn}
60+
6561
\mode<all>
6662
\input{./0_dim}
6763
\mode*

notes/02_online-pca/tutorial.tex

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616

1717
\maxdeadcycles=1000 % Workaround for ! Output loop---100 consecutive dead cycles because of too many figures
1818

19-
% The following use of algroithms does not work well with the notes:
20-
%
21-
%
22-
%
23-
%
24-
% instead use the following for your algorithms:
19+
% The following use of algroithms is recommended for the notes:
2520
%
2621
%\begin{figure}[!t]
2722
%\removelatexerror
@@ -45,14 +40,6 @@
4540

4641
\ttopic{\tutorialtitle}
4742

48-
\columnratio{0.2,0.8}\textbf{}
49-
\begin{paracol}{2}
50-
%\setlength{\columnseprule}{0.1pt}
51-
%\setlength{\columnsep}{5em}
52-
53-
\begin{rightcolumn}
54-
55-
% notes version will ignore it
5643
\begin{frame}
5744
\titlepage
5845
\end{frame}
@@ -63,6 +50,15 @@
6350

6451
\newpage
6552

53+
% The variable mycolumnleft is set in the minotes class
54+
% The column settings are ignored by the slides
55+
\columnratio{\mycolumnleft,1-\mycolumnleft}
56+
\begin{paracol}{2}
57+
%\setlength{\columnseprule}{0.1pt}
58+
%\setlength{\columnsep}{5em}
59+
60+
\begin{rightcolumn}
61+
6662
\mode<all>
6763
\input{./0_hebbian}
6864
\mode*

notes/03_kernel-pca/tutorial.tex

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616

1717
\maxdeadcycles=1000 % Workaround for ! Output loop---100 consecutive dead cycles because of too many figures
1818

19-
% The following use of algroithms does not work well with the notes:
20-
%
21-
%
22-
%
23-
%
24-
% instead use the following for your algorithms:
19+
% The following use of algroithms is recommended for the notes:
2520
%
2621
%\begin{figure}[!t]
2722
%\removelatexerror
@@ -43,14 +38,6 @@
4338

4439
\ttopic{\tutorialtitle}
4540

46-
\columnratio{0.2,0.8}\textbf{}
47-
\begin{paracol}{2}
48-
%\setlength{\columnseprule}{0.1pt}
49-
%\setlength{\columnsep}{5em}
50-
51-
\begin{rightcolumn}
52-
53-
% notes version will ignore it
5441
\begin{frame}
5542
\titlepage
5643
\end{frame}
@@ -62,6 +49,15 @@
6249

6350
\newpage
6451

52+
% The variable mycolumnleft is set in the minotes class
53+
% The column settings are ignored by the slides
54+
\columnratio{\mycolumnleft,1-\mycolumnleft}
55+
\begin{paracol}{2}
56+
%\setlength{\columnseprule}{0.1pt}
57+
%\setlength{\columnsep}{5em}
58+
59+
\begin{rightcolumn}
60+
6561
\mode<all>
6662
\input{./0_recap}
6763
\mode*

notes/04_density-transform/tutorial.tex

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616

1717
%\maxdeadcycles=1000 % Workaround for ! Output loop---100 consecutive dead cycles because of too many figures
1818

19-
% The following use of algroithms does not work well with the notes:
20-
%
21-
%
22-
%
23-
%
24-
% instead use the following for your algorithms:
19+
% The following use of algroithms is recommended for the notes:
2520
%
2621
%\begin{figure}[!t]
2722
%\removelatexerror
@@ -43,14 +38,6 @@
4338

4439
\ttopic{\tutorialtitle}
4540

46-
\columnratio{0.2,0.8}\textbf{}
47-
\begin{paracol}{2}
48-
%\setlength{\columnseprule}{0.1pt}
49-
%\setlength{\columnsep}{5em}
50-
51-
\begin{rightcolumn}
52-
53-
% notes version will ignore it
5441
\begin{frame}
5542
\titlepage
5643
\end{frame}
@@ -61,6 +48,15 @@
6148

6249
\newpage
6350

51+
% The variable mycolumnleft is set in the minotes class
52+
% The column settings are ignored by the slides
53+
\columnratio{\mycolumnleft,1-\mycolumnleft}
54+
\begin{paracol}{2}
55+
%\setlength{\columnseprule}{0.1pt}
56+
%\setlength{\columnsep}{5em}
57+
58+
\begin{rightcolumn}
59+
6460
\mode<all>
6561
\input{./0_ica_problem}
6662
\mode*

notes/05_infomax/tutorial.tex

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616

1717
\maxdeadcycles=1000 % Workaround for ! Output loop---100 consecutive dead cycles because of too many figures
1818

19-
% The following use of algroithms does not work well with the notes:
20-
%
21-
%
22-
%
23-
%
24-
% instead use the following for your algorithms:
19+
% The following use of algroithms is recommended for the notes:
2520
%
2621
%\begin{figure}[!t]
2722
%\removelatexerror
@@ -43,14 +38,6 @@
4338

4439
\ttopic{\tutorialtitle}
4540

46-
\columnratio{0.2,0.8}\textbf{}
47-
\begin{paracol}{2}
48-
%\setlength{\columnseprule}{0.1pt}
49-
%\setlength{\columnsep}{5em}
50-
51-
\begin{rightcolumn}
52-
53-
% notes version will ignore it
5441
\begin{frame}
5542
\titlepage
5643
\end{frame}
@@ -66,6 +53,15 @@
6653

6754
\newpage
6855

56+
% The variable mycolumnleft is set in the minotes class
57+
% The column settings are ignored by the slides
58+
\columnratio{\mycolumnleft,1-\mycolumnleft}
59+
\begin{paracol}{2}
60+
%\setlength{\columnseprule}{0.1pt}
61+
%\setlength{\columnsep}{5em}
62+
63+
\begin{rightcolumn}
64+
6965
\mode<all>
7066
\input{./0_ica_intro}
7167
\mode*

notes/06_fastica/tutorial.tex

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616

1717
%\maxdeadcycles=1000 % Workaround for ! Output loop---100 consecutive dead cycles because of too many figures
1818

19-
% The following use of algroithms does not work well with the notes:
20-
%
21-
%
22-
%
23-
%
24-
% instead use the following for your algorithms:
19+
% The following use of algroithms is recommended for the notes:
2520
%
2621
%\begin{figure}[!t]
2722
%\removelatexerror
@@ -33,7 +28,6 @@
3328
%\end{figure}
3429
%\begin{algorithm}
3530
% Below is the definition for the command \removelatexerror:
36-
\makeatletter
3731
\newcommand{\removelatexerror}{\let\@latex@error\@gobble}
3832
\makeatother
3933

@@ -43,14 +37,6 @@
4337

4438
\ttopic{\tutorialtitle}
4539

46-
\columnratio{0.2,0.8}\textbf{}
47-
\begin{paracol}{2}
48-
%\setlength{\columnseprule}{0.1pt}
49-
%\setlength{\columnsep}{5em}
50-
51-
\begin{rightcolumn}
52-
53-
% notes version will ignore it
5440
\begin{frame}
5541
\titlepage
5642
\end{frame}
@@ -66,6 +52,15 @@
6652

6753
\newpage
6854

55+
% The variable mycolumnleft is set in the minotes class
56+
% The column settings are ignored by the slides
57+
\columnratio{\mycolumnleft,1-\mycolumnleft}
58+
\begin{paracol}{2}
59+
%\setlength{\columnseprule}{0.1pt}
60+
%\setlength{\columnsep}{5em}
61+
62+
\begin{rightcolumn}
63+
6964
\mode<all>
7065
\input{./0_recap_ica_whitening}
7166
\mode*

0 commit comments

Comments
 (0)