From 7e9604a8ae16da8b85ee3efb43502aafd501f2fe Mon Sep 17 00:00:00 2001 From: Mhd Sulhan Date: Sun, 19 Jun 2016 15:54:18 +0700 Subject: [PATCH] presentation: rename main tex file. * move images to parent directory. * Set tikz output to tmp directory. --- .../images => images}/diff_example.png | Bin .../images => images}/edit_example2.png | Bin .../images => images}/edit_harassment.png | Bin .../images => images}/edit_meaningless.png | Bin ..._Muhamad_Sulhan_-_Detecting_Vandalism.tex} | 27 +++++++++++------- presentation/build.sh | 2 +- presentation/latexmk.sh | 2 +- 7 files changed, 19 insertions(+), 12 deletions(-) rename {presentation/images => images}/diff_example.png (100%) rename {presentation/images => images}/edit_example2.png (100%) rename {presentation/images => images}/edit_harassment.png (100%) rename {presentation/images => images}/edit_meaningless.png (100%) rename presentation/{Muhamad_Sulhan_-_Detecting_Vandalism_on_Wikipedia_with_CRF_presentation.tex => 23513014_Muhamad_Sulhan_-_Detecting_Vandalism.tex} (98%) diff --git a/presentation/images/diff_example.png b/images/diff_example.png similarity index 100% rename from presentation/images/diff_example.png rename to images/diff_example.png diff --git a/presentation/images/edit_example2.png b/images/edit_example2.png similarity index 100% rename from presentation/images/edit_example2.png rename to images/edit_example2.png diff --git a/presentation/images/edit_harassment.png b/images/edit_harassment.png similarity index 100% rename from presentation/images/edit_harassment.png rename to images/edit_harassment.png diff --git a/presentation/images/edit_meaningless.png b/images/edit_meaningless.png similarity index 100% rename from presentation/images/edit_meaningless.png rename to images/edit_meaningless.png diff --git a/presentation/Muhamad_Sulhan_-_Detecting_Vandalism_on_Wikipedia_with_CRF_presentation.tex b/presentation/23513014_Muhamad_Sulhan_-_Detecting_Vandalism.tex similarity index 98% rename from presentation/Muhamad_Sulhan_-_Detecting_Vandalism_on_Wikipedia_with_CRF_presentation.tex rename to presentation/23513014_Muhamad_Sulhan_-_Detecting_Vandalism.tex index 113e162..6a4311d 100644 --- a/presentation/Muhamad_Sulhan_-_Detecting_Vandalism_on_Wikipedia_with_CRF_presentation.tex +++ b/presentation/23513014_Muhamad_Sulhan_-_Detecting_Vandalism.tex @@ -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 @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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 = { @@ -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 = { diff --git a/presentation/build.sh b/presentation/build.sh index 3555318..e101732 100755 --- a/presentation/build.sh +++ b/presentation/build.sh @@ -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 diff --git a/presentation/latexmk.sh b/presentation/latexmk.sh index f726d8c..2d2763d 100755 --- a/presentation/latexmk.sh +++ b/presentation/latexmk.sh @@ -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