2

I'm new to Latex and really learning the nuances as I go.

My document was compiling fine, until all of a sudden, it wasn't. I'm using the {longtable} command. I get the following error message:

Package array Error: Illegal pream-token (1): `c' used. ...}{Here, we are inputting g(x) into f(x).}

at this point in my code:

& & \multicolumn{1}{l}{Here, we are inputting g(x) into f(x).} \\ 

My code as a whole looks something like:

\usepackage{longtable}
\usepackage{pbox}
\usepackage{array}
\usepackage[margin=1in]{geometry}
...other stuff....
\begin{center}
\begin{longtable}{ m{4.5em}|c|c } 
...table stuff...
& & \\
& & \multicolumn{1}{l}{Here, we are inputting g(x) into f(x).} \\ 

Again, it was working perfectly fine, but then suddenly it started flagging errors out of seemingly nowhere.

What is Latex trying to tell me?

closed as off-topic by David Carlisle, Torbjørn T., Kurt, OSjerick, Sean Allred Nov 7 '15 at 23:51

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    In the code fragment you show have used l for left alignment but the error message says you had used 1 (one) by mistake. – David Carlisle Oct 14 '15 at 7:58
  • unreleated but are you sure that shouldn't be $g(x)$ into $f(x)$ ? – David Carlisle Oct 14 '15 at 7:59
  • @DavidCarlisle Answer or close? – Torbjørn T. Nov 7 '15 at 22:12
  • @TorbjørnT. close, just typo (I voted) – David Carlisle Nov 7 '15 at 23:06
  • 4
    I'm voting to close this question as off-topic because simple 1/l typo – David Carlisle Nov 7 '15 at 23:07

Browse other questions tagged or ask your own question.