[NTG-context] lua-error when asking for the fontame

2019-03-08 Thread Willi Egger
Hello,


today I updated ConTeXt to the version of 2019-03-05.

While testing a type-script I got an error, when I ask for the font name.

lua error   > lua error on line 1 in file /test.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/font-syn.lua:519: bad argument 
#1 to 'lower' (string expected, got nil)

MWE:

\setupbodyfont[pagella,rm,12pt]
\starttext
This text is written in  \font\fontname
\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
___


Re: [NTG-context] Showing value of a MP variable

2019-03-08 Thread Alan Braslau
On Fri, 08 Mar 2019 17:05:02 +0100
Procházka Lukáš Ing.  wrote:

> is it possible (namely for debugging) values of MP variables (be it on the 
> console or in the log)?
> 
> I thought there is MP command "show" (mentioned in mpman.pdf) for this

message(pt) ;

puts it into the (context) log.

show

is a MetaPost command that will get included in the log with:

\enabletrackers [metapost.showlog]


Alan
___
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] My own backgroundcolor in a frame

2019-03-08 Thread juh
Am Fri, Mar 08, 2019 at 03:43:20PM + schrieb Ursula Hermann:
> Dear List!
> 
> I have the following example:
> 
> \defineframedtext
>   [prettyblock]
>   [width=10cm,
>indenting={yes, small},
>background=color, backgroundcolor=lightgreen,
>foreground=color, foregroundcolor=black ,
>offset=2mm,
>align=flushleft]
> 
> My problem is now:
> how can I write,  if I have an Rgb Color and I do not know the name. I have 
> looked at the  list, but cannot  find the color.
> Can I say: background=color, backgroundcolor=rgb and put the numbers in (lets 
> say: r=200, g=112, b=300)?
> Is that correct, or do I have to take a special way? Or do I have to define 
> it?

I would define a color and use it:

\definecolor  [myblue]   [r=0.000, g=0.314, b=0.580]

You can use the color anywhere with "color=myblue".

juh

-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de


___
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] Showing value of a MP variable

2019-03-08 Thread Procházka Lukáš Ing .

Hello,

is it possible (namely for debugging) values of MP variables (be it on the 
console or in the log)?

I thought there is MP command "show" (mentioned in mpman.pdf) for this; but:


\starttext
  A
  \startMPcode
newpair pt; pt := (10,20);
show pt; % <-- How to show the value?
drawdot pt;
  \stopMPcode
\stoptext


doesn't show value of 'pt' variable.

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
___


[NTG-context] My own backgroundcolor in a frame

2019-03-08 Thread Ursula Hermann
Dear List!

I have the following example:

\defineframedtext
  [prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=lightgreen,
   foreground=color, foregroundcolor=black ,
   offset=2mm,
   align=flushleft]

My problem is now:
how can I write,  if I have an Rgb Color and I do not know the name. I have 
looked at the  list, but cannot  find the color.
Can I say: background=color, backgroundcolor=rgb and put the numbers in (lets 
say: r=200, g=112, b=300)?
Is that correct, or do I have to take a special way? Or do I have to define it?

Many thanks and regards

Uschi Hermann
___
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] context --ansi creates empty log file

2019-03-08 Thread Procházka Lukáš Ing .

Hello,

I encountered the same with the minimal:


\starttext
  \nonexisting
\stoptext


Messages displayed on the console are "full-fledged" both with "--ansi" switch 
or without it.
But the resulting .log file is incomplete with "--ansi".

Would it be possible to adapt loggers to write the same messages to .log like 
without --ansi?

Best regards,

Lukas


On Fri, 08 Feb 2019 12:04:35 +0100, Marco Patzer  wrote:


Hi!

Is it expected behaviour that --ansi creates an empty log file?
Example:

%% foo.tex
\startext\null\stoptext

# context foo
# wc -c foo.log
7501 foo.log

# context --ansi foo
# wc -c foo.log
1 foo.log

ctx 2019.01.28 16:58

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
___




--
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

t.mkiv
Description: Binary data


t-ansi-off.log
Description: Binary data


t-ansi-on.log
Description: Binary data
___
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
___