113 reputation
16
bio website nobelprize.org
location here
age 24
visits member for 3 years, 6 months
seen Aug 3 '11 at 23:07
\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}

Dec
15
awarded  Notable Question
Dec
17
awarded  Popular Question
Aug
3
awarded  Editor
Jul
7
awarded  Autobiographer
Jun
4
awarded  Student
Jun
2
comment Is there a free software to split a PNG image into some smaller images?
Thanks for informing this tool and the switch.
Jun
2
comment Is there a free software to split a PNG image into some smaller images?
Thanks for your answer. But I prefer to use the programmable one, i.e., ImageMagick rather than the WYSIWYG.
Jun
2
awarded  Scholar
Jun
2
accepted Is there a free software to split a PNG image into some smaller images?
Jun
2
comment Is there a free software to split a PNG image into some smaller images?
what is the switch to slice an image into m by n smaller images?
Jun
2
awarded  Supporter
Jun
2
asked Is there a free software to split a PNG image into some smaller images?