PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : eigener Befehl in \parbox geht nicht



vogel
30-03-2005, 12:26
Hallo,


für eine mehrseitige Tabelle wollte ich zusammengehörige Einträge zusammenlassen, indem ich sie in eine parbox setzte. Das hat auch ganz gut geklappt.

zunächst der Quellcode für mein Problem :

%------------Preamble-------------------------------------------------------------
\documentclass[a4paper,10pt]{book}
\usepackage{supertabular}
\usepackage{ifthen}

%defining the style of a heading
\newcommand{\headingone}{\bf \Large}
\newcommand{\headingtwo}{\bf \large}
\newcommand{\headingthree}{\bf \normalsize}

%variables for the headings in the table
\newtoks\firstheading
\newtoks\secondheading
\newtoks\thirdheading

%command to make a heading and to set the variables above
%gets the name of the heading
\newcommand{\SETheading}[2]{%
\ifthenelse{1=#1}{%
\global\firstheading={#2}%
\headingone\the\firstheading\\%
\tablehead{\headingone\the\firstheading\\}%
}{}%
\ifthenelse{2=#1}{%
\global\secondheading={#2}%
\headingtwo\the\secondheading%
\tablehead{\headingone\the\firstheading\\%
\headingtwo\the\secondheading\\}%
}{}%
\ifthenelse{3=#1}{%
\global\thirdheading={#2}%
&\headingthree\the\thirdheading\\%
\tablehead{\headingone\the\firstheading\\%
\headingtwo\the\secondheading%
&\headingthree\the\thirdheading\\}%
}{}%
}%
\newcommand{\ENDheading}[1]{
\ifthenelse{1=#1}{\tablehead{}
}{}
\ifthenelse{2=#1}{\tablehead{\headingone\the\first heading\\ }
}{}
\ifthenelse{3=#1}{\tablehead{\headingone \the\firstheading\\
\headingtwo \the\secondheading \\ }
}{}
}
%----------------------------------------------------------------------------------
\begin{document}
\begin{supertabular}{|p{5.5cm}|p{6.5cm}|}
% \begin{supertabular}{ll}
\SETheading{1}{EDV-Erfahrung}%
\SETheading{2}{Betriebssysteme}%
\SETheading{3}{Unix-Derivate}%
% \ENDheading{2}
Hallo1\\
Hallo2\\
Hallo3\\
Hallo4\\
Hallo5\\
Hallo6\\
Hallo7\\
Hallo8\\
Hallo9\\
Hallo10\\
Hallo11\\
Hallo12\\
Hallo13\\
Hallo14\\
Hallo15\\
Hallo16\\
Hallo17\\
Hallo18\\
Hallo19\\
Hallo20\\
Hallo21\\
Hallo22\\
Hallo23\\
Hallo24\\
Hallo25\\
Hallo26\\
Hallo27\\
Hallo28\\
Hallo29\\
Hallo30\\
Hallo31\\
Hallo32\\
Hallo33\\
Hallo34\\
Hallo35\\
Hallo36\\
Hallo37\\
Hallo38\\
&\parbox[b]{4.5cm}{
\SETheading{3}{Ueberschrift}%das geht nicht !!!
Hallo39\\
Hallo40\\
Hallo41\\
Hallo42\\
Hallo43\\
Hallo44\\
Hallo45\\
Hallo46\\
Hallo47
}\\
Hallo48\\
Hallo49\\
Hallo50\\
Hallo51\\
Hallo52\\
Hallo53\\
Hallo54\\
Hallo55\\
Hallo56\\
Hallo57\\
Hallo58\\
Hallo59\\
Hallo60\\
Hallo61\\
Hallo62\\
Hallo63\\
\end{supertabular}
\end{document}

++++++++++++++++++++++++++++++++++++++++++++++++++ +

Nun hatte ich mir eine eigenen Befehl \SETheading{1}{Titel} definiert, der eine Überschrift der Größe 1 (vorher definiert) liefert. Will ich diesen Befehl mit in die Parbox reinnehmen, weil die Überschrift inhaltlich dazugehört, dann gibts 'ne lange Liste von Fehlermeldungen.

Was mache ich (hier) falsch ?