ried the same after placing the file in
>> "tex/context/modules/mkxl" (where the "crappyspec" module resides), but
>> although I get the "temp-new" module to load, I still get complaints about
>> "missing number, treated as zero". Maybe the prim
e primitive is not correctly overloaded? Or (more likely) I'm not
doing it right to get the mkxl file being executed. :-)
Regarding the formatting, maybe this could be constructed similarly to
\date[d=25,m=4,y=2008][weekday,month,day,{,~},year]
one could specify similarly to other parsers
r (more likely) I'm not doing it right to get the mkxl file being
executed. :-)
Regarding the formatting, maybe this could be constructed similarly to
\date[d=25,m=4,y=2008][weekday,month,day,{,~},year]
one could specify similarly to other parsers where "m" is reserved for "month&qu
acode
function userdata.Ddate(str)
local year = string.sub(str,1,4)
local month = string.sub(str,5,6)
local day = string.sub(str,7,8)
context.date({d=day,m=month,y=year},{"weekday,{, },day, {.
},month,space,year"})
end
\stopluacode
\def\DDate#1{\blank\noindentatio
nth = string.sub(str,5,6)
local day = string.sub(str,7,8)
context.date({d=day,m=month,y=year},{"weekday,{, },day,
{. },month,space,year"})
end
\stopluacode
\def\DDate#1{\blank\noindentation{\bf\ss\ctxlua{userdata.Ddate("#1")}}\\ }
You can use \testpage to for
s Hagen via ntg-context:
On 2/13/2025 10:58 AM, Thomas Meyer wrote:
\startluacode
function userdata.Ddate(str)
local year = string.sub(str,1,4)
local month = string.sub(str,5,6)
local day = string.sub(str,7,8)
context.date({d=day,m=month,y=year},{"weekday,{, },day, {.
},mont
On 2/13/2025 10:58 AM, Thomas Meyer wrote:
\startluacode
function userdata.Ddate(str)
local year = string.sub(str,1,4)
local month = string.sub(str,5,6)
local day = string.sub(str,7,8)
context.date({d=day,m=month,y=year},{"weekday,{, },day,
{. },month,space,year&qu
\setuplayout[
lines=44,
grid=yes,
]
\showgrid
\startluacode
function userdata.Ddate(str)
local year = string.sub(str,1,4)
local month = string.sub(str,5,6)
local day = string.sub(str,7,8)
context.date({d=day,m=month,y=year},{"weekday,{, },day,{.
},month,space,year"})
end
\s
"5"] = "੫", ["6"] = "੬", ["7"] = "੭", ["8"] = "੮", ["9"] = "੯",
},
}
languages.decimals = decimals
local fallback = utfbyte('0')
local function chr(n,m)
return (n > 0 and n <
Ah, thank you, Wolfgang,
I tried {, } and not {, },. The result is that the rest vanishes.
Thomas
Am 03.10.24 um 11:27 schrieb Wolfgang Schuster:
Thomas Meyer schrieb am 03.10.2024 um 10:59:
Thank you very much, Wolfgang,
that helps me a lot.
But how can I change the formatting
{“weekday
Thomas Meyer schrieb am 03.10.2024 um 10:59:
Thank you very much, Wolfgang,
that helps me a lot.
But how can I change the formatting
{“weekday,space,day,space,month,space,year”}
so that I get a comma after weekday and a period after day? Where can I
find something about this?
Aside from
Thank you very much, Wolfgang,
that helps me a lot.
But how can I change the formatting
{“weekday,space,day,space,month,space,year”}
so that I get a comma after weekday and a period after day? Where can I
find something about this?
Thanks again and have a nice day
Thomas
Am 02.10.24 um 19
Thomas Meyer schrieb am 02.10.2024 um 15:44:
Hello,
what do I have to do so that the values (d1, m1, y1) from the Lua block
are returned with Return and the commented out line
\date[d=d1,m=m1,y=y1][weekday,{,~},day,{.~},month,{~},year]
works in ConTeXt.
In other words: how do I do it right
Hello,
what do I have to do so that the values (d1, m1, y1) from the Lua block
are returned with Return and the commented out line
\date[d=d1,m=m1,y=y1][weekday,{,~},day,{.~},month,{~},year]
works in ConTeXt.
In other words: how do I do it right?
Thank you in advance
Greetings
Thomas
PS
rmanentment inacabada. Per
aquest motiu convé saber quina versió del document esteu llegint.
28
29 \medskip
30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-,
mm,-,dd]}.
31
32 \bigskip
33 Aquest document ha estat generat, \currentdate[wee
uina versió del document esteu llegint.
28
29 \medskip
30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-,
mm,-,dd]}.
31
32 \bigskip
33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{
},month,{ },year] a les \currenttime, usant prog
You’re invited to join next *Wednesday*, April 13th, 15:00 CEST (UTC+2)
(Beware, we changed the weekday!)
at https://lecture.senfcall.de/hen-rbr-rku-oke
ConTeXt users of all levels are welcome!
Hans will probably give a Q&A session again – please announce subjects
you’d like to discuss
That’s NOW, BTW. ;)
Am 06.03.22 um 13:28 schrieb Henning Hraban Ramm via ntg-context:
You’re invited to join next *Wednesday*, March 9th, 15:00 CET (UTC+1)
(Beware, we changed the weekday!)
at https://lecture.senfcall.de/hen-rbr-rku-oke
ConTeXt users of all levels are welcome!
Hans will
You’re invited to join next *Wednesday*, March 9th, 15:00 CET (UTC+1)
(Beware, we changed the weekday!)
at https://lecture.senfcall.de/hen-rbr-rku-oke
ConTeXt users of all levels are welcome!
Hans will probably give a Q&A session again – please announce subjects
you’d like to discuss ASAP
r Thursday.
We could also change the weekday every time, but that might be
confusing. I would keep the European afternoon time, since that makes
participation possible for people from America and Asia.
What do you think?
Vote here: https://nuudel.digitalcourage.de/tB1MHH4jx6M5uwPg
(Same blur
gested Tuesday afternoon, can’t take part
due to other obligations. I could also offer Wednesday or
Thursday.
We could also change the weekday every time, but that might be
confusing. I would keep the European afternoon time, since that
makes participation possible f
the date:
Denis, who originally suggested Tuesday afternoon, can’t take part due
to other obligations. I could also offer Wednesday or Thursday.
We could also change the weekday every time, but that might be
confusing. I would keep the European afternoon time, since that makes
participation poss
On Sun, Jan 10 2021, Fabrice L wrote:
> For exemple:
>
> \date[][weekday,day,month,year] and \currenttime[h,{\,:\,},m]
Sorry, I should have mentioned, that I use the latest version:
context-2021.01.08
--
is month, ok
>
> \date% again first day, last parameters are used, this is ok
>
> \currentdate% same as \date, but I would expect the day of today...
> \stoptext
> --8<---cut here---end--->8---
>
> How could I print the curren
ConTeXt has some inbuilt functions for dates. I see that the following
\mainlanguage[spanish]
\starttext
\dayoftheweek{4}{5}{1992}
\stoptext
gives "lunes" (Monday). How to get a weekday number (2 in this case)
instead?
Sincere
Knew that one. AKA: what is the weekday for “XX in month XX”?
> On 5 Jan 2021, at 14:06, Otared Kavian wrote:
>
> Best wishes for the new year !
>
> Talking of calendars, this one is even more compact: each year is shown on
> one page, and when changing the year only the
rt expect a number between 1 and 7 and
> result in a label for the requested day of the week but it's not meant
> to be used in \currentdate.
>
> > Still using luatex and not luametatex.
>
> To get the short names with \currentdate you have to append ":mnem" to
&g
t expect a number between 1 and 7 and
result in a label for the requested day of the week but it's not meant
to be used in \currentdate.
Still using luatex and not luametatex.
To get the short names with \currentdate you have to append ":mnem" to
the weekday, w, WEEKDAY or
t id: 7330
Thanks,
Adam
On Sat, Apr 4, 2020 at 11:24 AM Hans Hagen wrote:
> On 4/4/2020 11:47 AM, Adam Reviczky wrote:
> > Hi,
> >
> > Is there a way to achieve a short weekday option with \date[] to get 3
> > letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun)
On 4/4/2020 11:47 AM, Adam Reviczky wrote:
Hi,
Is there a way to achieve a short weekday option with \date[] to get 3
letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the
monthshort either through context or lua?
Not currently but I will add the basics (I have to double check
Hi,
Is there a way to achieve a short weekday option with \date[] to get 3
letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the
monthshort either through context or lua?
Thanks,
Adam
___
If your
orrow
> >
> > Thanks for any fix suggestions.
> >
> > \starttext
> > \date[d=16,m=9,y=2019][weekday, day,{. }, month, year]
> > \stoptext
> also in the latest beta?
>
> Hans
>
All fixed after upd
On 9/11/2019 4:15 AM, Martin Althoff wrote:
Hi all,
the \date is output wrong. Whatever value is given for d= I get the 11th. That
is todays
date. Not sure what would happen tomorrow
Thanks for any fix suggestions.
\starttext
\date[d=16,m=9,y=2019][weekday, day,{. }, month, year]
\stoptext
Hi all,
the \date is output wrong. Whatever value is given for d= I get the 11th. That
is todays
date. Not sure what would happen tomorrow
Thanks for any fix suggestions.
\starttext
\date[d=16,m=9,y=2019][weekday, day,{. }, month, year]
\stoptext
15 may 1980
\date[m=1][day,~,{\monthshort\normalmonth},~,year]
% outputs January 15, 1980
\ctxlua{context.date{m=tex.month};}
\stoptext
---
This works for all parts of the date (even the weekday), except the
month. I've looked through the core-con.lua and found nothing that would
explain thi
\normalmonth},~,year]
% outputs January 15, 1980
\ctxlua{context.date{m=tex.month};}
\stoptext
---
This works for all parts of the date (even the weekday), except the
month. I've looked through the core-con.lua and found nothing that would
explain this (or what I'd need to change), as the te
atted date. That goes for some files that are a few weeks old.
What am I missing?
\starttext
\date[d=2,m=3,y= 2018]
\stoptext
results in:
d=2m=3y= 2018
An optional formatting parameter has no effect
\date[d=1, m=4, y=2018][weekday, {\\}, dd,{-}, mm,-, year]
line 446 of core-con.mkiv should be:
formatting parameter has no effect
\date[d=1, m=4, y=2018][weekday, {\\}, dd,{-}, mm,-, year]
line 446 of core-con.mkiv should be:
{#2}{\currentdatespecification}{\labellanguage}%
-
Hans Hage
=1, m=4, y=2018][weekday, {\\}, dd,{-}, mm,-, year]
using:
mtx-context | current version: 2019.02.07 18:46
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-cont
language[en][date={weekday,{, },day:ord,{~},month,{,~},year}]
(And the documentation is somewhat wrong, I think it suggests to use
"day+" which doesn't work. But I should check the details again.)
The keyword to create ordinal numbers in a date has changed in MkIV.
Unfortunately I di
On 8/27/2015 1:21 AM, Wolfgang Schuster wrote:
Mojca Miklavec <mailto:mojca.miklavec.li...@gmail.com>
26. August 2015 19:36
In case that you were looking for an automated way to print the date,
here's one option:
\setuplanguage[en][date={weekday,{, },day:ord,{~},month,{,~},year
Mojca Miklavec <mailto:mojca.miklavec.li...@gmail.com>
26. August 2015 19:36
In case that you were looking for an automated way to print the date,
here's one option:
\setuplanguage[en][date={weekday,{, },day:ord,{~},month,{,~},year}]
(And the documentation is somewhat wrong, I think
On Mon, Aug 24, 2015 at 11:19 PM, John Culleton wrote:
> Forgot how to do these.
In case that you were looking for an automated way to print the date,
here's one option:
\setuplanguage[en][date={weekday,{, },day:ord,{~},month,{,~},year}]
(And the documentation is somewhat wrong, I
ang Schuster
> wrote:
>
>>> I am experimenting with the \currentdate command. I am finding that
>>>
>>> \currentdate [weekday,{,~},month,day+,{,~},year]
>>>
>>> which should work according to the Wiki, produces:
>>>
>>> Thu
Hi, Wolfgang--
On Fri, Aug 9, 2013 at 6:58 AM, Wolfgang Schuster
wrote:
>> I am experimenting with the \currentdate command. I am finding that
>>
>> \currentdate [weekday,{,~},month,day+,{,~},year]
>>
>> which should work according to the Wiki, produces:
>
Am 09.08.2013 um 05:43 schrieb Matt Gushee :
> Hello, all--
>
> I am experimenting with the \currentdate command. I am finding that
>
> \currentdate [weekday,{,~},month,day+,{,~},year]
>
> which should work according to the Wiki, produces:
>
> Thursday, Augustd
Hello, all--
I am experimenting with the \currentdate command. I am finding that
\currentdate [weekday,{,~},month,day+,{,~},year]
which should work according to the Wiki, produces:
Thursday, Augustday+, 2013
This command:
\currentdate [weekday,{,~},month,day,{,~},year]
works as
\bTR
\bTD supervisors \eTD
\bTD[align=middle] \eTD
\eTR
\bTR
\bTD revision date \eTD
\bTD[align=middle] \currentdate[weekday,month,day,{, },year] \eTD
\eTR
\bTR
\bTD author e-mail \eTD
\bTD[align=middle] \eTD
\eT
\NC 04 \NC \currentdate[mm] \NC\NR
\NC jj \NC 11 \NC \currentdate[jj] \NC\NR
\NC yy \NC 11 \NC \currentdate[yy] \NC\NR
\NC weekday \NC Monday \NC \currentdate[weekday] \NC\NR
\NC referral \NC 20110404 \NC \currentdate[referral] \NC\NR
/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]}
> \starttext
> \mydate 2/1/2011 \par % token #3 = 2
> \mydate 2/1/2 \par % token #3 = 2
> \mydate 2/1/{2011} \par % token #3 = 2011
> \stoptext
>
> Cheers, Peter
>
>
On Fri, Oct 15 2010, Cedric Mauclair wrote:
> Any ideas?
Test file:
\def\mydate{\doifnextcharelse\space\domydate\domydate }
\def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]}
\starttext
\mydate 2/1/2011 \par % token #3 = 2
\mydate 2/1/2 \par % token #3 = 2
\mydate
I use the minimal from 3 days ago.
Here is what I do actually.
\def\mydate{\doifnextcharelse\space\domydate\domydate }
\def\domydate #1/#2/#3{\date[d=#1,m=#2,y=#3][weekday,day+,month,year]}
\mydate 2/1/2011 --> Friday 2 january 2011
\date[d=2,m=1,y=2011][weekday,day+,month,year] --> Su
On Fri, Oct 15 2010, Cedric Mauclair wrote:
>
> Today I wanted to use the command "\date[d=15,m=10,y=2010][weekday]".
> It gives "Friday" as it should. However
> "\date[d=2,m=1,y=2011][weekday]" gives the same result which is wrong
> (it's a Sund
Hi all,
Today I wanted to use the command "\date[d=15,m=10,y=2010][weekday]".
It gives "Friday" as it should. However
"\date[d=2,m=1,y=2011][weekday]" gives the same result which is wrong
(it's a Sunday). In fact, whatever the supplied date, it gives
"Fr
> \def\Feld#1%
> {\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD
> \bTD \field[hours#1] \eTD\eTR}
Okay, I see. Thanks a lot!
Greeting
Andreas
___
If your question is of inter
efinefield [hours#1] [line] [setup] [] []}
\def\Feld#1%
{\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD
\bTD \field[hours#1] \eTD\eTR}
> 2) The text in the left column an the text in the field are not on the same
> baseline. The field-text is slightly
new_moon += 30;
if (epact == 24 || epact == 25 && year%19 > 10)
new_moon--;
}
return new_moon;
}
}
int WeekDay(int date, int year, calendar
Peter Münster wrote:
> Hello,
>
> According to MKIV, today is Wednesday:
>
> \starttext
> \doifmodeelse{mkiv}{MKIV}{MKII}:
> Sunday = \date[d=30,m=3,y=2008][weekday] ?
> \stoptext
ok, fixed
Hello,
According to MKIV, today is Wednesday:
\starttext
\doifmodeelse{mkiv}{MKIV}{MKII}:
Sunday = \date[d=30,m=3,y=2008][weekday] ?
\stoptext
Cheers, Peter
--
http://pmrb.free.fr/contact/
___
If your question is
typescript
# \usetypescriptfile
\useURL[name][URL][file][text]
# \useXMLfilter
\version[final|concept|temporary]
# \verticalstrut
# \vfilll
# \VL
\vl[number]
# \vpos
\WEEKDAY{text}
\weekday{text}
\whitespace
\WORD{text}
\Word{text}
\wordright{text}
\WORDS{text text}
\Words{text text}
\writebetweenl
hole year are calculated and printed for me.
>
> > 2) add and subtract from that
> > number, in essence adding and subtracting days, and
> >
> > 3) converting a date number into a date string.
>
> The manual mentions this example
> \date[d=17,m=11,y=2007
replacement) procedure. Ideally you'll do
step 4 at least 15 minutes (ideally an hour) before the 4pm (US
Eastern) weekday deadline, so that you get back the submission date and
preprint number from arxiv, leaving time for step 5
5. Incorporate the preprint number (or URL) and submission
gt;> I was feeling a bit bored today, so I came up with this. It is a
>> plain e-TeX input file instead of a LaTeX package, but it should
>> run without problems.
>>
>
> If you are still bored, how about adding this to ConTeXt, so that one
> can say
>
> To
is a
> plain e-TeX input file instead of a LaTeX package, but it should
> run without problems.
If you are still bored, how about adding this to ConTeXt, so that one
can say
Today is \currentdate[weekday] of the \currentdate[week] week of
\currentday[year]
I do not know if someone will
ename = "";
$FileextensionA = "pdf";
$FileextensionB = "png";
#~ $FileextensionC = "1";
$Filedate = "";
$Filetimestamp ;
$Filesize= "";
$Globstring = "*." . $FileextensionA;
$Outfile = ">Figure-lib.xml";
## Date
(
65 matches
Mail list logo