# Beamer overbox full error and image not inserting

TeX - LaTeX Asked on January 5, 2022

I’m trying to make beamer presentation, but getting an
1. overbox full error and also,
2. the image is not getting inserted.
3. Also, at the end of beamer, my name and institution name, both are getting reflected. I want only the institution name to appear below.

documentclass{beamer}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{mathtools}
usepackage{booktabs}
usepackage{geometry}
usepackage{graphicx,wrapfig}
graphicspath{E:MSESem IVAlgorithmsproject}
usepackage{fourier}
usepackage{tabularx}
usepackage{tkz-graph}
usepackage{tikz}
usetikzlibrary{decorations.markings}
tikzstyle{vertex}=[circle, draw, inner sep=0pt, minimum size=6pt]
usepackage{array}
newcommand{vertex}{node[vertex]}
newcounter{Angle}
usepackage{tabto}
usepackage{makecell}
newcommandmyatop[2]{left[{{#1}atop#2}right]} % "wrapper macro"
newcolumntype{Z}{ >{centeringarraybackslash}X }

title{Regression Types}
author{Vaibbhav Devender Kalra}
date{today}
begin{document}
begin{frame}
titlepage
end{frame}
section{Linear Regression}
subsection{Simple Linear Regression}

begin{frame}
frametitle{Index}
tableofcontents
end{frame}
begin{frame}
frametitle{Linear Regression}
underline{Definition:} In statistics, linear regression is a linear approach to modeling the relationship between a scalar response (or dependent variable) and one or more explanatory variables (or independent variables). The case of one explanatory variable is called simple linear regression. For more than one explanatory variable, the process is called multiple linear regression.
end{frame}
begin{frame}{Simple Linear Regression}
A normal regression equation of the form of;
$Y = hat{alpha} + hat{beta}X + e$\
where Y is the dependent variable and X is the independent variable. e represents the error term and $alpha$ & $beta$ are the intercept and slope coefficients.\
or, $e = Y - hat{alpha} - hat{beta}X$
end{frame}
begin{frame}
frametitle{Pictures}
begin{figure}
includegraphics[scale=0.5]{latex1.png}
caption{lion!!}
end{figure}
<text>
end{frame}

end{document}


I have done some fixes of your code. I have removed amsmath package because mathtools is a robust package than to amsmath; after I have deleted fourier package because the symbol hat doesn't give me a correct visualization. Lastly, I have inserted a test image called example-image-a.

documentclass{beamer}
usepackage[utf8]{inputenc}
usepackage{amssymb}
usepackage{mathtools}

usepackage{booktabs}
usepackage{geometry}
usepackage{graphicx,wrapfig}
graphicspath{E:MSESem IVAlgorithmsproject}

usepackage{tabularx}
usepackage{tkz-graph}
usepackage{tikz}
usetikzlibrary{decorations.markings}
tikzstyle{vertex}=[circle, draw, inner sep=0pt, minimum size=6pt]
usepackage{array}
newcommand{vertex}{node[vertex]}
newcounter{Angle}
usepackage{tabto}
usepackage{makecell}
newcommandmyatop[2]{left[{{#1}atop#2}right]} % "wrapper macro"
newcolumntype{Z}{ >{centeringarraybackslash}X }

title{Regression Types}
author{Vaibbhav Devender Kalra}
date{today}
begin{document}
begin{frame}
titlepage
end{frame}
section{Linear Regression}
subsection{Simple Linear Regression}

begin{frame}
frametitle{Index}
tableofcontents
end{frame}
begin{frame}
frametitle{Linear Regression}
underline{Definition:} In statistics, linear regression is a linear approach to modeling the relationship between a scalar response (or dependent variable) and one or more explanatory variables (or independent variables). The case of one explanatory variable is called simple linear regression. For more than one explanatory variable, the process is called multiple linear regression.
end{frame}
begin{frame}{Simple Linear Regression}
A normal regression equation of the form of;
$Y = hat{alpha} + hat{beta}X + e$\
where Y is the dependent variable and X is the independent variable. e represents the error term and $alpha$ & $beta$ are the intercept and slope coefficients.\
or, $e = Y - hat{alpha} - hat{beta}X$
end{frame}

begin{frame}
frametitle{Pictures}
begin{figure}
includegraphics[scale=0.5]{example-image-a}
caption{lion!!}
end{figure}
end{frame}

end{document}


ADDENDUM: Considering that it is not necessary to use the path for the correct compilation as rightly observed by, remembering that in this excellent answer that institute also has an optional argument [...], you could adapt the long title of your institute as follows:

documentclass{beamer}
usepackage[utf8]{inputenc}
usepackage{amssymb}
usepackage{mathtools}

usepackage{booktabs}
usepackage{geometry}
usepackage{graphicx,wrapfig}

usepackage{tabularx}
usepackage{tkz-graph}
usepackage{tikz}
usetikzlibrary{decorations.markings}
tikzstyle{vertex}=[circle, draw, inner sep=0pt, minimum size=6pt]
usepackage{array}
newcommand{vertex}{node[vertex]}
newcounter{Angle}
usepackage{tabto}
usepackage{makecell}
newcommandmyatop[2]{left[{{#1}atop#2}right]} % "wrapper macro"
newcolumntype{Z}{ >{centeringarraybackslash}X }

title{Regression Types}
author{}
date{today}
begin{document}
begin{frame}
titlepage
end{frame}
section{Linear Regression}
subsection{Simple Linear Regression}

begin{frame}
frametitle{Index}
tableofcontents
end{frame}
begin{frame}
frametitle{Linear Regression}
underline{Definition:} In statistics, linear regression is a linear approach to modeling the relationship between a scalar response (or dependent variable) and one or more explanatory variables (or independent variables). The case of one explanatory variable is called simple linear regression. For more than one explanatory variable, the process is called multiple linear regression.
end{frame}
begin{frame}{Simple Linear Regression}
A normal regression equation of the form of;
$Y = hat{alpha} + hat{beta}X + e$\
where Y is the dependent variable and X is the independent variable. e represents the error term and $alpha$ & $beta$ are the intercept and slope coefficients.\
or, $e = Y - hat{alpha} - hat{beta}X$
end{frame}

begin{frame}
frametitle{Pictures}
begin{figure}
includegraphics[scale=0.5]{example-image-a}
caption{lion!!}
end{figure}
end{frame}

end{document}


Answered by Sebastiano on January 5, 2022

## Related Questions

### Failure to knit using rmarkdown

0  Asked on October 4, 2021 by jon-walker

### How to define pgfkeys for pgfplots axis environments?

1  Asked on October 4, 2021

0  Asked on October 4, 2021 by milton-maritz

### LaTeX is not able to recognize the $square$ and $Box$ symbols in article class, don’t know why?

1  Asked on October 4, 2021 by amitoz

### How to turn string into command?

3  Asked on October 4, 2021

### Align first line between two minipage

2  Asked on October 4, 2021

### How can I sort a list numerically?

3  Asked on October 4, 2021

### Iterate on a list coming from a variable

1  Asked on October 4, 2021

1  Asked on October 4, 2021

### Automatic Capitalization of sectioning headings?

3  Asked on October 4, 2021

### I would like to use the IranNastaliq font with xelatex

1  Asked on October 4, 2021

### How can I set the relative path for all images in lyx?

0  Asked on October 4, 2021

### ToC bibliography section hyperref doesn’t work with sectsty and biblatex

2  Asked on October 4, 2021

### PGFplots Boxplot, using values of median, quartile… outside axis environment

1  Asked on October 4, 2021

### Hard spaces after one-letter words in ConTeXt

1  Asked on October 3, 2021 by minorthreat

### How to accommodate large text within multicolumn

0  Asked on October 3, 2021 by abdullah1

### Is it safe to use usepackage{fullpage} for book publishing?

0  Asked on October 3, 2021

### Putting two pgf images beside each other

1  Asked on October 3, 2021

### PGFPlots – How to make multiline axis labels with non-boxed axis

2  Asked on October 3, 2021

### Swallow space before command

1  Asked on October 3, 2021