TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am finishing writing a paper that uses the listings package. Sadly, the submission system I have to use for submitting my paper does not come with this package. Is there any way to use the features available in this package without installing it?

share|improve this question
This might not be a real solution but may be at least a workaround (if it works): I don’t know if this works for TeX, but in HTML for example, you can have CSS definitions in the HTML document itself or in an external .css file. So maybe there is a possibility to copy the whole contents of the listings package into your TeX source so it can be used. Not sure if this is even possible in TeX, though. Just an idea. – brian-ammon May 25 '12 at 9:56
Depends on the features you use. If it is just about nice typesetting of listings, you could go for an approach to typeset them to separate PDFs and include them as images with '\includegraphics. Packages, such as standalone` or preview might help in this process. If, however, you are using lots of \lstinlines this will probably become more painful, even though still doable. – Daniel May 25 '12 at 10:20
@brian-ammon While it's possible, in theory, to put the code of a non available package in the document, the listings package would require 9475 lines of code, more or less 400KiB. The code is actually split in subpackages, so it's not only a "paste up" problem. – egreg May 25 '12 at 10:33
up vote 5 down vote accepted

As you are probably allowed to upload more than one file (e.g. also bib-files and input files) why don't you simply add the files of listings to this collection?

share|improve this answer
That did the trick, thank you! – Umberto May 25 '12 at 16:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.