LaTeX forum ⇒ General\hline errors

LaTeX specific issues not fitting into one of the other forums of this category.
evlabiba
Posts: 8
Joined: Sat Nov 15, 2008 6:17 pm

\hline errors

Postby evlabiba » Thu Mar 12, 2009 6:30 pm

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

  1. \begin{document}
  2. \hline
  3. Hello, \TeX{}-perts!
  4. \hline
  5. \end{document}


I'm a MikTeX 2.7 user.

Thx.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Thu Mar 12, 2009 6:35 pm

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

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests