I want to divide one slide as the following:
----------------------block1--------------------
------------------------------------------------
------------------------------------------------
------column1-------- %%%%%%%%%%%%%%%%%%%%%------column2-------------------------------------
----------------------%%%%%%%%%%%%%%%%%%%%%--------------------------------------------------
------item1---------- ---- %%%%%%%%%%%%%%%%%%%%% -------item2----------------------------------------
------image1------ %%%%%%%%%%%%%%%%%%%% --------image2--------------------------
This is my tex file:
\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}
\setbeamertemplate{footline}[page number]
}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule,
% \midrule and \bottomrule in tables
\usepackage{tikz} % add background image
\listfiles
\begin{document}
\begin{frame}
\frametitle{Decision Boundary of logistic regression}
\begin{block}{Define a threshold for classification}
If the probability of output ($h_\theta (x)$)
exceed $0.5$ choose class $y=1$
\begin{gather*}
h_\theta (x)=g(\theta _0 x_0+\theta_1 x_1 ... +\theta_n x_n) \geq 0.5\\
(\theta _0 x_0+\theta_1 x_1 ... +\theta_n x_n) \geq 0
\end{gather*}
\end{block}
\column{.48\textwidth} % Left column and width
\begin{itemize}
\item Linear boundary
\end{itemize}
\includegraphics[scale=0.35]{Linearboundary}
\column{.48 \textwidth} % Right column and width
\begin{itemize}
\item Non linear boundary
\end{itemize}
\includegraphics[scale=0.2]{NonLinearBoundary}
\end{columns}
\end{frame}
%-----------------------------Frame-------------------------------------------
\begin{frame}
\frametitle{content}
\end{frame}
\end{document}
But I got a lot of errors. I was wondering if some can help me?
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Package keyval Error: undefined. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Package keyval Error: undefined. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: Missing } inserted. \end{frame}
line 32: \begin{document} ended by \end{beamer@framepauses}. \end{frame}
line 32: Extra \endgroup. \end{frame}
line 32: Too many }'s. \end{frame}
line 32: Undefined control sequence. \end{frame}
line 32: \begin{document} ended by \end{beamer@frameslide}. \end{frame}
line 32: Extra \endgroup. \end{frame}
line 32: Font shape `OT1/cmss/m/n' in size <4> not available(Font) size <5>
substituted: Size substitutions with differences(Font) up to 1.0pt have occurred.
Best Answer
You have to use the
column
-environment (singular) within thecolumns
-environment (plural). So you have to do something like this:I corrected that in your MWE. I also had to replace the image files, of course.
This is working without an error for me.
And this is the result: