Skip to content

Commit 6017496

Browse files
Refactor: Replace tabular with minipage
1 parent d21b2ea commit 6017496

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

figures/comparison.tex

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
\begin{figure}[ht]
2-
\begin{tabularx}{.8\linewidth}{Y Y}
2+
\begin{minipage}{.5\linewidth}
3+
\centering
34
\begin{tikzpicture}
45
\foreach \angle [count = \xi] in {90, 60, ..., -180}
56
{
@@ -20,8 +21,11 @@
2021
\draw[-latex,line width = .05em] (node\x) -- (node\y);
2122
}
2223
\end{tikzpicture}
23-
&
24-
\begin{tikzpicture}[scale=1.1]
24+
\end{minipage}
25+
%
26+
\begin{minipage}{.49\linewidth}
27+
\centering
28+
\begin{tikzpicture}[scale=1.2]
2529
\node[circle, fill, minimum size=.4em, inner sep=0pt, outer sep=0pt, label=above:1] (node1) {};
2630
\node[circle, fill, minimum size=.4em, inner sep=0pt, outer sep=0pt, label=above:2] at ([xshift = 15em]node1)(node2) {};
2731
\draw[-latex,line width = .1em] (node1) -- (node2);
@@ -41,15 +45,17 @@
4145
\draw[-latex,line width = .1em] (node3\xi) -- (node3\i);
4246
}
4347
\end{tikzpicture}
44-
\\
48+
\end{minipage}
49+
\begin{minipage}{.5\linewidth}
50+
\centering
4551
(a) \textsf{Aequitas}
46-
&
52+
\end{minipage}
53+
%
54+
\begin{minipage}{.49\linewidth}
55+
\centering
4756
(b) \textsf{pompe}
48-
\\
49-
\end{tabularx}
50-
\addtocounter{table}{-1}
51-
\medskip
52-
57+
\end{minipage}
58+
5359
\caption{Illustration of dependency graphs.}
5460
\label{fig:bad-bandwidth-illustration}
5561
\end{figure}

figures/dependency-graphs.tex

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
\begin{figure}[ht]
2-
\begin{tabularx}{\linewidth}{Y Y}
2+
\begin{minipage}{.5\linewidth}
3+
\centering
34
\begin{tikzpicture}
45
\foreach \angle [count = \xi] in {90, 45, ..., -235}
56
{
@@ -17,7 +18,10 @@
1718
\draw[-latex, line width = .1em] (node\x) -- (node\y);
1819
}
1920
\end{tikzpicture}
20-
&
21+
\end{minipage}
22+
%
23+
\begin{minipage}{0.49\linewidth}
24+
\centering
2125
\begin{tikzpicture}
2226
\node[circle, fill = white, draw = black, inner sep = .2em, outer sep=0pt] (node2) {2};
2327
\foreach \xi [count = \xii] in {3, 1, 5, 6, 8, 4, 7}
@@ -49,14 +53,17 @@
4953
\draw[bend right = 25, ->, line width = .1em, gray] (node28) to node [auto] {} (node21);
5054
\draw[bend left = 30, ->, line width = .1em, gray] (node28) to node [auto] {} (node24);
5155
\end{tikzpicture}
52-
\\
53-
(a) dependency graph $G_{\profileSet, \varphi}$ \linebreak
54-
&
56+
\end{minipage}
57+
58+
\begin{minipage}[t]{.5\linewidth}
59+
\centering
60+
(a) Dependency graph $G_{\profileSet, \varphi}$
61+
\end{minipage}
62+
%
63+
\begin{minipage}[t]{.49\linewidth}
64+
\centering
5565
(b) $(\varphi, \DBW)$-fair-order (above) and lexicographic order (below)
56-
\\
57-
\end{tabularx}
58-
\addtocounter{table}{-1}
59-
\medskip
66+
\end{minipage}
6067

6168
\caption{Illustration of a dependency graph, a $(\varphi, \DBW)$-fair-order and a lexicographic order on \profileSet. Only back edges are illustrated in (b).}
6269
\label{fig:optimal-bandwidth-order}

0 commit comments

Comments
 (0)