Is there a way to get some of the functionality of a class without the document being based on that class?
I use the exam class a good bit to typeset exams and problem sets. I'm trying to format a book (still not sure whether book, amsbook, tufte-book, or whatever class) and I'd like to include exercises. It seems (maybe just because I'm used to it) that the exam class handles exercises in the way I would like, so I'd really like to use its tools for setting up questions and answers, but I don't want the entire book to be in the exam class.
.styfile and just load that. – jon Oct 10 '15 at 21:04exercisespecific stuff, but this requires a check. Some classes define importer.styfiles to provide the functionality without adapting the outer class features. In principle, any package can modify the outer class behaviour – Oct 10 '15 at 21:04exam.clsat all – Oct 10 '15 at 21:20exam.clsasmyexam.stychange line\ProvidesClass{exam}into\ProvidesPackage{myexam}then delete line\LoadClass{article}I think this will be fine. – touhami Oct 10 '15 at 21:45exam.clswhich are still active unless\usepackage{geometry}is used with astore/saveway. – Oct 10 '15 at 21:59geometrypackage is universal now a day so one can load it aftermyexamand set the margins proprely. in my point of view the important problem is related to somefeature that oblige the user to usequestionsenvironment only once by document. – touhami Oct 10 '15 at 22:13geometrypackage it's much better to keepexam.clsas the underlying class as long as\chapterisn't needed – Oct 10 '15 at 22:19exsheetsandtasksthat might be handy for your project. I don't see any point i fiddling withexamhere, it will be a constant head-ache for you. – Johannes_B Oct 11 '15 at 08:22examthat I don't care about for the book: points and headers as you point out. I do want questions and answers together rather than in separate files. Since I won't actually want to print them together in the book,exammight not be the best way to do that.The only clear-cut benefits of
– Timothy Oct 11 '15 at 20:08examover alternatives are: (a) I'm already familiar with it, and (b) It will be easy to share things between the book and exams / problem sets. (b) is actually a pretty big benefit.