407 reputation
517
bio website nobelprize.org
location here
age 24
visits member for 3 years, 8 months
seen Jul 15 '11 at 9:49
\documentclass{article}
\usepackage{listings,xcolor}
\usepackage[a4paper,margin=2cm]{geometry}
\lstset
{
    language={[LaTeX]TeX},
    frame=single,
    breaklines=true,
    basicstyle=\small\tt,
    keywordstyle=\color{blue}\sf,
    identifierstyle=\color{magenta},
    commentstyle=\color{cyan},
    backgroundcolor=\color{yellow!5}
}


\def\ImportAllSourceCodes
{%
    \immediate\write18{cmd /c dir /b *.tex > \jobname-temp.txt}%
    \newread\myfile
    \openin\myfile=\jobname-temp.txt
    \newcount\counter
    \counter=0
    \loop
        \unless\ifeof\myfile
        \read\myfile to\mydata
        \advance \counter by 1
    \repeat
    \closein\myfile
    \openin\myfile=\jobname-temp.txt
    \advance \counter by -1
    \loop
        \ifnum \counter > 0
        \read\myfile to\mydata
        \section\mydata
        \lstinputlisting{"\mydata"}\newpage
        \advance \counter by -1
    \repeat
    \closein\myfile
}


\usepackage{hyperref}

\begin{document}
\ImportAllSourceCodes
\end{document}

407 Reputation

5 Jul 9
5 May 17
5 Mar 23
5 Feb 22
5 Feb 18
5 Feb 15
5 Oct 3 '13
5 Sep 1 '13
5 Jul 24 '13
5 Jul 15 '13
5 May 29 '13
5 Apr 19 '13
10 Jan 13 '13
5 Jan 7 '13
5 Jan 1 '13
5 Nov 28 '12
5 Oct 17 '12
10 Sep 3 '12
5 Sep 1 '12
5 Jul 20 '12
5 Jun 18 '12
5 May 10 '12
5 Apr 10 '12
5 Mar 30 '12
10 Jan 17 '12
5 Nov 8 '11
5 Oct 24 '11
5 Sep 4 '11
10 Aug 12 '11
5 Jul 28 '11