From cb09d4185b6276ce45ba87c5fdd4818b99d45c09 Mon Sep 17 00:00:00 2001 From: Aada Date: Wed, 19 Jun 2024 23:02:37 +0200 Subject: Remove dead code and turn long stretches of stops into for loops --- rnv/heidelberg.tex | 64 ++++++++++++++++++++++++------------------------------ 1 file changed, 28 insertions(+), 36 deletions(-) diff --git a/rnv/heidelberg.tex b/rnv/heidelberg.tex index 7a292b4..348ef74 100644 --- a/rnv/heidelberg.tex +++ b/rnv/heidelberg.tex @@ -135,56 +135,57 @@ \node[stop2] (Brückenstr) at (3.2,2.1) {}; \node[stop2, above=0.3cm of Brückenstr] (Kußmaulstr) {}; \node[stop2, above=0.3cm of Kußmaulstr] (Blumenthalstr) {}; + % Handschuhsheim \node[stop2, rotate=45] (Kapellenweg) at ($(Blumenthalstr)+(-0.7,0.9)$) {}; \node[stop4] (Hans-Thoma-Platz) at ($(Heiligenbergschule)!0.5!(Kapellenweg)+(0,0.9)$) {}; \node[stop3, above=0.6cm of Hans-Thoma-Platz.two quarter, anchor=one half] (Biethsstr) {}; \node[stop3, above=0.6cm of Biethsstr.center, anchor=center] (Burgstr) {}; + % Bergheim \node[stop4, rotate=90] (Seegarten) at (2.3,-1.5) {}; \node[stop4, rotate=90] (Stadtbücherei) at (1.8,-1.5) {}; \node[stop3, rotate=90] (Stadtwerke) at (0.7,-1.4) {}; \node[stop1,rotate=45] (Gneisenaustr Süd) at ($(Hauptbahnhof.center)-(2.4,-1.5)$) {}; + % Wieblingen \node[stop1, rotate=45, above left=0.5cm of Gneisenaustr Süd.center, anchor=center] (Berufsschule) {}; \node[stop1, rotate=45, above left=0.5cm of Berufsschule.center, anchor=center] (Ochsenkopf) {}; \node[stop1] (SRH Campus) at ($(Ochsenkopf.center)-(0.3,-0.6)$){}; \node[stop1, above=0.3cm of SRH Campus] (Wieblingen Mitte) {}; \node[stop1, above=0.3cm of Wieblingen Mitte] (Taubenfeld) {}; + % Weststadt \node[stop2] (Römerkreis Süd) at (1.3,-2.1) {}; \node[stop2, rotate=45] (Christuskirche) at ($(Römerkreis Süd)-(-0.5,0.7)$) {}; - \node[stop2] (S-Bahnhof Weststadt-Südstadt) at ($(Christuskirche)-(-0.5,0.7)$) {}; - \node[stop2, below=0.3cm of S-Bahnhof Weststadt-Südstadt] (Bergfriedhof) {}; - \node[stop2, below=0.3cm of Bergfriedhof] (Bethanienkrankenhaus) {}; - \node[stop2, below=0.3cm of Bethanienkrankenhaus] (Rheinstr) {}; - \node[stop2, below=0.3cm of Rheinstr] (Markscheide) {}; - \node[stop2, below=0.3cm of Markscheide] (Eichendorffplatz) {}; - \node[stop2, below=0.3cm of Eichendorffplatz] (Rohrbach Markt) {}; - \node[stop2, below=0.3cm of Rohrbach Markt] (Ortenauer Str) {}; - \node[stop2, below=0.3cm of Ortenauer Str] (Freiburger Str) {}; - \node[stop2, below=0.3cm of Freiburger Str] (Rohrbach Süd) {}; - \node[stop1, below=0.4cm of Rohrbach Süd.two half] (Zementwerk) {}; - \node[stop1, below=0.3cm of Zementwerk] (Johannes-Reidel-Str) {}; - \node[stop1, below=0.3cm of Johannes-Reidel-Str] (Georgi-Marktplatz) {}; - \node[stop1, below=0.3cm of Georgi-Marktplatz] (Kurpfalzcentrum) {}; - \node[stop1, below=0.3cm of Kurpfalzcentrum] (Moltkestr) {}; - \node[stop1, below=0.3cm of Moltkestr] (Leimen Friedhof) {}; \node[stop1] (Ringstr) at ($(Stadtwerke.one half)-(-0.1,0.2)-(0.6,0.6)$) {}; \node[stop1, below left=0.3cm of Ringstr] (Montpellierbrücke) {}; + % Südstadt-Rohrbach + \node[stop2] (S-Bahnhof Weststadt-Südstadt) at ($(Christuskirche)-(-0.5,0.7)$) {}; + \def\laststop{S-Bahnhof Weststadt-Südstadt} + \foreach\stop in {Bergfriedhof,Bethanienkrankenhaus,Rheinstr,Markscheide,Eichendorffplatz,Rohrbach Markt,Ortenauer Str,Freiburger Str,Rohrbach Süd}{ + \expandafter\node[stop2, below=0.3cm of \laststop] (\stop) {}; + \xdef\laststop{\stop} + } + % Leimen + \node[stop1, below=0.4cm of Rohrbach Süd.two half] (Zementwerk) {}; + \def\laststop{Zementwerk} + \foreach\stop in {Johannes-Reidel-Str,Georgi-Marktplatz,Kurpfalzcentrum,Moltkestr,Leimen Friedhof}{ + \expandafter\node[stop1, below=0.3cm of \laststop] (\stop) {}; + \xdef\laststop{\stop} + } \node[stop2, rotate=45, anchor=two half] (Hauptbahnhof Süd) at (-1.5, -2.5) {}; \node[stop1] (Czernybrücke) at (-1.6, 0.2) {}; \node[stop2, rotate=45, anchor=two half] (Gadamerplatz) at (-2.7,-1.3) {}; \node[stop1, rotate=45, above left=0.7cm of Gadamerplatz.two half, anchor=center] (Eppelheimer Terrasse) {}; \node[stop1, anchor=center] (Henkel Teroson Str) at ($(Eppelheimer Terrasse)+(-0.5,0.5)-(0.3,0.0)$){}; - \node[stop1, left=0.3cm of Henkel Teroson Str] (Marktstr) {}; - \node[stop1, left=0.3cm of Marktstr] (Kranichweg Stotz) {}; - \node[stop1, left=0.3cm of Kranichweg Stotz] (Jakobsgasse) {}; - \node[stop1, left=0.3cm of Jakobsgasse] (Eppelheimer Rathaus) {}; - \node[stop1, left=0.3cm of Eppelheimer Rathaus] (Eppelheim Kirchheimer Str) {}; + \def\laststop{Henkel Teroson Str} + \foreach\stop in {Marktstr,Kranichweg Stotz,Jakobsgasse,Eppelheimer Rathaus,Eppelheim Kirchheimer Str}{ + \expandafter\node[stop1, left=0.3cm of \laststop] (\stop) {}; + \xdef\laststop{\stop} + } \node[stop1] (Rudolf-Diesel-Str) at ($(Hauptbahnhof Süd.one half)-(-0.8,0.8)-(0,0.3)$) {}; - \node[stop1, below=0.3cm of Rudolf-Diesel-Str] (Messplatz) {}; - \node[stop1, below=0.3cm of Messplatz] (Ilse-Krall-Str) {}; - \node[stop1, below=0.3cm of Ilse-Krall-Str] (Albert-Fritz-Str) {}; - \node[stop1, below=0.3cm of Albert-Fritz-Str] (Odenwaldstr) {}; - \node[stop1, below=0.3cm of Odenwaldstr] (Kirchheim Rathaus) {}; - \node[stop1, below=0.3cm of Kirchheim Rathaus] (Kirchheim Friedhof) {}; + \def\laststop{Rudolf-Diesel-Str} + \foreach\stop in {Messplatz,Ilse-Krall-Str,Albert-Fritz-Str,Odenwaldstr,Kirchheim Rathaus,Kirchheim Friedhof}{ + \expandafter\node[stop1, below=0.3cm of \laststop] (\stop) {}; + \xdef\laststop{\stop} + } \end{pgfonlayer} \begin{pgfonlayer}{lines} @@ -215,17 +216,13 @@ -- (Brückenstr.one half) -- (Bismarckplatz.north one half) -- (Bismarckplatz.one half) - % -- ($(Bismarckplatz.one half)-(45:0.10)$) -- ($(2.7,0.6)+(2*\offset,0)$) - % -- ($(Altes Hallenbad.south two half)+(0.9,0)$) {[rounded corners=0.2cm] - % -- ($(Bismarckplatz.south one half)-(0,0.1)$) -- (Altes Hallenbad.two half) } -- (Campus Bergheim.two half) -- (Volkshochschule.two half) -- (Betriebshof.two half) - % -- ($(Betriebshof.two half)-(1.0,0)$); -- ($(Czernybrücke)+(0.4,0.4)$) -- (Czernybrücke) -- ($(Gadamerplatz.one half)+(-0.2,0.2)$) @@ -241,9 +238,6 @@ -- (Kirchheim Friedhof) ; - % \draw (Technologiepark.north center) -- - % node[rotate=-45,stop2,name=Heiligenbergschule] {} (Hans-Thoma-Platz.south center); - \draw[line, twentyone] (Hauptbahnhof.two half) -- ($(Hauptbahnhof.north two half)-(0.1,0)$) @@ -270,7 +264,6 @@ -- (Campus Bergheim.one half) {[rounded corners=0.2cm] -- (Altes Hallenbad.one half) - % -- ($(Altes Hallenbad.south one half)+(1.3,0.0)$) } {[rounded corners=0.2cm] -| ($(Seegarten.south two half)+(0.2,0)$) @@ -352,7 +345,6 @@ {[rounded corners=0.15cm] -- ($(Römerkreis Süd.south one half)-(0,\offset)$) } - % (Römerkreis Süd.one half) |- (Stadtwerke.one half) {[rounded corners=0.3cm] -- ($(Hauptbahnhof.south one half)+(0.1,0)$) -- cgit v1.2.3