Usually, the @ dates markers, $$ weekdays markers and w# week numbers markers of a minicalendar are converted and formatted using various point-and-click minicalendar options.
To use macros to override the conversion and formatting of the dates, weekdays and week numbers of a minicalendar, use the modifiers list further down.
Important Remarks
When you use any of these modifiers, all minicalendar formatting options are ignored for that particular marker (except for the outside days exception mentioned in the section on @ date markers, above), giving you total control over the way each minicalendar marker is displayed, but also requiring your macro to handle all details.
Also, these tokens are treated as normal tokens inside a minicalendar which means that by default their DayValue 1 is the 1st day of the month. To start on the weekstart of the 1st of the month, make sure to use the weekstart modifier.
List of Markers
marker |
modifier |
|
@ |
:*XX |
To use a macro to modify the processing of the @ markers of a minicalendar, simply add a minicalendar modifier of the form
:*XX
where XX represents any number from 1-30, in analogy with macro tokens.
Token used for conversion
The token supplied to the macro as the value of the system variable s_TokenRoot is [d] which means that if you want to work with a variant, such as a 2-digit date number, then you must do so in the code of your macro.
Outside Days
By default, the use of this @ marker modifier will hide all outside days. If you wish to show outside days, then you should include a :ws weekstart minicalendar modifier, :ws, and in that case the macro you use is responsible for the showing/hiding and formatting of any outside days; the outside days minicalendar options are also ignored. |
$$ |
:$*XX |
To use a macro to modify the processing of the $$ weekday markers of a minicalendar, simply add a minicalendar modifier of the form
:$*XX
where XX represents any number from 1-30, in analogy with macro tokens.
Token used for conversion
The token supplied to the macro as the value of the system variable s_TokenRoot is [ddd] which means that to tweak the result of that token you must either do it in the macro code or using the Length of [ddd] grid option (and not the weekdays minicalendar options). |
w# |
:w*XX |
To use a macro to modify the processing of the w# week number markers of a minicalendar, simply add a minicalendar modifier of the form
:w*XX
where XX represents any number from 1-30, in analogy with macro tokens.
Token used for conversion
The token supplied to the macro as the value of the system variable s_TokenRoot is [w] which means that if you want to work with a variant, such as a 2-digit week number, then you must do so in the code of your macro.
Outside Days
By default, the use of this W# marker modifier will hide weeks beginning outside the month. If you wish to show these, then you should include a :ws weekstart minicalendar modifier, :ws. |
Once again, note that when you use any of these modifiers, all minicalendar formatting options are ignored for that particular marker (except for the outside days exception mentioned in the section on @ date markers, above), giving you total control over the way each minicalendar marker is displayed, but also requiring your macro to handle all details, such as making holidays into a second color, etc...
See also: other minicalendar modifiers.
Topic 178560, last updated on 27-Apr-2025