Pablo Rodriguez via ntg-context schrieb am 16.12.2024 um 22:18:
On 12/16/24 21:30, vm via ntg-context wrote:
On 16/12/2024 21:03, Pablo Rodriguez via ntg-context wrote:
Besides, I think \normalday could be way more useful if it could
increment the whole date, not only the day number.
does this help?
https://www.lua.org/pil/22.1.html
I’m afraid not, because I wonder how to typeset a whole year with that
os.date() and os.time() functions.
I mean, a huge xtable that contains 12 months, with a variable number of
weeks and days each, placing each day number in weeks from Monday to Sunday.
I cannot even get a header with the correct year number (although I know
how to invoke that, I get 2028 instead of 2024 [probably because of
for-loops]).
It seems that it is too complex for me (and I have already invested two
afternoons in this).
For some reason, not meant to be in my case,
Use trialtypesetting in a table when you perform calculations etc.
\starttext
\startxtable
\startxrow
\startxcell
\startmode[*trialtypesetting]
123456789
\stopmode
\startnotmode[*trialtypesetting]
123
%123\rlap{\lightgray 456789}
\stopnotmode
\stopxcell
\stopxrow
\stopxtable
\startxtable
\startxrow
\startxcell
\doifelsemode{*trialtypesetting}
{123456789}
{123}
%{123\rlap{\lightgray 456789}}
\stopxcell
\stopxrow
\stopxtable
\startxtable
\startxrow
\startxcell
\iftrialtypesetting
123456789
\else
123
%123\rlap{\lightgray 456789}
\fi
\stopxcell
\stopxrow
\stopxtable
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________