You can base your baseline grid in three ways: only on modules, only on vertical nudge, or on a combination of modules and vertical nudge.
To do it, do following:
In this case, when you display module guides, they will represent the baseline grid. Moreover, all the scripts and custom Fred4 functions will use module height rather than vertical nudge value. Since the vertical nudge is set to 0, objects dragged by mouse will snap vertically only to the module guides, independently if the guides are displayed or hidden. Note The vertical nudge must be set to 0 or the baseline grid value. That's because - although the scripts and functions would continue to use modules only - the objects dragged by mouse would also snap to vertical nudge values. This also assumes you use modules only for the baseline grid, and for no other purpose. |
Note: in this approach, you cannot display the baseline grid, but the alignment to it still works. Do following:
4. In the EditorialConfig, locate the line containing globalUseModulesAsVg, and change its value to 0, if it was -1, or add the line <Item Name="globalUseModulesAsVg" Value="0" /> in the Dict node. This forces all the scripts and custom Fred4 functions to use the vertical nudge value rather than module height value. Objects will snap to the vertical nudge and to the module guides, independently if they are displayed or hidden, but since both values are the same, there will be no problems. This also assumes you use modules for different purpose than for the baseline grid, e.g. as advertisement grid. |
Note: in this approach, you can display the baseline grid and use the alignment to it, but have in mind that different settings drive the displayed grid (module height), and the effective grid (vertical nudge). Do following:
In this case, when you display module guides, they will precisely represent the baseline grid. Moreover, all the scripts and custom Fred4 functions will use the vertical nudge value rather than module height value. Objects will snap to the vertical nudge and to the module guides, independently if they are displayed or hidden, but since both values are the same, there will be no problems. Note: it would be an error to define a vertical nudge to any value different than the baseline grid value, because the scripts and functions would then use a wrong value. Moreover, it would be an error to define a module height to any value different than the baseline grid value, because the visible baseline grid would not correspond to the effective baseline grid. Also have in mind that while the modules are defined on the page (thus, shared by all page layers), the vertical nudge is defined on either on the master page level or on the layer level (thus it may not correspond to the module height). The above approach also assumes you use modules only for the baseline grid, and for no other purpose. |
See also
Differences between master- and layer-level baseline grid