Beamer Class : Missing $ inserted, bad math environment, math mode should end wit $$











up vote
2
down vote

favorite












Hello guys first question and beginner in LaTeX,



the following code presents part of my thesis presentation. I have no idea what i did wrong. Checked for brackets and $-signs twice. Maybe i did something wrong without knowing? This frame is the one that breaks the presentation, despite yesterday everything worked fine. Hope someone can help me.



The errors:



Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Missing $ inserted. end{frame}
Missing $ inserted. end{frame}
Bad math environment delimiter. end{frame}
You can't use 'eqno' in internal vertical mode. end{frame}´
Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Undefined control sequence. end{frame}
Undefined control sequence. end{frame}


The code:



documentclass [draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
usetheme{default}
usepackage{amsmath}
usepackage{tikz, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}{Explanation of the Papers Regression Function for Modern
versus Traditional Manufacturing }

vspace{-1cm}
begin{equation}
%begin{multline}

ln(wage_{jn}) =beta_1 S_n+beta_2 x I^{M}_j+gamma_1h_n+gamma_2h_n x
I^{M}_j+delta_1boldsymbol{X}_n+delta_2boldsymbol{X}_n x
I^{M}_j+alpha_j\
+alpha_n +xi_jn

%end{multline}
end{equation}



vspace{+0.5cm} begin{itemize}
item{ $ln(wage_{jn})$ = Proxy for firm productivity.}
item{$S_n$ = Represents proxies for knowledge elites in location n.}
item {$I^{M}_j$ = Indicator variable that takes on value 1 if sector j is
glqq modern grqq.}
item{$h_n$ = Denotes proxies for average human capital, such as literacy
and schooling.}
item{$boldsymbol{X}_n$ = Vector of control variables.}
item{ $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and
location fixed effects ($alpha_n$).}
item{$xi_n$ = Error term.}
end{itemize}

end{frame}


end{document}









share|improve this question









New contributor




mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Don't use empty lines inside of equations
    – samcarter
    6 hours ago










  • Tried that but didn't helped. The equation is to long for the frame and neither split nor multline helped to fix that. Only by adding this two empty lines the code compiled in a presentable format.
    – mugdi
    6 hours ago








  • 1




    You will also need to use some package that defines glqq and grqq
    – samcarter
    6 hours ago






  • 1




    I think you should write xi_{jn} instead of xi_jn. Also, ln(text{wage})_{jn} looks better than ln(text{wage}_{jn}).
    – Mico
    2 hours ago








  • 1




    Also, instead of beta_2 x I^{M}_j, shouldn't it be beta_2 S_n x I^{M}_j? Optional: replace x with times.
    – Mico
    2 hours ago

















up vote
2
down vote

favorite












Hello guys first question and beginner in LaTeX,



the following code presents part of my thesis presentation. I have no idea what i did wrong. Checked for brackets and $-signs twice. Maybe i did something wrong without knowing? This frame is the one that breaks the presentation, despite yesterday everything worked fine. Hope someone can help me.



The errors:



Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Missing $ inserted. end{frame}
Missing $ inserted. end{frame}
Bad math environment delimiter. end{frame}
You can't use 'eqno' in internal vertical mode. end{frame}´
Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Undefined control sequence. end{frame}
Undefined control sequence. end{frame}


The code:



documentclass [draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
usetheme{default}
usepackage{amsmath}
usepackage{tikz, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}{Explanation of the Papers Regression Function for Modern
versus Traditional Manufacturing }

vspace{-1cm}
begin{equation}
%begin{multline}

ln(wage_{jn}) =beta_1 S_n+beta_2 x I^{M}_j+gamma_1h_n+gamma_2h_n x
I^{M}_j+delta_1boldsymbol{X}_n+delta_2boldsymbol{X}_n x
I^{M}_j+alpha_j\
+alpha_n +xi_jn

%end{multline}
end{equation}



vspace{+0.5cm} begin{itemize}
item{ $ln(wage_{jn})$ = Proxy for firm productivity.}
item{$S_n$ = Represents proxies for knowledge elites in location n.}
item {$I^{M}_j$ = Indicator variable that takes on value 1 if sector j is
glqq modern grqq.}
item{$h_n$ = Denotes proxies for average human capital, such as literacy
and schooling.}
item{$boldsymbol{X}_n$ = Vector of control variables.}
item{ $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and
location fixed effects ($alpha_n$).}
item{$xi_n$ = Error term.}
end{itemize}

end{frame}


end{document}









share|improve this question









New contributor




mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Don't use empty lines inside of equations
    – samcarter
    6 hours ago










  • Tried that but didn't helped. The equation is to long for the frame and neither split nor multline helped to fix that. Only by adding this two empty lines the code compiled in a presentable format.
    – mugdi
    6 hours ago








  • 1




    You will also need to use some package that defines glqq and grqq
    – samcarter
    6 hours ago






  • 1




    I think you should write xi_{jn} instead of xi_jn. Also, ln(text{wage})_{jn} looks better than ln(text{wage}_{jn}).
    – Mico
    2 hours ago








  • 1




    Also, instead of beta_2 x I^{M}_j, shouldn't it be beta_2 S_n x I^{M}_j? Optional: replace x with times.
    – Mico
    2 hours ago















up vote
2
down vote

favorite









up vote
2
down vote

favorite











Hello guys first question and beginner in LaTeX,



the following code presents part of my thesis presentation. I have no idea what i did wrong. Checked for brackets and $-signs twice. Maybe i did something wrong without knowing? This frame is the one that breaks the presentation, despite yesterday everything worked fine. Hope someone can help me.



The errors:



Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Missing $ inserted. end{frame}
Missing $ inserted. end{frame}
Bad math environment delimiter. end{frame}
You can't use 'eqno' in internal vertical mode. end{frame}´
Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Undefined control sequence. end{frame}
Undefined control sequence. end{frame}


The code:



documentclass [draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
usetheme{default}
usepackage{amsmath}
usepackage{tikz, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}{Explanation of the Papers Regression Function for Modern
versus Traditional Manufacturing }

vspace{-1cm}
begin{equation}
%begin{multline}

ln(wage_{jn}) =beta_1 S_n+beta_2 x I^{M}_j+gamma_1h_n+gamma_2h_n x
I^{M}_j+delta_1boldsymbol{X}_n+delta_2boldsymbol{X}_n x
I^{M}_j+alpha_j\
+alpha_n +xi_jn

%end{multline}
end{equation}



vspace{+0.5cm} begin{itemize}
item{ $ln(wage_{jn})$ = Proxy for firm productivity.}
item{$S_n$ = Represents proxies for knowledge elites in location n.}
item {$I^{M}_j$ = Indicator variable that takes on value 1 if sector j is
glqq modern grqq.}
item{$h_n$ = Denotes proxies for average human capital, such as literacy
and schooling.}
item{$boldsymbol{X}_n$ = Vector of control variables.}
item{ $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and
location fixed effects ($alpha_n$).}
item{$xi_n$ = Error term.}
end{itemize}

end{frame}


end{document}









share|improve this question









New contributor




mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Hello guys first question and beginner in LaTeX,



the following code presents part of my thesis presentation. I have no idea what i did wrong. Checked for brackets and $-signs twice. Maybe i did something wrong without knowing? This frame is the one that breaks the presentation, despite yesterday everything worked fine. Hope someone can help me.



The errors:



Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Missing $ inserted. end{frame}
Missing $ inserted. end{frame}
Bad math environment delimiter. end{frame}
You can't use 'eqno' in internal vertical mode. end{frame}´
Missing $ inserted. end{frame}
Display math should end with $$. end{frame}
Undefined control sequence. end{frame}
Undefined control sequence. end{frame}


The code:



documentclass [draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
usetheme{default}
usepackage{amsmath}
usepackage{tikz, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}{Explanation of the Papers Regression Function for Modern
versus Traditional Manufacturing }

vspace{-1cm}
begin{equation}
%begin{multline}

ln(wage_{jn}) =beta_1 S_n+beta_2 x I^{M}_j+gamma_1h_n+gamma_2h_n x
I^{M}_j+delta_1boldsymbol{X}_n+delta_2boldsymbol{X}_n x
I^{M}_j+alpha_j\
+alpha_n +xi_jn

%end{multline}
end{equation}



vspace{+0.5cm} begin{itemize}
item{ $ln(wage_{jn})$ = Proxy for firm productivity.}
item{$S_n$ = Represents proxies for knowledge elites in location n.}
item {$I^{M}_j$ = Indicator variable that takes on value 1 if sector j is
glqq modern grqq.}
item{$h_n$ = Denotes proxies for average human capital, such as literacy
and schooling.}
item{$boldsymbol{X}_n$ = Vector of control variables.}
item{ $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and
location fixed effects ($alpha_n$).}
item{$xi_n$ = Error term.}
end{itemize}

end{frame}


end{document}






beamer math-mode






share|improve this question









New contributor




mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 6 hours ago









egreg

704k8618753155




704k8618753155






New contributor




mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 6 hours ago









mugdi

112




112




New contributor




mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






mugdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Don't use empty lines inside of equations
    – samcarter
    6 hours ago










  • Tried that but didn't helped. The equation is to long for the frame and neither split nor multline helped to fix that. Only by adding this two empty lines the code compiled in a presentable format.
    – mugdi
    6 hours ago








  • 1




    You will also need to use some package that defines glqq and grqq
    – samcarter
    6 hours ago






  • 1




    I think you should write xi_{jn} instead of xi_jn. Also, ln(text{wage})_{jn} looks better than ln(text{wage}_{jn}).
    – Mico
    2 hours ago








  • 1




    Also, instead of beta_2 x I^{M}_j, shouldn't it be beta_2 S_n x I^{M}_j? Optional: replace x with times.
    – Mico
    2 hours ago




















  • Don't use empty lines inside of equations
    – samcarter
    6 hours ago










  • Tried that but didn't helped. The equation is to long for the frame and neither split nor multline helped to fix that. Only by adding this two empty lines the code compiled in a presentable format.
    – mugdi
    6 hours ago








  • 1




    You will also need to use some package that defines glqq and grqq
    – samcarter
    6 hours ago






  • 1




    I think you should write xi_{jn} instead of xi_jn. Also, ln(text{wage})_{jn} looks better than ln(text{wage}_{jn}).
    – Mico
    2 hours ago








  • 1




    Also, instead of beta_2 x I^{M}_j, shouldn't it be beta_2 S_n x I^{M}_j? Optional: replace x with times.
    – Mico
    2 hours ago


















Don't use empty lines inside of equations
– samcarter
6 hours ago




Don't use empty lines inside of equations
– samcarter
6 hours ago












Tried that but didn't helped. The equation is to long for the frame and neither split nor multline helped to fix that. Only by adding this two empty lines the code compiled in a presentable format.
– mugdi
6 hours ago






Tried that but didn't helped. The equation is to long for the frame and neither split nor multline helped to fix that. Only by adding this two empty lines the code compiled in a presentable format.
– mugdi
6 hours ago






1




1




You will also need to use some package that defines glqq and grqq
– samcarter
6 hours ago




You will also need to use some package that defines glqq and grqq
– samcarter
6 hours ago




1




1




I think you should write xi_{jn} instead of xi_jn. Also, ln(text{wage})_{jn} looks better than ln(text{wage}_{jn}).
– Mico
2 hours ago






I think you should write xi_{jn} instead of xi_jn. Also, ln(text{wage})_{jn} looks better than ln(text{wage}_{jn}).
– Mico
2 hours ago






1




1




Also, instead of beta_2 x I^{M}_j, shouldn't it be beta_2 S_n x I^{M}_j? Optional: replace x with times.
– Mico
2 hours ago






Also, instead of beta_2 x I^{M}_j, shouldn't it be beta_2 S_n x I^{M}_j? Optional: replace x with times.
– Mico
2 hours ago












1 Answer
1






active

oldest

votes

















up vote
6
down vote













The main problem: You must not have empty lines within equation



Some further comments:




  • you don't need usetheme{default}, as the name says it is loaded by default


  • you don't need usepackge{graphicx} with beamer


  • to split your equation over multiple lines, you can for example use begin{split}...end{split}


  • are you misusing x for multiplication?


  • the syntax for items is item text (without {})


  • glqq and grqq are not defined in your code.


  • use ln for logarithm (Thanks to @Mico for spotting this!)





 documentclass[draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
%usetheme{default}
usepackage{amsmath}
usepackage{tikz}%, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}
frametitle{Explanation of the Papers Regression Function for Modern versus Traditional Manufacturing}

begin{equation}
begin{split}
ln(text{wage}_{jn}) =beta_1 S_n+beta_2 times I^{M}_j+gamma_1h_n+gamma_2h_n times I^{M}_j+delta_1boldsymbol{X}_n+\
delta_2boldsymbol{X}_n times I^{M}_j+ alpha_j +alpha_n +xi_jn
end{split}
end{equation}

begin{itemize}
item $ln(text{wage}_{jn})$ = Proxy for firm productivity.
item $S_n$ = Represents proxies for knowledge elites in location n.
item $I^{M}_j$ = Indicator variable that takes on value 1 if sector j is ``modern''.
item $h_n$ = Denotes proxies for average human capital, such as literacy and schooling.
item $boldsymbol{X}_n$ = Vector of control variables.
item $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and location fixed effects ($alpha_n$).
item$xi_n$ = Error term.
end{itemize}

end{frame}

end{document}


enter image description here






share|improve this answer























  • Thanks for the great comment. Fixed everything the way you said and it works perfect. PS: The authors of the paper used x as a connection indicator of two variables. Questioned myself if this is a good way to state things but since it is published in one of the main economic journals, this seems to be on purpose.
    – mugdi
    5 hours ago








  • 1




    +1. Do write ln to denote the natural-logarithm operator, though.
    – Mico
    2 hours ago








  • 1




    @Mico Fixed! Thanks for spotting this!
    – samcarter
    2 hours ago










  • Don't forget the ln in the first list item...
    – Mico
    2 hours ago










  • @Mico Arggg, thanks again!
    – samcarter
    2 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






mugdi is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464501%2fbeamer-class-missing-inserted-bad-math-environment-math-mode-should-end-wi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
6
down vote













The main problem: You must not have empty lines within equation



Some further comments:




  • you don't need usetheme{default}, as the name says it is loaded by default


  • you don't need usepackge{graphicx} with beamer


  • to split your equation over multiple lines, you can for example use begin{split}...end{split}


  • are you misusing x for multiplication?


  • the syntax for items is item text (without {})


  • glqq and grqq are not defined in your code.


  • use ln for logarithm (Thanks to @Mico for spotting this!)





 documentclass[draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
%usetheme{default}
usepackage{amsmath}
usepackage{tikz}%, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}
frametitle{Explanation of the Papers Regression Function for Modern versus Traditional Manufacturing}

begin{equation}
begin{split}
ln(text{wage}_{jn}) =beta_1 S_n+beta_2 times I^{M}_j+gamma_1h_n+gamma_2h_n times I^{M}_j+delta_1boldsymbol{X}_n+\
delta_2boldsymbol{X}_n times I^{M}_j+ alpha_j +alpha_n +xi_jn
end{split}
end{equation}

begin{itemize}
item $ln(text{wage}_{jn})$ = Proxy for firm productivity.
item $S_n$ = Represents proxies for knowledge elites in location n.
item $I^{M}_j$ = Indicator variable that takes on value 1 if sector j is ``modern''.
item $h_n$ = Denotes proxies for average human capital, such as literacy and schooling.
item $boldsymbol{X}_n$ = Vector of control variables.
item $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and location fixed effects ($alpha_n$).
item$xi_n$ = Error term.
end{itemize}

end{frame}

end{document}


enter image description here






share|improve this answer























  • Thanks for the great comment. Fixed everything the way you said and it works perfect. PS: The authors of the paper used x as a connection indicator of two variables. Questioned myself if this is a good way to state things but since it is published in one of the main economic journals, this seems to be on purpose.
    – mugdi
    5 hours ago








  • 1




    +1. Do write ln to denote the natural-logarithm operator, though.
    – Mico
    2 hours ago








  • 1




    @Mico Fixed! Thanks for spotting this!
    – samcarter
    2 hours ago










  • Don't forget the ln in the first list item...
    – Mico
    2 hours ago










  • @Mico Arggg, thanks again!
    – samcarter
    2 hours ago















up vote
6
down vote













The main problem: You must not have empty lines within equation



Some further comments:




  • you don't need usetheme{default}, as the name says it is loaded by default


  • you don't need usepackge{graphicx} with beamer


  • to split your equation over multiple lines, you can for example use begin{split}...end{split}


  • are you misusing x for multiplication?


  • the syntax for items is item text (without {})


  • glqq and grqq are not defined in your code.


  • use ln for logarithm (Thanks to @Mico for spotting this!)





 documentclass[draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
%usetheme{default}
usepackage{amsmath}
usepackage{tikz}%, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}
frametitle{Explanation of the Papers Regression Function for Modern versus Traditional Manufacturing}

begin{equation}
begin{split}
ln(text{wage}_{jn}) =beta_1 S_n+beta_2 times I^{M}_j+gamma_1h_n+gamma_2h_n times I^{M}_j+delta_1boldsymbol{X}_n+\
delta_2boldsymbol{X}_n times I^{M}_j+ alpha_j +alpha_n +xi_jn
end{split}
end{equation}

begin{itemize}
item $ln(text{wage}_{jn})$ = Proxy for firm productivity.
item $S_n$ = Represents proxies for knowledge elites in location n.
item $I^{M}_j$ = Indicator variable that takes on value 1 if sector j is ``modern''.
item $h_n$ = Denotes proxies for average human capital, such as literacy and schooling.
item $boldsymbol{X}_n$ = Vector of control variables.
item $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and location fixed effects ($alpha_n$).
item$xi_n$ = Error term.
end{itemize}

end{frame}

end{document}


enter image description here






share|improve this answer























  • Thanks for the great comment. Fixed everything the way you said and it works perfect. PS: The authors of the paper used x as a connection indicator of two variables. Questioned myself if this is a good way to state things but since it is published in one of the main economic journals, this seems to be on purpose.
    – mugdi
    5 hours ago








  • 1




    +1. Do write ln to denote the natural-logarithm operator, though.
    – Mico
    2 hours ago








  • 1




    @Mico Fixed! Thanks for spotting this!
    – samcarter
    2 hours ago










  • Don't forget the ln in the first list item...
    – Mico
    2 hours ago










  • @Mico Arggg, thanks again!
    – samcarter
    2 hours ago













up vote
6
down vote










up vote
6
down vote









The main problem: You must not have empty lines within equation



Some further comments:




  • you don't need usetheme{default}, as the name says it is loaded by default


  • you don't need usepackge{graphicx} with beamer


  • to split your equation over multiple lines, you can for example use begin{split}...end{split}


  • are you misusing x for multiplication?


  • the syntax for items is item text (without {})


  • glqq and grqq are not defined in your code.


  • use ln for logarithm (Thanks to @Mico for spotting this!)





 documentclass[draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
%usetheme{default}
usepackage{amsmath}
usepackage{tikz}%, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}
frametitle{Explanation of the Papers Regression Function for Modern versus Traditional Manufacturing}

begin{equation}
begin{split}
ln(text{wage}_{jn}) =beta_1 S_n+beta_2 times I^{M}_j+gamma_1h_n+gamma_2h_n times I^{M}_j+delta_1boldsymbol{X}_n+\
delta_2boldsymbol{X}_n times I^{M}_j+ alpha_j +alpha_n +xi_jn
end{split}
end{equation}

begin{itemize}
item $ln(text{wage}_{jn})$ = Proxy for firm productivity.
item $S_n$ = Represents proxies for knowledge elites in location n.
item $I^{M}_j$ = Indicator variable that takes on value 1 if sector j is ``modern''.
item $h_n$ = Denotes proxies for average human capital, such as literacy and schooling.
item $boldsymbol{X}_n$ = Vector of control variables.
item $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and location fixed effects ($alpha_n$).
item$xi_n$ = Error term.
end{itemize}

end{frame}

end{document}


enter image description here






share|improve this answer














The main problem: You must not have empty lines within equation



Some further comments:




  • you don't need usetheme{default}, as the name says it is loaded by default


  • you don't need usepackge{graphicx} with beamer


  • to split your equation over multiple lines, you can for example use begin{split}...end{split}


  • are you misusing x for multiplication?


  • the syntax for items is item text (without {})


  • glqq and grqq are not defined in your code.


  • use ln for logarithm (Thanks to @Mico for spotting this!)





 documentclass[draft=on,t,compress,11pt,xcolor=dvipsnames]{beamer}
%usetheme{default}
usepackage{amsmath}
usepackage{tikz}%, graphicx}
usepackage{lmodern} % <--- those two packages help when you use
usepackage[T1]{fontenc} % the default font LaTeX font

begin{document}

begin{frame}
frametitle{Explanation of the Papers Regression Function for Modern versus Traditional Manufacturing}

begin{equation}
begin{split}
ln(text{wage}_{jn}) =beta_1 S_n+beta_2 times I^{M}_j+gamma_1h_n+gamma_2h_n times I^{M}_j+delta_1boldsymbol{X}_n+\
delta_2boldsymbol{X}_n times I^{M}_j+ alpha_j +alpha_n +xi_jn
end{split}
end{equation}

begin{itemize}
item $ln(text{wage}_{jn})$ = Proxy for firm productivity.
item $S_n$ = Represents proxies for knowledge elites in location n.
item $I^{M}_j$ = Indicator variable that takes on value 1 if sector j is ``modern''.
item $h_n$ = Denotes proxies for average human capital, such as literacy and schooling.
item $boldsymbol{X}_n$ = Vector of control variables.
item $alpha_j$ and $alpha_n$ = Sector fixed effects ($alpha_j$) and location fixed effects ($alpha_n$).
item$xi_n$ = Error term.
end{itemize}

end{frame}

end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 hours ago

























answered 5 hours ago









samcarter

83.8k794269




83.8k794269












  • Thanks for the great comment. Fixed everything the way you said and it works perfect. PS: The authors of the paper used x as a connection indicator of two variables. Questioned myself if this is a good way to state things but since it is published in one of the main economic journals, this seems to be on purpose.
    – mugdi
    5 hours ago








  • 1




    +1. Do write ln to denote the natural-logarithm operator, though.
    – Mico
    2 hours ago








  • 1




    @Mico Fixed! Thanks for spotting this!
    – samcarter
    2 hours ago










  • Don't forget the ln in the first list item...
    – Mico
    2 hours ago










  • @Mico Arggg, thanks again!
    – samcarter
    2 hours ago


















  • Thanks for the great comment. Fixed everything the way you said and it works perfect. PS: The authors of the paper used x as a connection indicator of two variables. Questioned myself if this is a good way to state things but since it is published in one of the main economic journals, this seems to be on purpose.
    – mugdi
    5 hours ago








  • 1




    +1. Do write ln to denote the natural-logarithm operator, though.
    – Mico
    2 hours ago








  • 1




    @Mico Fixed! Thanks for spotting this!
    – samcarter
    2 hours ago










  • Don't forget the ln in the first list item...
    – Mico
    2 hours ago










  • @Mico Arggg, thanks again!
    – samcarter
    2 hours ago
















Thanks for the great comment. Fixed everything the way you said and it works perfect. PS: The authors of the paper used x as a connection indicator of two variables. Questioned myself if this is a good way to state things but since it is published in one of the main economic journals, this seems to be on purpose.
– mugdi
5 hours ago






Thanks for the great comment. Fixed everything the way you said and it works perfect. PS: The authors of the paper used x as a connection indicator of two variables. Questioned myself if this is a good way to state things but since it is published in one of the main economic journals, this seems to be on purpose.
– mugdi
5 hours ago






1




1




+1. Do write ln to denote the natural-logarithm operator, though.
– Mico
2 hours ago






+1. Do write ln to denote the natural-logarithm operator, though.
– Mico
2 hours ago






1




1




@Mico Fixed! Thanks for spotting this!
– samcarter
2 hours ago




@Mico Fixed! Thanks for spotting this!
– samcarter
2 hours ago












Don't forget the ln in the first list item...
– Mico
2 hours ago




Don't forget the ln in the first list item...
– Mico
2 hours ago












@Mico Arggg, thanks again!
– samcarter
2 hours ago




@Mico Arggg, thanks again!
– samcarter
2 hours ago










mugdi is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















mugdi is a new contributor. Be nice, and check out our Code of Conduct.













mugdi is a new contributor. Be nice, and check out our Code of Conduct.












mugdi is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464501%2fbeamer-class-missing-inserted-bad-math-environment-math-mode-should-end-wi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What visual should I use to simply compare current year value vs last year in Power BI desktop

Alexandru Averescu

Trompette piccolo