Re: [NTG-context] printing the current date

2021-01-10 Thread Peter Münster
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 --

Re: [NTG-context] printing the current date

2021-01-10 Thread Fabrice L
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 c

[NTG-context] Weekdays and others as numbers

2021-01-08 Thread Jairo A. del Rio
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

Re: [NTG-context] dutch calendars 3 months

2021-01-05 Thread Taco Hoekwater
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

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Adam Reviczky
short 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 > th

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Wolfgang Schuster
ort 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 W ke

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Adam Reviczky
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)

Re: [NTG-context] Short weekday option for date command

2020-04-04 Thread Hans Hagen
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

[NTG-context] Short weekday option for date command

2020-04-04 Thread Adam Reviczky
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

Re: [NTG-context] \date is calculated wrong

2019-09-11 Thread Martin Althoff
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

Re: [NTG-context] \date is calculated wrong

2019-09-11 Thread Hans Hagen
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

[NTG-context] \date is calculated wrong

2019-09-10 Thread Martin Althoff
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

Re: [NTG-context] tex.month can't be overridden like tex.day and tex.year

2019-05-06 Thread Hans Hagen
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

[NTG-context] tex.month can't be overridden like tex.day and tex.year

2019-05-03 Thread Tristan Stenner
\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 tex.month

Re: [NTG-context] \date behaving strange

2019-02-10 Thread martin
. 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: {#2

Re: [NTG-context] \date behaving strange

2019-02-09 Thread Hans Hagen
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 Hagen | PRAGMA

[NTG-context] \date behaving strange

2019-02-09 Thread martin
=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-context@ntg.nl

Re: [NTG-context] superscripts "th" "nd" "rd" "st" on dates etc..

2015-09-05 Thread Wolfgang Schuster
age[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 didn't ma

Re: [NTG-context] superscripts th nd rd st on dates etc..

2015-08-27 Thread Hans Hagen
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

Re: [NTG-context] superscripts th nd rd st on dates etc..

2015-08-26 Thread Mojca Miklavec
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 think

Re: [NTG-context] superscripts th nd rd st on dates etc..

2015-08-26 Thread Wolfgang Schuster
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 it suggests

Re: [NTG-context] Minor date formatting issue

2013-08-10 Thread Sietse Brouwer
...@gmail.com 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: Thursday, Augustday+, 2013 It’s recommended to use “day:ord” with \currentdate but you also use

Re: [NTG-context] Minor date formatting issue

2013-08-09 Thread Wolfgang Schuster
Am 09.08.2013 um 05:43 schrieb Matt Gushee m...@gushee.net: 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

Re: [NTG-context] Minor date formatting issue

2013-08-09 Thread Matt Gushee
Hi, Wolfgang-- On Fri, Aug 9, 2013 at 6:58 AM, Wolfgang Schuster schuster.wolfg...@gmail.com 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: Thursday, Augustday

[NTG-context] Minor date formatting issue

2013-08-08 Thread 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, Augustday+, 2013 This command: \currentdate [weekday,{,~},month,day,{,~},year] works

Re: [NTG-context] Working with layers ... with example

2013-06-24 Thread Wolfgang Schuster
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 \eTR \bTR \bTD further info

[NTG-context] MKIV: Wrong conversion for \date

2011-04-04 Thread Wolfgang Schuster
\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

[NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
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 Friday. I guess the parameter isn't taken

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Peter Münster
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 Sunday). In fact, whatever the supplied date, it gives Friday. I

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
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] -- Sunday 2

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Peter Münster
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 2/1

Re: [NTG-context] Problem with \date command

2010-10-15 Thread Cedric Mauclair
,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 -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] PDF fields

2010-08-31 Thread Lutz Haseloff
}{\definefield [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 higher. Thank you

Re: [NTG-context] PDF fields

2010-08-31 Thread Andreas Harder
,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 interest to others as well, please add an entry

Re: [NTG-context] Calendar resources

2008-06-22 Thread Charles P. Schaum
10) new_moon--; } return new_moon; } } int WeekDay(int date, int year, calendar style) { int d; d = date + year + year/4; if (style == Gregorian) d

[NTG-context] wrong weekday with MKIV

2008-03-30 Thread Peter Münster
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

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
] # \verticalstrut # \vfilll # \VL \vl[number] # \vpos \WEEKDAY{text} \weekday{text} \whitespace \WORD{text} \Word{text} \wordright{text} \WORDS{text text} \Words{text text} \writebetweenlist[section|name]{text} \writetolist[section|name]{text}{text} \writetoreferencelist[name]{text}{text

Re: [NTG-context] Datenumber

2007-11-29 Thread Bart Wise
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][weekday,month,day,{, },year] or simply \date[y=2007,m=11,d=27] or \currentdate As best as I can

[NTG-context] arxiv.org: submitting ConText documents

2007-04-16 Thread Sanjoy Mahajan
(or 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 date

Re: [NTG-context] Week number

2006-12-30 Thread Aditya Mahajan
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 find it useful or not, but it seems like a nice

Re: [NTG-context] Week number

2006-12-30 Thread Hans Hagen
-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 find it useful

Re: [NTG-context] Image Database

2005-08-18 Thread Willi Egger
= ; $Filetimestamp ; $Filesize= ; $Globstring = *. . $FileextensionA; $Outfile = Figure-lib.xml; ## Date ($Second, $Minute, $Hour, $DayOfMonth, $Month, $Year, $WeekDay, $DayOfYear, $IsDST) = localtime(time); $RealMonth = $Month +1 ; $RealYear = $Year + 1900 ; printf ('%02d.%02d.%04d', $DayOfMonth