If you are using QGIS 3.x, try the following steps:
- Use the Field Calculator to create a new virtual field (integer type), called
selected, and enter the expression
- Go to your Map Layout and under the Atlas settings enter the expression
"selected" = 1
- Now select your features on the main canvas
- Go back to the Map Layout and enable the atlas (disable first if already enabled) to refresh the filter.
Just keep cycling between 3 and 4 every time you want to select a different set.
You don't have to call the virtual field
selected; it can be anything you want. Just make sure you then refer to its name in step 2.
Note: I have tried directly entering
is_selected(@atlas_feature) (and variants) in the Atlas Filter and it didn't seem to work (Q 3.6)
Note also that the Virtual Field does not auto update in an open Attribute Table - you need to open a new table to confirm the updated values.
This won't work in QGIS 2.x as
is_selected() is not available.