 
 
 
 
 
   
短いものは
| verbatim 環境の利用 | 
| \begin{verbatim} #include <stdio.h> int main() { printf("Hello, world\n"); return 0; } \end{verbatim} | 
| hello.c を取り込む | 
| 
\documentclass[12pt,leqno]{jarticle}
\usepackage{verbatimfiles}% パッケージを組み込む (複数形のsがついている)
\begin{document}
...
\verbatimfile{hello.c}% hello.c は別途用意してあるとして
...
\end{document}
 | 
 
 
 
 
