I'm compiling a doc and I get the following error no matter what I try.

LaTeX Warning: Reference `LastPage' on page 4 undefined on input line 256.

<use logo.jpg> [4 <./picture4.png> <./picture4.png>]
! Missing number, treated as zero.
<to be read again> 
l.285 ...5cm} | p{1.25cm} | p{3.0cm} | p{4.5cm} |}

! Illegal unit of measure (pt inserted).
<to be read again> 
l.285 ...5cm} | p{1.25cm} | p{3.0cm} | p{4.5cm} |}

Runaway argument?

! File ended while scanning use of \TX@get@body.
<inserted text> 
<*> Input_API.tex

Yes, I have googled and searched this (and other) sites for an answer to this. Snarky comments not required.

Here are my packages

%% Doc Class Declaration %%

%% Additional packages to use %%

%% These packages are symbols %%

%% Word wrap in tables %%

%% Other Stuff

I have other tex docs that are highly similar to this one that compile fine. For the life of me I cannot pinpoint the diff.

Here is the block of code just before line 256.

\caption{blah blah blah text.}
\label{fig:Picture number Four}

Any help or guidance is much appreciated.

UPDATE 1: Full tabularx env for Xavier

\subsection{API Actions}
\begin{tabularx}{ | p{2.5cm} | p{1.25cm} | p{3.0cm} | p{4.5cm} |}
\textbf{Action} & \textbf{(C)reate (U)pdate} & \textbf{Params} & \textbf{Comments}\\ \hline
place\_order & CU & order\_id & Orders can be placed as though
 specific customers were driving the form.\\ \hline
submit\_order & U & order\_id & Submits the specified order. Order submit
constraints must be met (e.g. if you have "charge code" as a
 required field and the order has no "charge code",
then the API request will fail. \\ \hline
order\_purchasing\_information & U & order\_id & Updates am order's purchasing information.
The billing address, shipping address, purchase contact,
and charge code information may be set via this action. \\ \hline
user\_address &  CU & address\_id, type, user\_id & Creates or updates a user address.
If creating a new address you must supply the type and user\_id parameters,
where type is S (shipping), B (billing) or P (purchase contact).
If updating an existing address only the address\_id parameter is required. \\ \hline
primer & CU & primer\_id & \\ \hline
instrument & C & instrument\_id & \\ \hline
user & CU & user\_id & \\ \hline
lab\_group  & CU & lab\_group\_id & \\ \hline
charge\_code & CU & charge\_code\_id & \\ \hline
template & CU & tempalte\_id & \\ \hline
container\_map & U & container\_id & This action updates the location map (a two-column text string that maps container locations to template barcode) for an existing container. Useful for automatically updating the contents of a plate that was just scanned by a bed scanner. \\ \hline
inventory\_item & CU & & inventory\_item\_id \\ \hline
update\_template\_step & U & template\_id (\textit{n}-many) & Updates the step of a supplied list of tempaltes to
the next step in their workflow. \\ \hline
update\_container\_step & U & container\_id (\textit{n}-many) & Updates the step of a list of provided containers.\\

closed as too localized by Xavier, Mensch, Thorsten, Paul Stanley, Andrew Swann May 1 '13 at 11:08

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – Peter Grill Apr 30 '13 at 3:02
  • Seconding what Peter said, make sure to remove all irrelevant packages, i.e. all packages that whose inclusion isn’t necessary for the reproduction of the problem. (Also see my answer to the MWE question Peter linked to.) – doncherry Apr 30 '13 at 3:05
  • On line 256 you get a warning not an error, so the real problem in not on that line. The first error message suggests there's something wrong with some tabular material around line 285. Please check that line. – Gonzalo Medina Apr 30 '13 at 3:53
  • @Peter and doncherry - While working on an MWE I discovered that the png I'm using in figure 4 may be corrupt. That could be the source of the problem. I'll keep working on a good MWE unless I solve it. Thanks for your pointers thus far. – user1883857 Apr 30 '13 at 4:31
  • 1
    Please include the complete tabularx environment that is included around the lines causing the error. – Werner Apr 30 '13 at 5:48

You forgot to specify the width of the tabularx environment - a requirement:

\begin{tabularx}{<width>}{<col spec>}

However, you're not using any X-columns - the special stretchable columns within tabularx. So, I suggest just removing the use of tabularx altogether, and use a traditional tabular.

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