Skip to content

Instantly share code, notes, and snippets.

@tisba
Created November 4, 2009 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tisba/226086 to your computer and use it in GitHub Desktop.
Save tisba/226086 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{listings}
\begin{document}
\lstinputlisting[numbers=left,firstline=4,lastline=6]{sandbox.tex}
\end{document}
% this gives me smth like that:
%
%
% 1 \begin{document}
% 2 \lstinputlisting[numbers=left,firstline=4,lastline=6]{sandbox.tex}
% 3 \end{document}
%
% and not...
%
% 4 \begin{document}
% 5 \lstinputlisting[numbers=left,firstline=4,lastline=6]{sandbox.tex}
% 6 \end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment