| bio | website | nobelprize.org |
|---|---|---|
| location | here | |
| age | 23 | |
| visits | member for | 2 years, 6 months |
| seen | Jul 15 '11 at 9:49 | |
| stats | profile views | 66 |
\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}
9
32
votes
10
answers
4
kviews
3
11
votes
6
answers
2
kviews
6
11
votes
2
answers
1
kviews
2
7
votes
3
answers
355
views
6
votes
2
answers
842
views
1
5
votes
2
answers
667
views
2
votes
4
answers
969
views
1
2
votes
1
answer
113
views
1
vote
2
answers
440
views