I would like to create an a0 poster with the baposter class which seems to me to be very efficient. My code has worked and compiled until I changed the number of column in the class options in the beginning of the document.
In the following code, when I delete
columns=2
, the poster is compiling correctly and get me the default number of column (here it is 3 because it is a portrait poster).Code: Select all
...
\begin{poster}%
% Poster Options
% Number of column starts from 0
{columns=2
% Show grid to help with alignment
grid=false,
% Column spacing
colspacing=0.8em,
...
columns=2
option, it generated this error :
Code: Select all
! Package calc Error: `g' invalid at this point.
See the calc package documentation for explanation.
Type H <return> for immediate help.
...
l.138 ...5cm}{logo2}\end{minipage}\hspace*{1.5cm}}
I expected to see one of: + - * / )
! Illegal unit of measure (pt inserted).
<to be read again>
\protect
l.138 ...5cm}{logo2}\end{minipage}\hspace*{1.5cm}}
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)
Code: Select all
\documentclass[portrait,a0paper,final]{baposter}
%\documentclass[a4shrink,portrait,final]{baposter}
% Usa a4shrink for an a4 sized paper.
\tracingstats=2
\usepackage[utf8]{inputenc}
\usepackage{calc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{relsize}
\usepackage{multirow}
\usepackage{bm}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{wrapfig}
\usepackage{array}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\usepackage{pgfbaselayers}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}
\usepackage{times}
\usepackage{helvet}
%\usepackage{bookman}
\usepackage{palatino}
\usepackage{marvosym}%for arobase
\newcommand{\captionfont}{\footnotesize}
\selectcolormodel{cmyk}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Multicol Settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\columnsep}{0.7em}
\setlength{\columnseprule}{0mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Save space in lists. Use this after the opening of the list
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\refname}{\vspace{-0.6\baselineskip}}
\newcommand{\compresslist}{%
\setlength{\itemsep}{1pt}%
\setlength{\parskip}{0pt}%
\setlength{\parsep}{0pt}%
}
\newenvironment{litemize}
{\begin{itemize}
\setlength{\itemsep}{0.5pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}}
{\end{itemize}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Begin of Document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\graphicspath{{./Fig/Poster/}}
%\bibliographystyle{pwhab}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Here starts the poster
%%%---------------------------------------------------------------------------
%%% Format it to your taste with the options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define some colors
\definecolor{white}{cmyk}{0,0,0,0}
\definecolor{black}{cmyk}{0,0,0.0,1.0}
\definecolor{silver}{cmyk}{0,0,0,0.3}
\definecolor{softSilver}{cmyk}{0,0,0,0.1}
\definecolor{darkSilver}{cmyk}{0,0,0,0.5}
\definecolor{softBlue}{cmyk}{0.1,0,0,0}
\definecolor{lightBlue}{cmyk}{0.5,0,0,0}
\definecolor{darkBlue}{cmyk}{1,0,0,0.5}
\definecolor{blue}{cmyk}{0.60,0.29,0,0.1}%En-tête des cadres
\definecolor{reddishblue}{cmyk}{1,0.51,0,0.32} %Cadres
\definecolor{lightblue}{cmyk}{0.05,0.04,0,0.01}%Fond des cadres
\definecolor{blueCT}{HTML}{0000FF}
\definecolor{redCT}{HTML}{DD0000}
\newlength{\leftimgwidth}
\begin{poster}%
% Poster Options
% Number of column starts from 0
{columns=2
% Show grid to help with alignment
grid=false,
% Column spacing
colspacing=0.8em,
% Color style
bgColorOne=white,
bgColorTwo=blue,
borderColor=reddishblue,
headerColorOne=blue,
headerColorTwo=reddishblue,
headerFontColor=black,
boxColorOne=lightblue,
boxColorTwo=white,
% Format of textbox
textborder=roundedleft,
% textborder=rectangle,
% Format of text header
eyecatcher=true,
headerborder=open,
headerheight=0.1\textheight,
headershape=roundedright,
headershade=plain,
headerfont=\Large,
boxshade=plain,
% background=shade-tb,
background=plain,
linewidth=2pt
}
% Eye Catcher
{\hspace*{1.5cm}\begin{minipage}{2.6cm}{logo1}\end{minipage}} % No eye catcher for this poster. (eyecatcher=no above). If an eye catcher is present, the title is centered between eye-catcher and logo.
% Title
{Title}
% Authors & Adress
{Authors}
%Denis.Jacquemin$\MVAt$univ-nantes.fr
%
% University logo 2
{\begin{minipage}{2.5cm}{logo2}\end{minipage}\hspace*{1.5cm}}
% Width of left inset image
\setlength{\leftimgwidth}{0.78em+8.0em}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Now define the boxes that make up the poster
%%%---------------------------------------------------------------------------
%%% Each box has a name and can be placed absolutely or relatively.
%%% The only inconvenience is that you can only specify a relative position
%%% towards an already declared box. So if you have a box attached to the
%%% bottom, one to the top and a third one which should be in between, you
%%% have to specify the top and bottom boxes before you specify the middle
%%% box.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\headerbox{B}{name=Intro,column=0,span=1,row=0}{
Introduction
%\vspace{0.3em}
}
\end{poster}
\end{document}
Thank you for your answers !
