File: sample-src.tex

package info (click to toggle)
tkdvi 0.3.1-1.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 1,440 kB
  • ctags: 715
  • sloc: ansic: 5,833; sh: 2,955; tcl: 1,918; makefile: 106
file content (27 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\documentclass{article}
\usepackage{amsmath}
\newcommand*\SRC{}
\def\SRC/{\leavevmode\special{src:\the\inputlineno\space\jobname.tex}}

\begin{document}
\section*{\SRC/This is a test file for src specials in xdvi(k)}
\SRC/Of course, for realistic applications, the specials wouldn't
\SRC/be inserted `by hand' such as here (by just inserting
\SRC/\texttt{\char`\\ SRC/} at every newline),
\SRC/but automatically, using some style file or maybe a modified
\SRC/\TeX\ program.

\SRC/We might have some displayed equations:

\[ \SRC/ 1 + 1 = 1 \]

\SRC/and also an itemized list:
\begin{itemize}
\item \SRC/dummy item 1
\item \SRC/dummy item 2
\end{itemize}
\SRC/This is the end of the list.

\SRC/This is the end of this little example document.
\end{document}