xport

less info
reputation
1412
bio website nobelprize.org location here age 24 member for 3 years, 8 months seen Jul 12 '11 at 15:42 profile views 30
\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},
backgroundcolor=\color{yellow!5}
}

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

\usepackage{hyperref}

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


11 Questions

 60 Is there a convenient way to edit PATH in Windows 7? 7 Is it possible to hide Windows' Cut, Copy, Delete, Rename buttons on the context menu when I am working on an checked-out directory? 5 Does burning an ISO file on a non-rewritable DVD make the DVD read-only? 4 What is the best way to protect e-book? 4 Is it true that strongly-password-protected PDF can be cracked?

512 Reputation

 +115 Is there a convenient way to edit PATH in Windows 7? +5 Is it possible to hide Windows' Cut, Copy, Delete, Rename buttons on the context menu when I am working on an checked-out directory?

 0 Is there a convenient way to edit PATH in Windows 7?

22 Tags

 0 pdf × 3 0 tortoise-svn × 2 0 password-protection × 2 0 file-sharing 0 encryption × 2 0 version-control 0 path × 2 0 file-management 0 windows × 2 0 svn

17 Accounts

 TeX - LaTeX 12,643 rep 874175 Stack Overflow 1,764 rep 22257 English Language & Usage 748 rep 21020 Super User 512 rep 1412 Physics 407 rep 617