Document did not compile under Windows because `\lstinputlisting` was not able to...
authorRené Schwarz <mail@rene-schwarz.com>
Sun, 19 Oct 2014 20:57:35 +0000 (22:57 +0200)
committerRené Schwarz <mail@rene-schwarz.com>
Sun, 19 Oct 2014 20:57:35 +0000 (22:57 +0200)
src/acknowledgements.tex
src/common/configfiles.tex

index 7978982..8bb3b70 100644 (file)
@@ -27,6 +27,7 @@ Pichler, Patrick \\
 Riebesel, Nicolas \\
 Roeckx, Kurt \\
 Rublik, Martin \\
+Schwarz, René («DigNative») \\
 Seidl, Eva (PDF layout) \\
 Wagner, Sebastian («sebix») \\
 Zangerl, Alexander \\
index ff29f8c..fe30d06 100644 (file)
@@ -10,6 +10,7 @@
 %%    I need dis
 %%%
 \RequirePackage{etoolbox}
+\RequirePackage{ifplatform}
 
 % for convenienc
 \newwrite\configfileout
     \edef\configfilename{\expandafter\detokenize\expandafter{\configfilen@me}}
     \def\configfilepres{\expandafter\protect\expandafter\path\expandafter{\configfilename}}
     \immediate\write\configfileout{\configfilename}
-    \lstinputlisting[%
-      linerange={#3},%
-      %autounindent,%
-      frame=single,%
-      caption={[#4\\\configfilepres]%
-          #4\\\mbox{\protect\href{\@configurationbaseurl\configfilename}{%
-              {\upshape [\configfilepres]}%
-        }}}
-      #1]{\configfilename}%
+    \ifwindows%
+        \lstinputlisting[%
+          linerange={#3},%
+          %autounindent,%
+          frame=single,%
+          caption={[#4\\\configfilepres]%
+              #4\\\mbox{\protect\href{\@configurationbaseurl\configfilename}{%
+                  {\upshape [\configfilepres]}%
+            }}}
+          #1]{\configfilename.}%
+    \else%
+        \lstinputlisting[%
+          linerange={#3},%
+          %autounindent,%
+          frame=single,%
+          caption={[#4\\\configfilepres]%
+              #4\\\mbox{\protect\href{\@configurationbaseurl\configfilename}{%
+                  {\upshape [\configfilepres]}%
+            }}}
+          #1]{\configfilename}%
+    \fi%
     \marginpar{\vspace*{-2\baselineskip}\protect\href{\@configurationbaseurl\configfilename}{%
         \includegraphics[height=2\baselineskip]{img/ConfigIcns}}}
   \else%