Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 3
Problematik erläutert

14 Apr '15, 13:18

Basilius%20Sapientia's gravatar image

Basilius Sapientia
510163542

Schema sprich Terminkalender mit CSV in Tikz/LaTeX

Hallo ihr Lieben! Ich bin auf ein größeres Problem gestoßen. Ich würde so gerne einen schicken Kalender haben. Die Daten habe ich allerings nur im CSV Format. Ist es möglich mit Tikz einen solchen Kalender zu erstellen? **Hier die Daten** Lineare Algebra TÜ [Übungsraum (3322-316)],01/28/15,08:15:00,01/28/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/04/15,08:15:00,02/04/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/11/15,08:15:00,02/11/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/18/15,08:15:00,02/18/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/25/15,08:15:00,02/25/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],03/04/15,08:15:00,03/04/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],03/11/15,08:15:00,03/11/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],04/15/15,08:15:00,04/15/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],04/22/15,08:15:00,04/22/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],04/29/15,08:15:00,04/29/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/06/15,08:15:00,05/06/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/13/15,08:15:00,05/13/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/20/15,08:15:00,05/20/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/27/15,08:15:00,05/27/15,10:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],01/26/15,14:15:00,01/26/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/02/15,14:15:00,02/02/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/09/15,14:15:00,02/09/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/16/15,14:15:00,02/16/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/23/15,14:15:00,02/23/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],03/02/15,14:15:00,03/02/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],03/09/15,14:15:00,03/09/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],04/13/15,14:15:00,04/13/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],04/20/15,14:15:00,04/20/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],04/27/15,14:15:00,04/27/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/04/15,14:15:00,05/04/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/11/15,14:15:00,05/11/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/18/15,14:15:00,05/18/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/25/15,14:15:00,05/25/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],06/01/15,14:15:00,06/01/15,17:00:00 Wie kann ich diese Daten in ein Kalender umwandeln? Dies sind ja die Daten von dem 28.01.15 bis zu dem 01.06.15. Jede Woche kommt ein neues Schema (meist aber ähnelt die Studenzahlen einander). **Hier ist was ich bisher versucht habe** *Der Grundquelltext stammt von [Laurent Dutriauxs Arbeit][1], veröffentlicht am 06.05.2009.* %!TEX encoding = UTF-8 Unicode % Author: Laurent Dutriaux \documentclass[a4paper,11pt]{article} \usepackage{csvsimple} \usepackage[utf8]{inputenc} \usepackage{fourier} % Utilisation des polices texte \usepackage{tikz} \usetikzlibrary[positioning] \usetikzlibrary{patterns} \usepackage[french]{babel} % styles français \title{A simple Timetable} \author{Laurent Dutriaux} \date{\today} \newcommand{\daywidth}{2.2 cm} \begin{document} \maketitle \begin{tikzpicture}[x=\daywidth, y=-1cm, node distance=0 cm,outer sep = 0pt] % Style for Days \tikzstyle{day}=[draw, rectangle, minimum height=1cm, minimum width=\daywidth, fill=yellow!20,anchor=south west] % Style for hours \tikzstyle{hour}=[draw, rectangle, minimum height=1 cm, minimum width=1.5 cm, fill=yellow!30,anchor=north east] % Styles for events % Duration of sequences \tikzstyle{hours}=[rectangle,draw, minimum width=\daywidth, anchor=north west,text centered,text width=5 em] \tikzstyle{1hour}=[hours,minimum height=1cm] \tikzstyle{2hours}=[hours,minimum height=2cm] \tikzstyle{3hours}=[hours,minimum height=3cm] %Style for type of sequence \tikzstyle{Ang2h}=[2hours,fill=green!20] \tikzstyle{Phys2h}=[2hours,fill=red!20] \tikzstyle{Math2h}=[2hours,fill=blue!20] \tikzstyle{TIPE2h}=[2hours,fill=blue!10] \tikzstyle{TP2h}=[2hours, pattern=north east lines, pattern color=magenta] \tikzstyle{G3h}=[3hours, pattern=north west lines, pattern color=magenta!60!white] \tikzstyle{Planche}=[1hour,fill=white] % Positioning labels for days and hours \node[day] (lundi) at (1,8) {Lundi}; \node[day] (mardi) [right = of lundi] {Mardi}; \node[day] (mercredi) [right = of mardi] {Mercredi}; \node[day] (jeudi) [right = of mercredi] {Jeudi}; \node[day] (vendredi) [right = of jeudi] {Vendredi}; \node[hour] (8-9) at (1,8) {8-9}; \node[hour] (9-10) [below = of 8-9] {9-10}; \node[hour] (10-11) [below= of 9-10] {10-11}; \node[hour] (11-12) [below = of 10-11] {11-12}; \node[hour] (12-13) [below = of 11-12] {12-13}; \node[hour] (13-14) [below = of 12-13] {13-14}; \node[hour] (14-15) [below = of 13-14] {14-15}; \node[hour] (15-16) [below = of 14-15] {15-16}; \node[hour] (16-17) [below = of 15-16] {16-17}; \node[hour] (17-18) [below = of 16-17] {17-18}; \node[hour] (18-19) [below = of 17-18] {18-19}; %Position of sequences \node[Ang2h] at (1,10) {Anglais}; \node[Phys2h] at (1,8) {Physique}; \node[Phys2h] at (2,8) {Physique}; \node[Phys2h] at (4,8) {Physique}; \node[Phys2h] at (5,10) {Physique}; \node[Math2h] at (2,10) {Maths}; \node[Math2h] at (2,14) {Maths}; \node[Math2h] at (3,8) {Maths}; \node[Math2h] at (4,10) {Maths}; \node[Math2h] at (5,8) {Maths}; \node[TIPE2h] at (1,14) {TIPE}; \node[TIPE2h] at (1,16) {TIPE}; \node[TIPE2h] at (2,16) {TIPE}; \node[TIPE2h] at (3,10) {TIPE}; \node[TIPE2h] at (5,14) {TIPE}; \node[TIPE2h] at (5,16) {TIPE}; \node[TP2h] at (3,14) {Phys ou SI}; \node[TP2h] at (3,16) {SI ou Phys}; \node[Planche] at (1,13) {Planche}; \node[Planche] at (1,18) {Colle}; \node[Planche] at (4,13.5) {Planche}; \end{tikzpicture} \end{document} Hier ein Beispielphoto was ich mir gedacht habe. Nicht ganz so wie auf dem Photo, aber so in die Richtung. Eben wie ein normales Schema. ![Schema][2] **Problematik** - csv-Daten einlesen und verarbeiten und ausgeben - evtl. Kalenderfunktionen (rechnerisch) von TikZ nutzen **Gelöste Probleme** - Dieses tabellarische Schema zeichnen Ist das Möglich? Viele liebe Grüße! [1]: http://www.texample.net/tikz/examples/timetable/ [2]: http://texwelt.de/wissen/upfiles/Auswahl_001_1.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2
Quelltext

14 Apr '15, 13:11

Basilius%20Sapientia's gravatar image

Basilius Sapientia
510163542

Schema sprich Terminkalender mit CSV in Tikz/LaTeX

Hallo ihr Lieben! Ich bin auf ein größeres Problem gestoßen. Ich würde so gerne einen schicken Kalender haben. Die Daten habe ich allerings nur im CSV Format. Ist es möglich mit Tikz einen solchen Kalender zu erstellen? **Hier die Daten** Lineare Algebra TÜ [Übungsraum (3322-316)],01/28/15,08:15:00,01/28/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/04/15,08:15:00,02/04/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/11/15,08:15:00,02/11/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/18/15,08:15:00,02/18/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/25/15,08:15:00,02/25/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],03/04/15,08:15:00,03/04/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],03/11/15,08:15:00,03/11/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],04/15/15,08:15:00,04/15/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],04/22/15,08:15:00,04/22/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],04/29/15,08:15:00,04/29/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/06/15,08:15:00,05/06/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/13/15,08:15:00,05/13/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/20/15,08:15:00,05/20/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],05/27/15,08:15:00,05/27/15,10:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],01/26/15,14:15:00,01/26/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/02/15,14:15:00,02/02/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/09/15,14:15:00,02/09/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/16/15,14:15:00,02/16/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],02/23/15,14:15:00,02/23/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],03/02/15,14:15:00,03/02/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],03/09/15,14:15:00,03/09/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],04/13/15,14:15:00,04/13/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],04/20/15,14:15:00,04/20/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],04/27/15,14:15:00,04/27/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/04/15,14:15:00,05/04/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/11/15,14:15:00,05/11/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/18/15,14:15:00,05/18/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],05/25/15,14:15:00,05/25/15,17:00:00 Lineare Algebra Lab. [Übungsraum (2226-114)],06/01/15,14:15:00,06/01/15,17:00:00 Wie kann ich diese Daten in ein Kalender umwandeln? Dies sind ja die Daten von dem 28.01.15 bis zu dem 01.06.15. Jede Woche kommt ein neues Schema (meist aber ähnelt die Studenzahlen einander). **Hier ist was ich bisher versucht habe** \documentclass[11pt,a4paper]{standalone} *Der Grundquelltext stammt von [Laurent Dutriauxs Arbeit][1], veröffentlicht am 06.05.2009.* %!TEX encoding = UTF-8 Unicode % Author: Laurent Dutriaux \documentclass[a4paper,11pt]{article} \usepackage{csvsimple} \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} %\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \renewcommand{\author}{\author{Elinor Elfenbein}} \renewcommand{\title}{\textbf{\title{Hier ist das Schema von, für die Woche \author, der Y-Z.}}} \newcommand{\quartal}{X} \usepackage{fourier} % Utilisation des polices texte \usepackage{tikz} \usetikzlibrary{arrows,shapes,backgrounds} \pagestyle{empty} \usetikzlibrary[positioning] \usetikzlibrary{patterns} \usepackage[french]{babel} % styles français \title{A simple Timetable} \author{Laurent Dutriaux} \date{\today} \newcommand{\daywidth}{2.2 cm} \begin{document} \fontsize{100}{40}{\title} \begin{tikzpicture}[overlay] \draw (0,-2)--(22,-2); \draw (2,0)--(2, 38); \maketitle \begin{tikzpicture}[x=\daywidth, y=-1cm, node distance=0 cm,outer sep = 0pt] % Style for Days \tikzstyle{day}=[draw, rectangle, minimum height=1cm, minimum width=\daywidth, fill=yellow!20,anchor=south west] % Style for hours \tikzstyle{hour}=[draw, rectangle, minimum height=1 cm, minimum width=1.5 cm, fill=yellow!30,anchor=north east] % Styles for events % Duration of sequences \tikzstyle{hours}=[rectangle,draw, minimum width=\daywidth, anchor=north west,text centered,text width=5 em] \tikzstyle{1hour}=[hours,minimum height=1cm] \tikzstyle{2hours}=[hours,minimum height=2cm] \tikzstyle{3hours}=[hours,minimum height=3cm] %Style for type of sequence \tikzstyle{Ang2h}=[2hours,fill=green!20] \tikzstyle{Phys2h}=[2hours,fill=red!20] \tikzstyle{Math2h}=[2hours,fill=blue!20] \tikzstyle{TIPE2h}=[2hours,fill=blue!10] \tikzstyle{TP2h}=[2hours, pattern=north east lines, pattern color=magenta] \tikzstyle{G3h}=[3hours, pattern=north west lines, pattern color=magenta!60!white] \tikzstyle{Planche}=[1hour,fill=white] % Positioning labels for days and hours \node[day] (lundi) at (1,8) {Lundi}; \node[day] (mardi) [right = of lundi] {Mardi}; \node[day] (mercredi) [right = of mardi] {Mercredi}; \node[day] (jeudi) [right = of mercredi] {Jeudi}; \node[day] (vendredi) [right = of jeudi] {Vendredi}; \node[hour] (8-9) at (1,8) {8-9}; \node[hour] (9-10) [below = of 8-9] {9-10}; \node[hour] (10-11) [below= of 9-10] {10-11}; \node[hour] (11-12) [below = of 10-11] {11-12}; \node[hour] (12-13) [below = of 11-12] {12-13}; \node[hour] (13-14) [below = of 12-13] {13-14}; \node[hour] (14-15) [below = of 13-14] {14-15}; \node[hour] (15-16) [below = of 14-15] {15-16}; \node[hour] (16-17) [below = of 15-16] {16-17}; \node[hour] (17-18) [below = of 16-17] {17-18}; \node[hour] (18-19) [below = of 17-18] {18-19}; %Position of sequences \node[Ang2h] at (1,10) {Anglais}; \node[Phys2h] at (1,8) {Physique}; \node[Phys2h] at (2,8) {Physique}; \node[Phys2h] at (4,8) {Physique}; \node[Phys2h] at (5,10) {Physique}; \node[Math2h] at (2,10) {Maths}; \node[Math2h] at (2,14) {Maths}; \node[Math2h] at (3,8) {Maths}; \node[Math2h] at (4,10) {Maths}; \node[Math2h] at (5,8) {Maths}; \node[TIPE2h] at (1,14) {TIPE}; \node[TIPE2h] at (1,16) {TIPE}; \node[TIPE2h] at (2,16) {TIPE}; \node[TIPE2h] at (3,10) {TIPE}; \node[TIPE2h] at (5,14) {TIPE}; \node[TIPE2h] at (5,16) {TIPE}; \node[TP2h] at (3,14) {Phys ou SI}; \node[TP2h] at (3,16) {SI ou Phys}; \node[Planche] at (1,13) {Planche}; \node[Planche] at (1,18) {Colle}; \node[Planche] at (4,13.5) {Planche}; \end{tikzpicture} \end{document} \end{document} Hier ein Beispielphoto was ich mir gedacht habe. Nicht ganz so wie auf dem Photo, aber so in die Richtung. Eben wie ein normales Schema. ![Schema][1] ![Schema][2] Ist das Möglich? Viele liebe Grüße! [1]: http://www.texample.net/tikz/examples/timetable/ [2]: http://texwelt.de/wissen/upfiles/Auswahl_001_1.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

13 Apr '15, 20:04

Basilius%20Sapientia's gravatar image

Basilius Sapientia
510163542