Skip to content

Commit

Permalink
presentation: rename main tex file.
Browse files Browse the repository at this point in the history
* move images to parent directory.
* Set tikz output to tmp directory.
  • Loading branch information
shuLhan committed Jun 19, 2016
1 parent 4751c4b commit 7e9604a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
\usetikzlibrary{backgrounds, shapes.geometric, positioning, patterns, external}
\tikzexternalize

%% Make tikz generate PDF file to .tmp directory
\makeatletter
\newcommand{\mytikzinput}[1]{%
\tikzsetnextfilename{tmp/#1}%
}
\makeatother

\usepackage[
backend=bibtex
, style=ieee
Expand Down Expand Up @@ -173,7 +180,7 @@ \subsection{SMOTE}
\begin{column}{0.5\textwidth}
\begin{figure}
\centering
\tikzsetnextfilename{smote_example}
\mytikzinput{smote_example}
\begin{tikzpicture}
\draw (0,0) -- (0,4);
\draw (0,0) -- (4,0);
Expand Down Expand Up @@ -202,7 +209,7 @@ \subsection{SMOTE}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{figure}
\tikzsetnextfilename{smote_problem_overlapping}
\mytikzinput{smote_problem_overlapping}
\begin{tikzpicture}
\draw (0,0) -- (0,4);
\draw (0,0) -- (4,0);
Expand All @@ -227,7 +234,7 @@ \subsection{SMOTE}
\begin{column}{0.5\textwidth}
\begin{figure}
\centering
\tikzsetnextfilename{smote_problem_outlier}
\mytikzinput{smote_problem_outlier}
\resizebox {\columnwidth} {!} {
\begin{tikzpicture}
\draw[help lines] (0,0) grid (10, 10);
Expand Down Expand Up @@ -285,7 +292,7 @@ \subsection{LNSMOTE}
\begin{column}{0.5\textwidth}
\begin{figure}
\centering
\tikzsetnextfilename{lnsmote_no_synthetic}
\mytikzinput{lnsmote_no_synthetic}
\resizebox {\columnwidth} {!} {
\begin{tikzpicture}
\draw[help lines] (0,0) grid (10, 10);
Expand Down Expand Up @@ -341,7 +348,7 @@ \subsection{LNSMOTE}
\begin{column}{0.5\textwidth}
\begin{figure}
\centering
\tikzsetnextfilename{lnsmote_slp1_sln0}
\mytikzinput{lnsmote_slp1_sln0}
\resizebox {\columnwidth} {!} {
\begin{tikzpicture}
\draw[help lines] (0,0) grid (10, 10);
Expand Down Expand Up @@ -396,7 +403,7 @@ \subsection{LNSMOTE}
\begin{column}{0.5\textwidth}
\begin{figure}
\centering
\tikzsetnextfilename{lnsmote_slratio_1}
\mytikzinput{lnsmote_slratio_1}
\resizebox {\columnwidth} {!} {
\begin{tikzpicture}
\draw[help lines] (0,0) grid (10, 10);
Expand Down Expand Up @@ -452,7 +459,7 @@ \subsection{LNSMOTE}
\begin{column}{0.5\textwidth}
\begin{figure}
\centering
\tikzsetnextfilename{lnsmote_slratio_gt_1}
\mytikzinput{lnsmote_slratio_gt_1}
\resizebox {\columnwidth} {!} {
\begin{tikzpicture}
\draw[help lines] (0,0) grid (10, 10);
Expand Down Expand Up @@ -507,7 +514,7 @@ \subsection{LNSMOTE}
\begin{column}{0.5\textwidth}
\begin{figure}
\centering
\tikzsetnextfilename{lnsmote_slratio_lt_1}
\mytikzinput{lnsmote_slratio_lt_1}
\resizebox {\columnwidth} {!} {
\begin{tikzpicture}
\draw[help lines] (0,0) grid (10, 10);
Expand Down Expand Up @@ -571,7 +578,7 @@ \subsection{Random Forest}
{Example of Bootstrap Strategy for One Tree}
\begin{figure}
\centering
\tikzsetnextfilename{rf_bootstrap_strategy}
\mytikzinput{rf_bootstrap_strategy}
\resizebox {5cm} {!} {
\begin{tikzpicture}[
nodes = {
Expand Down Expand Up @@ -687,7 +694,7 @@ \subsection{Cascaded Random Forest}

\begin{figure}
\centering
\tikzsetnextfilename{crf_bootstrap_strategy}
\mytikzinput{crf_bootstrap_strategy}
\resizebox {!} {2.5cm} {
\begin{tikzpicture}[
nodes = {
Expand Down
2 changes: 1 addition & 1 deletion presentation/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

TEX=Muhamad_Sulhan_-_Detecting_Vandalism_on_Wikipedia_with_CRF_presentation.tex
TEX=23513014_Muhamad_Sulhan_-_Detecting_Vandalism.tex
BIB=bibliography.bib

pdflatex.sh $TEX $BIB
2 changes: 1 addition & 1 deletion presentation/latexmk.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

latexmk -pvc -view=pdf \
Muhamad_Sulhan_-_Detecting_Vandalism_on_Wikipedia_with_CRF_presentation.tex
23513014_Muhamad_Sulhan_-_Detecting_Vandalism.tex

0 comments on commit 7e9604a

Please sign in to comment.