大家,请帮我解决这个问题,我的项目取决于这个编码的结果。我正在尝试使用创建海报tikzposter
,并且我有不同的列和子列宽度,我需要同时将它们放在一个输出中,所以我试图做的是,把二 \begin{column}
并\end{column}
得到期望的结果。显然它不起作用,第二 \begin{column}
并且\end{column}
首先发生重叠。
你们能帮我理解一下,我应该如何布局以下列吗:
这是我的 MWE:
\documentclass[25pt, ,Landscape, margin=0mm, innermargin=0mm, blockverticalspace=5mm, colspace=0mm, subcolspace=-20mm]{tikzposter}
\geometry{paperwidth=60in,paperheight=20in}
\makeatletter
\setlength{\TP@visibletextwidth}{\textwidth-2\TP@innermargin}
\setlength{\TP@visibletextheight}{\textheight-2\TP@innermargin}
\makeatother
\tikzposterlatexaffectionproofoff
\usetitlestyle{Empty} %<-- Deletes the title on the Top of the poster.
\title{}
\usepackage{multicol}
\usepackage{tikz}
\usepackage{wrapfig}
\setlength{\tabcolsep}{2em}
\begin{document}
\begin{columns}
\column{0.49}
\block{}
{
\textbf{First Column}
}
\begin{subcolumns}
\subcolumn{0.5}
\block{}
{
\textbf{First SubColumn}
}
\block{}
{
\textbf{First.1 SubColumn}
}
\subcolumn{0.5}
\block{}
{
\textbf{Second SubColumn}
}
\block{}
{
\textbf{Second.1 SubColumn}
}
\end{subcolumns}
\column{0.49}
\block{}
{
\textbf{Second Column}
}
\begin{subcolumns}
\subcolumn{0.5}
\block{}
{
\textbf{third SubColumn}
}
\block{}
{
\textbf{third.1 SubColumn}
}
\subcolumn{0.5}
\block{}
{
\textbf{Forth SubColumn}
}
\block{}
{
\textbf{Forth.1 SubColumn}
}
\end{subcolumns}
\end{columns}
%----------------------------------------------------------------For Next set of Columns
\begin{columns}
\column{0.45}
\block{}
{
\textbf{First Column}
}
\begin{subcolumns}
\subcolumn{0.5}
\block{}
{
\textbf{Alpha SubColumn}
}
\block{}
{
\textbf{Alpha.1 SubColumn}
}
\subcolumn{0.5}
\block{}
{
\textbf{Beta SubColumn}
}
\block{}
{
\textbf{Beta.1 SubColumn}
}
\end{subcolumns}
\column{0.45}
\block{}
{
\textbf{Beta Column}
}
\begin{subcolumns}
\subcolumn{0.33}
\block{}
{
\textbf{Charlie SubColumn}
}
\block{}
{
\textbf{Charlie.1 SubColumn}
}
\subcolumn{0.33}
\block{}
{
\textbf{Delta SubColumn}
}
\block{}
{
\textbf{Delta.1 SubColumn}
}
\subcolumn{0.33}
\block{}
{
\textbf{Gamma SubColumn}
}
\block{}
{
\textbf{Gamma.1 SubColumn}
}
\end{subcolumns}
\end{columns}
\end{document}
答案1
据我了解,tikzposter 不会在同一页面上使用两个列环境。所以我注释掉了\end{columns}\begin{columns}
海报中间的。当然,你不能在一页上使用长度 0.49 超过两次。代码如下所示:
\documentclass[25pt, margin=0mm, innermargin=0mm, blockverticalspace=5mm, colspace=0mm, subcolspace=-20mm]{tikzposter}
\geometry{paperwidth=60in,paperheight=20in}
\makeatletter
\setlength{\TP@visibletextwidth}{\textwidth-2\TP@innermargin}
\setlength{\TP@visibletextheight}{\textheight-2\TP@innermargin}
\makeatother
%\tikzposterlatexaffectionproofoff
\usetitlestyle{Empty} %<-- Deletes the title on the Top of the poster.
\title{}
%\usepackage{multicol}
%\usepackage{tikz}
%\usepackage{wrapfig}
%\setlength{\tabcolsep}{2em}
\begin{document}
\begin{columns}
\column{0.24}%
\block{}
{
\textbf{First Column}
}
\begin{subcolumns}
\subcolumn{0.5}
\block{}
{
\textbf{First SubColumn}
}
\block{}
{
\textbf{First.1 SubColumn}
}
\subcolumn{0.5}
\block{}
{
\textbf{Second SubColumn}
}
\block{}
{
\textbf{Second.1 SubColumn}
}
\end{subcolumns}%
\column{0.24}
\block{}
{
\textbf{Second Column}
}
\begin{subcolumns}
\subcolumn{0.5}
\block{}
{
\textbf{third SubColumn}
}
\block{}
{
\textbf{third.1 SubColumn}
}
\subcolumn{0.5}
\block{}
{
\textbf{Forth SubColumn}
}
\block{}
{
\textbf{Forth.1 SubColumn}
}
\end{subcolumns}
% \end{columns}%
% %----------------------------------------------------------------For Next set of Columns
% \begin{columns}
\column{0.24}%
\block{}
{
\textbf{First Column}
}
\begin{subcolumns}
\subcolumn{0.5}%
\block{}
{
\textbf{Alpha SubColumn}
}
\block{}
{
\textbf{Alpha.1 SubColumn}
}
\subcolumn{0.5}
\block{}
{
\textbf{Beta SubColumn}
}
\block{}
{
\textbf{Beta.1 SubColumn}
}
\end{subcolumns}
\column{0.24}
\block{}
{
\textbf{Beta Column}
}
\begin{subcolumns}
\subcolumn{0.33}
\block{}
{
\textbf{Charlie SubColumn}
}
\block{}
{
\textbf{Charlie.1 SubColumn}
}
\subcolumn{0.33}
\block{}
{
\textbf{Delta SubColumn}
}
\block{}
{
\textbf{Delta.1 SubColumn}
}
\subcolumn{0.33}
\block{}
{
\textbf{Gamma SubColumn}
}
\block{}
{
\textbf{Gamma.1 SubColumn}
}
\end{subcolumns}
\end{columns}
\end{document}