Document ClassesBeamerposter - Annoying white line on the edge

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Beamerposter - Annoying white line on the edge

Post by achim »

Dear community

I am currently making my second beamerposter. The problem described here also occurred in the first one but I just ignored it. Now I'd like to get this problem out of the way...

Please find the poster attached to this post, so you know what I'm talking about.
Poster.pdf
(243.32 KiB) Downloaded 847 times
The poster attached shows a white line on the left edge. If I compile the document in 'portrait' format, then the line is on the top (covered by the uni crest on the rhs).

This is not too disturbing as long as the poster is in 'landscape' format as it can be cut off, however it looks pretty awful in 'portrait' format.

Did anybody ever come across this problem or has anyone a hint as to where the origin of the problem might be?

Here's the code:
Poster.tex

Code: Select all

\documentclass[serif,final]{beamer}
\mode<presentation>{\usetheme{Canterbury}}
%
\usepackage{type1cm}
\usepackage{calc}
\usepackage{pstricks}
\usepackage{pst-all}
\usepackage{pstricks-add}
%
\usepackage{lipsum}
%
\usepackage{pst-infixplot} % Allows plots without inverse notation; use \infixtoRPN{f(x)}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[orientation=landscape,size=a1,scale=1,debug]{beamerposter}
\usepackage{multicol}
%\usepackage[labelfont={small,sc,bf} ,textfont={footnotesize,it}, labelsep=newline, justification=justified]{caption}
%
%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Header
  \title[Micro-Beam Arrays]{The Stability and Dynamics of Odd and Even Number Micro-Beam Arrays}
  \author{
	\begin{tabular}{ll}
		Stefanie Salamander	&	\small\texttt{stefanie.salamander@canterbury.ac.nz}\\
		Achim Armadillo	&	\small\texttt{achim.rmadillo@pg.canterbury.ac.nz}
	\end{tabular}
	}
  \institute[University of Canterbury]{Department of Mechanical Engineering, University of Canterbury\\
		Private Bag 4800, Christchurch 8140, New Zealand}
%
  \renewcommand{\leftfoot}{%
  \today
  }
  % Footer
  \renewcommand{\middlefoot}{\vfill{\fontsize{6pt}{6pt}\selectfont \textcolor[rgb]{0.75,0.75,0.75}{\texttt{Designed with \LaTeX~(beamerposter)}}}}
%
  \renewcommand{\rightfoot}{%
  ICAST 2010\\[0.5em]
  21st International Conference on Adaptive Structures and Technologies
  }
%
  \renewcommand{\section}[1]{{\large \textbf{#1}}\\ \vspace{1.2ex}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\setbeamertemplate{background}
{\includegraphics[width=\paperwidth]{Images/Background}}
%
\begin{frame}{}
\begin{block}{\large Introduction}
	\lipsum[1]
\end{block}%
{}%
\begin{columns}[T]
    \begin{column}{.33\linewidth}
        \begin{block}{Program Structure}
            \begin{columns}[T]
            \begin{column}{0.5\linewidth}
            \flushright
            $
            \small
            \psset{unit=1cm}
            \psset{nodesep=3pt,linecolor=lightgray,linewidth=2pt}
            \psmatrix[rowsep=1,colsep=0.7]
            \text{Create / open Project}\\ %1
            \text{Enter Equation}\\ %2
            \text{Define Parameter Space: }(z_{min}, z_{max},~_\Delta{}z)\\ %3
            \text{Generate Mesh}\\ %4
            \text{Descretisation of the g(z) function}\\ %5
            \text{Build ''stiffness'' Matrix}\\ %6
            \text{Solve}\\ %7
            \text{Force Unity} \sum_{i=1}^n \int_R p(z_i) d z_i\\ %8
            = p(z_1, z_2, \ldots, z_n) \text{Joint Density Function}\\ %9
            \text{Plot Results}\\ %10
            \text{Export Results}\\ %11
            \endpsmatrix
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{1,1}{2,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{2,1}{3,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{3,1}{4,1}
            \ncbox[nodesep=.25,boxsize=6.2,linearc=0.5]{1,1}{3,1}
            \nbput[nrot=90,npos=0.5]{\text{\textcolor[rgb]{0.29,0.29,0.29}{Pre-Processing}}}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{3,1}{4,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{4,1}{5,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{5,1}{6,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{6,1}{7,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{7,1}{8,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{8,1}{9,1}
            \ncbox[nodesep=.25,boxsize=6.2,linearc=0.5]{4,1}{9,1}
            \nbput[nrot=90,npos=0.5]{\text{\textcolor[rgb]{0.29,0.29,0.29}{Solve}}}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{9,1}{10,1}
            \ncline[doubleline=true,linewidth=1.5pt,arrows=->]{10,1}{11,1}
            \ncbox[nodesep=.25,boxsize=6.2,linearc=0.5]{10,1}{11,1}
            \nbput[nrot=90,npos=0.5]{\text{\textcolor[rgb]{0.29,0.29,0.29}{Post-Processing}}}
            $\\
            ~\\
            \end{column}
            \begin{column}{0.45\linewidth}
            \justifying%
            \lipsum[1]%
            \end{column}
            \end{columns}
        \end{block}
    \end{column}
    \begin{column}{.33\linewidth}
        \begin{block}{GUI}
            \justifying%
            \section{Test}
            \lipsum[1]%
        \end{block}
    \end{column}
    \begin{column}{.33\linewidth}
        \begin{block}{Project Status}
            \justifying%
            \section{Test}
            \lipsum[1]
        \begin{quote}\small
            \lipsum[1]%
        \end{quote}
        \end{block}
        \vspace{5.63mm}
        \begin{block}{References}
        test
        \scriptsize
        \bibliographystyle{abbrv}
        \bibliography{bib}
        \end{block}
    \end{column}
\end{columns}
\end{frame}

\end{document}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables:
%%% mode: latex
%%% TeX-PDF-mode: t
BeamerthemeCanterbury.tex

Code: Select all

% Style Sheet
% This style sheet represents the University of Canterbury design
% Written by; Achim R. Ammon
% March 2009
\ProvidesPackage{beamerthemeCanterbury}
\usepackage{ragged2e} % used to justify text in paragraphs (call \justifying in paragraph)
\usepackage{calc}
\usepackage{pstricks}
\usepackage{pst-all}
\usepackage{pstricks-add}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\selectcolormodel{cmyk}
\selectcolormodel{rgb}
\mode<presentation>

\newcommand{\leftfoot}{Left}
\newcommand{\middlefoot}{Middle}
\newcommand{\rightfoot}{Right}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Colours
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Yellow
\definecolor{SheffYellow}
{rgb}{1,0.949,0}

% Light Gray
\definecolor{LightGray}
{named}{lightgray}

% Gray
\definecolor{Gray}
{named}{gray}

% White
\definecolor{White}
{named}{white}


% Black
\definecolor{Black}
{named}{black}


% allert
\definecolor{cfa}
{cmyk/HTML}{0.86,0.77,0.00,0.00/3e53a4}     % blue


% Dark Blue
\definecolor{DarkBlue}
{rgb}{0.125,0.121,0.337}

% Light Blue
\definecolor{LightBlue}
{rgb}{0,0.6,1}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% headline colors and fonts
\setbeamercolor{headline}{fg=White,bg=Black}
\setbeamercolor{title in headline}{fg=White}
\setbeamercolor{author in headline}{fg=White}
\setbeamercolor{institute in headline}{fg=White}

% lines
\setbeamercolor{upper separation line head}{fg=White}
\setbeamercolor{separation line}{bg=White}

% footline colors and fonts
\setbeamercolor{footline}{fg=White, bg=Black}
\setbeamerfont{footline}{series=\rm}


% poster background, body colors, and fonts
\setbeamercolor*{normal text}{fg=Black, bg=Gray}

% block environment
\setbeamercolor*{block title}{fg=White,bg=Black}
\setbeamerfont{block title}{size=\large,series=\bf}
\setbeamercolor*{block body}{fg=Black,bg=White}

% subblock environment
\setbeamercolor*{subblock title}{fg=White,bg=LightBluew}
\setbeamerfont{subblock title}{size=\large,series=\bf}
\setbeamercolor*{subblock body}{fg=Black,bg=LightGray}

\setbeamercolor{alerted text}{fg=DarkBlue}

\setbeamercolor{structure}{fg=DarkBlue}                 % frametitle, item
\setbeamertemplate{itemize items}[triangle]

%not used or useful in beamerposter
\setbeamercolor{framesubtitle}{fg=DarkBlue, bg=White}   % framesubtitle useless on a poster
\setbeamertemplate{navigation symbols}{}         % no navigation on a poster

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{block begin}{
  \vskip.75ex
  \begin{beamercolorbox}[rounded=true,shadow=true,leftskip=1cm,colsep*=.75ex]{block title}%
    \usebeamerfont*{block title}\insertblocktitle
  \end{beamercolorbox}%
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
  \usebeamerfont{block body}%
  \begin{beamercolorbox}[rounded=true,shadow=true,colsep*=.75ex,sep=.75ex,vmode]{block body}%
    \justifying%
    %\rmfamily
    \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
  }
  \setbeamertemplate{block end}{
  \end{beamercolorbox}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{subblock begin}{
  \vskip.75ex
  \begin{beamercolorbox}[rounded=true,shadow=true,leftskip=1cm,colsep*=.75ex]{block title}%
    \usebeamerfont*{block title}\insertblocktitle
  \end{beamercolorbox}%
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
  \usebeamerfont{block body}%
  \begin{beamercolorbox}[rounded=true,shadow=true,colsep*=.75ex,sep=.75ex,vmode]{block body}%
    \justifying%
    %
    \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
  }
  \setbeamertemplate{subblock end}{
  \end{beamercolorbox}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{headline}{
  \begin{beamercolorbox}[wd=\paperwidth]{headline}
  \newcommand{\crestwidth}{100mm}
    \begin{columns}[T]
    % Left space
      \begin{column}{.02\paperwidth}
      \end{column}
    % Title and stuff...
      \begin{column}{\paperwidth - .02\paperwidth - \crestwidth}
        \vspace{15mm}
        \raggedright
        \usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]}
        \vspace{1em}
        \usebeamercolor{author in headline}{\color{fg}\small{\insertauthor}\\}
        \vspace{1ex}
        \usebeamercolor{institute in headline}{\color{fg}\small{\textit{\insertinstitute}}\\[1ex]}
        \vspace{0.2cm}
      \end{column}
    % University Crest
      \begin{column}{100mm}
        \includegraphics[width=\crestwidth]{Images/CrestWB}
      \end{column}
    \end{columns}
  \end{beamercolorbox}
%
  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
    \rule{0pt}{3pt}
  \end{beamercolorbox}
}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{footline}{
  \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot}
    \rule{0pt}{3pt}
  \end{beamercolorbox}
  \begin{beamercolorbox}[wd=\paperwidth]{footline}%
   \begin{columns}[T]
    \begin{column}{0.01\paperwidth}
    \end{column}
    \begin{column}{0.326\paperwidth}
     \flushleft\small
     \leftfoot
     \vspace{0.005\paperwidth}
    \end{column}
    \begin{column}{0.326\paperwidth}
     \begin{center}\small
     \middlefoot
     \vspace{0.005\paperwidth}
     \end{center}
    \end{column}
    \begin{column}{0.326\paperwidth}
     \flushright\small
     \rightfoot
     \vspace{0.005\paperwidth}
    \end{column}
    \begin{column}{0.01\paperwidth}
    \end{column}
   \end{columns}
  \end{beamercolorbox}
  \vskip0pt%
%  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot}
%    \rule{0pt}{2pt}
%  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Display a grid to help align images ... and it looks nice with this color scheme
\beamertemplategridbackground[1cm]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<all>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables:
%%% mode: latex
%%% TeX-PDF-mode: t
%%% TeX-master: "poster"
%%% End:
I'd be grateful for any hint!

Regards
Achim

ps: Make sure you provide a picture (instead of Images/CrestWB) if running the code.
OS: Kubuntu
Distribution: TexLive
Editor: Kile

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Beamerposter - Annoying white line on the edge

Post by frabjous »

Your code generates over 100 errors for me, then quits. You need to construct a properly compiliable minimal working example per board rules. It is impossible to diagnose anything otherwise.
achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Beamerposter - Annoying white line on the edge

Post by achim »

You're right, I'm sorry.

OK here is a striped down version of it. It uses the 'Berlin' style sheet. The problem still persists (both in landscape and portrait as described above). Hence my style sheet should be good.

Code: Select all

\documentclass[serif,final]{beamer}
\mode<presentation>{\usetheme{Berlin}}
%
%
\usepackage[orientation=landscape,size=a1,scale=1,debug]{beamerposter}
%
%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Header
  \title[Micro-Beam Arrays]{The Stability and Dynamics of Odd and Even Number Micro-Beam Arrays}
  \author{The Author}
  \institute{Department of Mechanical Engineering, University of Canterbury}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}{}
\begin{block}{\large Introduction}
	Here goes some random text\dots
	$$
	e^{i\pi}+1=0
	$$
	\dots and a nice equation.
\end{block}%
\end{frame}

\end{document}
...and the compiled pdf:
test.pdf
(16.25 KiB) Downloaded 449 times
Cheers!
OS: Kubuntu
Distribution: TexLive
Editor: Kile
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Beamerposter - Annoying white line on the edge

Post by frabjous »

I only see the problem if compiled via latex > dvips > ps2pdf. If I compile with pdflatex directly, I don't see an issue. I gather from your first example, however, that you need to use PSTricks? How difficult would it be to get around this? (Either by switching to Tikz or exporting the individual graphical elements to eps then converting them to pdf and including them?)

Another possibility worth considering might be simply using pdfcrop on the final result... seems to do the trick.
achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Re: Beamerposter - Annoying white line on the edge

Post by achim »

Interesting, thanks for pointing that out!

You're right I do work with pstricks (a lot that is). I might have to consider pre compiling the pstricks images to .eps.
The thing is, I'm quite used to pstricks now and do like it very much. Tikz does not look bad either but for now I'd rather stay with pstricks.

I will (as much as time allows) investigate further into why this happens when I compile dvi ps pdf.

Many thanks!
Achim
OS: Kubuntu
Distribution: TexLive
Editor: Kile
Post Reply