von KOMA » Mi 15. Okt 2008, 10:24
Ich würde in dem Fall ja einfach gleich von Anfang an im Querformat arbeiten:
\documentclass[paper=a4,paper=landscape,fontsize=13pt,pagesize,DIV=20]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tabularx}
\usepackage{booktabs}
\let\raggedsection\centering
\newcolumntype{L}{>{\raggedright}X}
\pagestyle{empty}
\begin{document}
\section*{Windersemester 2008/2009}
\begin{tabularx}{\textwidth}{c|LlLlLlLlLl}
Zeit & Montag && Dienstag && Mittwoch && Donnerstag && Freitag \tabularnewline
\midrule
08--09 & erstes Fach\\Raum &V& && erstes Fach\\Raum &V& \tabularnewline
09--10 & erstes Fach\\Raum &V& zweites Fach\\Raum &V& erstes Fach\\Raum &V&
\tabularnewline
\midrule
10--11 & && zweites Fach\\Raum &V \tabularnewline
11--12 \tabularnewline
\midrule
12--13 & && && && && zweites Fach\\Raum &Ü\tabularnewline
13--14 & && && && && zweites Fach\\Raum &Ü\tabularnewline
\midrule
\end{tabularx}
\end{document}
Darauf aufbauend könnte man dann die Eingabe auch noch etwas komfortabler machen:
\documentclass[paper=a4,paper=landscape,fontsize=13pt,pagesize,DIV=20]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tabularx}
\usepackage{booktabs}
\let\raggedsection\centering
\newcolumntype{L}{>{\centering}X}
\makeatletter
\newcommand*{\saved@tabularx}{}
\newcounter{tabrow}
\newenvironment{Stundenplan}{%
\gdef\saved@tabularx{%
Zeit & Montag && Dienstag && Mittwoch && Donnerstag && Freitag &
\tabularnewline
}%
\setcounter{tabrow}{0}%
}{%
\g@addto@macro\saved@tabularx{\bottomrule}%
\begin{tabularx}{\textwidth}{c|LlLlLlLlLl}%
\saved@tabularx
\end{tabularx}
}
\newcommand*{\Zeile}[6]{%
\stepcounter{tabrow}\ifodd\value{tabrow}%
\g@addto@macro\saved@tabularx{\midrule}
\fi
\g@addto@macro\saved@tabularx{#1&}%
\Tag#2\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#3\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#4\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#5\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#6\@empty\@empty\@empty\g@addto@macro\saved@tabularx{\tabularnewline}%
}
\newcommand*{\Normalzeile}{%
\stepcounter{tabrow}\ifodd\value{tabrow}%
\g@addto@macro\saved@tabularx{\midrule}
\fi
\g@addto@macro\saved@tabularx
}
\newcommand*{\Tag}[3]{%
\g@addto@macro\saved@tabularx{#2\strut\@centercr#3}%
}
\pagestyle{empty}
\begin{document}
\section*{Windersemester 2008/2009}
\begin{Stundenplan}
\Zeile{08--09}{V{erstes Fach}{Raum}}{}{V{erstes Fach}{Raum}}{}{}
\Zeile{09--10}{V{erstes Fach}{Raum}}{V{zweites Fach}{Raum}}{V{erstes
Fach}{Raum}}{}{}
\Zeile{10--11}{V{zweites Fach}{Raum}}{}{}{}{}
\Zeile{11--12}{}{}{}{}{}
\Zeile{12--13}{}{}{}{}{Ü{zweites Fach}{Raum}}
\Zeile{13--14}{}{}{}{}{Ü{zweites Fach}{Raum}}
\Zeile{14--15}{}{}{}{}{}
\Zeile{15--16}{}{}{}{}{}
\Zeile{17--18}{}{}{}{}{}
\Zeile{}{}{}{}{}{}
\Normalzeile{%
Übungszettel: & && drittes Fach && erstes Fach && && \tabularnewline}
\end{Stundenplan}
\end{document}
Viele andere Lösungsansätze sind denkbar. So könnte man beispielsweise ein Gitter mit einer picture-Umgebung bauen und die einzelnen Felder direkt per Anweisung ansteuern.
Ich würde in dem Fall ja einfach gleich von Anfang an im Querformat arbeiten:
[code]\documentclass[paper=a4,paper=landscape,fontsize=13pt,pagesize,DIV=20]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tabularx}
\usepackage{booktabs}
\let\raggedsection\centering
\newcolumntype{L}{>{\raggedright}X}
\pagestyle{empty}
\begin{document}
\section*{Windersemester 2008/2009}
\begin{tabularx}{\textwidth}{c|LlLlLlLlLl}
Zeit & Montag && Dienstag && Mittwoch && Donnerstag && Freitag \tabularnewline
\midrule
08--09 & erstes Fach\\Raum &V& && erstes Fach\\Raum &V& \tabularnewline
09--10 & erstes Fach\\Raum &V& zweites Fach\\Raum &V& erstes Fach\\Raum &V&
\tabularnewline
\midrule
10--11 & && zweites Fach\\Raum &V \tabularnewline
11--12 \tabularnewline
\midrule
12--13 & && && && && zweites Fach\\Raum &Ü\tabularnewline
13--14 & && && && && zweites Fach\\Raum &Ü\tabularnewline
\midrule
\end{tabularx}
\end{document}[/code]
Darauf aufbauend könnte man dann die Eingabe auch noch etwas komfortabler machen:
[code]\documentclass[paper=a4,paper=landscape,fontsize=13pt,pagesize,DIV=20]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tabularx}
\usepackage{booktabs}
\let\raggedsection\centering
\newcolumntype{L}{>{\centering}X}
\makeatletter
\newcommand*{\saved@tabularx}{}
\newcounter{tabrow}
\newenvironment{Stundenplan}{%
\gdef\saved@tabularx{%
Zeit & Montag && Dienstag && Mittwoch && Donnerstag && Freitag &
\tabularnewline
}%
\setcounter{tabrow}{0}%
}{%
\g@addto@macro\saved@tabularx{\bottomrule}%
\begin{tabularx}{\textwidth}{c|LlLlLlLlLl}%
\saved@tabularx
\end{tabularx}
}
\newcommand*{\Zeile}[6]{%
\stepcounter{tabrow}\ifodd\value{tabrow}%
\g@addto@macro\saved@tabularx{\midrule}
\fi
\g@addto@macro\saved@tabularx{#1&}%
\Tag#2\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#3\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#4\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#5\@empty\@empty\@empty\g@addto@macro\saved@tabularx{&}%
\Tag#6\@empty\@empty\@empty\g@addto@macro\saved@tabularx{\tabularnewline}%
}
\newcommand*{\Normalzeile}{%
\stepcounter{tabrow}\ifodd\value{tabrow}%
\g@addto@macro\saved@tabularx{\midrule}
\fi
\g@addto@macro\saved@tabularx
}
\newcommand*{\Tag}[3]{%
\g@addto@macro\saved@tabularx{#2\strut\@centercr#3}%
}
\pagestyle{empty}
\begin{document}
\section*{Windersemester 2008/2009}
\begin{Stundenplan}
\Zeile{08--09}{V{erstes Fach}{Raum}}{}{V{erstes Fach}{Raum}}{}{}
\Zeile{09--10}{V{erstes Fach}{Raum}}{V{zweites Fach}{Raum}}{V{erstes
Fach}{Raum}}{}{}
\Zeile{10--11}{V{zweites Fach}{Raum}}{}{}{}{}
\Zeile{11--12}{}{}{}{}{}
\Zeile{12--13}{}{}{}{}{Ü{zweites Fach}{Raum}}
\Zeile{13--14}{}{}{}{}{Ü{zweites Fach}{Raum}}
\Zeile{14--15}{}{}{}{}{}
\Zeile{15--16}{}{}{}{}{}
\Zeile{17--18}{}{}{}{}{}
\Zeile{}{}{}{}{}{}
\Normalzeile{%
Übungszettel: & && drittes Fach && erstes Fach && && \tabularnewline}
\end{Stundenplan}
\end{document}[/code]
Viele andere Lösungsansätze sind denkbar. So könnte man beispielsweise ein Gitter mit einer picture-Umgebung bauen und die einzelnen Felder direkt per Anweisung ansteuern.