Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Suppose I have a long file of a pile of test questions. I want to select a subset and make a test out of them. Of course I could copy/paste. But is there a package that helps to sort and display text? This is something like what bibtex does but I want to just insert text/questions by something like an "include", as in "include 95,22,43 from algebra.tex" to insert problems 95,22,43 from that file and enumerate them.

The closest items I found is this Automatically generate workbook from a sort of database and the answers package.

share|improve this question
exsheets does it. –  Harish Kumar Sep 11 '13 at 8:10
@HarishKumar exsheets does not sort question but it allows to selectively include them from an external file. They're included in the order they're written in the external file, though. –  clemens Sep 11 '13 at 8:48
@cgnieder Oho My bad. That is what I meant. Thanks for both (clarification and package) –  Harish Kumar Sep 11 '13 at 10:08
I don't know if this is of any use to you, but my solution was to use a C program to fill in content and define TeX commands to do the formatting. See elfsoft2000.com/worksheets/index.htm –  John Kormylo Sep 12 '13 at 3:33

Your Answer


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

Browse other questions tagged or ask your own question.