/articles/toma

To get this branch, use:
bzr branch http://darksoft.org/webbzr/articles/toma
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
\usepackage[utf8]{inputenc}
\pagestyle{empty}
\usepackage{graphicx}
\usepackage{url}
\usepackage{lineno}
\usepackage{ifthen}
\usepackage{textcomp}
\usepackage{multirow}
\usepackage{tabularx}

%\usepackage{algorithm2e,algorithmicx}
\usepackage[nofillcomment]{algorithm2e}
\usepackage{xcolor}
%\usepackage{fancyvrb}
%\usepackage{ragged2e}
%\usepackage{setspace}
%\usepackage{pbox}
%\usepackage{mathtools}
\usepackage{listings}
\usepackage{etoolbox}

\usepackage[flushleft]{threeparttable}
\usepackage{amsmath}
\usepackage{colortbl}

\usepackage{cellspace} %
\setlength\cellspacetoplimit{1pt}
\setlength\cellspacebottomlimit{1pt}

%\usepackage{caption}

%Configure captions
%\captionsetup{font=footnotesize}

\usepackage{tikz}

%Configure encircled letters using tikz
\makeatletter
\newcommand*{\encircled}[1]{\relax\ifmmode\mathpalette\@encircled@math{#1}\else\@encircled{#1}\fi}
\newcommand*{\@encircled@math}[2]{\@encircled{$\m@th#1#2$}}
\newcommand*{\@encircled}[1]{%
  \tikz[baseline,anchor=base]{\node[draw,circle,outer sep=0pt,inner sep=.2ex] {#1};}}
\makeatother

%Configure listings
\lstset{language=C, basicstyle=\ttfamily\scriptsize, mathescape}

\newcommand{\algorithmname}{Algorithm}
\providecommand{\sectionname}{section}
\newcommand{\sectionsname}{sections}
\newcommand{\equationname}{equation}

%\newcommand{\tablecaptions}[2]{\caption{#1}{\caption*{\small #2}}}
%\newcommand{\tabledesc}[1]{\caption*{\small #1}}
\newcommand{\tabledesc}[1]{\small #1}
\newcommand{\mhd}[2]{\multicolumn{1}{#1}{\textbf{#2}}}
%\newcommand{\colid}[1]{\textbf{#1})}
\newcommand{\colid}[1]{\textsuperscript{\textbf{#1}}}
\newcommand{\tblcol}[1]{\textbf{#1}}

\newcommand{\colname}[1]{(\emph{#1})}
\newcommand{\coldesc}[3]{\colid{#1} #3 \colname{#2}}

\input{algconf}
\input{alg}

%\newcommand{\xvar}[1]{\textsf{#1}}             % variable style command
%\newcommand{\xvbox}[2]{\makebox[#1][l]{#2}}    % horizontal alignment command

\newcommand{\rowhead}[1]{\multicolumn{1}{>{\columncolor[gray]{0.8}} l |}{\textbf{#1}} & \multicolumn{6}{>{\columncolor[gray]{0.8}}c|}{} & \multicolumn{3}{>{\columncolor[gray]{0.8}}c|}{} \\}