Strange error regarding table in latex

In summary, the individual was having trouble creating a pdf file with Texmaker for a large document with many tables. They encountered an issue where Texmaker would not create the pdf file despite the code being correct. The problem was found to be a missing \ before the "end" in the code and was resolved with the help of another person.
  • #1
ladil123
45
0
Hello!

Im having trouble creating my pdf file with texmaker.
I have a large document and I have created many tables in my code.

But now when I have written the code below for a table texmaker won't create the pdf file when it should.
It only says "process started", but nothing happens?

Have anyone had a similair problem? Or have I missed something trivial in my code below?
Thanks!


\begin{table}[H]
\begin{center}
\begin{tabular}{ | l | c | }
\hline
Type & Setting \\ \hline
Average size & 0.07 \\ \hline
Minimum size & 0.08 \\ \hline
Grading factor & 1.2 \\ \hline
Maximum angle & 35\\ \hline
end{tabular}
\caption{\emph{bla bla.}\label{tab:meshtab}}
\end{center}
\end{table}
 
Physics news on Phys.org
  • #2
\begin{table}[H]
\begin{center}
\begin{tabular}{ | l | c | }
\hline
Type & Setting \\ \hline
Average size & 0.07 \\ \hline
Minimum size & 0.08 \\ \hline
Grading factor & 1.2 \\ \hline
Maximum angle & 35\\ \hline
end{tabular}
\caption{\emph{bla bla.}\label{tab:meshtab}}
\end{center}
\end{table}

You're missing a \ before end in the bold line.
 
  • #3
Thanks man!

That was lame of me... I have starred at this table for 30 minutes...

thanks
 
  • #4
ladil123 said:
That was lame of me... I have starred at this table for 30 minutes...

Haha, no worries. Sometimes it just takes a fresh set of eyes!
 

Related to Strange error regarding table in latex

1. What is causing the strange error regarding the table in LaTeX?

The most common cause of errors when creating tables in LaTeX is incorrect formatting, such as missing alignment symbols or incorrect use of special characters. It is important to carefully check the syntax of the table code for any mistakes.

2. How can I fix the strange error in my table in LaTeX?

To fix the error, first try to identify the specific line or code that is causing the issue. Then, carefully review the code for any mistakes or missing elements. It may also be helpful to refer to a LaTeX tutorial or consult online forums for assistance.

3. Why does the error only occur when I use certain commands in my table?

LaTeX has specific commands and syntax for creating tables, and not all commands may be compatible with each other. It is important to use commands that are appropriate for the type of table you are creating and to avoid mixing incompatible commands.

4. Can the strange error in my table be caused by a conflict with other packages or code in my LaTeX document?

Yes, it is possible that the error may be caused by a conflict with other packages or code in your document. It is recommended to carefully review all packages and code used in your document and ensure they are compatible with each other.

5. How can I prevent strange errors from occurring in my tables in the future?

To prevent errors in your tables, it is important to carefully check the syntax of your code and use commands and packages that are appropriate for the type of table you are creating. It may also be helpful to refer to LaTeX documentation or seek assistance from experienced LaTeX users.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
370
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
5K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
298
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
Back
Top