LaTeX 格式的世界杯挂图

LaTeX 格式的世界杯挂图

召集所有 LaTeX 和足球迷!FIFA 世界杯即将到来,我一直在尝试用 LaTeX 制作比赛的挂图。

这是我迄今为止成功创造的:

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

我的想法是将四组分布在页面顶部,将四组分布在页面底部。页面中央是淘汰赛阶段。我该如何实现这种页面布局?(我还需要一种方法来包含决赛、季军赛和其他一半缺失的淘汰赛阶段)

此外,有没有办法让这个图表自动计算小组表统计数据和排名?所以基本上分数就是你唯一需要输入的数据。这真的很酷,但可能非常复杂!

平均能量损失

\documentclass{article}
\usepackage[landscape,a4paper,margin=1cm]{geometry}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{ulem}
\usepackage[table]{xcolor}
\usepackage{array}
\usepackage{tikz}
\usetikzlibrary{trees}

\newcommand\Pair[4]{%
  \arrayrulecolor{black}%
  \renewcommand\extrarowheight{1.5pt}%
  \begin{tabular}{p{2cm}|>{\centering\arraybackslash}p{10pt}}  
  \textcolor{black}{#1} & \textcolor{black}{#2} \\
  \hline 
  \textcolor{black}{#3} & \textcolor{black}{#4} \\ 
  \end{tabular}%
}

\renewcommand{\arraystretch}{1.5}
\pagestyle{empty}

\begin{document}

\resizebox{5cm}{!}{%
\begin{tabular}{llllllllll}
\multicolumn{10}{l}{Group A}                           \\ \hline
No. & Team         & Pl & W & D & L & F & A & GD & Pts \\ \hline
1   & Russia       &  0  & 0  & 0  & 0  & 0  & 0  & 0   & 0    \\ 
2   & Saudi Arabia &  0  & 0  & 0  & 0  & 0  & 0  & 0   & 0    \\
3   & Egypt        &  0  & 0  & 0  & 0  & 0  & 0  & 0   & 0    \\ 
4   & Uruguay      &  0  & 0  & 0  & 0  & 0  & 0  & 0   & 0    \\ \hline
\end{tabular}
}

\vspace{0.2cm}

\resizebox{3.5cm}{!}{%
\begin{tabular}{rlcll}
Russia       & 0 & - & 0 & Saudi Arabia \\ 
Egypt        & 0 & - & 0 & Uruguay      \\ 
Russia       & 0 & - & 0  & Egypt        \\ 
Uruguay      & 0  & - & 0  & Saudi Arabia \\ 
Saudi Arabia & 0  & - & 0  & Egypt        \\ 
Uruguay      & 0  & - & 0  & Russia       
\end{tabular}
}

\vspace{1cm}

\resizebox{15cm}{!}{%
\begin{tikzpicture}[
  level distance=5cm,every node/.style={minimum width=2cm,inner sep=0pt},
  edge from parent/.style={<-},
  level 1/.style={sibling distance=4cm},
  level 2/.style={sibling distance=2cm},
]
\node (1) {\Pair{Winner QF 1}{0}{Winner QF 2}{0}}
[edge from parent fork left,grow=left]
child {node (2) {\Pair{Winner 1}{0}{Winner 2}{0}}
child {node (3) {\Pair{1st Group A}{0}{2nd Group B}{0}}}
child {node {\Pair{1st Group C}{0}{2nd Group D}{0}}}
}
child {node {\Pair{Winner 3}{0}{Winner 4}{0}}
child {node {\Pair{1st Group E}{0}{2nd Group F}{0}}}
child {node {\Pair{1st Group G}{0}{2nd Group H}{0}}}
};
\node at ([yshift=50pt]3) (QF) {\uline{Round of 16}};
\node at (2|-QF) {\uline{Quarter-finals}};
\node at (1|-QF) (QF) {\uline{Semi-finals}};
\node at ([xshift=5cm,yshift=-1.5cm]QF) (F) {\uline{Final}}; 
\node at ([yshift=-4cm]F) {\uline{Third place play-off}}; 
\end{tikzpicture}
}

\end{document}

部分代码改编自为竞技淘汰赛项目创建表格

相关内容