[NTG-context] extracting pages using luacode

2020-04-25 Thread Floris van Manen
I'm trying to extract pages from an existing pdf using lua.
But this approach to extract pages 11 and 30 does not work:

\starttext
\startluacode
for i, blz in ipairs({11, 30}) do
  context.startTEXpage()
  context.externalfigure("my_pdf.pdf", page=blz)
  context.stopTEXpage()
end
\stopluacode
\stoptext


Where am I missing the point?

.F


pEpkey.asc
Description: application/pgp-keys
___
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] extracting pages using luacode

2020-04-25 Thread Floris van Manen


On 25-04-2020 16:56, Hans Hagen wrote:
>>
>> Where am I missing the point?
> the syntax ...
> 
>     context.externalfigure( { "my_pdf.pdf" }, { page = blz } )

so simple :-)

Thanks!

.F


pEpkey.asc
Description: application/pgp-keys
___
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] [rotate question]

2020-05-01 Thread Floris van Manen
I try to introduce a per character rotation using lua.
But a negative rotation angle seems to introduce a vertical offset to
the base line.
It might be intended, but how to get it gone?
Any hints?
.Floris

\def\streepA{%
\rotate[rotation=\ctxlua{context(math.random(1,15))}]{\|}%
}
\def\streepB{%
\rotate[rotation=\ctxlua{context(math.random(-15,-1))}]{\|}%
}
\def\stapA#1{\dorecurse{#1}{\streepA}}
\def\stapB#1{\dorecurse{#1}{\streepB}}
\starttext
\startTEXpage[offset=20mm, width=297mm]
\startalignment[width]~
\dorecurse{50}{\stapA{10}\stapB{10}}
\stopalignment
\stopTEXpage
\stoptext




pEpkey.asc
Description: application/pgp-keys
___
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] [ibmplex setup script]

2020-05-02 Thread Floris van Manen

At present the ibmplexmonothin font is seen by the mtxrun script

 mtxrun --script fonts --list --all --pattern=ibmplexmonothin*
identifier  familynamefontnamefilename
subfont   instances

ibmplexmonothin ibmplexmono   ibmplexmonothin
/home/vm/.local/share/fonts/Unknown Vendor/OpenType/IBM Plex
Mono/IBM_Plex_Mono_Thin.otf
ibmplexmonothinitalic   ibmplexmono   ibmplexmonothinitalic
/home/vm/.local/share/fonts/Unknown Vendor/OpenType/IBM Plex
Mono/IBM_Plex_Mono_Thin_Italic.otf

But I don't manage to get the monothin variants loaded.
Any hints available?


Thanks
.Floris



pEpkey.asc
Description: application/pgp-keys
___
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] [ibmplex setup script]

2020-05-03 Thread Floris van Manen
Thank you Wolfgang!

Your example works as intended.

I really get lost in the font definition files, as it is difficult to
understand which variable point to what other definition.

Is there a (simple) picture where the scripts are annotated with arrows,
to know which variable points to where? All the way back to the
mtxrun --script fonts --list --all --pattern=*
reply?
With all the options available it is a steep learning curve, but i hope
to be able to understand it at some point.

Thanks for the working solution.
.Floris




pEpkey.asc
Description: application/pgp-keys
___
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] [ibmplex setup script]

2020-05-03 Thread Floris van Manen
Hello Wolfgang,


On 03-05-2020 10:49, Wolfgang Schuster wrote:
> % Load IBM Plex with the regular width
> 
> % \setupbodyfont[ibmplex]
> 
> % Load IBM Plex with the thin width
> 
> %\setupbodyfont[ibmplex-thin]


A quick follow-up question.

Apparently the thin/bold/italics combination does not work.
I assume this is defined in a ibmplex-thin  file somwhere.
If so, where is that file located?
What is the formula to derive ibmplex-thin from the underlying font files?

.Floris


pEpkey.asc
Description: application/pgp-keys
___
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] [ibmplex setup script]

2020-05-03 Thread Floris van Manen
I noticed that the same font test with the same lmtx versions on two
different linux machines with the same ibmplex fonts installed, return a
different rendering for the bold-italic.
That is only one produces the italics, the other doesn't.

I guess that is an example of true software magic,
or yet another evidence that one observation will invert the result of
the other ;-)

.F


pEpkey.asc
Description: application/pgp-keys
___
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] [pretty printing python]

2020-05-24 Thread Floris van Manen
Does anyone know how to activate/use the pretty printing of python code?

\starttyping[option=python]

does not work.

.Floris


pEpkey.asc
Description: application/pgp-keys
___
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] A simpler way to install LMTX in macOS Catalina

2020-05-30 Thread Floris van Manen


On 30/05/2020 13:09, Nicola wrote:
>  Of course, it would be
> better if the binary were signed...

And of course, it would be better to use Linux ;-)

.F


pEpkey.asc
Description: application/pgp-keys
___
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] [overstrike] with different color?

2020-06-03 Thread Floris van Manen
What is the preferred way to overstrike a text with a different color?
This does not work:
One \overstrike[color=red]{Two} Three


.F


pEpkey.asc
Description: application/pgp-keys
___
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] [overstrike] with different color?

2020-06-04 Thread Floris van Manen


On 03/06/2020 16:30, Henning Hraban Ramm wrote:
> \setupbar[color=red,rulethickness=1.4] % measurement in pt

the command also takes a parameter offset as well as dy.
I assume the offset will position the line higher / lower .
But I see no effect.

\setupbar[color=red,rulethickness=.3,offset=0.5]


pEpkey.asc
Description: application/pgp-keys
___
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] Draft Watermark of Garden gives unexpected results

2020-06-11 Thread Floris van Manen


On 11/06/2020 22:31, Jairo A. del Rio wrote:
> The watermark is partially outside the page, whereas the Wiki result is
> more "centered". Is that an intended behaviour?
> 

Also, if you set \rotate[rotation=0.0]{Draft} it will disappear...



pEpkey.asc
Description: application/pgp-keys
___
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] Typesetting poetry with particular indenting

2020-07-02 Thread Floris van Manen


On 02/07/2020 20:46, Wolfgang Schuster wrote:
> The following example needs version 2020.07.02 or newer.
Nice !

.F


pEpkey.asc
Description: application/pgp-keys
___
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] install.sh not working on Linux (Ubuntu 20.04)?

2020-11-06 Thread Floris van Manen



On 06/11/2020 16:49, Jairo A. del Rio wrote:
Is anyone else having problems with recent ConTeXt updates on Linux? 
Since last month, install.sh isn't doing anything. However, when I go to 
Pragma ADE's website, I can download newer releases and they work fine 
(e.g. --permitloadlib works now). I'm not so picky about manual 
downloads, but I think install.sh is (or was) quite better. I'm on 
Ubuntu 20.04, in case it helps. Thank you very much.


yes I had a similar experience.
After downloading a fresh install.sh new updates became available again.
(Pop!OS 20.10)


.F
___
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] new upload

2020-11-06 Thread Floris van Manen

this is my script for a daily update check which seems to do the job


#!/usr/bin/env bash
cd  ~/context
context --version | grep "current version"
echo ""
mtxrun --script cache --erase >ctx.log
rm tex/*.tma
sh ./install.sh >ctx.log
context --version | grep "current version"

___
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] new upload

2020-11-07 Thread Floris van Manen

Dear Hans,

Would it be possible to have a simple text file with the latest release 
version (or date) tag in it? Next to the folder containing the actual 
install script files? In that case it is easy to check that version tag 
by comparing with the local copy and decide if a further download and 
install is needed.


m.vr.gr.
Floris
___
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] new upload

2020-11-07 Thread Floris van Manen



On 07/11/2020 12:19, Hans Hagen wrote:
a version mismatch normally comes from the fact that i generate an lmtx 
update (for wolfgang to check, posted elsewhere) but nor a mkiv one and 
then upload to the website (as happened)


also, the update script itself doesn't get updated so when that gets 
adapted one has to get it from the bare install


(keep in mind that doing a fresh install doesn't hurt the system because 
texmf-projects and texmf-fonts are not affected)


The version check is just to prevent the extra data from being 
downloaded and installed when there was no need for it, because the 
current installed version is the same. (it saves the coal to be burned 
for the electricity)

___
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] new upload

2020-11-07 Thread Floris van Manen



On 07/11/2020 13:11, Pablo Rodriguez wrote:

Improved message:

echo "" && curl -Ihttp://pragma-ade.com/context/latest/cont-tmf.zip
2>&1 | grep Last-Modified && echo ""

So you don’t mix access time with last modification.

Just in case it helps,


That helps.
Thx
___
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] new upload

2020-11-07 Thread Floris van Manen



On 07/11/2020 13:11, Pablo Rodriguez wrote:

echo "" && curl -Ihttp://pragma-ade.com/context/latest/cont-tmf.zip
2>&1 | grep Last-Modified && echo ""

So you don’t mix access time with last modification.


this seems to work:


#!/usr/bin/env bash
cd  ~/context
OLD=`stat -c "%w" context-linux-64.zip`
echo "current: " $OLD
curl -s -O http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip
NEW=`stat -c "%w" context-linux-64.zip`
if [[ "$OLD" != "$NEW" ]] ; then
echo "new: " $NEW
mtxrun --script cache --erase >ctx.log
unzip -q -o context-linux-64.zip
rm tex/*.tma
sh ./install.sh >ctx.log
context --version | grep "current version"
fi
___
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] RE : upload

2020-11-23 Thread Floris van Manen



On 23/11/2020 23:02, Hans Hagen wrote:

On 11/23/2020 9:42 PM, Joseph wrote:

After running install.bat I see error :

new attempt


I still get the error:

csname overload > fatal error, protection level 4, control sequence 
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315



Also aafter the update I got two different current versions:

$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/home/vm/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2020.11.23 22:40
mtx-context | main context file: 
/home/vm/context/tex/texmf-context/tex/context/base/mkiv/context.mkxl

mtx-context | current version: 2020.11.19 11:28



before the update it was like so:

mtx-context | current version: 2020.11.19 11:28
mtx-context | current version: 2020.11.19 11:28
current:  2020-11-19 11:32:59.0 +0100
new:  2020-11-23 20:23:18.0 +0100
mtx-context | current version: 2020.11.23 20:20
mtx-context | current version: 2020.11.19 11:28



___
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] RE : upload

2020-11-24 Thread Floris van Manen



On 24/11/2020 18:28, Pablo Rodriguez wrote:

I’m afraid you are getting an old version, since the newer one reads:

mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file:
/home/ousia/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.11.24 00:41
mtx-context | main context file:
/home/ousia/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2020.11.24 00:41


Well I can see that there is two versions.
But when unzipping the new context-linux-64.zip (nov 24 00:24)
then run the install script
sh ./install.sh
will not solve the issue...

So context is not working anymore.
Any hints?

.Floris
___
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] RE : upload

2020-11-24 Thread Floris van Manen
by creating a new empty ~/context folder, then unzip the distribution 
and running the install script made Context work again.


.F
___
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] RE : upload

2020-11-25 Thread Floris van Manen



On 25/11/2020 16:48, Pablo Rodriguez wrote:

Just out of curiosity, could you fix your already installed ConTeXt version?


no, that did not work.
I just dumped the whole folder after a new folder/download seemed to 
work again.


.F
___
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] install.sh not working on Linux (Ubuntu 20.04)?

2020-12-01 Thread Floris van Manen



On 06/11/2020 18:55, Pablo Rodriguez wrote:

I reported a similar issue some days ago.

I think I have solved it (no extensive checking yet) by deleting the
three texmf*.tma files on the tex/ directory.

If you still have a copy of your older installation, you may try this
(but please make a backup of the older installation first).

Just in case it might help,


The deleting of those tma files is part of my update script already.
But at that moment starting with a fresh empty context folder seemed to 
work only.

No issues as yet.

.F
___
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] checkbox in fields show the word yes

2020-12-11 Thread Floris van Manen



On 11/12/2020 08:46, Jan U. Hasecke wrote:

as nobody answered I would like too repeat my question.


This is what I see

___
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] lmtx

2021-01-19 Thread Floris van Manen



On 18/01/2021 19:20, Hans Hagen wrote:

You can run

   meta-imp-punk.mkxl

to get an idea. There's also a typescript:

   type-imp-punk.mkxl



How to run these?

.F
___
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] [startstop]

2021-01-22 Thread Floris van Manen

I'd like to create a start/stop command with a parameter



\startzzz[a]
one two three
\stopzzz

\startzzz[b]
one two three
\stopzzz


How do i define/pass the tag parameter in the definition?
This does not work (obviously)

\definestartstop[zzz][
before={\hrule\bf tag\blank},
after={\blank[10mm]}
]


I cannot find it in the documentation

.F
___
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] [startstop]

2021-01-22 Thread Floris van Manen

unfortunately this does not work, 'annotation' is not found.

But is it possible to give a start/stop definition user parameters?
And if so, how?


.F
___
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] [startstop]

2021-01-22 Thread Floris van Manen



On 22/01/2021 23:39, Wolfgang Schuster wrote:


No \do...empty (LMTX only):

\tolerant\protected\def\startzzz#=%
   {\hrule
    \doifsomething{#1}{\bold{\strut#1}\blank}}

\protected\def\stopzzz
   {\blank[10mm]}

\starttext

\startzzz
\input weisman
\stopzzz

\startzzz{Ward}
\input ward
\stopzzz

\stoptext



Thank you !

.F
___
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] [passing parameter into MPpage]

2021-02-12 Thread Floris van Manen

What is the correct ways to pass parameters into a \startMPpage section?
This does not produce a page (obviously if you know how it works)
But how to get the intende output?


\def\blz[#1][#2][#3]{
\startMPpage
draw thefmttext(#1) shifted(10mm, 20mm);
draw thefmttext(#2) shifted(10mm, 205m);
draw thefmttext(#3) shifted(10mm, 30mm);
\stopMPpage
}

\blz[01][02][AA]

\blz[03][42][ZZ]


___
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] [pagenumbers in pdf]

2021-02-13 Thread Floris van Manen
When I generate a serie of TEXpages, those pages end up with the same 
page number in the pdf.

1, 1, 1

\starttext
\def\blz{\begingroup
\startTEXpage
1 2 3
\stopTEXpage
\endgroup}
\blz
\blz
\blz
\stoptext


If I insert a \strut at the start,
I get pagenumbering 1, 2, 3, 1


\starttext
\def\blz{\begingroup
\startTEXpage
1 2 3
\stopTEXpage
\endgroup}
\strut
\blz
\blz
\blz
\stoptext


As in most software, there is a probable reason for that :-)
But how to get the pages numbered 1, 2, 3 without an empty page at the 
start?


.F
___
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] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
What is the easiest way, if possible, to highlight some sections of 
verbatim text?


given:

\starttyping
one two three
four five six
seven eight nine
\stoptyping

i'd like to color the word 'five' in red, or italic.


.Floris




___
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] [formatting verbatim text]

2021-04-26 Thread Floris van Manen



On 26/04/2021 10:59, Hans Hagen wrote:


\starttext
\starttyping[escape=/]
one two three
four /btex/bgroup/red five /egroup/etex six
seven eight nine
\stoptyping
\stoptext


That works indeed! Thanks.


Are there restriction on what context commands can be given inside the 
bgroup? e.g. I tried to include a highlight definition with white font 
on black background with an inframed, but that doesn't seem to work (in 
my definitions that is)


___
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] [formatting verbatim text]

2021-04-26 Thread Floris van Manen

Aparently all spaces after @etex get reduced to one only.
I'd expect that to happen inside @btex and @etex


\starttext
\starttyping[escape=@]
  1   137  26  25 >1  69  32
  2   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >1  69  32
  3   @btex@bgroup@red@bf 137 @egroup@etex  26  25 >1  69  32
  4   137  26  25 >1  69  32
  5   @btex@bgroup@red@bf 137  @egroup@etex  26  25 >1  69  32
 \stoptyping
\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] KeenWrite 2.0

2021-05-10 Thread Floris van Manen



On 10/05/2021 07:40, Thangalin wrote:
https://github.com/DaveJarvis/keenwrite#download 



Stay safe everyone!



When launching from

Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP 
Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux


I get a warning:

$ keenwrite.bin
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated 
and will be removed in a future release.



___
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] [installing lmtx on raspi400]

2021-05-13 Thread Floris van Manen

No desktop system is complete before having a proper lmtx installed ;-)

So with this OS version

$ uname -a
Linux rp400 5.10.17-v8+ #1414 SMP PREEMPT Fri Apr 30 13:23:25 BST 2021 
aarch64 GNU/Linux


$ hostnamectl
   Static hostname: rp400
 Icon name: computer
  Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 5.10.17-v8+
  Architecture: arm64


I downloaded
context-linux-aarch64.zip


unzipped it in the ~/context folder and ran the install.sh script

$ sudo sh ./install.sh

this gives an error:

/home/pi/context/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: version 
`GLIBC_2.29' not found (required by /home/pi/context/bin/mtxrun)




Anyone with a hint ?

Thx
.Floris


___
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] [installing lmtx on raspi400]

2021-05-13 Thread Floris van Manen



On 13/05/2021 22:39, Christian Prim wrote:

I solved it following this (or a similar) solution:

https://github.com/deltachat/deltachat-desktop/issues/1006#issue-498257133 



That worked very well, thank you !

$ hostnamectl
   Static hostname: rp400
 Icon name: computer
  Operating System: Debian GNU/Linux bullseye/sid
Kernel: Linux 5.10.17-v8+
  Architecture: arm64


$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/home/pi/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2021.05.09 17:14
mtx-context | main context file: 
/home/pi/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl

mtx-context | current version: 2021.05.09 17:14


___
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] [metafun example does not compile]

2021-05-21 Thread Floris van Manen

Using the example from the wiki
https://wiki.contextgarden.net/textext_positioning

then using the latest version of lmtx

$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/home/vm/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2021.05.20 16:06
mtx-context | main context file: 
/home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl

mtx-context | current version: 2021.05.20 16:06


it will produce an error (and an empty page)


metapost> initializing instance 'metafun:1' using format 
'metafun' and method 'default'

metapost> loading 'metafun' as 'metafun.mpxl' using method 'default'
metapost> initializing number mode 'scaled'
metafun > log >
metafun > log > error: Unknown relation will be considered false
metafun > log >
metapost> log >
metapost> log > 
metapost> log >)
metapost> log > 
thetextext->...FIX2)(rawtextext(ddecimal(EXPR3)),(EXPR4))else:if.anchortextexts>0:image(draw(EXPR3)withprescript"tx_anchor="&ddecimal(EXPR4))else:(EXPR3)fi.if(mfun_labtype(SUFFIX2)>=10)
metapost> log > 



:shifted(0,y...
metapost> log > 
thetextext->begingroup.if.string(EXPR3):thetextext(SUFFIX2)(rawtextext((EXPR3)),(EXPR4))
metapost> log > 


elseif.numeric(EXPR3):thetextext(SUFFIX2)(rawtextext(decimal(EXPR3)),(EXPR4))elseif.pair(EXPR3):thetextext(SU...
metapost> log > 
textext->begingroup.thetextext(SUFFIX2)((EXPR3),origin)
metapost> log > 
  endgroup
metapost> log > <*> ...A; draw PA withpen pencircle scaled 1.5mm 
withcolor red; pair PB ; PB := PA shifted decal ; draw textext.drt 
("DRT-" & MonTexte) shifted PB; draw textext.dflt("DFLT-" & MonTexte)

metafun > log >
metafun > log > Oh dear. I can't decide if the expression above 
is positive, negative, or zero.

So this comparison test won't be 'true'.




As in most of the cases with software, there is (probably) a reason to 
it ;-)



.F
___
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] [metafun example does not compile]

2021-05-21 Thread Floris van Manen

the line preventing the output from showing uo seems to be be:

draw textext.dflt("DFLT-" & MonTexte) shifted PB;

If I remove that, I'll get output.


___
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] [metafun example does not compile]

2021-05-21 Thread Floris van Manen



On 21/05/2021 14:14, Taco Hoekwater wrote:

It looks like textext.dflt is undefined in the latest lmtx because it is now
renamed to textext.dlft :)


As we say in dutch: een kniesoor die daar op let
;-)

___
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] new in upload

2021-06-09 Thread Floris van Manen



On 09/06/2021 20:42, Hans Hagen wrote:


\startoverlayMPgraphic{mp:whatever-6}
     draw anchorcell (1,1)   withpen pencircle scaled 1pt withcolor 
"blue" ;
     fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor 
"yellow" ;
     draw anchorcell (2,2)   withpen pencircle scaled 1pt withcolor 
"green" ;
     draw anchorcell (3,3)   withpen pencircle scaled 1pt withcolor 
"red" ;

\stopoverlayMPgraphic




The fill works with multiple cells, but the draw does not:

fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor
draw anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor



___
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] weekend upload

2021-07-12 Thread Floris van Manen

with the latest version not everything gets drawn as intended.


$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context | current version: 2021.07.10 21:51




On 12/07/2021 10:07, Hans Hagen wrote:
I need to ckeck if the range checked does negative numbers ... anyway, 
you can do this


\startMPpage[offset=2mm, stacking={1,2,3,4}]

   boxit.A("\boxframed{Box A}");
   boxit.B("\boxframed{Box B}");
   boxit.C("\boxframed{Box C}");

   defaultdx := 0pt;
   defaultdy := 0pt;

   A.c = origin;

   B.w - A.e = (1cm, 0);

   0.5[ A.s, B.s ] - C.n = (0, 1cm);

   draw image (drawunboxed(A,B,C)) withstacking 2;

   drawarrow A.s +- C.w withstacking 3 ;
   drawarrow B.s +- C.e withstacking 4 ;

   newpath highlight;

   highlight := (A.sw -- B.se -- B.ne -- A.nw) enlarged EmWidth;
   fill highlight withcolor "darkgray" withstacking 1;

\stopMPpage
___
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] weekend upload - stacking and animation

2021-07-13 Thread Floris van Manen



On 13/07/2021 15:14, Hans Hagen wrote:

How about:

\startuseMPgraphic{demo}
     for i=1 upto 10:
     draw fullcircle scaled (i*cm/3)
     withcolor (i*red/10)
     withpen   pencircle scaled (bp/2)
     withstacking i
     ;
     endfor ;
\stopuseMPgraphic

\unprotect

\tolerant\protected\def\useMPanimation[#1]#2%
   {\begingroup
    \scratchtoks\emptytoks

\dorecurse{10}{\etoksapp\scratchtoks{{\useMPgraphic[\c!stacking={\recurselevel}]{#2% 


    \expanded{\startanimation[#1]\the\scratchtoks\stopanimation}%
    \endgroup}

\protect

\setupinteraction[state=start]

\usemodule[animation]

\starttext
     \useMPanimation[menu=yes]{demo}
\stoptext


Placing this excerpt in a file and compiling it I get an error:


$ context animation.tex

resolvers   | formats | executing runner 'run luametatex format': 
/home/vm/context/tex/texmf-linux-64/bin/luametatex --jobname="animation" 
--fmt=/home/vm/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt 
--lua=/home/vm/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui 
cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./animation.tex" 
--c:input="./animation.tex" --c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/home/vm/context/tex/texmf-linux-64/bin"

open source > level 1, order 1, name 'cont-yes.mkiv'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
system  >
system  > ConTeXt  ver: 2021.07.10 21:51 LMTX  fmt: 2021.7.12 
int: english/english

system  > system  > 'cont-new.mkxl' loaded
open source > level 2, order 2, name 
'/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'

system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './animation', input 
'./animation.tex', result './animation'

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './animation.tex'
modules > 'animation' is not found
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
tex error   > tex error on line 31 in file ./animation.tex: 
Undefined control sequence


\startanimation [menu=yes]{\useMPgraphic 
[stacking={1}]{demo}}{\useMPgraphic [stacking={2}]{demo}}{\useMPgraphic 
[stacking={3}]{demo}}{\useMPgraphic [stacking={4}]{demo}}{\useMPgraphic 
[stacking={5}]{demo}}{\useMPgraphic [stacking={6}]{demo}}{\useMPgraphic 
[stacking={7}]{demo}}{\useMPgraphic [stacking={8}]{demo}}{\useMPgraphic 
[stacking={9}]{demo}}{\useMPgraphic [stacking={10}]{demo}}


 \startanimation [menu=yes]\the \scratchtoks \stopanimation

 \expanded #1->\xdef \m_syst_helpers_expanded {\noexpand #1
}\m_syst_helpers_expanded
 \useMPanimation [#1]#2->\begingroup \scratchtoks \emptytoks \par 
\dorecurse {10}{\etoksapp \scratchtoks {{\useMPgraphic [\c!stacking 
={\recurselevel }]{#2\expanded {\startanimation [#1]\the 
\scratchtoks \stopanimation }

\endgroup

 \useMPanimation[menu=yes]{demo}

21\expanded{\startanimation[#1]\the\scratchtoks\stopanimation}%
22\endgroup}
23
24 \protect
25
26 \setupinteraction[state=start]
27
28 \usemodule[animation]
29
30 \starttext
31 >>  \useMPanimation[menu=yes]{demo}
32 \stoptext
33
The control sequence at the end of the top line of your error message 
was never

\def'ed. You can just continue as I'll forget about whatever was undefined.
mtx-context | fatal error: return code: 256

___
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] lmt_chart_bar with data from luacode

2021-07-24 Thread Floris van Manen



On 23/07/2021 23:56, Jorge Manuel wrote:


I tried this code, but it didn't work. This is not my day.


Using the latest version made it work here.

.F
___
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] manual on style design

2004-02-23 Thread Floris van Manen
hans!
very nice indeed this manual!
thinking of trivial support tools, is there a (simple) script one
could launch to get a list of all installed fonts (with a sample in
the font itself), with the necessary instructions included as how to
incorporate it in context?
that would really make the difference...
thanks!
//floris



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] manual on style design

2004-02-23 Thread Floris van Manen
> if you're a member of the ntg / dante in a couple of weeks you will get a
> (i hope nice) colorful font sampler booklet showing the free fonts on tex 
> live (at the printer now); it's on my todo list to write an howto for those 
> fonts

i was thinking of system installed fonts.
e.g. the reuse of the windows\fonts ttf directory.
it would be nice if that could be as easy as selecting a font from
within word :-)

it would be a nice feature for texexec ...

//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new stuff for brave users

2004-08-04 Thread Floris van Manen
Patrick,

just gave the context service a try.
concerning the UI i aks myself why i get default the logfile opened in
a separate window and that i have to explicitly open the pdf file to
see the result of what the action is all about in the first place :-)

i would opt for a better 'result-ready' flag (e.g. providing the link
to the result) instead of opening a log file that is of not too much
interest when everything went OK.

typeset
if error then show (link) to log file and not to a (non-existing pdf)
else provide links to pdf result and logfile

also maybe more convenient to keep the typeset and reset buttons to
the top (as well) close to the links of the (possible) result files.

//Floris



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] no graph after compilation

2004-08-10 Thread Floris van Manen
i'm working through the metafun manual.
i noticed at some point that changes to the source do not appear in
the pdf output. sometimes after another texexec round, sometimes not
at all until i do something different in the tex file...
how come (or how to work around :-)

thanks!
//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
PR> it seems that you haven't reached page 307

well i did.
as far as i understand it, the best way to deal with compiling is to
call texexec.
and i do get graphics in my pdf, but sometimes i need to do en extra
texexec cycle to see the changes come through. and sometimes i don't
get anything into my pdf. that is what makes me uncertain...

//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
VZ> Floris, you are not alone. I also have not find the quick solution. So I
VZ> call texexec two times when working with MP graphics,
VZ> color definitions, ... :-(

running it twice is something i can live with, but if it will not
solve the problem, then it is... what do i do wrong?

//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
Hi Patrick,

PG> if your TeX source is one file only, please do me a favour: try the
PG> TeX files on live.contextgarden.net and see if the output comes out
PG> right. If it doesn't, I'd like to know about it. If it does, please
PG> report on the list.

yes this works great. every change i make is directly visible after a
single texexec hit.

PG> Do you have write18 (texmf.cnf) enabled? How does your
PG> cont-sys.tex look like? What distribution do you use?

i use the LiveTeX PC version.

PG> I have (on live..) disabled write18, \runMPgraphicstrue
PG> and \runMPTEXgraphicstrue.

where do i do this?
in C:\texLive\texmf\tex\context\user\cont-sys.rme ?
and what do i type there?



Also i noticed a strange thing happening in the following file.
What i expect is a single line with a dotted label on each point of
the line. i see two lines, a single row of dots and two rows of
labels, one small one large...
You can tell that i'm not very good in telling the right thing to the
compiler :-)
but what should i tell?




% interface=english output=pdftex

\setupcolors[state=start]
\starttext

\startuseMPgraphic{dummy}

drawoptions(withpen pencircle scaled .1pt) ;

w0 := 0cm ; w1 := 0.4cm ; w2 := 0.9 cm ; w3 := 1.0cm ;
ww0 := 0.32cm ; ww1 := 0.4cm ; ww2 := 0.6cm ; ww3 := 0.8cm ;

path q ; q := (w0,w0)--(w0,ww0)--(w1,ww1)--(w2,ww2)--(w3,ww3)--(w3,w0)--cycle ;

pickup pencircle scaled 1mm ;
defaultscale := 0.5 ;
dotlabel.bot ("1" , point 1 of q) ;
dotlabel.bot ("2" , point 2 of q) ;
dotlabel.bot ("3" , point 3 of q) ;
dotlabel.bot ("4" , point 4 of q) ;

draw q ;

picture pic ; pic := currentpicture ;
draw pic scaled 3 ;

drawoptions(withpen pencircle scaled .1pt withcolor .625yellow) ;
draw hlingrid(0, 5, 1, 3cm, 3cm) ;
draw vlingrid(0, 10, 1, 3cm, 3cm) ;

\stopuseMPgraphic

\useMPgraphic{dummy}

\stoptext










Floris van Manen <[EMAIL PROTECTED]> writes:

> VZ> Floris, you are not alone. I also have not find the quick solution. So I
> VZ> call texexec two times when working with MP graphics,
> VZ> color definitions, ... :-(
>
> running it twice is something i can live with, but if it will not
> solve the problem, then it is... what do i do wrong?

Vit and Floris,



Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
PG> You should tell metapost to erase the first picture before drawing
PG> the second one. So:
PG> 
PG> 
PG> currentpicture :=nullpicture;
PG> draw pic scaled 3 ;
PG> 
PG> clears the first picture.


but i only intend to draw one picture...


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
>> PG> currentpicture :=nullpicture;
>> PG> draw pic scaled 3 ;
>> PG> 
>> PG> clears the first picture.
>>
>>
>> but i only intend to draw one picture...
PG> 
PG> is this a question? Did you try the code?


i did, but it has side-effects...
it will scale, but the color disappears too.
try.

-


%% interface=english output=pdftex
\setupcolors[state=start]
\starttext
\startuseMPgraphic{dummy}
drawoptions(withpen pencircle scaled .1pt) ;
w0 := 0cm ; w1 := 1.2cm ; w2 := 2.7 cm ; w3 := 3.0cm ;
ww0 := 0.96cm ; ww1 := 1.2cm ; ww2 := 1.8cm ; ww3 := 2.4cm ;
path p ; p := (w0,w0)--(w0,ww0)--(w1,ww1)--(w3,ww2)--(w3,w0)--cycle ;
drawoptions(withpen pencircle scaled .1pt withcolor .625yellow) ;
draw hlingrid(0, 5, 1, 3cm, 3cm)  ;
draw vlingrid(0, 10, 1, 3cm, 3cm)  ;
drawoptions(withpen pencircle scaled 1mm withcolor black) ;
dotlabel.top ("1" , point 1 of p)  ;
dotlabel.top ("2" , point 2 of p)  ;
dotlabel.top ("3" , point 3 of p)  ;


%   enable/disable this section %%
picture pic ; pic := currentpicture ;
currentpicture := nullpicture ;
draw pic scaled 1.0 ;
%

\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
i guess it might have to do with the versions of the programs
involved. below you see the output of my version and the contextgarden
version.
i got my LiveTex last week from the web. Any idea how to
(automatically) update to the most recent versions?

//f


=
my version:


 TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003

executable : pdfetex
format : cont-en
 inputfile : testtex
output : pdftex
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeXk, Version 3.141592-1.11b-2.1 (Web2c 7.5.2)
 %&-line parsing enabled.
 (c:/TeXLive/texmf/web2c/cp8bit.tcx)
entering extended mode
(./testtex.tex{c:/TeXLive/texmf-var/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2003.9.25  fmt: 2004.8.6  int: english  mes: english

language   : language en is active

system : cont-new loaded
(c:/TeXLive/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
)
system : cont-old loaded
(c:/TeXLive/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(c:/TeXLive/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(c:/TeXLive/texmf/tex/context/user/cont-sys.tex)
bodyfont   : 12pt rm is loaded
language   : patterns 2:2-en-2 8:2-nl-2 loaded
specials   : tex,postscript,rokicki loaded
system : testtex.top loaded
(./testtex.top
specials   : loading definition file tpd
(c:/TeXLive/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(c:/TeXLive/texmf/tex/context/base/spec-fdf.tex  
system (E-TEX) : [line 1907] \ifcsname
 )
specials   : fdf loaded
 )
specials   : fdf,tpd loaded
)


==
contextgarden:





 TeXExec 4.3 - ConTeXt / PRAGMA ADE 1997-2004

executable : pdfetex
format : cont-en
 inputfile : texweb
output : pdftex
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeX, Version 3.141592-1.20a-rc7.1-2.1 (Web2C 7.5.3)
 (/opt/tetex/20040711/texmf/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./texweb.tex

ConTeXt  ver: 2004.6.26  fmt: 2004.7.27  int: english  mes: english

language   : language en is active

system : cont-new loaded
(/opt/tetex/20040711/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 599] 
system (E-TEX) : [line 654] 
)
system : cont-old loaded
(/opt/tetex/20040711/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/opt/tetex/20040711/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(/opt/local/texmf/tex/context/cont-sys.tex
specials   : loading definition file tpd
(/opt/tetex/20040711/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(/opt/tetex/20040711/texmf/tex/context/base/spec-fdf.tex 

system (E-TEX) : [line 2270] \ifcsname 
 )
specials   : fdf loaded
 )
specials   : fdf,tpd loaded
)



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
PG> There is no way to update this automaticalliy.

i think i got lost in the trees...

i got the update from pragma-ade.com, unzipped the files in
c:\texlive\texmf i did run the texexec --make
but i still have texexec 4.0 running...

the texexec.exe doesn't seem to find the most recent version.
i know i'm doing something unintentionally (may that be a lesson to
you :-) yet how do i get out?

thanks!
//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-12 Thread Floris van Manen
h.

I just want to use context with the metafun and xml features.
I don't know if that is minimal enough :-)

HH> actually, if you run a minimal tree, you can do a sycn with the
HH> tree on out server using texsync, but i have to test that -)

via google i found:

http://www.pragma-ade.com/general/manuals/mtexsync-s.pdf

in that document is a link:

http://www.pragma-ade.com/system/rsync-cw.zip

but that seems to be void these days :-(

how do i get this texsync, it seems the right tool for me...

thanks
% floris


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-12 Thread Floris van Manen
Hi Patrick,

PG> But unzipping it on top of the texlive was not the very best idea I'd
PG> guess. The directory structure has changed a bit with respect to the
PG> location of scripts and metapost files, so your old texlive metafun
PG> macros will be used.

that is explaining the situation. But for an end-user (i try to keep
myself on that level) it is *not* very convenient left with this
situation (not knowing it exists in the first place)

I guess i have to uninstall the present pftex and start from scratch.
Which one is the best option to get Context,metafun,xml working?
And i would like to have a similar working set on my OSX laptop too.
Where are the experts ? :-)




Also, i find the live context garden very helpful, as you can check a
script independent form your own location.

Hints for improvement:

1. provide an e-mail response for hints/remarks/questions.
2. the 'reset form' switch doesn't work.
3. some kind of summary (e.g. the real errors) of the log file would
be very helpful. at present you have to parse the output yourself and
have to locate the error yourself (e.g. too much is just info)



thanks!
% floris


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-12 Thread Floris van Manen
>> But unzipping it on top of the texlive was not the very best idea I'd
>> guess. 
EA> 
EA> I agree... but be aware that in 
EA> http://contextgarden.net/Linux_Installation this is just what is suggested

and precisely what i therefor did :-(

% f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: no graph after compilation

2004-08-12 Thread Floris van Manen
what is going on here???
is this the babel of our time? :-)


OK, i re-installed a fresh copy of fpTex with the Context option.
It will *not* install texexec at first.
only after removing and re-installing the context option it will.
then i added/unzipped all the cont-*.zip files into the texmf folder.
i also copied the texexec.pl files into the place where the original
files were.

when i do a texexec --make  at pone point it will complain.

(c:/TeXLive/texmf/metapost/context/base/metafun.mp
! I can't find file `plain.mp'.
l.27   input plain.mp
  ; % John Hobby's file
Please type another input file name:



what is it that i do wrong here (or before).

(help)
% floris



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] getting context going

2004-08-12 Thread Floris van Manen
hans.


i re-started fresh (again :-) re-installing livetex using the
texsetup.exe command.

HH> if you install context, you can best do it into
HH> 
HH>   texmf-local 
HH> 
HH> (sometimes texmflocal) 
HH> 
HH> that way the files will be found there first; (it's also easier to prune
HH> that tree) 

i did that too.

HH> if you have textools.rb:
HH> 
HH> textools --fixtexmftrees
HH> 
HH> will fix the tree


i did find textools.rb in the folder
C:\texlive\texmf-local\scripts\context\ruby

when i type the instruction windows does not (yet) understand it.

C:\>textools --fixtexmftrees
'textools' is not recognized as an internal or external command,
operable program or batch file.


in the windows environment there is:

path  c:\texlive\bin\win32;...
texmfcnf  c:\texlive\texmf-var\web2c
texmftemp c:\texlive\temp




texexec --verbose gives the following:

C:\>texexec --verbose
Kpathsea released!

 TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003

  current path : C:/Documents and Settings/vm/Desktop
 locating ini file : found by kpsewhich
   reading : c:/TeXLive/texmf/context/config/texexec.ini
   setting : 'TeXShell' to 'fptex' for 'all'
   setting : 'UsedInterfaces' to 'en nl metafun mptopdf' for 'all'
   setting : 'UserInterface' to 'en' for 'all'
   setting : 'TeXExecutable' to 'tex' for 'all'
   setting : 'MpExecutable' to 'mpost' for 'all'
   setting : 'MpToTeXExecutable' to 'mpto' for 'all'
   setting : 'DviToMpExecutable' to 'dvitomp' for 'all'
   setting : 'DviSpecialScript' to 'dvispec' for 'all'
   setting : 'MpFormat' to 'metafun' for 'all'
   setting : 'TeXFormatFlag' to '&' for 'all'
   setting : 'MpFormatFlag' to '&' for 'all'
   setting : 'TeXFontsPath' to 'l:/tex/texmf;l:/tex/texmf-local;' fo
r 'all'
   setting : 'TeXHashExecutable' to 'mktexlsr' for 'fptex'
   setting : 'TeXExecutable' to 'pdfetex' for 'fptex'
   setting : 'TeXVirginFlag' to '-ini' for 'fptex'
   setting : 'TeXPassString' to '-progname=context --default-transla
te-file=cp8bit' for 'fptex'
   setting : 'TeXBatchFlag' to '-int=batchmode' for 'fptex'
   setting : 'MpToTeXExecutable' to 'mpto' for 'fptex'
   setting : 'MpVirginFlag' to '-ini' for 'fptex'
   setting : 'MpPassString' to '-progname=mpost' for 'fptex'
   setting : 'MpBatchFlag' to '-int=batchmode' for 'fptex'

  used setting : TeXShell = fptex
  used setting : SetupPath =
  used setting : UserInterface = en
  used setting : UsedInterfaces = en nl metafun mptopdf
  used setting : TeXFontsPath = l:/tex/texmf;l:/tex/texmf-local;
  used setting : MpExecutable = mpost
  used setting : MpToTeXExecutable = mpto
  used setting : DviToMpExecutable = dvitomp
  used setting : TeXProgramPath =
  used setting : TeXFormatPath =
  used setting : ConTeXtPath =
  used setting : TeXScriptsPath =
  used setting : TeXHashExecutable = mktexlsr
  used setting : TeXExecutable = pdfetex
  used setting : TeXVirginFlag = -ini
  used setting : TeXBatchFlag = -int=batchmode
  used setting : TeXNonStopFlag = -int=nonstopmode
  used setting : MpBatchFlag = -int=batchmode
  used setting : MpNonStopFlag = -int=nonstopmode
  used setting : TeXPassString = -progname=context --default-translate-f
ile=cp8bit
  used setting : TeXFormatFlag = &
  used setting : MpFormatFlag = &
  used setting : MpVirginFlag = -ini
  used setting : MpPassString = -progname=mpost
  used setting : MpFormat = metafun
  used setting : MpFormatPath =
  used setting : FmtLanguage =
  used setting : FmtBodyFont =
  used setting : FmtResponse =
  used setting : TcXPath =
  used setting : SetFile =

 applications will use : c:\TeXLive\texmf-var\web2c/texmf.cnf
  locating fmtutil : C:/TeXLive/bin/win32/fmtutil.exe

--help   overview of all options and their values
--help all   all about all options
  --help short   just the main options
   --help mode ... pdf   all about a few options
--help '*.pdf'   all about options containing 'pdf'

total run time : 0 seconds






the problem to me is that it is difficult to know what to look for and
where. then it turns out that the documentation is not in sync with
reality. that makes it difficult for a novice user (which i try to
remain :-).

i'm really looking forward in using context, but getting the car out
of the garage is cumbersome.

which (automatic) setup is best to use for XP and OSX ?

as i wrote before, i hope at least that there is also a positive
aspect to my stumbling e.g. what do people wrong...


% floris


Re[2]: [NTG-context] getting context going --> feature tool request

2004-08-13 Thread Floris van Manen
PG> It is not really necessary to run ConTeXt.
PG> 
PG> Did you try your installation? 

i can run texexec but will still get 4.0 instead of the more recent
version  i installed into the texmf-local directory.

i can run texexec --make

if i now try to run texexec test.tex
it will stop at the first line:


Kpathsea released!

 TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003

executable : pdfetex
format : cont-en
 inputfile : testtex
output : pdftex
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeXk, Version 3.141592-1.11b-2.1 (Web2c 7.5.2)
 %&-line parsing enabled.
 (c:/TeXLive/texmf/web2c/cp8bit.tcx)
entering extended mode
(./testtex.tex{c:/TeXLive/texmf-var/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2004.6.30  fmt: 2004.8.13  int: english  mes: english

language   : language en is active

system : cont-new loaded
(c:/TeXLive/texmf-local/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 599]
system (E-TEX) : [line 654]
)
system : cont-old loaded
(c:/TeXLive/texmf-local/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(c:/TeXLive/texmf-local/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
bodyfont   : 12pt rm is loaded
kpathsea: Running mktextfm msam7
mktextfm: Running mf "\mode:=ljfour; mag:=1; nonstopmode; input msam7"
This is METAFONT, Version 2.71828 (Web2c 7.5.2)
(c:/TeXLive/texmf/web2c/cp8bit.tcx)

kpathsea: Running mktexmf msam7
mktexmf: empty or non-existent rootfile!
! I can't find file `msam7'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input msam7

Please type another input file name
! Emergency stop.
<*> ...e:=ljfour; mag:=1; nonstopmode; input msam7

Transcript written on mfput.log.
mktextfm: warning: can't open log file msam7.log.
mktextfm: `mf "\mode:=ljfour; mag:=1; nonstopmode; input msam7"' failed.
kpathsea: Appending font creation commands to missfont.log.
! Font \*7ptmmma*=msam7 at 7.0pt not loadable: Metric (TFM) file not found.

   \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
  \let \localrelativefontsiz...

\dodosetmathfamilyA ...amily \fontsize \endcsname
  \else \ifcsname \fontbody ...

\dosetmathfamily ...athfamily \scriptscriptfont #1
  \let \fontbody #3\dodosetm...
 ...\scriptscriptface \c!ma \empty
  \dosetmathfamily \mbfam \t...

\synchronizemath ...athfonts \the \mathstrategies
  \fam \mrfam \fi
...
l.1
%% interface=english output=pdftex
?


--


as what the feature tool request:
could it be possible to have a simple command line program that you
call from within a specific folder and thereby adding or removing this
folder from some of the indicated tex/context path setttings.

e.g. i copy a new version on context into a folder, i cd to the root
of that folder and run 'AddThisContextToTex' and the script will take
care of the rest. or 'AddThisFolderToFontsList'. you get the picture.

believe me, it is so frustrating to know that context is so powerful
and easy to operate, but not being able to get it running in the first
place...

it must be something very simple to solve...

it would be a nice feature to have tex installed based on context
instead of the other way around...
is there a (hidden) feature in texexec that could do that?


thanks again (over and over :-)

% floris


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] metafun question

2004-08-16 Thread Floris van Manen
it seems that metafun has difficulty understanding the example using
thevardef [EMAIL PROTECTED] expr p =   construct.


! Illegal parameter number in definition of [EMAIL PROTECTED]@dummy2.
 

 ... p of p enddef; \par vardef [EMAIL PROTECTED] 
  expr p = cuta(@##,@##) @##...

\dostartuseMPgraphic ...leuseMPgraphic {#1}{#2}{#3
  }}\elabelgroup 
l.41 \stopuseMPgraphic



why?


i copied the sample of the mp manual:



% interface=english output=pdftex

\starttext


\startuseMPgraphic{dummy2}

vardef cuta(suffix a,b) expr p =
drawarrow p cutbefore bpath.a cutafter bpath.b;
point .5*length p of p
enddef;

vardef [EMAIL PROTECTED] expr p =
cuta(@#,@#) @[EMAIL PROTECTED]@#.c 
enddef;

beginfig(52);
verbatimtex \def\stk#1#2{$\displaystyle{\matrix{#1\cr#2\cr}}$} etex
circleit.aa(btex\strut Start etex); aa.dx=aa.dy;
circleit.bb(btex \stk B{(a|b)^*a} etex);
circleit.cc(btex \stk C{b^*} etex);
circleit.dd(btex \stk D{(a|b)^*ab} etex);
circleit.ee(btex\strut Stop etex); ee.dx=ee.dy;
numeric hsep;
bb.c-aa.c = dd.c-bb.c = ee.c-dd.c = (hsep,0);
cc.c-bb.c = (0,.8hsep);
xpart(ee.e - aa.w) = 3.8in;
drawboxed(aa,bb,cc,dd,ee);
label.ulft(btex$b$etex, cuta(aa,cc) aa.c{dir50}..cc.c);
label.top(btex$b$etex, self.cc(0,30pt));
label.rt(btex$a$etex, cuta(cc,bb) cc.c..bb.c);
label.top(btex$a$etex, cuta(aa,bb) aa.c..bb.c);
label.llft(btex$a$etex, self.bb(-20pt,-35pt));
label.top(btex$b$etex, cuta(bb,dd) bb.c..dd.c);
label.top(btex$b$etex, cuta(dd,ee) dd.c..ee.c);
label.lrt(btex$a$etex, cuta(dd,bb) dd.c..{dir140}bb.c);
label.bot(btex$a$etex, cuta(ee,bb) ee.c..tension1.3 ..{dir115}bb.c);
label.urt(btex$b$etex, cuta(ee,cc) ee.c{(cc.c-ee.c)rotated-15}..cc.c);
endfig;

\stopuseMPgraphic

\useMPgraphic{dummy2}

\stoptext






//floris


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] metafun question getting XY

2004-08-16 Thread Floris van Manen
if i define a path

q := (w0,w0)--(w0,ww0)--(w2,ww1)--(w3,ww2)--(w3,w0)--cycle ;

and then pass this path as a parameter to a function

test( q ) ;


then within that function i can step through the 'list of points'.

def test( expr a  ) =
 for i = 1 upto (length(a)-2):
  dotlabel.bot ("" , (point i of a)  );
 endfor ;
enddef;


but how could i extract from each point the X and the Y value to
construct the lines like this.

 for i = 1 upto (length(a)-2):
  z1 = (point i of a) ;
  draw (0,y1)--(100,y1) ;
 endfor;



thanks!
% floris



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] command set of table?

2004-08-17 Thread Floris van Manen
in the instruction manual it says context relies on both plain tex as
well as the table package.

in the context manual i can only find an explanation of the
\starttabulate command.
i see no instructions as how to combine columns/rows .
where can i find that?

thanks!
% floris


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] defining a frame with embedded typing

2004-08-17 Thread Floris van Manen
how would i define a frame with the typing environment embedded.

the way i thought to solve it does *not* work (of course)


\def\startTTinput%
{\startframedtext[width=\makeupwidth,background=screen,backgroundscreen=.8]
\starttyping
}

\def\stopTTinput%
{\stoptyping\stopframedtext}


or do i have to look for a solution in a different direction?

thanks!
% f


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] defining a frame with embedded typing

2004-08-17 Thread Floris van Manen
that was the missing link. thanks!
% f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] description renders unintended results

2017-03-04 Thread Floris van Manen

> On 4 Mar 2017, at 11:25, Otared Kavian  wrote:
> 
> Since you specify
>   align=left
> in the setup of your description, I don’t see why the output would be 
> unexpected. With the following version of your example code I get the 
> attached PDF output.

I got the left/right discrepancy between the sample code and the rendering.
However the unexpected is the fact that it does not indent properly:

The intended is this:

1   one
a   two
b   three
2   four
c   five
d   six
x   seven
y   eight
z   nine
3   ten

The unintended result (also in your rendering) is this:

1   one
a   two
b   three
2   four
c   five
d   six
x   seven
y   eight
z   nine
3   ten





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] description renders unintended results

2017-03-05 Thread Floris van Manen
Is there anyone out there who has a clue as how to fix this?

Thanks
.F


> On 4 Mar 2017, at 11:58, Floris van Manen  wrote:
> 
> 
>> On 4 Mar 2017, at 11:25, Otared Kavian  wrote:
>> 
>> Since you specify
>>  align=left
>> in the setup of your description, I don’t see why the output would be 
>> unexpected. With the following version of your example code I get the 
>> attached PDF output.
> 
> I got the left/right discrepancy between the sample code and the rendering.
> However the unexpected is the fact that it does not indent properly:
> 
> The intended is this:
> 
> 1 one
>   a   two
>   b   three
> 2 four
>   c   five
>   d   six
>   x   seven
>   y   eight
>   z   nine
> 3 ten
> 
> The unintended result (also in your rendering) is this:
> 
> 1 one
> a two
> b three
> 2 four
> c five
> d six
> x seven
> y eight
> z nine
> 3 ten
> 
> 
> 
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] description renders unintended results (LUATEX BUG?)

2017-03-07 Thread Floris van Manen
The incorrect nesting seems to be connected to the luatex engine.
If i have the same source compiled by pdftex, it works as intended.

So is the different rendering an intended feature of luatex, or a simple bug?

.F



> On 6 Mar 2017, at 00:34, Floris van Manen  wrote:
> 
> Is there anyone out there who has a clue as how to fix this?
> 
> Thanks
> .F
> 
> 
>> On 4 Mar 2017, at 11:58, Floris van Manen  wrote:
>> 
>> 
>>> On 4 Mar 2017, at 11:25, Otared Kavian  wrote:
>>> 
>>> Since you specify
>>> align=left
>>> in the setup of your description, I don’t see why the output would be 
>>> unexpected. With the following version of your example code I get the 
>>> attached PDF output.
>> 
>> I got the left/right discrepancy between the sample code and the rendering.
>> However the unexpected is the fact that it does not indent properly:
>> 
>> The intended is this:
>> 
>> 1one
>>  a   two
>>  b   three
>> 2four
>>  c   five
>>  d   six
>>  x   seven
>>  y   eight
>>  z   nine
>> 3ten
>> 
>> The unintended result (also in your rendering) is this:
>> 
>> 1one
>> atwo
>> bthree
>> 2four
>> cfive
>> dsix
>> xseven
>> yeight
>> znine
>> 3ten
>> 
>> 
>> 
>> ___
>> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] description renders unintended results (LUATEX BUG?)

2017-03-07 Thread Floris van Manen

> On 8 Mar 2017, at 01:04, Alan Braslau  wrote:
> 
>  The two systems are very different, MKII being
> "frozen" and MKIV having evolved in some ways significantly. It is not
> a question of TeX engines, but rather of entire systems.
> 

ok, that makes sense.


> But it sounds like you want to be using an itemize or enumeration
> rather than a description.

well i do need the description as the items are not numbered or annotated in a 
sequential way.

i could use a \sym{tag} but then the available space is constant, and not 
variable as is when using description.

Or is there a better (simpler) way?

.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] confusing columns balancing results

2017-07-13 Thread Floris van Manen
When i try to use five balanced columns on a landscape page, i get unexpected 
results.


\setuppapersize[A4, landscape]
\setupbodyfont[8pt]
\language[fr]
\setupcolumns[
n=5,
distance=4mm,
balance=yes,
tolerance=tolerant]
\setupfootertexts[][]
\setuplayout[
backspace=10mm,
width=277mm,
height=fit,
topspace=10mm,
header=0mm,
top=0mm,
footer=0mm,
bottom=0mm]
\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
location={duplex},
grid=no,
topspace=1cm,
height=19cm,
backspace=1cm,
cutspace=0cm,
leftmargin=0cm,
leftmargindistance=0.4cm,
width=fit,
rightmargindistance=0cm,
rightmargin=0cm]
 \setuplayout[WithoutMarginnotes]

\setuphead[section][
align=normal,
style=\tfa\ss,
before={\blank},
after={\blank[2pt]}]








When using balance=no
the page is properly typeset

\setupcolumns[
n=5,
distance=4mm,
balance=no,
tolerance=tolerant]




When using balance=yes
It looks as if the page orientation became portrait mode, as the text 
disappears at the bottom of the page.



\setupcolumns[
n=5,
distance=4mm,
balance=yes,
tolerance=tolerant]







Some hints as how to proceed?
Thanks
.Floris van Manen






signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] confusing columns balancing results

2017-07-14 Thread Floris van Manen
Here too, your example does renders correctly.
Now try this:

===
\setuppapersize[A4, landscape]
\setupbodyfont[8pt]
\language[fr]
\setupcolumns[
n=5,
distance=4mm,
balance=yes,
tolerance=tolerant]
\setupfootertexts[][]
\setuplayout[
backspace=10mm,
width=277mm,
height=fit,
topspace=10mm,
header=0mm,
top=0mm,
footer=0mm,
bottom=0mm]
\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
location={duplex},
grid=no,
topspace=1cm,
height=19cm,
backspace=1cm,
cutspace=0cm,
leftmargin=0cm,
leftmargindistance=0.4cm,
width=fit,
rightmargindistance=0cm,
rightmargin=0cm]
 \setuplayout[WithoutMarginnotes]

\setuphead[subject][
align=normal,
style=\tfa\ss,
before={\blank},
after={\blank[2pt]}]

\starttext

\startcolumns


Lorem Ipsum Dolor
\blank

% {\tfc\ss Lastage Koor}
%
% \blank[big]
%
% 7 juli 2017

\blank[20.6mm]
{\ss
\startitemize[n]
\item A la Claire Fontaine
\item Sous le ciel de Paris
\item Vois Sur Ton Chemin\\
% {\em uit Les Choristes}
\item Si la pluie te mouille
\item Samson et Dalila
\item La Vierge à la Crèche
% \item Hiob 2
\item Alt Rhapsodie\\
% {\em J. Brahms\\
% solo Jos}
\item Dis, Quand Reviendras-tu?
\item Chaque Fois\\
% {\em solo Lia en Rik}
\item Caresse sur l’Océan\\
% {\em uit Les Choristes\\
% solo Anne en Jaap}
\item Les Feuilles Mortes\\
% {\em solo Carol}
\item Toréador\\
% {\em solo Ab en Kees}
\stopitemize
}
\column


\subject{1. A la Claire Fontaine}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit 
amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore 
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor 
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla 
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui 
officia deserunt mollit anim id est laborum.

\subject{2. Sous le Ciel de Paris}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in.


\subject{3. Vois Sur Ton Chemin}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit 
amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore 
et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation 
ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor 
in. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
consequat. Duis aute irure dolor in.



\subject{4. Si la Pluie te Mouille}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
incididunt ut labore et dolore magna aliqua. Ut enim

Re: [NTG-context] confusing columns balancing results

2017-07-14 Thread Floris van Manen

> On 14 Jul 2017, at 17:28, Rik Kabel  wrote:
> 
> Henri’s example fails for me in the same way that Floris describes. However, 
> when I remove either or both of the following lines from the first 
> \setuplayout directive, all is well.
> header=0mm,
> footer=0mm,
> 
> In this example, the complete unnamed layout can simply be removed.
> 
> It is not clear why Floris has two layouts defined and active. One is 
> stepping on the other. I do not know if the results of applying multiple 
> layouts should be additive like this, or not, but I would think that they 
> should not be.

but removing the

header=0mm,
footer=0mm,

will redefine the page surface.

What i tried was to specify a margin of 10mm around the text block which has 5 
columns.
This works only if the column balance is set to no.
There is probably a good reason for, but i don’t understand it (yet)

What is the correct way to define it?


.F


\setupcolumns[
n=5,
distance=4mm,
balance=yes,
tolerance=tolerant]
\setupfootertexts[][]

\setuppagenumber[state=none]
\setuppagenumber[state=stop]
\definelayout[WithoutMarginnotes][
location={duplex},
grid=no,
topspace=1cm,
% height=19cm,
height=fit,
backspace=1cm,
cutspace=0cm,
leftmargin=0cm,
leftmargindistance=0.4cm,
width=fit,
rightmargindistance=0cm,
rightmargin=0cm,
header=0mm,
top=0mm,
footer=0mm,
bottom=0mm
]
 \setuplayout[WithoutMarginnotes]






signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] fixed spacing

2017-07-17 Thread Floris van Manen
dear List,

I try to put a set of numbers into a block text.
I want to keep the spacing within the items fixed
x-y:~z,
How do i do that?
The attached code does not seem to treat the fixed space as fixed.

Thanks
.Floris


\definepapersize[iiwii][width=125mm, height=125mm]
\setuppapersize[iiwii]
\setupbodyfont[7pt]
\setuplayout[backspace=3mm,
topspace=3mm,
width=70mm,
header=0mm,
footer=0mm,
height=119mm]
\starttext

\starttext
{\tfxx\framed[width=42mm,align={width,nothyphenated,verytolerant},frame=off]
{0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 1-3:~90632, 
0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 4-0:~106926, 
4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 2-6:~1040810, 3-7:~1041891, 
1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 3-9:~1057765, 2-7:~1086097, 
1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 1-8:~1101249, 0-8:~1101277, 
2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 4-6:~1138989, 4-7:~1180436, 
4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 4-5:~1756438, 5-0:~1761922, 
5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 5-7:~2548510, 5-8:~2555440, 
5-9:~2558871
}}

{\tfxx\framed[width=42mm,align={width,nothyphenated},frame=off]
{0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 1-3:~90632, 
0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 4-0:~106926, 
4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 2-6:~1040810, 3-7:~1041891, 
1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 3-9:~1057765, 2-7:~1086097, 
1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 1-8:~1101249, 0-8:~1101277, 
2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 4-6:~1138989, 4-7:~1180436, 
4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 4-5:~1756438, 5-0:~1761922, 
5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 5-7:~2548510, 5-8:~2555440, 
5-9:~2558871
}}

\stoptext



numbertest.pdf
Description: Adobe PDF document


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] fixed spacing

2017-07-17 Thread Floris van Manen
No, i don’t want them in a table in columns.
Rather i want the stretching space after the comma only.

.F


> On 17 Jul 2017, at 22:05, Rik Kabel  wrote:
> 
> On 2017-07-17 15:23, Floris van Manen wrote:
>> dear List,
>> 
>> I try to put a set of numbers into a block text.
>> I want to keep the spacing within the items fixed
>> x-y:~z,
>> How do i do that?
>> The attached code does not seem to treat the fixed space as fixed.
>> 
>> Thanks
>> .Floris
>> 
>> 
>> \definepapersize[iiwii][width=125mm, height=125mm]
>> \setuppapersize[iiwii]
>> \setupbodyfont[7pt]
>> \setuplayout[backspace=3mm,
>> topspace=3mm,
>> width=70mm,
>> header=0mm,
>> footer=0mm,
>> height=119mm]
>> \starttext
>> 
>> \starttext
>> {\tfxx\framed[width=42mm,align={width,nothyphenated,verytolerant},frame=off]
>> {0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 
>> 1-3:~90632, 0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 
>> 4-0:~106926, 4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 
>> 2-6:~1040810, 3-7:~1041891, 1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 
>> 3-9:~1057765, 2-7:~1086097, 1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 
>> 1-8:~1101249, 0-8:~1101277, 2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 
>> 4-6:~1138989, 4-7:~1180436, 4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 
>> 4-5:~1756438, 5-0:~1761922, 5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 
>> 5-7:~2548510, 5-8:~2555440, 5-9:~2558871
>> }}
>> 
>> {\tfxx\framed[width=42mm,align={width,nothyphenated},frame=off]
>> {0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 
>> 1-3:~90632, 0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 
>> 4-0:~106926, 4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 
>> 2-6:~1040810, 3-7:~1041891, 1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 
>> 3-9:~1057765, 2-7:~1086097, 1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 
>> 1-8:~1101249, 0-8:~1101277, 2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 
>> 4-6:~1138989, 4-7:~1180436, 4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 
>> 4-5:~1756438, 5-0:~1761922, 5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 
>> 5-7:~2548510, 5-8:~2555440, 5-9:~2558871
>> }}
>> 
>> \stoptext
>> 
> 
>   • Use tabular numbers and hard-code all of the spaces you need:
> \definefontfeature[default][default][tnum=yes]
> or
> \definefontfeature[ff:tnum][tnum=yes] ... \addff{ff:tnum} or 
> \feature[+][ff:tnum] where appropriate.
> 
>   • Put the numbers in a table and right-align the number columns (see 
> http://wiki.contextgarden.net/TABLE#Using_character_alignment if you need 
> decimal alignment).
> --
> Rik
>   • Both
> 
> =
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] hoot mail merge in context?

2017-08-07 Thread Floris van Manen
Hello,

Can someone point me to an example as how to mail merge a CSV file containing 
the data with a context tex template?
Outputting one or more pages per data entry input row?

Thanks!
.Floris



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] how to get simplefonts to work as intended?

2017-09-22 Thread Floris van Manen


While trying to use the simplefonts module again, the generated output is 
somewhat confusing.
Before falling back to the default font, it generates a lot of error messages 
(2.5 pages) in the pdf.
Can someone provide a hint as how to solve this issue?

Kind regards,
.Floris



this is the tex file

\setupbodyfontenvironment[default][em=italic]
\usemodule[simplefonts][size=12pt]
\setmainfont[TeX Gyre Termes]
\setsansfont[TeX Gyre Heros]
\setmonofont[TeX Gyre Cursor]
\starttext
Lorem ipsum dolor sit amet
\stoptext


this is the log:


mtx-context | run 1: luatex 
--fmt="/Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="error" 
--lua="/Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 
--c:fulljobname="/Users/vm/Desktop/error.tex" 
--c:input="/Users/vm/Desktop/error.tex" --c:kindofrun=1 --c:maxnofruns=9 
"cont-yes.mkiv"
This is LuaTeX, Version 1.05.0 (TeX Live 2017)
 system commands enabled.
open source > level 1, order 1, name 
'/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.09.15 20:03 MKIV beta  fmt: 2017.9.22  
int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name 
'/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'error', input '/Users/vm/Desktop/error', 
result 'error'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/Users/vm/Desktop/error.tex'
resolvers   > modules > 'simplefonts' is loaded
open source > level 3, order 4, name 
'/Applications/ConTeXt/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv'
loading > ConTeXt User Module / Simplefonts
resolvers   > lua > loading file 
'/Applications/ConTeXt/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua'
 succeeded
close source> level 3, order 4, name 
'/Applications/ConTeXt/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'simplefonts:1-12pt-rm-tf-0--0'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'simplefonts:2-12pt-rm-tf-0--0'
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'simplefonts:3-12pt-rm-tf-0--0'

Overfull \hbox (10.40045pt too wide) in paragraph at lines 4--1
[][Serif][name:texgyretermesregular][fallbacks=mainfontregularfallbacks,features=mainfontregularfeatures][SerifItalic][name:texgyretermesitalic][fallbacks=mainfontitalicfallbacks,features=mainfontitalicfeatures][SerifSlanted][name:texgyretermesitalic][fallbacks=mainfontslantedfallbacks,features=mainfontslantedfeatures][SerifBold][name:texgyretermesbold][fallbacks=mainfontboldfallbacks,features=mainfontboldfeatures][SerifBoldItalic][name:texgyretermesbolditalic][fallbacks=mainfontbolditalicfallbacks,features=mainfontbolditalicfeatures][SerifBoldSlanted][name:texgyretermesbolditalic][fallbacks=mainfontboldslantedfallbacks,features=mainfontboldslantedfeatures][SerifCaps][name:texgyretermesregular][fallbacks=mainfontcapsfallbacks,features=mainfontcapsfeatures][SerifItalicCaps][name:texgyretermesregular][fallbacks=mainfontitaliccapsfallbacks,features=mainfontitaliccapsfeatures][SerifSlantedCaps][name:texgyretermesregular][fallbacks=mainfontslantedcapsfallbacks,features=mainfontslantedcapsfeatures][SerifBoldCaps][name:texgyretermesregular][fallbacks=mainfontboldcapsfallbacks,features=mainfontboldcapsfeatures][SerifBoldItalicCaps][name:texgyretermesregular][fallbacks=mainfontbolditaliccapsfallbacks,features=mainfontbolditaliccapsfeatures][SerifBoldSlantedCaps][name:texgyretermesregular][fallbacks=mainfontboldslantedcapsfallbacks,features=mainfontboldslantedcapsfeatures][Sans][name:texgyretermesregular][fallbacks=mainfontregularfallbacks,features=mainfontregularfeatures][SansItalic][name:texgyretermesitalic][fallbacks=mainfontitalicfallbacks,features=mainfontitalicfeatures][SansSlanted][name:texgyretermesitalic][fallbacks=mainfontslantedfallbacks,features=mainfontslantedfeatures][SansBold][name:texgyretermesbold][fallbacks=mainfontboldfallbacks,fe

Re: [NTG-context] how to get simplefonts to work as intended?

2017-09-22 Thread Floris van Manen

> On 23 Sep 2017, at 00:30, kaddour kardio  wrote:
> 
> you should  remove the line containing *simplefont*, you don’t
> have to load it to get a proper import of fonts, besides the TeX Gyre super 
> family is already available with the distribution, either standalone or the 
> texlive distro
> 

without the line containg \usemodule[simplefonts] context will complain about 
the unknown \setmainfont[]




l.13 \setmainfont
   [TeX Gyre Termes]

 3 topspace=0mm,
 4 width=140mm,
 5 header=25mm,
 6 footer=20mm,
 7 height=210mm]
 8
 9 \setupheader[state=empty,no]
10 % \setuppagenumbering[stop]
11 \setupbodyfontenvironment[default][em=italic]
12 % \usemodule[simplefonts][size=12pt]
13 >>  \setmainfont[TeX Gyre Termes]
14 \setsansfont[TeX Gyre Heros]
15 \setmonofont[TeX Gyre Cursor]
16 \setupitemize[packed]
17  \setupinterlinespace[line=16pt]
18
19 %% set style of head and foot
20 \setupheader[style=smallcaps]
21 \setupfooter[style=italic]
22 %% set the style of the page number
23 \setuppagenumbering[style=mediaeval,location=]




signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] how to get simplefonts to work as intended?

2017-09-22 Thread Floris van Manen

> On 23 Sep 2017, at 02:14, Floris van Manen  wrote:
> 
> 
>> On 23 Sep 2017, at 00:30, kaddour kardio  wrote:
>> 
>> you should  remove the line containing *simplefont*, you don’t
>> have to load it to get a proper import of fonts, besides the TeX Gyre super 
>> family is already available with the distribution, either standalone or the 
>> texlive distro
>> 
> 


So the answer is that the command has changed:
http://wiki.contextgarden.net/simplefonts

However, the commands have slightly changed:
\setmainfont
is now
\definefontfamily [myfamily] [serif] [DejaVu]
(and the same syntax to set the sans, mono and math font).



That works, of course ;-)

.F



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] how to get simplefonts to work as intended?

2017-09-23 Thread Floris van Manen

> On 23 Sep 2017, at 11:58, kaddour kardio  wrote:
> 
> Here is a MWE
> 
yes that works as intended




signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] how to get simplefonts to work as intended?

2017-09-23 Thread Floris van Manen

> On 23 Sep 2017, at 23:38, kaddour kardio  wrote:
> 
> sorry again for the first answer, goof (Con)TeXTing


The online documentation was not too clear to me.
e.g. if you know how it works, you can clearly see it.
But the examples given don’t work anymore as of the new command syntax.
The generated output is confusing, to say the least.
ConTeXt is a great tool nevertheless.

.F




signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] installing ConTeXt on ARM linux

2017-10-05 Thread Floris van Manen
trying to install ConTeXt on an ARM (ubuntu) linux hos, then get this message 
with the request to report is on the mailing list:

$ sh ./first-setup.sh --engine=luatex
Error: your system "Linux aarch64" is not supported yet.
Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)

is there a (beta) working version somewhere?

Thanks
.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] installing ConTeXt on ARM linux

2017-10-06 Thread Floris van Manen
i have this snazzy little €30 quad core ARM board with 8GB eMMC.
It runs my python3 scripts at 1/3 the speed of my MacBookPro mid 2009.

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Plus2

To me it looks like a perfect network ConTeXt server.
If there is something i can do to get the ConTeXt ARM going, please let me know.


.F



> On 6 Oct 2017, at 11:46, Hans Hagen  wrote:
> 
> On 10/6/2017 9:10 AM, Mojca Miklavec wrote:
> 
>> [1] 
>> https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput
> 
> so why not:
> 
> https://www.parallella.org/board/
> 
> (luigi will love it to mess with all these extra cores)
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Risposta: installing ConTeXt on ARM linux

2017-10-06 Thread Floris van Manen

> On 6 Oct 2017, at 13:42, MF  wrote:
> 
> Once they get to support it, you could download the texlive context
> package that comes with Debian.

thanks for the hint.
it turns out that the ubuntu distribution for the nanopi board has the context 
packages included already.
(and it works ;-)


mtx-context | ConTeXt Process Management 0.61
mtx-context |
mtx-context | main context file: 
/usr/share/texmf/tex/context/base/context.mkiv
mtx-context | current version: 2015.05.18 12:26


This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)

Execute  'luatex --credits'  for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

Copyright 2015 Taco Hoekwater, the LuaTeX Team.



.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Lua problem with tagging or setups

2017-10-09 Thread Floris van Manen
if i omit the line with the \externalfigure it does work
is that cow.pdf missing?


> On 9 Oct 2017, at 18:11, Rik Kabel  wrote:
> 
> Consider the following almost-minimal example:
> 
> \setuptagging[state=start]
> \setuppapersize  [A6]
> \setupexternalfigures[location=default]
> \definemakeup[cover4][page=left,doublesided=no]
> \definelayer [isbn][width=\pagewidth,height=\pageheight]
> \define  \Title {A Primer on Omphaloskepsis}
> \startsetups [placeisbn]
>   \setlayer   [isbn][preset=rightbottom,hoffset=5mm,voffset=5mm]
>   {\externalfigure[cow.pdf][width=3cm]}
> \stopsetups
> \starttext
>   \setupbackgrounds  [page][setups=placeisbn,background=isbn]
>   \startmakeup   [cover4]
>   \scale [width=\textwidth] {\red \Title}
>   \stopmakeup
> \stoptext
> For me  (Win64, current standalone beta), compilation halts with:
> 
> lua error   > lua error on line 4 in file C://Users/rik/Desktop/xxx.tex:
> 
> ...ext/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:823: attempt to 
> index local 'spec' (a nil value)
> stack traceback:
> ...ext/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:823: in 
> function <...ext/tex/texmf-context/tex/conte
> xt/base/mkiv/back-exp.lua:818>
> (It always points to line 4 of the file, no matter the file.) When the halt 
> is answered with a CR, the processing runs to completion with no apparent 
> errors.
> When the first line is removed, or the state set to stop, compilation 
> completes normally.
> 
> When the content of the setup (the two-line \setlayer) is moved out of the 
> setup, compilation completes normally (without regard to tagging).
> 
> (I use a setup here because, in the real work on which this is based, there 
> are other items in the layer that cannot be properly handled until after 
> \starttext processing.
> 
> --
> Rik
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Sorting of abbreviations in index

2017-10-09 Thread Floris van Manen
> On 9 October 2017 at 17:35, Henning Hraban Ramm  wrote:
> 
> If you like, I’ll gladly send you a voucher copy of the book*, once it’s 
> printed.
> *) https://www.dreiviertelhaus.de/editionka/gewerkschaftspolitik/

(1947 — 1975) why does the book ends a year before i travelled there ?
;-)

.F




signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] How to add a font folder with local fonts?

2017-10-10 Thread Floris van Manen
you might consider using git
easy to keep track of your data and to share / clone the latest state.

.F


> On 10 Oct 2017, at 12:25, Ulrike Fischer  wrote:
> 
> Am Tue, 10 Oct 2017 11:31:15 +0200 schrieb Henning Hraban Ramm:
> 
>>> I can set OSFONTDIR only for context, but it would be a bit tricky.
>> 
>> Hm, I’m used to setup/make scripts per project, setting some path works well 
>> with that.
> 
> The tricky part is to fit it in my current configuration system. I
> share configuration between two PC and so adding things which should
> have an effect only on one of them needs (due to different pathes)
> always a bit thinking -- not impossible and not so difficult but a
> bit tricky ;-). So adjusting a local file would be easier.
> 
> 
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] web certificaat verlopen ...

2017-10-17 Thread Floris van Manen

modules.contextgarden.net

uses an invalid security certificate.
The certificate expired on 16 September 2017, 01:59.
The current time is 17 October 2017, 22:15.
Error code: SEC_ERROR_EXPIRED_CERTIFICATE

(something might need to get fixed)

.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] ntg-context Digest, Vol 160, Issue 26

2017-10-19 Thread Floris van Manen

> On 19 Oct 2017, at 11:33, Christoph Reller  wrote:
> 
> \setupquotation[method=font]

what is the intension of the method=font ?

.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] new module uploaded: handlecsv

2017-10-25 Thread Floris van Manen
the modules.contextgarden.net is not secure …

https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=86
Your connection is not secure
The owner of modules.contextgarden.net has configured their website improperly. 
To protect your information from being stolen, Firefox has not connected to 
this website.




> On 25 Oct 2017, at 20:49, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> I have uploaded a new module to
> https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=86.
> 
> It allows reading data from CSV files and it is useful for document merging.
> 
> The problem is that the ConTeXt Suite skips the download because it is
> an unknown module.
> 
> Sorry for insisting, but must the module obtain an approval or something
> similar?
> 
> What should I do to make the module available for the ConTeXt Suite
> distribution?
> 
> Many thanks for your help,
> 
> Pablo
> --
> http://www.ousia.tk
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] bug updating the ConTeXt Suite?

2017-11-06 Thread Floris van Manen
here too:

$ context --version

mtx-context | ConTeXt Process Management 1.02
mtx-context |
mtx-context | main context file: 
/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2017.11.01 15:58


$ contextjit --version
/Applications/ConTeXt/tex/texmf-osx-64/bin/mtxrun:633: attempt to index local 
‘searchers' (a nil value)



(on OSX 10.11.6)

.F

> On 6 Nov 2017, at 09:56, Henning Hraban Ramm  wrote:
> 
> Am 2017-11-05 um 13:43 schrieb Pablo Rodriguez :
> 
>> Dear list,
>> 
>> after updating ConTeXt to latest beta, any invocation shows this error:
>> 
>> ~/context/tex/texmf-linux/bin/mtxrun:633: attempt to index local
>>'searchers' (a nil value)
>> 
>> This happens with "mtxrunjit --generate" or with "contextjit --version"
>> (to name only two).
>> 
>> Could anyone confirm this issue? (Backup your current beta first to
>> avoid issues.)
>> 
>> Many thanks for your help,
>> 
>> Pablo
> 
> Yes, I’m getting the same (using context --jit) since yesterday, probably my 
> beta was a few days old, and still after updating ConTeXt and context --make
> 
> Without --jit, it works.
> 
> (on OSX 10.9.5)
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
> 
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] bug updating the ConTeXt Suite?

2017-11-06 Thread Floris van Manen
so is the error related to an incompatible luatex?


$ luatex --version
This is LuaTeX, Version 1.05.0 (TeX Live 2017)

$ mtxrunjit --version
/Applications/ConTeXt/tex/texmf-osx-64/bin/mtxrun:633: attempt to index local 
‘searchers' (a nil value)


$ mtxrun --version

mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  | source path



> On 6 Nov 2017, at 18:55, Pablo Rodriguez  wrote:
> 
> On 11/05/2017 11:02 PM, Joseph Canedo wrote:
>> Hi Pablo,
>> 
>> Sorry, I am not able to reproduce your issue I am afraid (using on
>> Windows 10) :
>> 
>> $ contextjit --version
>> 
>> mtx-context | ConTeXt Process Management 1.02
>> mtx-context |
>> mtx-context | main context file:
>> c:/ConTeXt/test/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> mtx-context | current version: 2017.11.01 15:58
> 
> Hi Joseph,
> 
> many thanks for your reply.
> 
> I know that Windows 64bit (1.06.1, I guess) has a more recent LuaTeX
> binary than Linux 32bit (1.05.0).
> 
> I wonder whether this may be the cause.
> 
> Many thanks for your help,
> 
> Pablo
> --
> http://www.ousia.tk
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] bug updating the ConTeXt Suite?

2017-11-06 Thread Floris van Manen

> On 6 Nov 2017, at 18:58, Pablo Rodriguez  wrote:
> 
> On 11/06/2017 10:31 AM, Floris van Manen wrote:
>> here too:
>> 
>> $ context --version
>> 
>> mtx-context | ConTeXt Process Management 1.02
>> mtx-context |
>> mtx-context | main context file: 
>> /Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.mkiv
>> mtx-context | current version: 2017.11.01 15:58
>> 
>> $ contextjit --version
>> /Applications/ConTeXt/tex/texmf-osx-64/bin/mtxrun:633: attempt to index 
>> local ‘searchers' (a nil value)
> Many thanks for your reply, Floris.
> 
> Could you also check your luajittex version?


$ luajittex --version
This is LuajitTeX, Version 1.05.0 (TeX Live 2017)






signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] German letter style

2017-12-05 Thread Floris van Manen

> On 5 Dec 2017, at 16:41, Jan U. Hasecke  wrote:
> 
> contextgarden is full of letter examples. But even the first simple
> example here http://wiki.contextgarden.net/Letter#Example does not
> compile.

same here:


mtx-context | run 1: luatex 
--fmt="/Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="test" 
--lua="/Applications/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 
--c:fulljobname="/Users/vm/Desktop/tex/test.tex" 
--c:input="/Users/vm/Desktop/tex/test.tex" --c:kindofrun=1 --c:maxnofruns=9 
"cont-yes.mkiv"
This is LuaTeX, Version 1.05.0 (TeX Live 2017)
 system commands enabled.
open source > level 1, order 1, name 
'/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.11.01 15:58 MKIV beta  fmt: 2017.11.8  
int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name 
'/Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'test', input '/Users/vm/Desktop/tex/test', 
result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/Users/vm/Desktop/tex/test.tex'
modules > 'letter' is loaded
open source > level 3, order 4, name 
'/Applications/ConTeXt/tex/texmf-modules/tex/context/third/letter/base/s-cor-01.mkvi'
modules > 'cor-00' is loaded
open source > level 4, order 5, name 
'/Applications/ConTeXt/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi'

lua error   > lua error on line 30 in file 
/Applications/ConTeXt/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi:

...eXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: bad argument #1 
to 'gmatch' (string expected, got nil)
stack traceback:
[C]: in function 'gmatch'
...eXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: in 
function 'registercode'
[ctxlua]:1: in main chunk

20 %C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 %C GNU General Public License for more details.
22 %C
23 %C You should have received a copy of the GNU General Public License
24 %C along with this program.  If not, see .
25
26 \unprotect
27
28 % Lua functions for the core and also for the frontend modules
29
30 >>  \ctxloadluafile{s-cor-00}
31
32 % Constants and variables
33
34 \startinterface all
35   \setinterfaceconstant {whitespace}  {whitespace}
36   \setinterfaceconstant {backgroundimage} {backgroundimage}
37   \setinterfaceconstant {fromname}{fromname}
38   \setinterfaceconstant {fromaddress} {fromaddress}
39   \setinterfaceconstant {attention}   {attention}
40   \setinterfaceconstant {subject} {subject}


?

lua error   > lua error on line 30 in file 
/Applications/ConTeXt/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi:

...eXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: bad argument #1 
to 'gmatch' (string expected, got nil)
stack traceback:
[C]: in function 'gmatch'
...eXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: in 
function 'registercode'
[ctxlua]:1: in main chunk

20 %C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 %C GNU General Public License for more details.
22 %C
23 %C You should have received a copy of the GNU General Public License
24 %C along with this program.  If not, see .
25
26 \unprotect
27
28 % Lua functions for the core and also for the frontend modules
29
30 >>  \ctxloadluafile{s-cor-00}
31
32 % Constants and variables
33
34 \startinterface all
35   \setinterfaceconstant {whitespace}  {whitespace}
36   \setinterfaceconstant {backgroundimage} {backgroundimage}
37   \setinterfaceconstant {fromname}{fromname}
38   \setinterfaceconstant {fromaddress} {fromaddress}
39   \setinterfaceconstant {attention}   {attention}
40   \setinterfaceconstant {subject} {subject}



mtx-context | fatal error: return code: 1



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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

Re: [NTG-context] WYSIWYM editor on top of ConTeXt / Lout

2017-12-07 Thread Floris van Manen
it might be simpler to have a ‘watch’ option for the context compiler combined 
with an ‘open result’.
e.g. the coffeescript compiler allows for a ‘-w’ option, it will keep the 
compiler running in the background and
start compiling the file(s) as soon as it detects any changes.

i guess such feature might already exist in the rich mtx context tools 
environment.
not sure where to look though …

.F


> On 7 Dec 2017, at 07:42, Jonas Baggett  wrote:
> 
> 
>> While not an editor, but rather a language, Skribilo
>> (http://www.nongnu.org/skribilo/) can output documents in various
>> formats, including Context and Lout.  I have worked a bit on getting
>> better Context output from it and last tinkered with the math output
>> about a year ago.  Such a system might form the output engine on which
>> an editor could be built.  The same might be said for Pandoc, in which
>> case perhaps one of the existing Haskell editors could be used as the
>> basis for a specialised text processing system.  For non-technical
>> documents SiSU (http://www.jus.uio.no/lm/toc.html) offers various output
>> formats, but again it is not an editor.
>> 
>> While your concept is interesting, I'm an Emacs user, and unlikely to
>> switch to anything else.
>> 
>> Cheers,
>> Roger
> --
> 
> Hi Roger,
> 
> Thank you for the suggestion. I was first thinking about incrementally 
> creating a custom format that evolves as features are implemented. And for 
> translating the custom format into a backend format, I was thinking of 
> creating files with translations rules for each backend so that anyone can 
> add support for a new backend or update an existing backend to add more 
> feature or to make it compatible with a newer version of the backend, without 
> needing to modify the editor code. A translation rule is e.g. 
> start_section[title=, back_ground_color=] => 
> @startsection(title -> {}, bg_color -> {}) which will 
> convert a start section command of the document format into the same command 
> for a backend format.
> 
> At first glance that way seems to be the easiest way for me, but Skribilo 
> looks interesting as a fallback option, although I find its syntax to be 
> weird, if I find out that the idea with translation rules isn't working as 
> expected.
> 
> Cheers,
> Jonas
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] setting row height?

2017-12-28 Thread Floris van Manen
What is the (preferred) way to set the height of table rows?
e.g. the online documentation tells me how to set the width, not the height.
or how to set the height of the table?

\starttable[*{4}{|w(7mm)}|][textwidth=max]\HL[5]
\VL[5]{1} \VL[1]{0} \VL[5]{2} \VL[1]{8} \VL[5]\AR\HL[1]
\VL[5]{8} \VL[1]{~} \VL[5]{~} \VL[1]{1} \VL[5]\AR\HL[5]
\VL[5]{0} \VL[1]{~} \VL[5]{~} \VL[1]{2} \VL[5]\AR\HL[1]
\VL[5]{2} \VL[1]{8} \VL[5]{1} \VL[1]{0} \VL[5]\AR\HL[5]
\stoptable



Thanks
.F



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] setting row height?

2017-12-29 Thread Floris van Manen
/thankyou
F

> On 29 Dec 2017, at 14:14, Lars  wrote:
> 
> Hey there,
> 
> I suggest you use the extreme tables mechanism instead. AFAIK it is the most 
> consistent way to-date. A simple table would look like (also see attached 
> output jpg at the bottom of the mail):
> 
> 
> \starttext
> 
>   \startxtable[height=3cm] % Use it globally...
> 
> \startxrow
>   \startxcell
> first top
>   \stopxcell
>   \startxcell
> second top
>   \stopxcell
> \stopxrow
> 
> \startxrow[height=1cm] % ... or locally.
>   \startxcell
> first bot
>   \stopxcell
>   \startxcell
> second bot
>   \stopxcell
> \stopxrow
> 
>   \stopxtable
> 
> \stoptext
> 
> 
> 
> Cheers.
> 
> 
> 
> Am 28/12/2017 um 20:44 schrieb Floris van Manen:
>> What is the (preferred) way to set the height of table rows?
>> e.g. the online documentation tells me how to set the width, not the height.
>> or how to set the height of the table?
>> 
>> \starttable[*{4}{|w(7mm)}|][textwidth=max]\HL[5]
>> \VL[5]{1} \VL[1]{0} \VL[5]{2} \VL[1]{8} \VL[5]\AR\HL[1]
>> \VL[5]{8} \VL[1]{~} \VL[5]{~} \VL[1]{1} \VL[5]\AR\HL[5]
>> \VL[5]{0} \VL[1]{~} \VL[5]{~} \VL[1]{2} \VL[5]\AR\HL[1]
>> \VL[5]{2} \VL[1]{8} \VL[5]{1} \VL[1]{0} \VL[5]\AR\HL[5]
>> \stoptable
>> 
>> 
>> 
>> Thanks
>> .F
>> 
>> 
>> 
>> 
>> ___
>> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] xtables: rowwise, columnwise, and cellwise operations

2018-01-05 Thread Floris van Manen
apparently

>\startxcell[suffix][ny=2] cell a 1 \stopxcell

should be

   \startxcell[suffix, ny=2] cell a 1 \stopxcell




> On 5 Jan 2018, at 14:32, Hans Hagen  wrote:
> 
> On 1/5/2018 4:57 AM, Henri wrote:
>> Dear list,
>> The Natural Tables have this great feature that I can control the layout 
>> with rowwise, columnwise,
>> or cellwise setups.  For example:
>> \starttext
>> \setupTABLE [frame=off]
>> \setupTABLE [r] [first] [topframe=on,bottomframe=on,style=bold]
>> \setupTABLE [c] [2] [style=italic]
>> \setupTABLE [2] [3] [color=red]
>> \setupTABLE [r] [last]  [bottomframe=on]
>> \startTABLE
>>   \NC A \NC A \NC A \NC\NR
>>   \NC B \NC B \NC B \NC\NR
>>   \NC C \NC C \NC C \NC\NR
>>   \NC D \NC D \NC D \NC\NR
>>   \NC E \NC E \NC E \NC\NR
>> \stopTABLE
>> \stoptext
> 
> it's also an extremely inefficient method
> 
>> How can I do such a thing with Extreme Tables?  If it is not yet possible 
>> I'd like to request the
>> inclusion of such a mechanism.
> from the manual, named setups:
> 
> \setupxtable[suffix][align=middle,foregroundcolor=red]
> \setupxtable[blabla][foregroundstyle=slanted]
> \setupxtable[crap]  [foregroundcolor=blue]
> \setupxtable[bold]  [crap][foregroundstyle=bold]
> 
> \startxtable % [frame=off]
>\startxtablehead
>\startxrow[bold]
>\startxcell[suffix]   head a \stopxcell
>\startxcell[blabla]   head b \stopxcell
>\startxcell   head c \stopxcell
>\stopxrow
>\stopxtablehead
>\startxtablebody
>\startxrow
>\startxcell[suffix][ny=2] cell a 1 \stopxcell
>\startxcell   cell b 1 \stopxcell
>\startxcell   cell c 1 \stopxcell
>\stopxrow
>\startxrow
>\startxcell   cell b 2 \stopxcell
>\startxcell   cell c 2 \stopxcell
>\stopxrow
>\startxrow
>\startxcell[suffix]   cell a 3 \stopxcell
>\startxcell   cell b 3 \stopxcell
>\startxcell   cell c 3 \stopxcell
>\stopxrow
>\startxrow
>\startxcell[suffix]   cell a 4 \stopxcell
>\startxcell   cell b 4 \stopxcell
>\startxcell   cell c 4 \stopxcell
>\stopxrow
>\startxrow
>\startxcell[suffix]   cell a 5 \stopxcell
>\startxcell   cell b 5 \stopxcell
>\startxcell   cell c 5 \stopxcell
>\stopxrow
>\stopxtablebody
> \stopxtable
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] missing link

2018-02-04 Thread Floris van Manen
On the contextgarden.net site, at page:

http://wiki.contextgarden.net/Mark_IV

near the end of the page you see:

More sample code
Other examples of Lua(TeX) code are to be found on Luigi’s user page as well as 
http://luatex.bluwiki.com/


the link http://luatex.bluwiki.com/ points to a placeholder page.
e.g. not much of an example ;-)

.F



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] option for printing range

2018-02-27 Thread Floris van Manen

> On 27 Feb 2018, at 13:50, Henning Hraban Ramm  wrote:
> 
> Too bad I can’t live (make a living) without Photoshop, InDesign etc...

well, that depends as how you organise the workflow…
i switched away from adobe using context instead.

.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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
___

  1   2   3   >