and the tiny tags around VerbatimInput offcourse (as in the opening post)
Main Topics
Browse All TopicsI want to include the listing of my program code in my paper. In the beginning I used \verbatiminput for this. However, I want to use the listings package instead, particularly because of the line numbering. Now there's a particular property of my code: Many lines have about equal length. With \verbatiminput, most program lines fit on one line in the pdf document. With \lstinputlisting, most lines are breaked because there's more space between each character. The question is: I want to use \lstinputlisting but in such a way that the same number of characters fit on one line as with \verbatiminput.
The listings are between \begin{tiny} and \end{tiny}. I tried to use \lstset but I cannot find an option that solves it. I even tried to use the microtype package, but that doesn't seem to do anything.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: alberthendriksPosted on 2008-03-12 at 15:09:31ID: 21111311
I have worked it around by making sure that every line is short enough and using the code in the attached code snippet. This question has been on top of the LaTeX zone for two weeks without a reply, so I think it is justified that I now refund the points to myself.
Select allOpen in new window