1

I am using this:

\documentclass[12pt,letter paper] {article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[capposition=top]{floatrow}
\usepackage[a4paper,left=25mm,top=25mm,top=25mm,bottom=25mm]{geometry}
\usepackage{amsmath}
\begin{document} 


\begin{align*}
    {LogTAXREV}_{it} = {\alpha_{0}}+{\beta_{1}LogGDPPC_{it}}
    +{\beta_{2}LogTRADE_{it}}+{\beta_{3}LogRESOURCE_{it}}
   +{\beta_{4}LogAGRIC_{it}}+{\beta_{5}LogSERVICE_{it}}
   +{\beta_{6}LogAGE_{it}}+{\beta_{7}LogPOP_{it}}
   +{\beta_{8}LogEDUC_{it}}+{\beta_{9}LogGINI_{it}}
\end{align*}

\end{document}

I get this error: Argument of @fileswith@pti@ns has an extra } on the amsmath usepackage and my equation does not split.

6
  • 1
    That looks decidedly fishy to me: \usepackage[a4paper,left=25mm,top=25mm,top=25mm,bottom=25mm] Is the geometry package missing? Also not sure about the options for the article class. – Ingmar Feb 11 at 9:16
  • 1
    As far as I can see you're missing {geometry}. First fix that error. You should also remove all those wrong \emph commands. – egreg Feb 11 at 9:19
  • @Ingmar I am using latex first time and I am not sure as well. Let me recheck – J nyaboe Feb 11 at 9:19
  • It cant not compile.the \usepackage[a4paper,left=25mm,top=25mm,top=25mm,bottom=25mm] has no argument : {geometry}? \emph make not really sense in math mode. What are you expecting ? – gigiair Feb 11 at 9:39
  • @egreg Sorry the {geometry} was a typo. I have corrected that. the equation still not splitting and i am not getting a warning of "overfull box" on the equation. What else can i do? – J nyaboe Feb 11 at 9:39
1

Line 1: letter paper should be letterpaper, but you can omit it altogether, since you're declaring a4paper later.

Line 2: with a recent release of LaTeX available, this can be omitted.

Line 7: you're missing a trailing {geometry}, which is the cause of the first error you get.

In the main part, all those \emph declarations are wrong. And TeX won't split the long equation for you.

\documentclass[12pt] {article}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[capposition=top]{floatrow}
\usepackage[a4paper,left=25mm,top=25mm,top=25mm,bottom=25mm]{geometry}
\usepackage{amsmath}

\begin{document} 


\begin{align*}
  \mathit{LogTAXREV}_{\mathrm{it}} = \alpha_{0}
  &+\beta_{1}\mathit{LogGDPPC}_{\mathrm{it}}
   +\beta_{2}\mathit{LogTRADE}_{\mathrm{it}}
  \\
  &+\beta_{3}\mathit{LogRESOURCE}_{\mathrm{it}}
   +\beta_{4}\mathit{LogAGRIC}_{\mathrm{it}}
  \\
  &+\beta_{5}\mathit{LogSERVICE}_{\mathrm{it}}
   +\beta_{6}\mathit{LogAGE}_{\mathrm{it}}
  \\
  &+\beta_{7}\mathit{LogPOP}_{\mathrm{it}}
   +\beta_{8}\mathit{LogEDUC}_{\mathrm{it}}
  \\
  &+\beta_{9}\mathit{LogGINI}_{\mathrm{it}}
\end{align*}

\end{document}

enter image description here

1
  • This has worked, thank you very much – J nyaboe Feb 11 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.