GeneralError that I can't figure out

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rottnTM
Posts: 2
Joined: Sun Feb 23, 2020 10:13 pm

Error that I can't figure out

Post by rottnTM »

Hi LaTeX Community. This is my first post so let me know if there is any information I can add to this to make it better. I have made a poster using beamer that has the error "Missing number treating as zero" occurring 5 times.

I have been able to isolate sort of where the problem is coming from. If I remove the \begin{block} and \end{block} from my code, the errors disappear. If I remove anything inside the block, the error still remains. I have added the code of one of the blocks, plus the preamble, to see if any of you all know how to fix this. Also, there are other style files that are required to run this, but I don't know if it is useful to link those or not.

Code: Select all

\documentclass[final]{beamer}
\usepackage[scale=1.24]{beamerposter} % Use the beamerposter package for laying out the poster
\usetheme{confposter} % Use the confposter theme supplied with this template

%----------------------------------------------------------------------------------------
%	SET COLORS - to define more colors see beamerthemeconf.sty, wpurple is Williams purple, wgold is Williams gold
%----------------------------------------------------------------------------------------

\setbeamercolor{block title}{fg=wpurple,bg=white} % block titles
\setbeamercolor{block body}{fg=black,bg=white} % body of blocks
\setbeamercolor{block alerted title}{fg=wgold,bg=wpurple!90} % highlighted block titles
\setbeamercolor{block alerted body}{fg=black,bg=wpurple!10} % body of highlighted blocks

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


\newlength{\sepwid}
\newlength{\onecolwid}
\newlength{\twocolwid}
\newlength{\threecolwid}
\setlength{\paperwidth}{48in} % A0 width: 46.8in
\setlength{\paperheight}{36in} % 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} 
\usepackage{booktabs} 

\begin{document}


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

\setlength{\belowcaptionskip}{2ex}
\setlength\belowdisplayshortskip{2ex} 

\begin{frame}[t]

\begin{columns}[t] 

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


\begin{column}{\onecolwid}


\begin{block}{Previous Results}
\textbf{\textcolor{wpurple}{The Fibonacci Numbers:}} Let $F_1 = 1$, $F_2 = 2$ and for $n>=2$
\[F_n = F_{n-1} + F_{n-2}.\]

\begin{alertblock}{Zeckendorf's Theorem} 
Every positive integer can be written uniquely as the sum of non-consecutive Fibonacci numbers where
\[F_n = F_{n-1} + F_{n-2}\]
and $F_1 = 1$, $F_2 = 2$.
\end{alertblock}
\end{block}

\vspace{-.25cm} 



\begin{block}{The Fibonacci Quilt Sequence}

\vspace{-0.5cm}
Given an increasing sequence of positive integers ${q_i}^\infty_{i=1}$. A decomposition of an integer
        \begin{equation*}
            m \ = \ q_{l_1}+q_{l_2}+\cdots+q_{l_t}
        \end{equation*}
        (where $q_{l_i}> q_{l_{i+1}}$)  is an \textit{\textcolor{wpurple}{FQ-legal decomposition$^{1}$}} if for all $i, j$, $|l_i-l_j|\neq 0,1,3,4$ and $\{1,3\} \not\subset \{l_1, l_2,\dots,l_t\}$.

\end{block}

\end{column} 

\end{columns}

\end{frame} 

\end{document}
Last edited by cgnieder on Sun Mar 01, 2020 5:25 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Error that I can't figure out

Post by Ijon Tichy »

I cannot test it, because the theme is not a standard theme and therefore unknown. However
\addtobeamertemplate{block end}{}{\vspace*{ex}} % White space under blocks
is wrong, because ex without number is not a valid length. This should be something like
\addtobeamertemplate{block end}{}{\vspace*{2ex}} % White space under blocks

And please read the BBCode help to find out how to format block code.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
rottnTM
Posts: 2
Joined: Sun Feb 23, 2020 10:13 pm

Error that I can't figure out

Post by rottnTM »

My goodness thats it thank you so much
Post Reply