Featured Book

LaTeX Beginners Guide

Who is online

In total there are 26 users online :: 1 registered, 0 hidden and 25 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: Majestic-12 [Bot] and 25 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

\hline errors

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

\hline errors

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 writeLaTeX
\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

Re: \hline errors

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: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany


Return to General

Who is online

Users browsing this forum: Majestic-12 [Bot] and 25 guests