On 6/10/2010 5:12:37 AM, Pauli Lindgren wrote:
>Here is a calendar macro I
>just made.
>
>It opens a small window to
>display one month calendar.
>By default, it displays
>current months calendar.
>Today's day number is
>highlighted by setting a
>block.
>
>To create a calendar for some
>other month, first set
>#1=month and #2=year, then
>call the label SET_MONTH, for
>example: #1 = 12#2 =
>2010Call_File(100,"calendar.vd
>m", "SET_MONTH")
>The macro could be easily
>modified e.g. to display a
>full year calendar suitable
>for printing.
>
>The macro uses the file
>calendar.syn to add some
>color. It is included in the
>zip file.
>
>--
>Pauli
Thanks,
I just wanted to let you know that it works like a charm.
Incidentally, I do appreciate your option of,
Syntax_Load("|(USER_MACRO)\calendar.syn")
In other words, I do have the option of putting the calendar.syn file into my USER_MACRO directory.
In fact, my USER_MACRO directory is not part of my HOME directory. This way, my "user files" are not part of my HOME directory either. So, if I accidentally erase my HOME directory, no harm done. I just reinstall Vedit.
Also, I have New Year's resolution: My Vedit HOME directory should be untouched by human hands.
Actually, I would like to use a slight adaptation of your idea. Specifically, I would like to create a user_syn sub directory of my USER_MACRO directory. Then I would move calendar.syn into this new sub directory.
In other words, I have grouped my .syn files into two groups. In the first one I kept the ones that came with Vedit. I put the various third party .syn files into the second group. For example I shall put the tex.syn file and into this sub directory as well. Since this file refers to Fritz, I think that this is reasonable.
In any case, I would appreciate hearing from Fritz whethe or not he did more work on the official tex.syn file, which is dated 2002.
Since I also grouped my .mnu files into these two groups, this grouping came natural for the .syn files.
-peter
|
|