159 reputation
118
bio website nobelprize.org
location here
age 24
visits member for 3 years, 3 months
seen Jul 10 '11 at 15:44
\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}

Sep
12
awarded  Famous Question
May
12
awarded  Popular Question
Oct
25
awarded  Notable Question
Jul
9
comment Why does iPad show a weird effect on some PDF images?
+1 thanks for answering. I am still waiting for other answers.
Jul
9
accepted Why can't some images in the pdf be viewed on iBook of iPad or iPod Touch?
Jul
9
asked Why does iPad show a weird effect on some PDF images?
Jul
7
awarded  Autobiographer
May
25
accepted Is it possible to create a folder in iBooks?
May
21
awarded  Popular Question
Mar
7
awarded  Editor
Mar
7
comment Why can't some images in the pdf be viewed on iBook of iPad or iPod Touch?
@Philip: see my update please.
Mar
7
revised Why can't some images in the pdf be viewed on iBook of iPad or iPod Touch?
added 547 characters in body
Mar
7
asked Why can't some images in the pdf be viewed on iBook of iPad or iPod Touch?
Jan
11
awarded  Promoter
Jan
6
comment Is it possible to arrange or categorize the imported pdf assets from within iTunes first and then sync the devices (iPod,iPad) with iTunes?
@Dori, if you read carefully this topic and then compare with the link you gave me, you will see they are different in scenario.
Jan
6
comment Is it possible to arrange or categorize the imported pdf assets from within iTunes first and then sync the devices (iPod,iPad) with iTunes?
@Dori, not the exactly the same.
Jan
5
asked Is it possible to arrange or categorize the imported pdf assets from within iTunes first and then sync the devices (iPod,iPad) with iTunes?
Jan
5
accepted When I add a file to iTunes library, does iTunes make a copy of it? If yes, where is the copy saved?
Jan
5
awarded  Student
Jan
5
asked When I add a file to iTunes library, does iTunes make a copy of it? If yes, where is the copy saved?