Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

why doesn't my \cline work??

1,177 views
Skip to first unread message

Jonas Bofjall

unread,
Mar 3, 1997, 3:00:00 AM3/3/97
to

I have done the following table which begins:

--snip-

\begin{tabular}{*{16}{|c}|}
\hline
9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20 & 21 & 22 & 23 & 24\\
\cline{1-2} \cline{4-10} \cline{12-16}

--snip-

But when typesetting, I get the following error message:

--snip-

! Misplaced \omit.
\@cline #1-#2\@nil ->\omit
\@multicnt #1\advance \@multispan
...
l.47 \cline{1-2} \cline{4-10}
\cline{12-16}
?

--snip-

Now WHY is that?? I can't understand that pesky error message and I *tried*
RTFM (that is, Lamport's LaTeX and The LaTeX Companion)..

Thanks for any help!

// Jonas <j...@abc.se> [2:201/262.37]

David Carlisle

unread,
Mar 3, 1997, 3:00:00 AM3/3/97
to Jonas Bofjall

m9...@abc.se (Jonas Bofjall) writes:


I think you `snipped' to much, since when I tried to guess how to fill
in the blanks, it worked for me:


\documentclass{article}

\begin{document}


\begin{tabular}{*{16}{|c}|}
\hline
9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20 & 21 & 22 &
23 & 24\\
\cline{1-2} \cline{4-10} \cline{12-16}

\end{tabular}

\end{document}


you have not by any chance got \obeyspaces in operation?


David

Jonas Bofjall

unread,
Mar 4, 1997, 3:00:00 AM3/4/97
to

David Carlisle (carl...@karlo.zdv.uni-mainz.de) wrote:

> I think you `snipped' to much, since when I tried to guess
> how to fill in the blanks, it worked for me:

Sorry, that snippet worked for me as well. I just copied the line with
the error and everything before it, not after. Here is the whole
tabular (which *doesn't* work!):

--snip-

\documentclass{article}
\begin{document}

\begin{tabular}{*{16}{|c}|}
\hline
9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20 & 21 & 22 &
23 & 24\\
\cline{1-2} \cline{4-10} \cline{12-16}

\multicolumn{2}{|c|}{ljudteori} & &
\multicolumn{2}{|c|}{lab} &
\multicolumn{5}{|c|}{byggeri} & &
\multicolumn{2}{|c|}{m.asp.} &
\multicolumn{3}{|c|}{pres. opp.} \\
\cline{1-2} \cline{4-10} \cline{12-16} \\
\cline{2-5} \cline{8-14}
& \multicolumn{4}{|c|}{matteori} & & &
\multicolumn{5}{|c|}{matningar} &
\multicolumn{2}{|c|}{redigering} \\
\cline{2-5} \cline{8-14} \\
\cline{6-12}
& & & & & \multicolumn{7}{|c|}{matningsproblematik}\\
\cline{6-12} \\
\cline{3-14}
& & \multicolumn{12}{|c|}{rapportskrivning, studiebesok, intervjuer}\\
\cline{3-14}
\end{tabular}

\end{document}

--snip-

> you have not by any chance got \obeyspaces in operation?

I don't think so, but I don't what it is!

Camille-Aimé Possamaï

unread,
Mar 4, 1997, 3:00:00 AM3/4/97
to

Jonas Bofjall wrote:

> the error and everything before it, not after. Here is the whole
> tabular (which *doesn't* work!):
>

Quite strange. I have copied/pasted your code and it works fine.

--
======================================================================
Camille-Aim'e Possama"i \ T'el'ephone
Centre National de la Recherche Scientifique \ (+33) 91 16 43 27
Centre de Recherches en Neurosciences Cognitives \
31, chemin Joseph-Aiguier \ T'el'ecopie
F13402 Marseille cedex 20 - France \ (+33) 91 77 49 69
======== Adresse 'el'ectronique : cam...@sugiton.cnrs-mrs.fr ========

Jonas Bofjall

unread,
Mar 4, 1997, 3:00:00 AM3/4/97
to

Camille-Aimé Possama (cam...@sugiton.cnrs-mrs.fr) wrote:

> > the error and everything before it, not after. Here is the whole
> > tabular (which *doesn't* work!):
>
> Quite strange. I have copied/pasted your code and it works fine.

Yes, indeed. Very strange. Three persons have said now that it works fine
but i cannot get it to work under teTeX for SunOS, neither in Blue Sky
Research's TEXTURES for MacIntosh.

Always gives this error message:

This is TeX, Version 3.14159 (C version 6.1)
(burn-in-hell.tex
LaTeX2e <1996/12/01>
Babel <v3.6h> and hyphenation patterns for danish, catalan, croatian, dutch,
english, esperant, francais, german, icelandic, italian, norsk, polish,
portuges, russian, spanish, swedish, ukenglish, loaded.
(/usr/local/share/TeX/tetex/texmf/local/tex/latex/base/article.cls
Document Class: article 1996/10/31 v1.3u Standard LaTeX document class
(/usr/local/share/TeX/tetex/texmf/local/tex/latex/base/size10.clo))
(burn-in-hell.aux)


! Misplaced \omit.
\@cline #1-#2\@nil ->\omit

\@multicnt #1\advance \@multispan \m@ne \ifnum
\@...
l.14 \cline{1-2}^^a0\cline{4-10}
^^a0\cline{12-16} \\
?

J%org Knappen

unread,
Mar 5, 1997, 3:00:00 AM3/5/97
to

>l.14 \cline{1-2}^^a0\cline{4-10}
> ^^a0\cline{12-16} \\

You have an character encoding problem here, your & sign got
mangled to some control character (hex A0, decimal 128).
Replace the strange character with a true & sign, and your
problem should go away.

--J"org Knappen.

Camille-Aimé Possamaï

unread,
Mar 5, 1997, 3:00:00 AM3/5/97
to

Jonas Bofjall wrote:

>
> Camille-Aimé Possamaï (cam...@sugiton.cnrs-mrs.fr) wrote:
>
> > > the error and everything before it, not after. Here is the whole
> > > tabular (which *doesn't* work!):
> >
> > Quite strange. I have copied/pasted your code and it works fine.
>
> Always gives this error message:
>
> This is TeX, Version 3.14159 (C version 6.1)
> (burn-in-hell.tex
> LaTeX2e <1996/12/01>
> Babel <v3.6h> and hyphenation patterns for danish, catalan, croatian, dutch,

I don't use babel.

Could it be the reason?

Peter Fleischmann

unread,
Mar 19, 1997, 3:00:00 AM3/19/97
to

J%org Knappen (kna...@iphcip1.physik.uni-mainz.de) wrote:
: >l.14 \cline{1-2}^^a0\cline{4-10}
: > ^^a0\cline{12-16} \\

: You have an character encoding problem here, your & sign got
: mangled to some control character (hex A0, decimal 128).

should be 160 ^^^
: Replace the strange character with a true & sign, and your

0 new messages