In my code below, the table appears in a "programming" type font. If I have a larger table (like say in a text file), how can I import that table into my document without having to typing the whole table back into the document? Will the listing package be able to accomplish this? If so, how do I implement this?
\documentclass{article}
\usepackage{verbatim}
\begin{document}
I wanted the contents of the table to appear in a ``programming'' type font:
\begin{verbatim}
---------+
10 1 2 4
20 2 3 5
30 3 4 6
40 4 5 7
---------+
\end{verbatim}
\end{document}
\verbatiminput{}? – cfr Oct 04 '15 at 00:55\lstinputlisting. If you want to mimic the style of theverbatimenvironment, see this. – jub0bs Oct 04 '15 at 00:57