1

I am creating a "poster" that will be displayed on a screen. A central feature of the poster will be a video that will play continuously.

I am using the baposter document class to create the poster (http://www.brian-amberg.de/uni/poster/) and the media9 package to handle the video.

Separately, I have encountered no issues with documents relying on either package, but when I use media9's \includevideo{} in a baposter document, the video is not played over the placeholder image as expected and is instead displayed below and at an offset. The same issue is listed here, but the author of the baposter.cls did not have an answer for what causes the problem.

What is causing this display issue? It seems that there is a compatibility issue lurking in the baposter.cls file, but I am having trouble pinpointing and fixing the issue.

Here is a minimal example to reproduce the problem on a Linux OS using the Okular pdf viewer:

\documentclass[landscape,fontscale=0.5,paperwidth=37.5in,paperheight=21.1in]{baposter} 
\usepackage{graphicx,tabularx}
\usepackage{caption}
\usepackage{eqparbox}
\usepackage{media9}

\usepackage{amsmath,makecell} % For typesetting math
\usepackage{amssymb} % Adds new symbols tdo be used in math mode

\usepackage{booktabs} % Top and bottom rules for tables
\usepackage{enumitem} % Used to reduce itemize/enumerate spacing
\usepackage{palatino} % Use the Palatino font
\usepackage[most]{tcolorbox}
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage[absolute,overlay]{textpos}

\usepackage{multicol} % Required for multiple columns
\setlength{\columnsep}{1.5em} % Slightly increase the space between columns
\setlength{\columnseprule}{0mm} % No horizontal rule between columns

\usepackage{tikz} % Required for flow chart
\usetikzlibrary{decorations.markings,calc,intersections}
\usepackage[latin1]{inputenc}
\usetikzlibrary{shapes,arrows}

\newcommand{\compresslist}{ % Define a command to reduce spacing within itemize/enumerate environments, this is used right after \begin{itemize} or \begin{enumerate}
\setlength{\itemsep}{0
pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}

\definecolor{lightblue}{rgb}{0.186, 0.504, 0.7}
\definecolor{darkblue}{rgb}{0.006, 0.324, 0.52}

\definecolor{ltyellow}{rgb}{1,0.8,0.2} % Defines the color used for content box headers
\definecolor{dkyellow}{rgb}{0.7804,0.6078,0.0549} % Defines the color used for content box headers

\newcommand{\mychar}[1]{%
  \begingroup\normalfont
  \includegraphics[height=\fontcharht\font`\m]{#1}%
  \endgroup
}

\newcommand{\ylitem}{%
    \item[\textcolor{ltyellow}{\textbullet}]%
}

% COLORS 
\definecolor{beaublue}{rgb}{0.74, 0.83, 0.9}
%\usepackage{hyperref}
\begin{document}

\begin{poster}
{
columns=6,%
headerborder=closed, % Adds a border around the header of content boxes
colspacing=1em, % Column spacing
bgColorOne=white, % Background color for the gradient on the left side of the poster
bgColorTwo=white, % Background color for the gradient on the right side of the poster
borderColor=dkyellow, % Border color
headerColorOne=dkyellow, % Background color for the header in the content boxes (left side)
headerColorTwo=ltyellow, % Background color for the header in the content boxes (right side)
headerFontColor=black, % Text color for the header text in the content boxes
boxColorOne=white, % Background color of the content boxes
textborder=rounded, % Format of the border around content boxes, can be: none, bars, coils, triangles, rectangle, rounded, roundedsmall, roundedright or faded
eyecatcher=true, % Set to false for ignoring the left logo in the title and move the title left
headerheight=0.1\textheight, % Height of the header
headershape=rounded, % Specify the rounded corner in the content box headers, can be: rectangle, small-rounded, roundedright, roundedleft or rounded
headerfont=\Large\bf\textsc, % Large, bold and sans serif font in the headers of content boxes
%textfont={\setlength{\parindent}{1.5em}}, % Uncomment for paragraph indentation
linewidth=2pt % Width of the border lines around content boxes
}

{} % First university/lab logo on the left
{\huge{\bf\textsc{Poster title\vspace{0.2em}}}} % Poster title
{\textsc{Authors}} 
{}

\headerbox{Video}{name=video,column=2,row=0, span=2}{
    \begin{minipage}{\linewidth}
    \centering
        \includemedia[
            width=\linewidth,
            noplaybutton,
            activate=pageopen,
            addresource=/path/to/video.mp4,
            flashvars={
                source=/path/to/video.mp4           
            }       
        ]{\includegraphics[]{/path/to/placeholder.png}}{VPlayer.swf}
    \end{minipage}
}

\end{poster}
\end{document}
  • 1
    You might try using fontscale=1. baposter makes an A4 poster and rescales it to the desired papersize. The rescaling messes with hyperlinks. Maybe it also messes with the video frame? Just a guess. – Ross Sep 20 '18 at 22:40
  • Your guess was spot on; the scaling does change the position of the video. Can you think of any way to prevent the rescaling from affecting the video? This might highlight the precise cause. – NBCKLY Sep 20 '18 at 23:41
  • I would use fontscale=1. A consequence is you have to adjust the font sizes manually since the text will be too small for a large poster like here: tex.stackexchange.com/a/437024. – Ross Sep 21 '18 at 0:15
  • Thanks for the tip; this issue seems rather crippling as it renders useless most of the utility that the class offers. – NBCKLY Sep 21 '18 at 1:09
  • I suggest you try the poster option in tcolorbox package. – Ross Sep 21 '18 at 7:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.