vogel
01-04-2005, 13:42
Hallo,
ich habe eine Supertabular,
und wollte zwischen die Zeilen \hline bzw. \cline machen.
Leider überlagern diese die Schrift in einer für Latex unschönen Weise.
Vielleicht hat ja jemand ne Idee warum, hier der Quellcode :
%------------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}
\newenvironment{headingone}{\bf \Large}{\rm \normalsize}
\newenvironment{headingtwo}{\bf \large}{\rm \normalsize}
\newenvironment{headingbthree}{\bf \normalsize}{\rm \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}%
\begin{headingone}\the\firstheading\end{headingone }\\%
\tablehead{\begin{headingone}\the\firstheading\end {headingone}\\}%
}{}%
\ifthenelse{2=#1}{%
\global\secondheading={#2}%
\begin{headingtwo}\the\secondheading\end{headingtw o}%
\tablehead{\begin{headingone}\the\firstheading\end {headingone}\\%
\begin{headingtwo}\the\secondheading\end{headingtw o}\\}%
}{}%
\ifthenelse{3=#1}{%
\global\thirdheading={#2}%
\begin{headingthree}\the\thirdheading\end{headingt hree}\\%
\tablehead{\begin{headingone}\the\firstheading\end {headingone}\\%
\begin{headingtwo}\the\secondheading\end{headingtw o}%
&\begin{headingthree}\the\thirdheading\end{headingt hree}\\}%
}{}%
}%
\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{6.5cm}|p{6.5cm}|}
% \begin{supertabular}{ll}
\cline{1-1}
\SETheading{1}{Ueberschrift1}%
\\\hline
\SETheading{2}{Ueberschrift2}%
&\SETheading{3}{Ueberschrift3}%
\\\hline
% \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\\
Hallo39\\
Hallo40\\
Hallo41\\
Hallo42\\
\end{supertabular}
\end{document}
ich habe eine Supertabular,
und wollte zwischen die Zeilen \hline bzw. \cline machen.
Leider überlagern diese die Schrift in einer für Latex unschönen Weise.
Vielleicht hat ja jemand ne Idee warum, hier der Quellcode :
%------------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}
\newenvironment{headingone}{\bf \Large}{\rm \normalsize}
\newenvironment{headingtwo}{\bf \large}{\rm \normalsize}
\newenvironment{headingbthree}{\bf \normalsize}{\rm \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}%
\begin{headingone}\the\firstheading\end{headingone }\\%
\tablehead{\begin{headingone}\the\firstheading\end {headingone}\\}%
}{}%
\ifthenelse{2=#1}{%
\global\secondheading={#2}%
\begin{headingtwo}\the\secondheading\end{headingtw o}%
\tablehead{\begin{headingone}\the\firstheading\end {headingone}\\%
\begin{headingtwo}\the\secondheading\end{headingtw o}\\}%
}{}%
\ifthenelse{3=#1}{%
\global\thirdheading={#2}%
\begin{headingthree}\the\thirdheading\end{headingt hree}\\%
\tablehead{\begin{headingone}\the\firstheading\end {headingone}\\%
\begin{headingtwo}\the\secondheading\end{headingtw o}%
&\begin{headingthree}\the\thirdheading\end{headingt hree}\\}%
}{}%
}%
\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{6.5cm}|p{6.5cm}|}
% \begin{supertabular}{ll}
\cline{1-1}
\SETheading{1}{Ueberschrift1}%
\\\hline
\SETheading{2}{Ueberschrift2}%
&\SETheading{3}{Ueberschrift3}%
\\\hline
% \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\\
Hallo39\\
Hallo40\\
Hallo41\\
Hallo42\\
\end{supertabular}
\end{document}