Displaying Customized 23/30 and 24/31 in Minicalendars

Navigation:  FAQ > GridTemplates and Tokens >

Displaying Customized 23/30 and 24/31 in Minicalendars

Previous pageReturn to chapter overviewNext page

In this topic we will show you how to to display the 23/30 and 24/31 doubled days in minicalendars using Xpress Tags.

 

Introduction

 

In some diaries, minicalendars are displayed with a layout that allows for a maximum of 5 weeks only. Usually this is straightforward, but if a 30-day month begins on a Sunday, or a 31-day month begins on a Saturday or Sunday, then a choice must be made on how to display the 30th and 31st of such a month.

 

   

 

The Minicalendar Options property proposes different ways of addressing this issue. One solution is to Use Fractions (above left) and the other solution is to Wrap to Top (above right). If the Use Fraction option is selected, one of the sub-options available is to display the 23/30 and 24/31 fractions using Xpress Tags.

 

Procedure

 

1.The first step is to obtain a sample of a 23/30 and 24/31 doubled day in QuarkXPress, formatted exactly as desired (as shown below all the attributes available in QuarkXPress can be used, and each of the characters can have its own unique format, if desired).

 

 

2.Select the text corresponding to the 23/30 fraction and use the File|Save Text menu of QuarkXPress. In the dialog box that then appears, make sure that the Type is Xpress Tags (*.xtg) and that the option Selected Text is selected at the bottom. Click on the Save button.

 

3.Open the .xtg file that you have generated in a text editor, such as Windows' Notepad.exe. Below is an example of what the contents of an XTG file look like, with the most important part, the one describing the 23/30, standing out at the end.

 

<v2.00><e1>

@Normal=<Ps100t0h100z12k0b0cKf"ArialMT">

@Normal=[S"","Normal","Normal"]<*L*h"Standard"*kn0*kt0*ra0*rb0*d0*p(0,0,0,0,0,0,g,"U.S. English")>

@$:<*p(0,0,0,33,0,0,g,"U.S. English")><Bz8b6f"TimesNewRomanPSMT">2<k-40>3<z16k-20b$>/<z8k$>30

 

4.The first line in the XTG file refers to the version of the Xtags import engine used to generate the current file. If you saved the XTG file under QuarkXPress 4 then the version will be displayed as <v2.00>, and if you used QuarkXPress 5, then you will see version <v3.00>. We usually recommend that you always save your XTG files using QuarkXPress 4 to make sure that your XTG files are compatible with any of the other versions of QuarkXPress used by other users (and technical support).

 

5.The lines that start with @Normal= refer to the default styles and should be removed to ensure that the Xtags text only modifies the attributes we want to change, within the context of where the macro token was located.

 

<v2.00><e1>

@$:<*p(0,0,0,33,0,0,g,"U.S. English")><Bz8b6f"TimesNewRomanPSMT">2<k-40>3<z16k-20b$>/<z8k$>30

 

6.Furthermore, if you do not particularly need the paragraph attributes or the font name, then you can also remove them and the 23/30 text will use the paragraph attributes and font name of the token on which it is based (ie. the @ Minicalendar Date Marker). In that case, the final text that should be entered the Minical option is :

 

<v2.00><e1>2<k-40>3<z16k-20b$>/<z8k$>30

 

7.If you wish to have the top number (23) or the bottom number (30) appear differently if there is a holiday for the date at the top or bottom or both, then you can add variations to cover these cases, using a syntax similar to the one used for Holiday Name Variations:

 

<v2.00><e1>2<k-40>3<z16k-20b$>/<z8k$>30

>>>hol_TOP=<v2.00><e1><~B>2<k-40>3<B><z16k-20b$>/<z8k$>30

>>>hol_BOTTOM=<v2.00><e1>2<k-40>3<z16k-20b$>/<~B><z8k$>30<B>

>>>hol_BOTH=<v2.00><e1><~B>2<k-40>3<z16k-20b$>/<z8k$>30<B>

 

In the above example (which is plain text, the colors above being there just to highlight certain parts of the text), bold is applied before the 23 and then removed, toggled, just after for the hol_TOP variation, and similarly for the other 2 cases. The first line remains the default Xtags to be used if there is no holiday for either of the 2 dates. Whether a date is a holiday, in the above setup, is governed by the choice of aeiou-holidays in the Minicalendar Holidays 1 settings (note that the formatting options of these setting are not used for the 23/30 and 24/31 Xtags, just the selection of aeiou-holidays).

 

8.Repeat steps 2-3-4-5-6-8 for the text of the 24/31 fraction.

 

For more detailed information on Xtags, see the corresponding topic in the QuarkXPress glossary.


Topic 175295 updated on 18-Sep-2014.
Topic URL: http://www.qppstudio.net/webhelp/index.html?displayingcustomized2330an.htm