Graphics, Figures & TablesError message when I use a different computer.

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ChemistKatie
Posts: 14
Joined: Wed Sep 01, 2010 4:47 pm

Error message when I use a different computer.

Post by ChemistKatie »

Hi,

I am getting very frustrated with my report! It is the first thing I have written using Latex and I am finding certain things very difficult.

I was writting my script on one of the computers in my office. Unfortunately this PC is the only one for a few programmes so I had to move to another one. I opened up my .tex file and corrected a spelling mistake. When I compile my document I am getting the error message: "not in outer par mode" for the 25 tables I have in my report and lots of warnings about my references not being defined.

I really don't understand what has changed. I literally changed a spelling and nothing in the code?! Everything was working perfectly on the other PC.

This is a table I have copied directly from my code

Code: Select all

\documentclass[a4paper,12pt]{report}
\usepackage{caption}

\begin{document}

\begin{table}
\begin{tabular} {lllll}
\hline
&	x &	y &	z &	U$_{eq}$\\
\hline
 P(1)	 & 754.9(5) &	2317.7(4)	& 7316.8(3) &	192.4(12)\\
 O(1) &	2021.7(17) &	1160.2(11) &	7856.3(10) &	278(3)\\
 N(1) &	4256(2) &	8954.9(13) &	7548.7(12) &	283(3)\\
 O(2)	& -1010.1(15) &	2036.3(11) &	6697.6(10) &	273(3)\\
 C(2) &	50(2)	& 3540.0(15) &	8285.0(13) &	224(3)\\
 C(3)	& 328(2) &	4911.9(15) &	7545.9(13) &	222(3)\\
 O(4)	& 1527.7(16)	& 4878.8(10) &	6596.6(10) &	241(3)\\
 C(5)	& 2278(2) &	3563.1(15) &	6352.0(13) &	205(3)\\
 O(21) &	-1927.6(17) &	3427.6(13) &	8763.5(10) &	314(3)\\
 C(21) &	1442(3) & 3398.9(18) &	9252.4(15) &	312(4) \\
 O(31) &	-422.9(19) &	5966.7(12) &	7739.3(11) &	331(3)\\
 C(51) & 1991(3) &	3519.7(18) &	5107.5(14) &	293(4)\\
 C(52) &	4463(2) &	3401.8(15) &	6628.7(13) &	220(3)\\
 O(53) &	5417.4(16) &	2412.4(12) &	6201.0(11) &	317(3)\\
 O(54) &	5214.3(18) &	4116.8(13) &	7198.9(12) &	361(3)\\
 C(61)	& 6428(3)	& 9146.8(18) &	7668.8(18) &	385(5)\\
 C(62) &	6804(3)	 & 9757(2) &	8707(2)	& 465(5)\\
 C(63) &	3922(3) &	8559(2) &	6419.0(16) &	407(5)\\
 C(64) &	1778(3) &	8753(2) &	6101.7(18) &	451(5)\\
 C(65) &	3323(2) &	8009.7(16) &	8520.5(14) &	269(3)\\
 C(66) &	4343(3)	& 6625.6(17) &	8718.0(16) &	330(4)\\
\hline
\end{tabular}
\caption[Atomic co-ordinates ($\times$ 10$^{4}$) and equivalent isotropic displacement parameters for trieth-\textbf{3}.]{Atomic co-ordinates ($\times$ 10$^{4}$) and equivalent isotropic displacement parameters for trieth-\textbf{3}. (\AA\,$\times$ 10$^{4}$) with standard uncertainties (s.u.s) in parentheses. U$_{eq}$ is defined as 1/3 of the trace of the orthogonalized U$_{ij}$ tensor.}
\end{table}


\end{document}
When I put it in a separate document it works perfectly, yet in my thesis code it is one of the tables bringing up the "not in outer par mode" error.

Any suggestions would be appreciated.

Thanks,

Katie

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Error message when I use a different computer.

Post by frabjous »

Well, the problem certainly isn't with the code you posted, and probably has nothing to do with fixing the spelling mistake. It's hard to know without a real working example that generates the problem, but my guess is that when you switched computers, the auxiliary files that LaTeX uses when it compiles either got lost or screwed up. These are the files with extensions like *.aux, *.bbl, etc., in the directory; basically those files you did not create yourself.

My advice would be to delete all of these and try from scratch. (Back them up beforehand if you're nervous.) Remember that you need to run latex (and possibly bibtex and makeindex, etc., as well, depending on your document) multiple times for things like cross-references to work. (Getting the warning about undefined references therefore is perfectly normal, though it should go away after running bibtex and then (pdf)latex again a couple of times.)
ChemistKatie
Posts: 14
Joined: Wed Sep 01, 2010 4:47 pm

Re: Error message when I use a different computer.

Post by ChemistKatie »

Thanks!
Post Reply