[NTG-context] Re: \time pendant to \currenttime

2025-06-10 Thread Benjamin Buchmuller
all your help! Benjamin > On Jun 10, 2025, at 05:45, Hans Hagen wrote: > > On 6/10/2025 2:35 AM, Benjamin Buchmuller wrote: >> Hi list, >> I was wondering if there is a "\time" equivalent similar to "\currentdate" >> -> "\date"? >

[NTG-context] Re: \time pendant to \currenttime

2025-06-10 Thread Hans Hagen via ntg-context
On 6/10/2025 2:35 AM, Benjamin Buchmuller wrote: Hi list, I was wondering if there is a "\time" equivalent similar to "\currentdate" -> "\date"? I know from the wiki (and source) that there is "\currenttime", but "\time[h=8, m=30]&quo

[NTG-context] Re: \time pendant to \currenttime

2025-06-10 Thread Hans Hagen
On 6/10/2025 2:35 AM, Benjamin Buchmuller wrote: Hi list, I was wondering if there is a "\time" equivalent similar to "\currentdate" -> "\date"? I know from the wiki (and source) that there is "\currenttime", but "\time[h=8, m=30]&quo

[NTG-context] \time pendant to \currenttime

2025-06-09 Thread Benjamin Buchmuller
Hi list, I was wondering if there is a "\time" equivalent similar to "\currentdate" -> "\date"? I know from the wiki (and source) that there is "\currenttime", but "\time[h=8, m=30]" will not typeset "8:30", so it doesn't see

[NTG-context] Re: month form \currentdate in Roman numerals

2025-03-02 Thread Mohammad Hossein Bateni
On Sun, Mar 2, 2025, 8:00 AM Hans Hagen via ntg-context wrote: > On 2/28/2025 11:28 PM, Mohammad Hossein Bateni wrote: > > the following outputs "farsi" instead of "fa". is this the reason the > > translation of jalali month does not kick in? > > We have these short and long names, and originally

[NTG-context] Re: month form \currentdate in Roman numerals

2025-03-02 Thread Hans Hagen via ntg-context
On 2/28/2025 11:28 PM, Mohammad Hossein Bateni wrote: the following outputs "farsi" instead of "fa". is this the reason the translation of jalali month does not kick in? We have these short and long names, and originally only had short ones, for efficiency reasons (like memory limitations in t

[NTG-context] Re: month form \currentdate in Roman numerals

2025-03-02 Thread Hans Hagen via ntg-context
On 2/28/2025 11:30 PM, Mohammad Hossein Bateni wrote: BTW why doesn't \setuplabeltext exist in the mtx-server-ctx-help? It does exist in setup-en.pdf and shows that it is an instance of \setupLABELtext. because it's a 'defined command' ... i could probably add it but it's not like there has b

[NTG-context] Re: month form \currentdate in Roman numerals

2025-02-28 Thread Mohammad Hossein Bateni
gt;> >> \persiandecimals{\rawdate[jalali:to,d]}/\persiandecimals{\rawdate[jalali:to,M]}/\persiandecimals{\rawdate[jalali:to,y]} >> >> but the following does not work and throws an error: >> >> \persiandecimals{\currentdate[jalali:to,d]} >> >> If I want to

[NTG-context] Re: month form \currentdate in Roman numerals

2025-02-28 Thread Mohammad Hossein Bateni
als{\rawdate[jalali:to,M]}/\persiandecimals{\rawdate[jalali:to,y]} > > but the following does not work and throws an error: > > \persiandecimals{\currentdate[jalali:to,d]} > > If I want to get the output for different date, option 2 below works and > option 1 does not. >

[NTG-context] Re: month form \currentdate in Roman numerals

2025-02-27 Thread Mohammad Hossein Bateni
For Jalali dates and Persian numbering, I can get the following to work: \persiandecimals{\rawdate[jalali:to,d]}/\persiandecimals{\rawdate[jalali:to,M]}/\persiandecimals{\rawdate[jalali:to,y]} but the following does not work and throws an error: \persiandecimals{\currentdate[jalali:to,d]} If I

[NTG-context] Re: month form \currentdate in Roman numerals

2025-02-21 Thread Wolfgang Schuster
Am 20.02.2025 um 19:53 schrieb Mohammad Hossein Bateni: Any thoughts why the following doesn't work? \currentdate[d:persiannumerals] It just outputs the normal digits. In contrast, these work: \currentdate[d:abjadnumerals] \convertnumber{persiannumerals}{\normalday} persiannumerals a

[NTG-context] Re: month form \currentdate in Roman numerals

2025-02-20 Thread Mohammad Hossein Bateni
Any thoughts why the following doesn't work? \currentdate[d:persiannumerals] It just outputs the normal digits. In contrast, these work: \currentdate[d:abjadnumerals] \convertnumber{persiannumerals}{\normalday} On Sat, Dec 7, 2024, 7:11 AM Pablo Rodriguez via ntg-context < ntg

[NTG-context] Re: Weird date output

2025-01-14 Thread autumnus
There should be two changes to be made here: One is a patch added by Wolfgang, which fixes the extra space for dates in the current Chinese environment. One is that in the current environment, the format of the Chinese date should be modified to: \currentdate[year,年,M,月,day,日] (output: 2025年1月

[NTG-context] Re: Weird date output

2025-01-14 Thread Wolfgang Schuster
Am 13.01.2025 um 19:02 schrieb Hans Hagen: On 1/13/2025 5:43 PM, Wolfgang Schuster wrote: Am 12.01.2025 um 06:16 schrieb autumnus: Thank you for your explanation. Regarding the space after the month, will it be added to the ConTeXt in the future? I'm worried that after I patch it, it will be

[NTG-context] Re: Weird date output

2025-01-12 Thread autumnus
I don't know why, the text is automatically added with spaces. The correct one should be: \currentdate[year,年,M,月,day,日] \currentdate[year:cn-d,年,month,day:cn,日] ___ If your question is of interest to othe

[NTG-context] Re: Weird date output

2025-01-12 Thread autumnus
hi, Tomáš Thank you for your help. The format that is currently more commonly used is the first one. \starttext \language[cn] \definedfont[name:adobesongstdlight] modern and mostly used : \currentdate[year,年,M,月,day,日] : 2025年1月12日 traditional and special case: \currentdate[year:cn

[NTG-context] Re: Weird date output

2025-01-11 Thread Wolfgang Schuster
e Chinese month. \definedfont[name:adobesongstdlight] \currentdate[year:cn-d,年,month:cn-a,day:cn,号] %output : 二〇二五年January 十一号 \setuplabeltext [en][january={一月},] \currentdate[year:cn-d,年,month:cn-a,day:cn,号] %output : 二〇二五年一月 十一号 If so, then when should I use those conversion method ? (

[NTG-context] Weird date output

2025-01-10 Thread autumnus
obesongstdlight] \currentdate[year:cn-d,年,month:cn-a,day:cn,号] %output : 二〇二五年January 十一号 \setuplabeltext [en][january={一月},] \currentdate[year:cn-d,年,month:cn-a,day:cn,号] %output : 二〇二五年一月 十一号 If so, then when should I use those conversion method ? (At present, the output of "month:cn

[NTG-context] Re: playing with dates

2024-12-16 Thread Wolfgang Schuster
\increment or \decrement, as shown in the wiki: \starttext Today is \currentdate. \dorecurse{25} {\increment\normalday} Tomorrow will be \currentdate. \decrement\normalday %\increment\normalmonth% -- gives an error \increment\normalyear And today in a year will be

[NTG-context] playing with dates

2024-12-16 Thread Pablo Rodriguez via ntg-context
Today is \currentdate. \dorecurse{25} {\increment\normalday} Tomorrow will be \currentdate. \decrement\normalday %\increment\normalmonth% -- gives an error \increment\normalyear And today in a year will be \currentdate. \stoptext But the main problem is that I end up having the

[NTG-context] Re: month form \currentdate in Roman numerals

2024-12-07 Thread Pablo Rodriguez via ntg-context
On 12/6/24 15:39, Wolfgang Schuster wrote: > [...] > The \date (and \currentdate) command supports number conversion for the > day and year values but not the month. > > \starttext > \currentdate[d:R,space,space,y:R] > \stoptext Many thanks for your fast reply, Wolfgang. I

[NTG-context] Re: Transition from ConTeXt mark II to mark IV

2024-12-06 Thread Wolfgang Schuster
tartalignment[right,broad]    \TitleFont\startcolor[LightColor]\ss\bfc\setupinterlinespace[big]} \def\StopTitlePage   {\stopcolor    \stopalignment    ...} 3. \setupinteraction fails when you pass \currentdate to the date key. \setupinteraction[date=\currentdate] 4. Active characters for

[NTG-context] Re: month form \currentdate in Roman numerals

2024-12-06 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 06.12.2024 um 12:35: Dear list, I would like to get the current month in Roman numerals (just now, it would be XII for December). The best I get is: \currentdate[\cldcontext{converters['R'] (tonumber(os.date("\letterpercent m&qu

[NTG-context] month form \currentdate in Roman numerals

2024-12-06 Thread Pablo Rodriguez via ntg-context
Dear list, I would like to get the current month in Roman numerals (just now, it would be XII for December). The best I get is: \currentdate[\cldcontext{converters['R'] (tonumber(os.date("\letterpercent m", os.date(os.time()}] This strikes me as too complex (

[NTG-context] Re: Tikz CD

2024-11-25 Thread Aditya Mahajan
=2021.07.12, %D title=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore cop

[NTG-context] Re: Seeking Advice on Electron Configuration Notation in ConTeXt

2024-10-30 Thread Hans Hagen
ra Modules, %D subtitle=messing with electrons, %D author=Hans Hagen, %D date=\currentdate, %D copyright={\CONTEXT\ Development Team}] % This is a follow up on mails to the list by Jorge and Bruce. \startmodule [m-electrons] \unprotect \installcorenamespace

[NTG-context] Some suggestions for the current lang-txt.lua file and some questions about setting the labeltext and date

2024-10-24 Thread ai2472206007
Please let me know if I'm missing anything to use correctly. I apologize for my carelessness % \chapter{Title} will show : 1 title % why not 第一章? % Do I have to set it up again via labeltext? \currentdate % show 2024 年 十月 24 日。 % This is confusing because

[NTG-context] Re: Values from Lua back to ConTeXt

2024-10-03 Thread Thomas Meyer
,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 keywords like day, weekday etc. the \date (and \currentdate) commands allows free input which used as separator between these keywords. To set a

[NTG-context] Re: Values from Lua back to ConTeXt

2024-10-03 Thread Wolfgang Schuster
keywords like day, weekday etc. the \date (and \currentdate) commands allows free input which used as separator between these keywords. To set a period as separator just put . as entry in the list but ensure to use braces around , because it will otherwise be interpreted as list separator. When

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
{10}{ \bTR \bTD\strut \eTD\bTD \eTD\bTD \eTD \eTR } \eTABLE """ Hraban%D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\

[NTG-context] \xmlinclusion?

2023-11-09 Thread Hans van der Meer via ntg-context
\xmlinclusion\{\#1\} ===> "\xmlinclusion{#1}"\crlf \xmlflush{#1}\crlf {\bf End test}\blank\stopxmlsetups\startxmlsetups demo:test \xmlflush{#1}\stopxmlsetups\starttext\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blankThe following text is on page 52 of xml-mkiv.pdf:\crlf\type{

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen
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

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
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

[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate

2023-08-08 Thread Hans Hagen
od.nl - %D \module %D [ file=m-tikz, %Dversion=2021.07.12, %D title=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ De

[NTG-context] \version[temporary] fatal error

2023-07-23 Thread Jacob Kauffmann via ntg-context
}:\space \currentdate \quad \donefalse \ifcstok \currentproject \currentproduct \ifcstok \currentproduct \currentcomponent \donetrue \fi \fi \ifdone \donefalse \else \ifempty \ \page_info_add_to_box #1->\scratchdimen \wd #1\setbox \b_page_versions \vpack to \ht #1{\vfill \settexthoff

[NTG-context] tikz + lmtx

2023-04-27 Thread Aditya Mahajan via ntg-context
date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D A fixed variant of the t-tikz module distributed with tikz. For pract

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
uthor=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D Just a quick hack for Hraban (after a po

Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Hans Hagen via ntg-context
=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D Just a quick hack for Hraban (after a post on

Re: [NTG-context] rewrite for Greek in the wiki

2023-01-21 Thread Jean-Pierre Delange via ntg-context
g/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-el-polyton.tex). Ironically, modern polytonic Greek patterns would be required to typeset both the act and the decree that introduced the monotonic ortography. 2. Greek doesn’t seem to have language-dependent commands (such as \current

Re: [NTG-context] rewrite for Greek in the wiki

2023-01-21 Thread Thomas A. Schmitz via ntg-context
e act and the decree that introduced the monotonic ortography. 2. Greek doesn’t seem to have language-dependent commands (such as \currentdate). In both cases, Hans will reply that nobody asked for any of them. Of course, I totally agree. AfaIk, nobody asked for these featu

[NTG-context] rewrite for Greek in the wiki

2023-01-21 Thread Pablo Rodriguez via ntg-context
typeset both the act and the decree that introduced the monotonic ortography. 2. Greek doesn’t seem to have language-dependent commands (such as \currentdate). In both cases, Hans will reply that nobody asked for any of them. Of course, I totally agree. AfaIk, nobody asked for these features

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-29 Thread Hans Hagen via ntg-context
gma-pod.nl -%D \module %D [ file=m-poetry, %Dversion=2022.08.28 %D title=\CONTEXT\ Extra Modules, %D subtitle=Whatever comes up, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-28 Thread Hans Hagen via ntg-context
od.nl -%D \module %D [ file=m-poetry, %Dversion=2022.08.28 %D title=\CONTEXT\ Extra Modules, %D subtitle=Whatever comes up, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %

Re: [NTG-context] C with macron

2022-08-24 Thread Hans Hagen via ntg-context
-%D \module %D [ file=m-gimmicks, %Dversion=2022.07.25 %D title=\CONTEXT\ Extra Modules, %D subtitle=Whatever comes up, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is

Re: [NTG-context] Using alegreya typescript

2022-07-06 Thread Hans Hagen via ntg-context
=type-imp-dejavu, %Dversion=2010.06.21, %D title=\CONTEXT\ Typescript Macros, %D subtitle=Alegreya fonts, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ m

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Hans Hagen via ntg-context
-%D \module %D [ file=type-junicode, %D version=2011.09.18, %Dtitle=\CONTEXT\ Typescript Macros, %D subtitle=Junicode Font Definitions, %D author=Wolfgang Schuster, %D date=\currentdate, %Dcopyright=Wolfgang Schuster, %D license=GNU

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
n; charset="utf-8"; Format="flowed" >> >> Hi, >> >> This works here: >> >> \usemodule[circuitikz] >> >> \starttext >>\startcircuitikz >>\draw (0,2) to[I] (2,2); >>\stopcircuitikz >>\startcircui

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jeong Dal via ntg-context
; distribution. If needed we can apply runtime patches too. > > (nyw, it looks like tikz creates empty pfg files during a run but that's > probbably has a reason) > > Hans > > - >

Re: [NTG-context] circuitikz module seems broken

2021-12-13 Thread Hans Hagen via ntg-context
e=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf

Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-06 Thread Hans Hagen via ntg-context
Dversion=2021.07.12, %D title=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is

Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken

2021-12-03 Thread Hans Hagen via ntg-context
title=\CONTEXT\ Extra Modules, %D subtitle=CURCUITIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pd

Re: [NTG-context] some ConTeXt distribution's Fonts don't work

2021-10-24 Thread Wolfgang Schuster via ntg-context
th of them to test if everything works as expected. Wolfgang %D \module %D [ file=type-imp-kurier, %Dversion=2021.10.24, %D title=\CONTEXT\ Typescript Macros, %D subtitle=Kurier, %D author=Hans Hagen, %D date=\currentdate, %D copyright={

Re: [NTG-context] ligature exceptions

2021-07-28 Thread Hans Hagen via ntg-context
if trace_replacements then report_replacement("enabling replacement handler") end enabled = true end end texsetattribute(a_replacements,n) end -- interface implement { name = "setreplacements", ac

[NTG-context] date formatting

2021-07-18 Thread Hans van der Meer
or \language[en-gb] should format dates normally in day-month-year order, reserving mont-day-year for \language[us] i.e. language[en-us]. But in ConTeXt both \language[en] and \language[en-gb] produce the us ordering for \currentdate. I would be pleased if ConTeXt could be changed to the above

Re: [NTG-context] Missing symb-imp-was.mkiv ?

2021-07-10 Thread Hans Hagen
and Waldi's Symbols (wasy-2), %D author=Henning Hraban Ramm, %D date=\currentdate, %D copyright={Public Domain}] %C %C This module is in the public domain. %D Converted to \MKIV\ by Hans but not yet complete. \unprotect \definefontsynonym [WaldiSymbol] [wasy10] \definef

Re: [NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Aditya Mahajan
. Aditya hatch.pdf Description: Adobe PDF document hatch.tex Description: TeX document %D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\curren

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
mize each segment. Aditya%D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\currentdate, %D copyright={Aditya Mahajan}] %D This metapost modu

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
n: TeX document %D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\currentdate, %D copyright={Aditya Mahajan}] %D This metapost module is inspire

Re: [NTG-context] printing the current date

2021-01-27 Thread Wolfgang Schuster
Hans Hagen schrieb am 27.01.2021 um 22:31: On 1/27/2021 6:28 PM, Peter Münster wrote: On Sun, Jan 10 2021, Peter Münster wrote: \currentdate% same as \date, but I would expect the day of today... Should I fill a bug-report on the tracker? Perhaps also for the missing space after \date

Re: [NTG-context] printing the current date

2021-01-27 Thread Hans Hagen
On 1/27/2021 6:28 PM, Peter Münster wrote: On Sun, Jan 10 2021, Peter Münster wrote: \currentdate% same as \date, but I would expect the day of today... Should I fill a bug-report on the tracker? Perhaps also for the missing space after \date[]? Reporting here is faster. Can (lazy me

Re: [NTG-context] printing the current date

2021-01-27 Thread Peter Münster
On Sun, Jan 10 2021, Peter Münster wrote: > \currentdate% same as \date, but I would expect the day of today... Should I fill a bug-report on the tracker? Perhaps also for the missing space after \date[]? TIA, -- Pe

[NTG-context] LMTX/MkIV difference in date handling

2021-01-14 Thread Henning Hraban Ramm
ConTeXt ver: 2021.01.11 17:27 LMTX fmt: 2021.1.11 The following works in MkIV, but not in LMTX: \def\Jahr{\currentdate[year]} \settaggedmetadata[ rights={© \Jahr{} Me} ] \starttext \strut \stoptext The error message is: 1 \def\Jahr{\currentdate[year]} 2 3

Re: [NTG-context] printing the current date

2021-01-10 Thread Fabrice L
> Le 10 janv. 2021 à 13:23, Peter Münster a écrit : > > Hi, > > I would expect, that \currentdate prints the current date, but it does > not: > > --8<---cut here---start->8--- > \starttext > \date[d=1]% first day of th

[NTG-context] printing the current date

2021-01-10 Thread Peter Münster
Hi, I would expect, that \currentdate prints the current date, but it does not: --8<---cut here---start->8--- \starttext \date[d=1]% first day of this month, ok \date% again first day, last parameters are used, this is ok \currentdate% same as \date,

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
} \blank[2*big] {\tfb \documentvariable{subtitleone}} \blank[2*big] {\tfb \documentvariable{subtitletwo}} \blank[10*big] {\tfb \documentvariable{revnumber}} \blank {\tfb \currentdate[month,year]} \blank[10*big] {\tfb Written by:} \blank {\tfb Company name} \blank {\tfb City, Country} \stopstandard

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
}} \blank[2*big] {\tfb \documentvariable{subtitletwo}} \blank[10*big] {\tfb \documentvariable{revnumber}} \blank {\tfb \currentdate[month,year]} \blank[10*big] {\tfb Written by:} \blank {\tfb Company name} \blank {\tfb City, Country} \stopstandardmakeup \stopcomponent end

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
blank[2*big]    \color[Modu_Blue]{\midaligned{\tfb \MySubtitleOne}}    \blank[2*big]    \color[Modu_Blue]{\midaligned{\tfb \MySubtitleTwo}} \blank[10*big] \color[Modu_Blue]{\midaligned{\tfb \MyRevnumber}}    \blank    \midaligned{\color[Modu_Blue]{\tfb \currentdate[month,year]}} \b

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
Title}} \blank[2*big] \color[Modu_Blue]{\midaligned{\tfb \MySubtitleOne}} \blank[2*big] \color[Modu_Blue]{\midaligned{\tfb \MySubtitleTwo}} \blank[10*big] \color[Modu_Blue]{\midaligned{\tfb \MyRevnumber}} \blank \midaligned{\color[Modu_Blue]{\tfb \currentdate[month,year]}} \blank[1

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
\MySubtitleTwo}} \blank[10*big] \color[Modu_Blue]{\midaligned{\tfb \MyRevnumber}}    \blank    \midaligned{\color[Modu_Blue]{\tfb \currentdate[month,year]}} \blank[10*big] \midaligned{\color[Modu_Blue]{\tfb Written by:}}    \blank    \midaligned{\color[Modu_Blue]{\tfb Company name

Re: [NTG-context] explain please

2020-06-24 Thread Hans van der Meer
\\currentdate Neat solution, worked without a hitch. Now I have to remember this for future use ... dr. Hans van der Meer > On 24 Jun 2020, at 21:10, Hans Hagen wrote: > > On 6/24/2020 9:00 PM, Hans van der Meer wrote: >> How can the crash in the minimal example here be ex

Re: [NTG-context] explain please

2020-06-24 Thread Hans Hagen
On 6/24/2020 9:00 PM, Hans van der Meer wrote: How can the crash in the minimal example here be explained? And is there a solution to avoid this and make the crash going away "without having to jump through special hoops"? because \currentdate is a macro thatv does some magic ... it&#

[NTG-context] ConTeXt doesn't recognize source on network drive?

2020-05-11 Thread context
3 %D version=2012.06.01, 4 %D title=\CONTEXT\ Miscellaneous Macros, 5 %D subtitle=Startup Stub, 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 >> %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] 9

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

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

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

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

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
align=middle, frame=off] {\tfx \crlf Annex T.2.3. \crlf \tfx Date of issue: \crlf \currentdate \crlf page \pagenumber of \lastpage} } }] %\setupfloat[table][default={force,split}] \setupxtable[offset=0cm, frame=off, bottomframe=on, framecolor=gray, option=stretch, split=yes, header=repeat,

Re: [NTG-context] passing variables/data between context and lua

2019-10-06 Thread Wolfgang Schuster
f Bahr,    date=\currentdate] \starttext \getvariable{metadata}{author}\par \getvariable{metadata}{date} \stoptext The main point of the command is that you can choose whatever name you want for the keys to store the values. Instead a using a list of values to store in a key-value-method you can a

[NTG-context] Fwd: Meptapost Drawing not showing-up in Context Letter Style

2019-03-12 Thread Jeroen
, Main Street\\23124 London\\United Kingdom}, fromname={Jansen NV}, fromaddress={Waalhaven 2200\\2842 KL Rotterdam}, name={Piet jansen}, phone={+31(010)4234 4232}, email={peter.jan...@gmail.com}, date={\currentdate}, signature={Pete},] % END LETTER SETUP, START LETTER

[NTG-context] Meptapost Drawing not showing-up in Context Letter Style

2019-03-10 Thread Context NTG
)4234 4232}, email={peter.jan...@gmail.com}, date={\currentdate}, signature={\externalfigure[autograph][height=4\lineheight]\\\correspondenceparameter{name}},] % END LETTER SETUP, START LETTER \startletter [subject={Outstanding Invoices}, opening={Dear Sir,}, closing={Kind Regards

Re: [NTG-context] expansion inside PDF annotations

2019-03-07 Thread Pablo Rodriguez
On 3/6/19 10:34 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 05.03.19 um 17:44: >> [...] >> \attachment >> [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf] >> [author={Attached on \currentdate}, >> title={Att

Re: [NTG-context] expansion inside PDF annotations

2019-03-06 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 05.03.19 um 17:44: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] Attached on \currentdate. \attachment [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf

Re: [NTG-context] issue with \startattachment...\stopattachment

2019-03-05 Thread Wolfgang Schuster
. \stopattachment Attached on \currentdate. \stopTEXpage \stoptext I have a question: shouldn’t be “Attached file.” typeset on the main text? No because \startattachment ... \stopattachment is the same as \startbuffer[...] ... \stopbuffer \attachment[buffer=...] where you combine the buffer

[NTG-context] issue with \startattachment...\stopattachment

2019-03-05 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \startattachment [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf] Attached file. \stopattachment Attached on \currentdate. \stopTEXpage

[NTG-context] expansion inside PDF annotations

2019-03-05 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] Attached on \currentdate. \attachment [http://pragma-ade.com/general/manuals/xtables-mkiv.pdf] [author={Attached on \currentdate}, title

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
The following example \mainlanguage[nl] \starttext \currentdate \stoptext gives 2019 maart 27. Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : nt

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
wrong date: \mainlanguage[fr] \starttext \currentdate \stoptext gives 27 mars 2019 (with two months in advance… :-) \mainlanguage[en] or any other language, gives the same error (March 27, 2019). Best regards: OK > On 27 Jan 2019, at 13:17, Fabrice Couvreur > wrote: > >

Re: [NTG-context] inmargin produces underfull hbox

2018-09-07 Thread Wolfgang Schuster
\leftmarginwidth    \setupalign[flushright]    \bf abc} \stoptext Wolfgang Hans van der Meer schrieb am 07.09.18 um 13:02: This minimal example: \starttext \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank Testing \ConTeXt macro\ \tex{inmargin} \blank Some text to fill the body of the

[NTG-context] inmargin produces underfull hbox

2018-09-07 Thread Hans van der Meer
This minimal example: \starttext \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank Testing \ConTeXt macro\ \tex{inmargin} \blank Some text to fill the body of the text.\par \inmargin{\hbox{abc}} Some text to fill the body of the text\par \stoptext produces an underfull hbox

[NTG-context] Use of context in lua (was: date calculated with currentdate plus n days)

2018-08-14 Thread Jan U. Hasecke
On 14.08.2018 16:58, Pablo Rodriguez wrote: > I rewrote your sample as (xtables are the only tables I know in ConTeXt): > > \starttext > \startlua > context.startxtable() > context.startxrow() > context.startxcell() > context("Note 1") > context.stop

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-14 Thread Pablo Rodriguez
On 08/14/2018 09:24 AM, Henri Menke wrote: > On 14/08/18 17:29, Pablo Rodriguez wrote: >> [...] >> Where are those context.* Lua commands documented? >> >> I want to generate an xtable using Lua code, but I don’t know where to read. > > They aren't documented because they are just the context comm

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-14 Thread Henri Menke
On 14/08/18 17:29, Pablo Rodriguez wrote: On 08/14/2018 01:46 AM, Henri Menke wrote: On top of that I recommend to use context.date to get the correct formatting according to the current language options: \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 * 24 * 3600) context

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Pablo Rodriguez
On 08/14/2018 01:46 AM, Henri Menke wrote: > On top of that I recommend to use context.date to get the correct > formatting according to the current language options: > > \def\duedate{\ctxlua{ >local t = os.date('*t', os.time()+ 10 * 24 * 3600) >context.date{ d = t.day, m = t.month, y = t

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Henri Menke
On top of that I recommend to use context.date to get the correct formatting according to the current language options: \starttext \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 * 24 * 3600) context.date{ d = t.day, m = t.month, y = t.year } }} \duedate \stoptext On 14/08/18

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Jan U. Hasecke
On 13.08.2018 17:57, Pablo Rodriguez wrote: > if you don’t mind using Lua, here you have it: > > \starttext > \def\duedate{\cldcontext{os.date('\letterpercent d/\letterpercent > m/\letterpercent Y', os.time()+ 10 * 24 * 3600)}} > > \duedate > \stoptext > > Just in case i

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Pablo Rodriguez
On 08/13/2018 05:19 PM, Jan U. Hasecke wrote: > Hi all, > > I want to insert a due date for payments in my invoice and I would like > to calculate it from \currentdate. Something like > > define \duedate = \currentdate plus 10 days > > Is this possible? Hi Jan-Ulrich,

[NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Jan U. Hasecke
Hi all, I want to insert a due date for payments in my invoice and I would like to calculate it from \currentdate. Something like define \duedate = \currentdate plus 10 days Is this possible? juh ___ If your

Re: [NTG-context] letter: How to customize reference line?

2018-06-25 Thread Wolfgang Schuster
e={Joe User}, date=\currentdate] \setupletter [list={name,date}] ``` Only the date is shown in the reference line. The solution from chapter 9 also does not work. Still only the date is shown. ``` \setupletter [name={Joe User}, date=\currentdate] \setupletterstyle[reference][list

[NTG-context] letter: How to customize reference line?

2018-06-25 Thread Paul Menzel
: 2017.05.15 21:48 ``` The example from Wolfgang’s `correspondence.pdf` [1] doesn’t work for me. ``` \setupletter [name={Joe User}, date=\currentdate] \setupletter [list={name,date}] ``` Only the date is shown in the reference line. The solution from chapter 9 also does not work. Still

Re: [NTG-context] problem with character entities in XML processing

2018-04-19 Thread Hans van der Meer
:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{demo:entity} \startxmlsetups demo:entity:root \blank Start test:\crlf flushing: \xmlflush{#1}\crlf End test\blank \stopxmlsetups \startbuffer[demo] amp = & and #38 = & \stopbuffer \starttext \currentdate-\currenttime\quad\ConTeXt

Re: [NTG-context] goto reference

2018-04-19 Thread Taco Hoekwater
lace the absolute path by your own, of course. Three >>> cases are programmed: >>> (1) Wolfgang’s >>> (2) full path ftp:// access opens file but at last page opened >>> (3) local path does not open and brings up an Alert >>> Run from TeXShop and also direc

Re: [NTG-context] goto reference

2018-04-19 Thread Hans van der Meer
>> (3) local path does not open and brings up an Alert >> Run from TeXShop and also directly in Preview and Adobe Reader with the same >> results. >> >> Thanks in advance. >> >> dr. Hans van der Meer >> >> >> \starttext >> \c

  1   2   3   4   5   >