CustomMargin with check for geometry package