ich möchte in einer Tabelle mit zwei Spalten in der ersten gesamten Zeile (\multicolumn) eine Überschrift (\subsection) verwenden. Leider ist dies nicht so leicht. Mein Minimalbeispiel:
\documentclass[ pdftex, a4paper, 12pt, oneside, numbers=noenddot, parskip, final, headsepline, footsepline, idxtotoc, listof=totoc,]{scrbook} \begin{document} \begin{tabular}{|p{7.25cm}|p{7.25cm}|} \multicolumn{2}{|l|} \subsection{Das Minimalbeispiel} \\ Spalte 1 & Spalte 2 \\ \hline \end{tabular} \end{document}
Hierbei bekomme ich folgende Fehler:
... ! LaTeX Error: Something's wrong--perhaps a missing \item. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.107 \multicolumn{2}{|l|} \subsection {Das Minimalbeispiel} \\ Try typing <return> to proceed. If that doesn't work, type X <return> to quit. ! LaTeX Error: Something's wrong--perhaps a missing \item. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.107 \multicolumn{2}{|l|} \subsection {Das Minimalbeispiel} \\ Try typing <return> to proceed. If that doesn't work, type X <return> to quit. ! Package titlesec Error: Entered in horizontal mode. See the titlesec package documentation for explanation. Type H <return> for immediate help. ... l.107 \multicolumn{2}{|l|} \subsection {Das Minimalbeispiel} \\ The <format> argument cannot contain horizontal material such as text, \noindent, \makebox, etc. ...
Beim Verwenden von einer \subsection innerhalb einer \tabular (ohne \multicolumn) gitb es keine Probleme, aber dies entspricht leider nicht meinen Vorstellungen von der Tabelle. Kann mir jemand Helfen?
Im Vorraus bereits vielen Dank
Gruß
Melanie