LaTeX users online

In total there are 30 users online :: 2 registered, 0 hidden and 28 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: Google [Bot], Yahoo [Bot] and 28 guests

\hline errors

LaTeX Forum: General

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

Postby evlabiba on Thu Mar 12th, 2009

Hello
Why do I get a "Misplaced \noalign" error message when I use \hline outside the tabular environment?

Code: Select all  •  Open in online LaTeX editor
\begin{document}
  \hline
  Hello, \TeX{}-perts!
  \hline
\end{document
}


I'm a MikTeX 2.7 user.

Thx.
evlabiba
 
Posts: 8
Joined: Sat Nov 15th, 2008

Postby localghost on Thu Mar 12th, 2009

evlabiba wrote:[...] Why do I get a "Misplaced \noalign" error message when I use \hline outside the tabular environment? [...]

It is simply not allowed to use this command outside a tabular environment. Replace \hline with \hrule and it will work.


Best regards
Thorsten¹
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9218
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany


Return to General

LaTeX users online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 28 guests