如何在 beamer(poster) 中用线分隔列?

如何在 beamer(poster) 中用线分隔列?

\setlength{\columnseprule}{0.4pt}使用 multicol 包不起作用。beamer 指南没有讨论其列环境的这种情况...

说清楚这就是我想要的

###### | ###### | ######
###### | ###### | ######
###### | ###### | ######
###### | ###### | ######
###### | ###### | ######
###### | ###### | ######

答案1

您能否提供一个最小的工作示例?原因是它对我有用:

\documentclass{beamer}
\usepackage{multicol}
\usetheme{Darmstadt}

\newcommand{\sometext}{{\footnotesize Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore }}

\setlength{\columnseprule}{0.4pt}

\begin{document}
    \begin{frame}
    \frametitle{3 columns}
        \begin{multicols}{3}
         \sometext\sometext\sometext\sometext\sometext\sometext\sometext
        \end{multicols}
    \end{frame}     
\end{document}

创建这个:

在此处输入图片描述

编辑:哦,我完全忽略了beamerposter。这就是为什么 MWE 会很好,不会忘记按 Ctrl + C 并插入我的编辑器 ;)

但无论如何,它对我来说仍然有效:

\documentclass{beamer}
\usepackage{multicol}
\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter}
\usepackage{tikz}
\usetheme{Darmstadt}

\newcommand{\sometext}
{Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
}

\newcommand{\moretext}[1]
{   \foreach \x in {1,2,...,#1}
    {   \sometext
    }
}

\setlength{\columnseprule}{0.4pt}

\begin{document}
    \begin{frame}
    \frametitle{3 columns}
        \begin{multicols}{3}
            \moretext{7}
        \end{multicols}
    \end{frame}     
\end{document}

产生这个:

在此处输入图片描述

答案2

以下是人工操作的示例。只需创建第三列并相应调整列宽即可。中间列包含垂直标尺。

\documentclass{beamer}

\usepackage[utf8]{inputenc}

\begin{document}

\begin{frame}

\begin{columns}[c]
\begin{column}{.475\textwidth}
\begin{block}{Column 1}
Column 1
\end{block}
\end{column}

% artificial column for vertical ruler
\begin{column}{.05\textwidth}
\begin{center}
\rule{1pt}{\textheight}
\end{center}
\end{column}

\begin{column}{.475\textwidth}
\begin{block}{Column 2}
Column 2
\end{block}
\end{column}

\end{columns}
\end{frame}

\end{document} %end 

相关内容