\def\WGET{http://golem.fjfi.cvut.cz/wiki} \def\GWinputPure#1{\immediate\write18{mkdir -p wikidata/`dirname #1`; wget \WGET/#1 -O wikidata/#1}} \def\GWinput#1{\immediate\write18{mkdir -p wikidata/`dirname #1`; wget \WGET/#1 -O wikidata/#1}\input{wikidata/#1}} \def\GWincludegraphics#1#2{ \IfFileExists{wikidata/#2} {\immediate\write18{echo "";echo "*************** #2 exists, no wget *******************"}} {\immediate\write18{mkdir -p wikidata/`dirname #2`;wget \WGET/#2 -O wikidata/#2;}} \includegraphics[#1]{wikidata/#2} } \GWinputPure{SW/Latex/commons/preamble.page} \GWinputPure{SW/Latex/commons/LocalGWinput.page} \GWinputPure{SW/Latex/commons/RemoteGWinput.page} \GWinputPure{SW/Latex/commons/packages.page} \GWinputPure{root/golem.bib} \GWinputPure{root/others.bib}