337 reputation
112
bio website nobelprize.org
location here
age 24
visits member for 4 years
seen Jul 15 '11 at 10:55
\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}

Mar
2
awarded  Popular Question
Sep
5
awarded  Popular Question
Jun
8
awarded  Caucus
Nov
24
awarded  Yearling
Nov
17
awarded  Nice Question
Jul
7
awarded  Autobiographer
Jun
19
awarded  Critic
Mar
25
accepted How to prove the mathematical induction is true?
Mar
4
awarded  Nice Question
Feb
27
revised How to prove the mathematical induction is true?
added 2 characters in body; edited title
Feb
27
asked How to prove the mathematical induction is true?
Jan
28
accepted Puzzle: digit $x$ appears $y$ times on this piece of paper…
Jan
26
comment Puzzle: digit $x$ appears $y$ times on this piece of paper…
The solution is not unique? There are more solutions?
Jan
26
comment Puzzle: digit $x$ appears $y$ times on this piece of paper…
thanks. You did by trial and error?
Jan
26
revised Puzzle: digit $x$ appears $y$ times on this piece of paper…
edited body; added 77 characters in body; added 4 characters in body
Jan
26
asked Puzzle: digit $x$ appears $y$ times on this piece of paper…
Dec
7
awarded  Commentator
Dec
7
awarded  Editor
Dec
4
comment Is value of $\pi = 4$?
The last figure said $\pi=4!$ or $\pi=24$ that is absolutely wrong. :-)
Nov
29
comment Approaching to zero, but not equal to zero, then why do the points get overlapped?
thanks for your excellent explanation in details.