[NTG-context] Omitting part number in chapter numbers

2019-02-19 Thread Simon Collier
Dear list.

I would like to have a TOC that looks basically as follows when stripped down 
to the essentials:

1 Part1
1 Chapter1
2 Chapter2

2 Part2
3 Chapter3

I don't want the part number to be "part" of the chapter number (no 2.1, just 
1, for example).
This behaviour should apply both to the titles in the text and in the TOC..

With the code:

\definestructureresetset[default][1,0,1][1] % reset part and section, but not 
chapter, from wiki
\setuphead[sectionresetset=default]

\setuphead[part]
[placehead=yes,
number=yes,]
\setuplist [part]
  [number=yes,]

\setuphead [chapter]
  [number=yes,]
\setuplist [chapter]
  [number=yes,]

\starttext
\completecontent

\startpart[title={Part1}]
\startchapter[title={Chapter3}]
\input knuth
\stopchapter
\startchapter[title={Chapter2}]
\input tufte
\stopchapter
\stoppart

\startpart[title={Part2}]
\startchapter[title={Chapter3}]
\input knuth
\stopchapter
\stoppart

\stoptext

I can make chapter numbers flow independently of parts, which is nice.
But the numbering for chapters is like 1.1, 1.2, and 2.3, which is a good 
default, but not what I want.
Is there any way to omit part number and get only the chapter number displayed?

In wiki there is something that is almost suitable, namely setting:
numbercommand={\determineheadnumber[chapter]\currentheadnumber\gobbleoneargument}]
But this does not work for TOC, returning just zeros (and seems like also an 
extra zero is spilled on TOC, overall pretty hackish solution).

When nothing seemed to work, I also tried to use an ugly macro that uses lua to 
format the argument #1 in the numbercommand nicely with the help of string 
functions,
but it turned out the actual parameter #1 in numbercommand is something other 
than just a string with numbers and dots.
If someone knows what it is, or how to find out, please point me to the right 
direction to better understand the system. Currently I'm unable to even print 
it to the terminal in order to see what actual characters are there, the 
following code outputting the length (seems to be 19 at least for me) works 
just fine as well as printing the string itself to the document.

\startluacode

 
userdata = userdata or

{

}

function userdata.numberfun

(

str

)

context

(

tostring(#str)

)

end

\stopluacode

\def

\mync

#1

%

{

\ctxlua

{

userdata.numberfun

(

[

==

[

#1

]

==

]

)

}

}

The idea seemed pretty standard and is used in many books, so maybe I've just 
completely missed the right way to approach this.

Regards,
Simon Collier___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-19 Thread Wolfgang Schuster



Procházka Lukáš Ing. schrieb am 19.02.19 um 21:27:

Hello,

it seems that xtable setup doesn't recognize the "c" option, which is 
recognized successfully by TABLE setup;

tested on mapping provided by "ntb-to-xtb" module:


\usemodule[ntb-to-xtb] \restoreTABLEfromxtable

\starttext
  \bTABLE
    \setupTABLE[c][1][width=1in] % Set 1st column width - OK with TABLE
    \bTR
  \bTD A
  \eTD
    \eTR
  \eTABLE

  \bgroup
    \mapTABLEtoxtable
    \bTABLE
  \setupTABLE[c][1][width=1in] % <- This line causes error - not 
recognized by xtable setup


xtables don’t support row/column settings like natural table and the 
mapping doesn’t change this.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Mapping TABLE to xtable (module "ntb-to-xtb") doesn't recognize "c" option for columns

2019-02-19 Thread Procházka Lukáš Ing .

Hello,

it seems that xtable setup doesn't recognize the "c" option, which is 
recognized successfully by TABLE setup;
tested on mapping provided by "ntb-to-xtb" module:


\usemodule[ntb-to-xtb] \restoreTABLEfromxtable

\starttext
  \bTABLE
\setupTABLE[c][1][width=1in] % Set 1st column width - OK with TABLE
\bTR
  \bTD A
  \eTD
\eTR
  \eTABLE

  \bgroup
\mapTABLEtoxtable
\bTABLE
  \setupTABLE[c][1][width=1in] % <- This line causes error - not recognized 
by xtable setup
  \bTR
\bTD A
\eTD
  \eTR
\eTABLE
  \egroup
\stoptext


Gives:

"
...
setup   > error in line 1, namespace 'xtable', key 'c'
setup   > error in line 1, namespace 'xtable', key 'c'
setup   > error in line 1, namespace 'xtable', key 'c'
...
"

It might be useful to extend the module to understand "c" setup option as well.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

Ntb2Xtb.log
Description: Binary data


Ntb2Xtb.mkiv
Description: Binary data


Ntb2Xtb.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] xtable and natural tables

2019-02-19 Thread Damien Thiriet
Hi list,

From Hans xtable manual:

As each cell is basically a \framed and as we need to do two passes over
the table, this mechanism is not
the fastest but it is some two times faster than the natural tables
mechanism, and in most cases can be used instead.

Manuals examples are of course short ones, but I understand this
mechanism is faster even on tables that do not expand on more than one
page. 
Does this mean, that extreme tables should now be considered as the
recommended way to build tables? 
Are there simple cases, when natural tables should be obviously
preferred?

Thanks,


Damien Thiriet
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Weird TABLE split across pages

2019-02-19 Thread Procházka Lukáš Ing .

Hello,

a TABLE is split weirdly over two pages:

- on the first page (here: page 8): the (repeated) header of the TABLE and the 
first body row followed by void space,
- then (here: on the page 9) the remaining part of the TABLE;

- see the sample attached.

I'm not able to strip my real case more to make the example "more MINIMAL" - 
whatever next I delete, the problem disappears.

Image of the bad break is attached; so are the source files.

The resulting .pdf (~53 kB, bad TABLE break between page 8 and 9) is available 
here:

http://leteckaposta.cz/330923784

Any idea what's going wrong?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396<>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] markdown module vs pandoc

2019-02-19 Thread Gour
On Mon, 18 Feb 2019 17:08:44 +0100
Pablo Rodriguez  wrote:

Hello Pablo,

> I convert Markdown to XHTML and then I compile the XML sources with
> ConTeXt.

I've tried it and it works nicely. The possibility to have one-source-does-all
is tempting. ;)

Now I wonder if you're still behind the tool and/or whether it is still
actively used by you?

Another question for both you and Aditya in regard to the point made by Mojca
(suggesting to use Asciidoc markup) is whether you find that Pandoc's
(extended) Markdown is semantically rich-enough to cover more complex documents
or in such cases it would be better to use richer markup like Asciidoc or simpy
to directly use ConTeXt?


So far, one thing is clear: ConTeXt is the way to go instead of LaTeX and other
options, but now have to resolve whether to use pandoc's markdown, AsciiDoc or
just ConTeXt...

Sincerely,
Gour


> 
> I describe the method at http://www.from-pandoc-to-context.tk/.
> 
> Just in case it might help,
> 
> Pablo


-- 
As the ignorant perform their duties with attachment to results,
the learned may similarly act, but without attachment, for the
sake of leading people on the right path.


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Frame

2019-02-19 Thread Ursula Hermann
Hi Marco!

Thanks a lot. 

Best regards 

Uschi 

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Marco Patzer
Gesendet: Dienstag, 19. Februar 2019 14:11
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Frame

On Tue, 19 Feb 2019 13:01:35 +
Ursula Hermann  wrote:

> I have:
> \framed
>   [height=3em,
>width=.5\textwidth,
>foregroundcolor=red,
>framecolor=blue,
>rulethickness=2pt,
>background=color,
>backgroundcolor=green]
> \starttext
> {Ich bin da.\par Du auch}
> \stoptext

Move the \starttext to the beginning:

\starttext
\framed
  [height=3em,
   width=.5\textwidth,
   foregroundcolor=red,
   framecolor=blue,
   rulethickness=2pt,
   background=color,
   backgroundcolor=green]
{Ich bin da.\par Du auch}
\stoptext

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net archive  : 
https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Frame

2019-02-19 Thread Marco Patzer
On Tue, 19 Feb 2019 13:01:35 +
Ursula Hermann  wrote:

> I have:
> \framed
>   [height=3em,
>width=.5\textwidth,
>foregroundcolor=red,
>framecolor=blue,
>rulethickness=2pt,
>background=color,
>backgroundcolor=green]
> \starttext
> {Ich bin da.\par Du auch}
> \stoptext

Move the \starttext to the beginning:

\starttext
\framed
  [height=3em,
   width=.5\textwidth,
   foregroundcolor=red,
   framecolor=blue,
   rulethickness=2pt,
   background=color,
   backgroundcolor=green]
{Ich bin da.\par Du auch}
\stoptext

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
Hi Jan,

Your example works fine here on my machine…
Which version of ConTeXt are you using?

Best regards: OK

> On 19 Feb 2019, at 13:49, Jan U. Hasecke  wrote:
> 
> Am 19.02.19 um 12:55 schrieb Otared Kavian:
>> Hi Fabrice,
>> 
>> After adding 
>>  
>>   \mainlanguage[fr]
>> 
>> to your file I obtain the attached output (Context version  2019.02.14 
>> 16:57).
>> 
> 
> I have a similar problem with a lua snippet, where mainlanguage does not
> solve the problem.
> 
> In a context version from last year this showed the right date format,
> now it shows: d=1m=3y=2019
> 
> 
> 
> \def\duedate{\ctxlua{
>  local t = os.date('*t', os.time()+ 10 * 24 * 3600)
>  context.date{d=t.day, m=t.month, y=t.year }
> }}
> 
> \mainlanguage[de]
> 
> \starttext
> 
>   \duedate
> 
> \stoptext
> 
> 
> TIA
> juh
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Frame

2019-02-19 Thread Ursula Hermann
I have:
\framed
  [height=3em,
   width=.5\textwidth,
   foregroundcolor=red,
   framecolor=blue,
   rulethickness=2pt,
   background=color,
   backgroundcolor=green]
\starttext
{Ich bin da.\par Du auch}
\stoptext

The mistake after compiling:
Command Line:   context.exe --synctex=-1 "Frame ward.tex"
Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\My Documents

mtx-context | run 1: luatex 
--fmt="C:/texlive/2018/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
 --jobname="Frame ward" 
--lua="C:/texlive/2018/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./Frame ward.tex" 
--c:input="./Frame ward.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" 
"cont-yes.mkiv"

This is LuaTeX, Version 1.07.0 (TeX Live 2018/W32TeX)
 system commands enabled.
open source > level 1, order 1, name 
'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2018.6.15  
int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name 
'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'Frame ward', input './Frame ward', result 
'Frame ward'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
system  > synctex functionality is enabled, expect 5-10 pct runtime 
overhead!
open source > level 2, order 3, name '//ub.univie.ac.at/U_Dom/Users 
G-L/Hermann/Documents/My Documents/Frame ward.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
system  > invalid \starttext ... \stoptext structure

tex error   > tex error on line 1 in file //ub.univie.ac.at/U_Dom/Users 
G-L/Hermann/Documents/My Documents/Frame ward.tex: ! You can't use `\end' in 
internal vertical mode


\dostoptext ... \writeline }\donothing \normalend

l.1 \dostoptext

\clf_stoptext ->\luafunction \16>>clf_stoptext

l.11 \stoptext


1 >>  \framed
2 [height=3em,
3 width=.5\textwidth,
4 foregroundcolor=red,
5 framecolor=blue,
6 rulethickness=2pt,
7 background=color,
8 backgroundcolor=green]
9 \starttext
10 {Ich bin da.\par Du auch}
11 \stoptext


?

I wanted to try some frames with text and paragraphs.  But there is something 
wrong, and I dont know why.
Many regards

Uschi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Jan U. Hasecke
Am 19.02.19 um 12:55 schrieb Otared Kavian:
> Hi Fabrice,
> 
> After adding 
>   
>\mainlanguage[fr]
> 
> to your file I obtain the attached output (Context version  2019.02.14 16:57).
> 

I have a similar problem with a lua snippet, where mainlanguage does not
solve the problem.

In a context version from last year this showed the right date format,
now it shows: d=1m=3y=2019



\def\duedate{\ctxlua{
  local t = os.date('*t', os.time()+ 10 * 24 * 3600)
  context.date{d=t.day, m=t.month, y=t.year }
}}

\mainlanguage[de]

\starttext

\duedate

\stoptext


TIA
juh
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
Hi Fabrice,

After adding 

 \mainlanguage[fr]

to your file I obtain the attached output (Context version  2019.02.14 16:57).

Best regards: OK



macros-header-date.pdf
Description: Adobe PDF document




> On 19 Feb 2019, at 11:37, Fabrice Couvreur  
> wrote:
> 
> Hi Otared,
> No that's not what I want to talk about. Before I got this "27 février 2019" 
> and now this d = 27 m = 02 y = 2019.
> Thank you.
> Fabrice
> 
> Le lun. 18 févr. 2019 à 14:31, Otared Kavian  a écrit :
> Hi Fabrice,
> 
> Do you mean the fact that the date is not in the usual French format? In that 
> case you should add
> 
> \mainlanguage[fr]
> 
> to the beginning of your file.
> 
> Best regards: OK
> 
> > On 18 Feb 2019, at 12:04, Fabrice Couvreur  
> > wrote:
> > 
> > Hi,
> > Aditya offered me this macro some time ago for my header. I updated context 
> > standalone, and the display of the date I want to do the evaluation 
> > (different from the current date) is no longer the same.
> > Thank you.
> > Fabrice
> > 
> > \setupbackgrounds
> >[header]
> >[text]
> >[frame=off,
> > topframe=off,
> > bottomframe=on,
> > framecolor=,
> > rulethickness=1pt]
> > 
> > \defineframed
> >[headerframed]
> >[frame=off,
> > height=fit,
> > width=fit]
> > 
> > \startsetups [headertext]
> > 
> > \setupheadertexts
> >[{
> >  \startframed [headerframed] [foregroundstyle=bold]
> >  \getvariable{headertext}{title} 
> > n\high{o}\,\getvariable{headertext}{number}
> >  \stopframed
> >}]
> > 
> > \setupheadertexts
> > [{
> >   \startframed [headerframed] [align=flushleft,foregroundstyle=\ssx]
> >   \getvariable{headertext}{location}\\
> >   \getvariable{headertext}{time}
> >   \stopframed
> > }]
> > [{
> >   \startframed [headerframed] 
> > [align=flushright,foregroundstyle=\ssx]
> >Lycée LA SALLE\\
> >   
> > \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
> >   \stopframed
> > }]
> > 
> >   \stopsetups
> > 
> > 
> > \setvariable{headertext}{set}{\directsetup{headertext}}
> > \setvariables
> >   [headertext]
> >   [title={Devoir surveillé de Mathématiques},
> >number={4},
> >day={27},
> >month={02},
> >year={2019},
> >location={T\high{\tfxx ale}~ES},
> >time={3 heures}]
> > 
> > \starttext 
> >   \input knuth
> > \stoptext
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> > 
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
Hi Otared,
No that's not what I want to talk about. Before I got this "27 février
2019" and now this d = 27 m = 02 y = 2019.
Thank you.
Fabrice

Le lun. 18 févr. 2019 à 14:31, Otared Kavian  a écrit :

> Hi Fabrice,
>
> Do you mean the fact that the date is not in the usual French format? In
> that case you should add
>
> \mainlanguage[fr]
>
> to the beginning of your file.
>
> Best regards: OK
>
> > On 18 Feb 2019, at 12:04, Fabrice Couvreur 
> wrote:
> >
> > Hi,
> > Aditya offered me this macro some time ago for my header. I updated
> context standalone, and the display of the date I want to do the evaluation
> (different from the current date) is no longer the same.
> > Thank you.
> > Fabrice
> >
> > \setupbackgrounds
> >[header]
> >[text]
> >[frame=off,
> > topframe=off,
> > bottomframe=on,
> > framecolor=,
> > rulethickness=1pt]
> >
> > \defineframed
> >[headerframed]
> >[frame=off,
> > height=fit,
> > width=fit]
> >
> > \startsetups [headertext]
> >
> > \setupheadertexts
> >[{
> >  \startframed [headerframed] [foregroundstyle=bold]
> >  \getvariable{headertext}{title}
> n\high{o}\,\getvariable{headertext}{number}
> >  \stopframed
> >}]
> >
> > \setupheadertexts
> > [{
> >   \startframed [headerframed]
> [align=flushleft,foregroundstyle=\ssx]
> >   \getvariable{headertext}{location}\\
> >   \getvariable{headertext}{time}
> >   \stopframed
> > }]
> > [{
> >   \startframed [headerframed]
> [align=flushright,foregroundstyle=\ssx]
> >Lycée LA SALLE\\
> >
>  
> \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
> >   \stopframed
> > }]
> >
> >   \stopsetups
> >
> >
> > \setvariable{headertext}{set}{\directsetup{headertext}}
> > \setvariables
> >   [headertext]
> >   [title={Devoir surveillé de Mathématiques},
> >number={4},
> >day={27},
> >month={02},
> >year={2019},
> >location={T\high{\tfxx ale}~ES},
> >time={3 heures}]
> >
> > \starttext
> >   \input knuth
> > \stoptext
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> >
> ___
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-19 Thread Rudolf Bahr
Hi All,

from an external figure I normally know its width and height in px. 
But I don't know its exact sizes in pt. When newsizing the figure 
in a document (by the same width-to-height-ratio), I'll do that as 
some part of textwidth or textheight, in pt or mm, but not in px, 
i.e. by means of [width=]. 
Sometimes it would be interesting to know its new height in pt, 
and viceversa. 

Is there a variable or something else containing its new size in pt?

Regards,
Rudolf

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-19 Thread Peter Münster
On Mon, Feb 18 2019, Alan Braslau wrote:

> manipulating them on the fly as one changes layout or image placement
> hardly seems efficient,

Our use cases are perhaps different: in my case, manipulating them on
the fly automatically is *very* efficient.


> even if one were to be clever in storing copies and looking at time
> stamps.

ConTeXt does it already in grph-inc.lua, no need to be clever... ;)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \mathematics might be missing \everymathematics

2019-02-19 Thread Henri Menke
Dear Hans,

In the following example I want to locally set lcgreek=normal but it is
not picked up because the attribute is not propagated.  When I enter
\everymathematics manually it works fine.  Is this by design or is this
a bug?  MWE below.

Cheers, Henri

---

\starttext

The greek letter should be upright here

\m[lcgreek=normal]{\varphi}

\m[lcgreek=normal]{\the\everymathematics\varphi}

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___