I am trying to generate PDFs for different parts of my cave using named maps. But if I select one map, export it and then select another and export that all in one file then it appears all the selects are processed before any exports. So all my output PDFs are the same.

e.g. The following config file:

source swildonsmaster.th

select EntranceSeriesPlan@SwildonsHole
export map -projection plan -layout local -o swildons_ent_plan.pdf

select testPlan@SwildonsHole
export map -projection plan -layout local -o swildons_plan.pdf


Does not give me a PDF of just the entrance series. I get two PDFs of the testPlan map.

Is there any way to do this from a single config file?

Footleg