如何更改边距并在海报中插入大学横幅?

如何更改边距并在海报中插入大学横幅?

我正在尝试制作一张海报。这是我必须使用的模板:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Jacobs Landscape Poster
% LaTeX Template
% Version 1.0 (29/03/13)
%
% Created by:
% Computational Physics and Biophysics Group, Jacobs University
% https://teamwork.jacobs-university.de:8443/confluence/display/CoPandBiG/LaTeX+Poster
% 
% Further modified by:
% Nathaniel Johnston ([email protected])
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[final]{beamer}

\usepackage[scale=0.78, size=a1]{beamerposter} % Use the beamerposter package for laying out the poster

\usetheme{confposter} % Use the confposter theme supplied with this template

\setbeamercolor{block title}{fg=ngreen,bg=white} % Colors of the block titles
\setbeamercolor{block body}{fg=black,bg=white} % Colors of the body of blocks
\setbeamercolor{block alerted title}{fg=white,bg=dblue!70} % Colors of the highlighted block titles
\setbeamercolor{block alerted body}{fg=black,bg=dblue!10} % Colors of the body of highlighted blocks
% Many more colors are available for use in beamerthemeconfposter.sty

%-----------------------------------------------------------
% Define the column widths and overall poster size
% To set effective sepwid, onecolwid and twocolwid values, first choose how many columns you want and how much separation you want between columns
% In this template, the separation width chosen is 0.024 of the paper width and a 4-column layout
% onecolwid should therefore be (1-(# of columns+1)*sepwid)/# of columns e.g. (1-(4+1)*0.024)/4 = 0.22
% Set twocolwid to be (2*onecolwid)+sepwid = 0.464
% Set threecolwid to be (3*onecolwid)+2*sepwid = 0.708

\newlength{\sepwid}
\newlength{\onecolwid}
\newlength{\twocolwid}
\newlength{\threecolwid}
\setlength{\paperwidth}{33.1in} % A0 width: 46.8in
\setlength{\paperheight}{23.4in} % A0 height: 33.1in
\setlength{\sepwid}{0.024\paperwidth} % Separation width (white space) between columns
\setlength{\onecolwid}{0.22\paperwidth} % Width of one column
\setlength{\twocolwid}{0.464\paperwidth} % Width of two columns
\setlength{\threecolwid}{0.708\paperwidth} % Width of three columns
\setlength{\topmargin}{-0.5in} % Reduce the top margin size
%-----------------------------------------------------------

\usepackage{graphicx}  % Required for including images
\usepackage{booktabs} % Top and bottom rules for tables
\usepackage{bbm}
\usepackage[T1]{fontenc}
\usepackage{subfig}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{caption}

%----------------------------------------------------------------------------------------
%   TITLE SECTION 
%----------------------------------------------------------------------------------------

\title{Title} % Poster title

\author{Blah Blah} % Author(s)

\institute{Department, University} % Institution(s)


%----------------------------------------------------------------------------------------

\begin{document}

\addtobeamertemplate{block end}{}{\vspace*{2ex}} % White space under blocks
\addtobeamertemplate{block alerted end}{}{\vspace*{2ex}} % White space under highlighted (alert) blocks

\setlength{\belowcaptionskip}{2ex} % White space under figures
\setlength\belowdisplayshortskip{2ex} % White space under equations

\begin{frame}[t] % The whole poster is enclosed in one beamer frame

\begin{columns}[t] % The whole poster consists of three major columns, the second of which is split into two columns twice - the [t] option aligns each column's content to the top

\begin{column}{\sepwid}\end{column} % Empty spacer column

%-------------------------------------------------------------------------------

\begin{column}{\onecolwid} % The first column

%----------------------------------------------------------------------------------------
%   OBJECTIVES
%----------------------------------------------------------------------------------------

\begin{alertblock}{Objectives}

\begin{itemize}
\item \textbf{Research question}: 
\vspace{2cm}
\item \textbf{Contribution}: 
\begin{itemize}
\item 
\vspace{0.5cm}
\item 
\end{itemize}
\end{itemize}

\end{alertblock}

%----------------------------------------------------------------------------------------
%   INTRODUCTION
%----------------------------------------------------------------------------------------

\begin{block}{Literature review}
\begin{itemize}
\item 
\item 
\end{itemize}

\end{block}


%----------------------------------------------------------------------------------------
%   
%----------------------------------------------------------------------------------------

\begin{block}{Model}

\end{block}


\end{column} % End of the first column

%---------------------------------------------------------------------------------------------

\begin{column}{\sepwid}\end{column} % Empty spacer column

%----------------------------------------------------------------------------------------------

\begin{column}{\twocolwid} % Begin a column which is two columns wide (column 2)

\begin{columns}[t,totalwidth=\twocolwid] % Split up the two columns wide column

\begin{column}{\onecolwid}\vspace{-.6in} % The first column within column 2 (column 2.1)

%----------------------------------------------------------------------------------------
%
%----------------------------------------------------------------------------------------

\begin{block}{Existence solution}


\end{block}

%----------------------------------------------------------------------------------------

\end{column} % End of column 2.1

\begin{column}{\onecolwid}\vspace{-.6in} % The second column within column 2 (column 2.2)

%----------------------------------------------------------------------------------------
%
%----------------------------------------------------------------------------------------

\begin{block}{Blah Blah}

\end{block}

%----------------------------------------------------------------------------------------
%
%----------------------------------------------------------------------------------------

\begin{block}{Blah blah 2}

\end{block}

\end{column} % End of column 2.2

%----------------------------------------------------------------------------------------------------

\end{columns} % End of the split of column 2 - any content after this will now take up 2 columns width

\end{column} % End of the second column

%------------------------------------------------------------------------------------------------

\begin{column}{\sepwid}\end{column} % Empty spacer column

%---------------------------------------------------------------------------------------------------

\begin{column}{\onecolwid} % The third column

%----------------------------------------------------------------------------------------
%   CONCLUSION
%----------------------------------------------------------------------------------------

\begin{alertblock}{Conclusion}


\end{alertblock}

%----------------------------------------------------------------------------------------
%   REFERENCES
%----------------------------------------------------------------------------------------

\begin{block}{References}

\end{block}


%----------------------------------------------------------------------------------------
%   ACKNOWLEDGEMENTS
%----------------------------------------------------------------------------------------


\begin{block}{Acknowledgements}

\small{\rmfamily{I am very grateful to ...}} \\

\end{block}

%----------------------------------------------------------------------------------------
%   CONTACT INFORMATION
%----------------------------------------------------------------------------------------

\setbeamercolor{block alerted title}{fg=black,bg=norange} % Change the alert block title colors
\setbeamercolor{block alerted body}{fg=black,bg=white} % Change the alert block body colors

\begin{alertblock}{Contact information}



\end{alertblock}


%----------------------------------------------------------------------------------------

\end{column} % End of the third column

\end{columns} % End of all the columns in the poster

\end{frame} % End of the enclosing frame

\end{document}

要运行代码,你需要在此处下载 zip 文件夹 http://www.latextemplates.com/template/jacobs-landscape-poster 您可以在哪里找到 beamerthemeconfposter.sty 和 beamerposter.sty

我需要你的帮助来解决以下两个问题:

  1. 我想使左右边距相等(仍然保持 A1 尺寸);
  2. 我需要用另一个海报模板中使用的标题部分替换标题部分(UCL 横幅可以在以下位置找到http://www.ucl.ac.uk/~ucbpeal/Black_Landscape.pdf):

    \documentclass[a1,final]{a0poster}
    %%%Load packages
    \usepackage{multicol}           %3-column layout
    \usepackage[left=2cm,right=2cm,bottom=0cm,top=0cm]{geometry}            %Reset margins
    \usepackage{helvet}             %Load Helvetica font & CM math
    \usepackage{color}              %Needed for colour boxes & coloured text
    \usepackage{graphicx}
    %%%Define colours and lengths
    \definecolor{headingcol}{rgb}{0.5,0.7,1}            %Colour of main title
    \definecolor{boxcol}{rgb}{0.7,0.2,0.2}      %Edge-colour of box and top banner
    \fboxsep=1cm                            %Padding between box and text
    \setlength{\columnsep}{2cm}             %Set spacing between columns
    \renewcommand{\familydefault}{\sfdefault}   %Set main text to sans-serif
    
    %%%Format title
    \makeatletter                           %Needed to include code in main file
    \renewcommand\@maketitle{%
    \null                                   %Sets position marker
    {
    \color{headingcol}\sffamily\Huge        %Set title font and colour
    \@title \par}%
    \vskip 0.6em%
    {
    \color{white}\sffamily\Large                %Set author font and colour
    \lineskip .5em%
    \begin{tabular}[t]{l}%
    \@author
    \end{tabular}\par}%
    \vskip 1cm
    \par
    }
    \makeatother
    
    \title{Making A1 scientific posters easily with \LaTeX}
    
    \author{Author A \& Author B\\
    University College London}
    
    \begin{document}
    \hspace{-3cm}                               %Align with edge of page, not margin
    \vspace{2cm}
    \includegraphics[width=844mm]{Black_Landscape.pdf}
    %\colorbox{boxcol}{                         %Coloured banner across top
    \begin{minipage}{842mm}                 %Minipage for title contents
    \vspace{-20cm}
    \maketitle
    \end{minipage}
    %}
    \vspace{-3cm}
    
    \begin{multicols}{3}                            %Use 3-column layout
    \raggedcolumns                          %Don't stretch contents vertically
    
    %%%Column1
    \section*{Introduction}
    
    \section*{Method}
    
    \columnbreak
    
    %%%Column 2
    \section*{Maths}
    
    \section*{Lists and tables}
    Itemize:
    \begin{itemize}
    \item Item 1
    \item Item 2
    \item Item 3
    \end{itemize}
    \null
    Five-day forecast:
    \begin{center}
    \begin{tabular}{lccccc}
    Day & Summary & Max day & Min night & Wind (mph) & Visibility\\
    \hline
    Saturday & Sun/cloud & 16 & 10 & 6 & poor\\
    Sunday & Rain & 14 & 7 & 3 & poor\\
    Monday & Showers & 13 & 6 & 21 & poor\\
    Tuesday & Sun & 15 & 9 & 7 & good\\
    Wednesday & Showers & 17 & 12 & 6 &moderate
    \end{tabular}
    \end{center}
    
    
    \columnbreak
    
    %%%Column 3
    \section*{Discussion}
    
    \nocite*
    
    %\bibliographystyle{plain}
    %\bibliography{halobib}
    
    \end{multicols}
    \end{document}
    

答案1

对于问题的前半部分:

我认为您的左边距和右边距实际上已经是相同的大小,问题是,所有列和空格的总和大于可用空间,因此左侧侵入了边距。

您可以尝试通过编辑等方式添加\begin{columns}[t, totalwidth=\textwidth]和修改列的大小。\setlength{\onecolwid}{0.20\paperwidth}

\documentclass[final]{beamer}

\usepackage[scale=0.78, size=a1]{beamerposter}
\usetheme{confposter} 
\setbeamercolor{block alerted title}{fg=white,bg=dblue!70} 
\setbeamercolor{block alerted body}{fg=black,bg=dblue!10}

%-----------------------------------------------------------

\newlength{\sepwid}
\newlength{\onecolwid}
\setlength{\paperwidth}{33.1in} % A0 width: 46.8in
\setlength{\paperheight}{23.4in} % A0 height: 33.1in
\setlength{\sepwid}{0.02\paperwidth} % Separation width (white space) between columns
\setlength{\onecolwid}{0.20\paperwidth} % Width of one column

%-----------------------------------------------------------

\title{Title} % Poster title
\author{Blah Blah} % Author(s)
\institute{Department, University} % Institution(s)

\begin{document}

    \begin{frame}[t]

        \begin{columns}[t, totalwidth=\textwidth]

            \begin{column}{\sepwid}
            \end{column} 

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column} 

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column}    

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column}        

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column} 

        \end{columns}

    \end{frame} 

\end{document}

enter image description here


问题的第二部分:

这只是一个快速而粗糙的解决方案,但如果你稍微调整一下字体大小和间距,你应该能够得到想要的外观

首先,您必须注释掉标题beamerthemeconfposter.sty,例如第 192 行至第 211 行。

\documentclass[final]{beamer}

\usepackage[scale=0.78, size=a1]{beamerposter}
\usetheme{confposter} 
\setbeamercolor{block alerted title}{fg=white,bg=dblue!70} 
\setbeamercolor{block alerted body}{fg=black,bg=dblue!10}

%-----------------------------------------------------------

\newlength{\sepwid}
\newlength{\onecolwid}
\setlength{\paperwidth}{33.1in} % A0 width: 46.8in
\setlength{\paperheight}{23.4in} % A0 height: 33.1in
\setlength{\sepwid}{0.02\paperwidth} % Separation width (white space) between columns
\setlength{\onecolwid}{0.20\paperwidth} % Width of one column

%-----------------------------------------------------------

\definecolor{headingcol}{rgb}{0.5,0.7,1}            %Colour of main title
\definecolor{boxcol}{rgb}{0.7,0.2,0.2}      %Edge-colour of box and top banner
\fboxsep=1cm     

\usepackage{graphicx}  % Required for including images
\usepackage{textpos}

\title{Title} % Poster title
\author{Blah Blah} % Author(s)
\institute{Department, University} % Institution(s)

\begin{document}

    \begin{frame}[t]    

        \setlength{\unitlength}{1mm}
        \begin{picture}(0,0)(0,0)
            \put(-13,-50){
                \begin{minipage}[t][0mm][c]{0mm}
                    \includegraphics[width=\paperwidth]{Black_Landscape.pdf} 
                \end{minipage}
            }
            \put(13,-50){
                \begin{minipage}[t][0mm][l]{500mm}
                    \textcolor{headingcol}{\sffamily \fontsize{92}{48} \selectfont \textbf{\inserttitle}}\\[1.5cm]
                    \textcolor{white}{\sffamily \fontsize{48}{48} \selectfont \textbf{\insertauthor}}\\[0.5cm]
                    \textcolor{white}{\sffamily \fontsize{48}{48} \selectfont       \textbf{\insertinstitute}}  
                \end{minipage}  
            }
        \end{picture}

        \vspace{13cm}

        \begin{columns}[t, totalwidth=\textwidth]

            \begin{column}{\sepwid}
            \end{column} 

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column} 

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column}    

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column}        

            \begin{column}{\onecolwid}
                \begin{alertblock}{test}
                \end{alertblock}
            \end{column} 

            \begin{column}{\sepwid}
            \end{column} 

        \end{columns}

    \end{frame} 

\end{document}

enter image description here

相关内容