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

My custom class

The purpose of this class is to create a single PSTricks diagram in a tight paper size.

\ProvidesClass{pst-xport}[2011/07/23 v 0.01 class for creating a single PStricks diagram]





%%%% INTERFACE %%%%







The consumer uses pst-xport class as follows.







However, the consumer settings cannot affect because they come last. How to configure a custom class such that consumer settings must be loaded before the class settings?

Bonus question: How to translate those settings to key-value settings that are more sophisticated?

share|improve this question
You seem to forget about \AtBeginDocument – egreg Jul 22 '11 at 18:51
up vote 1 down vote accepted

You could calculate your settings at the end of the preamble so that the user changes take effect.


Or provide some \updatesettings macro which does all adjustsments.

share|improve this answer

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.