The Number of Weeks mini-calendar modifiers are used to delete the textbox of a mini-calendar, based on the number of (partial) weeks contained in the month of the mini-calendar.
:ZapCode Operator NumberOfWeeks
ZapCode |
z |
Deletes the textbox containing the mini-calendar token (if the textbox is grouped, it will be removed from the group before being deleted) |
Z |
Deletes the textbox containing the mini-calendar token, as well as any object that is grouped to that textbox |
|
ZL |
Deletes all the objects that are located on the same layer and the same page as the textbox containing the mini-calendar token (whether or not they are grouped).
requires QuarkXPress 2016-2026 or InDesign |
|
ZP |
Deletes the page (the entire page, not just the objects on it) containing the textbox containing the mini-calendar token.
requires QuarkXPress 2016-2026 or InDesign |
|
Operator |
= |
equal |
> |
greater than |
|
< |
less than |
|
~ |
different (not equal) |
|
n |
different (same as ~) |
|
NumberOfWeeks |
|
allowed values are 4, 5, or 6 |
An example of the use of number of weeks modifiers to specify variable leading, depending on the number of weeks, so that the last lines/columns of a mini-calendar are always aligned, whether there are 4, 5 or 6 partial weeks in the displayed month.
To achieve this effect you would create 3 mini-calendars, each having the leading appropriate to 4, 5 or 6 weeks, and add the corresponding modifier to each mini-calendar, as shown below :

All 3 mini-calendars would then be placed in the same position, but on separate layers, and during diary generation, for each spread, only one of the 3 mini-calendars would remain.
Note that :
•This modifier automatically takes into account the weekstart you have defined for the mini-calendar.
•This modifier also works for right-to-left mini-calendars.
•You can also add this modifier to weekly bands mini-calendars.
Vertical Minicalendars
Exclusions
In all cases, if you use the number of weeks modifier, you should not also use either of the right-aligned or bottom-aligned flow of dates options, as these are exclusive of each other. Getting mini-calendars with different number of weeks to occupy the "same space" should be done either with the alignment options, or with leading and the number of weeks modifier as shown above. But both methods should not be used at the same time.
See also: NumWeeksInMonth, Number of Days Modifiers and other mini-calendar modifiers.
Topic 171860, last updated on 18-May-2023