Pocket Diary Photo Calendar: how to specify on which day the week begins?
Hi, I am trying to use the Pocket Diary https://ctan.org/pkg/context-pocketdiary module to create a photo calendar as described in the Calendar Examples https://ctan.org/pkg/context-calendar-examples. The examples work fine. By default weeks begin on Monday. Does anyone know how to specify that weeks begin on Sunday? I have searched through all the setvariable assignments, but nothing seems applicable. I have attached an example file so you needn't retrieve all the examples. Any help would be appreciated. -- With kind regards, Michael http://literatesolutions.com
On 15 Jun 2024, at 17:55, Michael Guravage
wrote: Hi,
I am trying to use the Pocket Diary module to create a photo calendar as described in the Calendar Examples. The examples work fine. By default weeks begin on Monday. Does anyone know how to specify that weeks begin on Sunday? I have searched through all the setvariable assignments, but nothing seems applicable.
I have attached an example file so you needn't retrieve all the examples. Any help would be appreciated.
Your example didn't work for me - I didn't have PocketDiary installed and then after installing it I got an error about Moons.tex. Life's too short to faff trying to fix it so this suggestion is untested. The variables setting allows a Day= value so try experimenting with \setvariables [PocketDiary] [Year=2025, Day=7] as the default value is 1 which I assume is Monday. — Bruce Horrocks Hampshire, UK
Bruce,
Yes, I remember encountering this problem. The two files you need are:
sun-MP.tex and moons-MP.tex. I don't recall where I found them so I've
attached them below. Drop them into their respective pocketdiary
directories Solar and Moonphase and run mtxrun --generate.
Your suggestion of the Day key was the first thing I tried myself.
Unfortunately, it has no effect.
Thanks for thinking along.
With kind regards,
Michael
On Sat, Jun 15, 2024 at 10:51 PM Bruce Horrocks
On 15 Jun 2024, at 17:55, Michael Guravage < guravage@literatesolutions.com> wrote:
Hi,
I am trying to use the Pocket Diary module to create a photo calendar as described in the Calendar Examples. The examples work fine. By default weeks begin on Monday. Does anyone know how to specify that weeks begin on Sunday? I have searched through all the setvariable assignments, but nothing seems applicable.
I have attached an example file so you needn't retrieve all the examples. Any help would be appreciated.
Your example didn't work for me - I didn't have PocketDiary installed and then after installing it I got an error about Moons.tex. Life's too short to faff trying to fix it so this suggestion is untested.
The variables setting allows a Day= value so try experimenting with
\setvariables [PocketDiary] [Year=2025, Day=7]
as the default value is 1 which I assume is Monday.
— Bruce Horrocks Hampshire, UK
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
On 15 Jun 2024, at 22:20, Michael Guravage
wrote: Bruce,
Yes, I remember encountering this problem. The two files you need are: sun-MP.tex and moons-MP.tex. I don't recall where I found them so I've attached them below. Drop them into their respective pocketdiary directories Solar and Moonphase and run mtxrun --generate.
Your suggestion of the Day key was the first thing I tried myself. Unfortunately, it has no effect.
Thanks for thinking along.
The month table layout is hard-coded in line 515 of file t-pocketdiary.lua The code that decides in which cell to put the '1' of the first day is calculated elsewhere and not passed as a parameter. That rules out a simple fix - you'd need to add a "weekstart" or similar parameter and track/act on it in various parts of the code. — Bruce Horrocks Hampshire, UK
participants (3)
-
Bruce Horrocks
-
Michael Guravage
-
Michael Guravage