Re: [NTG-context] latest lmtx, \startitemeze and Multipage TABLEs no longer works

2020-11-16 Thread Hans van der Meer
Shouldn't it be \startitemize ? Or is there another problem?
dr. Hans van der Meer


> On 16 Nov 2020, at 14:29, Bertrand Masson  wrote:
> 
> Hello
> With the latest version of lmtx (ConTeXt  ver: 2020.11.04 09:40 LMTX  fmt: 
> 2020.11.14) \ startitemeze [2] no longer works. Bullets (-) no longer appear!
> 
> Multipage TABLEs with \bTABLE[split=repeat,option=stretch] no longer works.
> 
> Bertrand
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Unwanted whitespace at beginning of document

2020-09-29 Thread Hans van der Meer
Of old I have found the wolf fence tactics useful: Put for example an X at the 
beginning of a suspected section and somewhat further a Y. OIf they bracket the 
culprit the offending space will be between them. Otherwise narrow the fence.

dr. Hans van der Meer


> On 29 Sep 2020, at 14:26, Denis Maier  wrote:
> 
> Hi,
> 
> I have ended up with unwanted whitespace at the beginning of my document. The 
> environment definition is already quite complex, so I cannot easily tell 
> where the whitespace is coming from. Any advice how I could track that down? 
> Are there some tricks for this?
> 
> Best,
> Denis
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Best way to store text for later use

2020-09-18 Thread Hans van der Meer
A possibility is saving the data as text in a Lua-table. If you are not afraid 
to use some Lua, I can send my code for saving files and data for repeated use.

dr. Hans van der Meer


> On 18 Sep 2020, at 15:36, Denis Maier  wrote:
> 
> Hi,
> 
> For typesetting XML I'm wondering how to best store text for later use:
> 
> I've tried using buffers, but this here doesn't work:
> 
> ==
> \startxmlsetups xml:article-meta
> \setupdocument [
> pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)},
> volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)},
> doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)},
> elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)},
> title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)},
> author={\AuthorList},
> ]
>   \startbuffer[abstract]
>   \xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)}
>   \stopbuffer
>\xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:article-meta:abstract
> \xmlflush{#1}
> \stopxmlsetups
> ===
> 
> This here works:
> 
> ==
> \startxmlsetups xml:article-meta
> \setupdocument [
> pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)},
> volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)},
> doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)},
> elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)},
> title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)},
> author={\AuthorList},
> abstract=\xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)},
> ]
>\xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:article-meta:abstract
> \xmlflush{#1}
> \stopxmlsetups
> ===
> 
> But has using a variable for the abstract any drawbacks? (The abstract might 
> contain multiple paragraphs.)
> 
> Best,
> Denis
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Hans van der Meer
In Lua patterns % is a socalled magic character like ^$ etc. These are esacped 
with a %. Thus %% is what you need in the first string.
dr. Hans van der Meer


> On 27 Aug 2020, at 17:11, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> I have and \xmlraw command that gives some text with percent signs.
> ConTeXt parses them as comments (so no output).
> 
> Using Lua gsub(), I need to replace something like:
> 
>  string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent")
> 
> How do I need to invoke % to get the character found?
> 
> 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
> ___

___
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] please explain

2020-08-07 Thread Hans van der Meer
> It is because ffi is a multi-part ligature.

Indeed, of course. I am getting old, I fear. It kept me awake in bed yesterday 
until I realised (far too late) it must be the ffi ligature. 

dr. Hans van der Meer


> On 7 Aug 2020, at 09:29, Taco Hoekwater  wrote:
> 
> 
> 
>> On 6 Aug 2020, at 21:30, Hans van der Meer  wrote:
>> 
>> This MWE is an example of strange font behaviour according to the log and I 
>> do not understand what is causing it.
>> ConTeXt complains "check count_components with mkiv" when the word 'suffi' 
>> is present (see log message below).
>> 
>> Now comes the most strange: remove 'suffi' or shorten to 'suff' and the 
>> message goes away.
>> I have put the full set of files inside the zip.
> 
> Looks like it is a warning from Hans, mostly for himself. It is because ffi 
> is a multi-part ligature.
> As long as the output looks ok, I do not think you have to pay attention.
> 
> Best wishes,
> Taco
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] please explain

2020-08-06 Thread Hans van der Meer
This MWE is an example of strange font behaviour according to the log and I do not understand what is causing it.ConTeXt complains "check count_components with mkiv" when the word 'suffi' is present (see log message below).Now comes the most strange: remove 'suffi' or shorten to 'suff' and the message goes away.I have put the full set of files inside the zip.
dr. Hans van der Meer

\setupbodyfont[termes]\starttext%=ConTeXt versie \contextversion \crlf%=this here: suffi (but suff is ok!)%=\starttypingfonts/mkiv/type-imp-texgyre.mkiv'close source    > level 3, order 4, name '/Users/hansm/TeX/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'fonts           > !fonts           > ! check count_components with mkiv !fonts           > !\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] how to with \margindata

2020-07-15 Thread Hans van der Meer
I didn't miss that argument, of course, my actual code was:
\margindata[outer][hoffset=\marginoffset]

dr. Hans van der Meer


> On 15 Jul 2020, at 22:10, Wolfgang Schuster 
>  wrote:
> 
> Hans van der Meer schrieb am 15.07.2020 um 21:48:
>> Using the following:
>> \margindata{some macro expansions}
> 
> You're missing the first mandatory argument, e.g. \margindata[inright]{...}.
> 
>> I know that \margindata is typeset at a later moment than its place in the 
>> code suggests. The problem is that macro expansions inside the {}'s are 
>> expanded twice. This interferes badly with the things I want to happen.
> 
> No, the content is stored in a box and placed later.
> 
> \definecounter[test]
> 
> \starttext
> 
> \dorecurse{10}
>  {\inleft{\incrementedcounter[test]}Line \recurselevel\par}
> 
> \stoptext
> 
>> Tracing what happens, I conclude that the result of the first expansion is 
>> lost and is not carried into the actual placement of the marginnote.
>> The question this is: how to solve this problem?
> 
> Provide a working minimal example.
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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 with \margindata

2020-07-15 Thread Hans van der Meer
Using the following:

\margindata{some macro expansions}

I know that \margindata is typeset at a later moment than its place in the code 
suggests. The problem is that macro expansions inside the {}'s are expanded 
twice. This interferes badly with the things I want to happen.

Tracing what happens, I conclude that the result of the first expansion is lost 
and is not carried into the actual placement of the marginnote.

The question this is: how to solve this problem?

dr. Hans van der Meer


___
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] lmtx install fails to run

2020-07-09 Thread Hans van der Meer
After doing just now the standard: sh install.sh context will not run. Why, 
because in the past it worked without a hitch.
Now there is no format cont-en.

Did all sorts of the ususal things like remove the current cache, context 
--make en, etc.

I guess the error is in the missing file. An overfsight somewhere?
Below the last part of the context --make en run.
Mark the lang-mis.mkxl is not found line.

met vriendelijke groet
dr. Hans van der Meer

resolvers   > lua > loading file 
'/Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/base/mkiv/node-bck.lua'
 succeeded
close source> level 1, order 83, name 'node-bck.mkiv'
open source > level 1, order 84, name 'pack-cut.mkiv'
close source> level 1, order 84, name 'pack-cut.mkiv'
runtime error : input file 'lang-mis.mkxl' is not found, quitting
resolvers   | formats |
resolvers   | formats | binary path  : 
/Users/hansm/TeX/context-lmtx/tex/texmf-osx-64/bin
resolvers   | formats | format path  : 
/Users/hansm/TeX/context-lmtx/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
resolvers   | formats | luatex engine: luametatex
resolvers   | formats | lua startup file : 
/Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file : 
/Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
resolvers   | formats | run time : 0.499 seconds
resolvers   | formats | return value : error
resolvers   | formats |
system  | total runtime: 0.500 seconds of 0.604 seconds

___
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] overfull message

2020-07-03 Thread Hans van der Meer
I would very much like to get rid of the overfull hbox messages in the log. They clutter the log and I have not much use for themSetting \hbadness to a large enough value should suppress them below the threshold. But this does not happen. At least not in the minimal example  enclosed herby.Is there a remedy making these messages disappear from the log?
dr. Hans van der Meer

hbadness.tex
Description: Binary data




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

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


Re: [NTG-context] explain please

2020-06-24 Thread Hans van der Meer
\\currentdate 
Neat solution, worked without a hitch. Now I have to remember this for future 
use ...

dr. Hans van der Meer


> On 24 Jun 2020, at 21:10, Hans Hagen  wrote:
> 
> On 6/24/2020 9:00 PM, Hans van der Meer wrote:
>> How can the crash in the minimal example here be explained? And is there a 
>> solution to avoid this and make the crash going away "without having to jump 
>> through special hoops"?
> because \currentdate is a macro thatv does some magic ... it's nor fully 
> expandable
> 
> so, lua sees \currentdate == \c as first escaped character coming in and 
> that's invalid (\\currentdate would work)
> 
> just try
> 
> print("\come on") in pure lua
> 
> Hans
> 
> 
> -
>  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
___


[NTG-context] explain please

2020-06-24 Thread Hans van der Meer
How can the crash in the minimal example here be explained? And is there a solution to avoid this and make the crash going away "without having to jump through special hoops"?
dr. Hans van der Meer



currentdate.pdf
Description: Adobe PDF document


currentdate.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] loading xml error

2020-06-23 Thread Hans van der Meer
Please can someone explain the following error and why the one specific XML 
input fails?
It turns out that a single node  is not accepted by the core whereas 
others are ok.

This is the error message in the log, first line from my debug statement: 
HVDM-VOC> load vocabulary from buffer "german"
xml > core > load error in [buffer: german]: invalid xml file - 
parsed text

Minimal code to explain what is done:

% Loading from buffer.
\def\loadvocabularyfrombuffer#1{%
\writestatus{HVDM-VOC}{load vocabulary from buffer "#1"}%
\XMLProcessBuffer{#1}%
% simply does an \xmlprocessbuffer{}{}{}
}

The following buffer gives the error:
\startbuffer[german]

\stopbuffer
\loadvocabularyfrombuffer{german}

But the others below are ok and load as expected.

\startbuffer[german]

\stopbuffer

and

\startbuffer[german]

\stopbuffer

dr. Hans van der Meer


___
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] Checking existence of a macro (control sequence) by Lua - problem after updating MkIV

2020-06-18 Thread Hans van der Meer
Why can you not simply use one of the doifundefined macro's? Something for 
example:
\doifundefined{ExitStatus}{\gdef\ExitStatus{0}} % default to ok as in UNIX

dr. Hans van der Meer


> On 18 Jun 2020, at 10:27, Lukas/ConTeXt  wrote:
> 
> Hello,
> I'm using Hans' macro suggested some time before.
> I've just updated Ctx MkIV and my sample code:
> 
> 
> \starttext
>  \def\MyMacro{Ahoj}
> 
>  \def\MyMacWithPars#1#2{Something}
> 
>  \def\Undefined{}
>  \let\Undefined\undefined
> 
>  \def\DoNothing{}
>  \let\DoNothing\donothing
> 
>  \startluacode
>if CONTEXTLMTXMODE == 0 then
>local d = tokens.defined
>local c = tokens.create
> 
>function tokens.defined(s,b)
>if b then
>return d(s)
>else
>return c(s).cmd_name == "undefined_cmd"
>end
>end
>end
> 
>--
> 
>local defined = tokens.defined
> 
>for _, v in ipairs{ "MyMacro", "MyMacWithPars", "Undefined", "DoNothing", 
> "NonExisting" } do
>  print(string.format("\letterpercent-12s", v), defined(v), defined(v, 
> true), defined(v, false))
>end
>  \stopluacode
> 
>  Aaa
> \stoptext
> 
> 
> gives:
> "
> MyMacro false   false   false
> MyMacWithPars   false   false   false
> Undefined   false   false   false
> DoNothing   false   false   false
> NonExisting false   false   false
> "
> 
> IOW, I'm not able to determine whether a control sequence has not been 
> defined (or has \undefined value) or not.
> 
> Am I doing a trivial mistake or has anything changed?
> 
> Thank you for patience...
> 
> Lukas___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] problem since previous versions

2020-06-07 Thread Hans van der Meer
Wolfgang,

I did define the various variants in order to parametrize vtop, vbox and 
vcenter through parameters top, bottom, center.
 
Happily there proved to be a remedy: place everything inside an \hbox and the 
error goes away. Without problematic whitespace or other nasty side effects, it 
seems.  But, although the panic is over now :-), I am still curious to know why 
it worked before and raises an error now.

as for the definition of \placexlocation, it comes from:
\def\setupplacex{\getparameters[placex]}
\setupplacex[%  default parameters
...
location=center,%
...
]%
and I checked that it had the value: center.

But if you are interested, I can send you the module code.

dr. Hans van der Meer


> On 7 Jun 2020, at 12:20, Wolfgang Schuster 
>  wrote:
> 
> Hans van der Meer schrieb am 07.06.2020 um 12:07:
>> A problem has arisen up since previous versions, where code without a 
>> problem now raises an error.
>> This is the afflicted code:
>> % Assign values to \locationbox.
>> \doif{top}{\placexlocation}%
>> {\def\startlocationbox{\vtop\bgroup\vss}}%
>> \doif{center}{\placexlocation}%
>> {\def\startlocationbox{\vcenter\bgroup}}%
>> \doif{bottom}{\placexlocation}%
>> {\def\startlocationbox{\vbox\bgroup}}%
>> And it is used here:
>> \setbox\placexbox=\startlocationbox
>> \ignorespaces
>> Previously this worked without a hitch, now the error is:
>> tex error   > tex error on line 9 in file ./familie-events.tex: ! A 
>>  was supposed to be here
>> 
>> \vcenter
>> \startlocationbox ->\vcenter
>>  \bgroup
>> \dostartcontentplacexinline ...ables \par \setbox \placexbox 
>> =\startlocationbox
>>  
>> \ignorespaces
>>  \syst_helpers_single_empty_one_nop
>>\xmlflush
>> \21>:xmlplc:placexcontent ...le=\xmlatt {#1}{alttitle}]}\startcontent 
>> \xmlflush
>>  
>> {#1}\stopcontent
>> l.9 }
>> I can try to make a minimal example, but not without the afflicted module of 
>> some 800 lines. So perhaps the problem will be located by the experts at 
>> first sight. It is of course the \vcenter playing havoc, because replacing 
>> it by \vtop or \vbox makes the error disappear.
>> Thanks for looking into it, because my work more or less depends on this 
>> code working in good order.
> 
> How so you define \placexlocation?
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] problem since previous versions

2020-06-07 Thread Hans van der Meer
A problem has arisen up since previous versions, where code without a problem 
now raises an error.

This is the afflicted code:
% Assign values to \locationbox.
\doif{top}{\placexlocation}%
{\def\startlocationbox{\vtop\bgroup\vss}}%
\doif{center}{\placexlocation}%
{\def\startlocationbox{\vcenter\bgroup}}%
\doif{bottom}{\placexlocation}%
{\def\startlocationbox{\vbox\bgroup}}%

And it is used here:
\setbox\placexbox=\startlocationbox
\ignorespaces

Previously this worked without a hitch, now the error is:
tex error   > tex error on line 9 in file ./familie-events.tex: ! A  
was supposed to be here
 
\vcenter 
\startlocationbox ->\vcenter 
 \bgroup 
\dostartcontentplacexinline ...ables \par \setbox \placexbox =\startlocationbox 

\ignorespaces 
 \syst_helpers_single_empty_one_nop 
   \xmlflush 
\21>:xmlplc:placexcontent ...le=\xmlatt {#1}{alttitle}]}\startcontent \xmlflush 

{#1}\stopcontent 
l.9 }

I can try to make a minimal example, but not without the afflicted module of 
some 800 lines. So perhaps the problem will be located by the experts at first 
sight. It is of course the \vcenter playing havoc, because replacing it by 
\vtop or \vbox makes the error disappear.

Thanks for looking into it, because my work more or less depends on this code 
working in good order.

dr. Hans van der Meer


___
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] errors in margindata?

2020-06-07 Thread Hans van der Meer
I gues there are errors in \margindata. See the minimal example. The contextversion is fresh loaded just before this test.(1) \margindata{test} gives an error. The log message is:	tex error   > tex error on line 9 in file ./margindata.tex: ! Use of \typo_margins_data_yes doesn't match its definition

l.9 \margindata{
  text1}% One has to use \margindata[]{test} to avoid the error.(2) \margindata[]{test} has spurious whitespace,  \margindata[]{test}% must be used to avoid that.Below the minimal example and the output.
met vriendelijke groetdr. Hans van der Meer



margindata.tex
Description: Binary data


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

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


[NTG-context] mtxrun exit code

2020-05-29 Thread Hans van der Meer
I am producing a series of files in a shell script with mtxrun --autogenerate 
--script context input
Doing exit mtxrun... shows there is no exit number to test in the shell, or to 
ste a shell variable to that value.

I can set a global macro \ExitStatus to an exit value depending on success or 
failure, pass that on to mtxrun as exit statusd and test that in the script.

For example:
\starttext
  \xmlprocessbuffer{notes}{notes}{}
  \doif{\ExitStatus}{notok}{"let mtxrun return value 1 as error in UNIX"}
\stoptext

After that it would be possible in the shell script to delete the pdf produced, 
what is my intention in this case.

Is this an option or is there presently another (standard) procedure to 
communicate from ConTeXt to the shell.

dr. Hans van der Meer


___
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] Is it possible to make xml.load a bit more 'verbose' when it encounters errors?

2020-05-14 Thread Hans van der Meer
Gerben,Maybe this is of some use. The Lua code in the file checks the xml and returns info when something is wrong.I am using it for example in my takenotes module as:And this is a sketch of how it is embedded in that module:	% Prerun an xml check.	\doifinset{\xmlatt{#1}{checkxml}}{yes,on,true}%		{\xmlcommand{#1}{.}{xmlcommon:checkxml}}	% Execute this code if no error was found.		etc.
dr. Hans van der Meer

\startluacode
-- Define our namespace as hvdm
hvdm = hvdm or {}

-- Function checks the correctness of an XML tree.
hvdm.checkXMLtree = function (xml, linesep)

local xml = xml and xml or ""
local linesep = linesep and linesep or "\n"
local badspace = {}

-- Empty files do not need processing.
if xml == "" then
return ""
end

-- Step one is remove leading characters before first node.
local leadingnode = string.find(xml, "<", 1) or 1
if leadingnode ~= 1 then
xml = string.sub(xml, leadingnode, -1)
end

-- Strip all comments  but node pairs inside make it 
complicated.
local c1, c2 = string.find(xml, "", c2 + 1, true)
if c3 then
-- Remove comment.
xml = string.sub(xml, 1, c1 - 1) .. string.sub(xml, c4 
+ 1, -1)

-- Search for next comment.
c1, c2 = string.find(xml, "

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Hans van der Meer
Lua strings can be split across lines by using so called long brackets 
according to the Lua Reference Manual:
[[split
string]]

or (very first newline ignored):
[[
split
string]]

or with matched levels: [==[  ]==]

dr. Hans van der Meer


> On 19 Mar 2020, at 14:29, Aditya Mahajan  wrote:
> 
> On Thu, 19 Mar 2020, mf wrote:
> 
>> Il 19/03/20 11:20, Fabrice Couvreur ha scritto:
>>> Hi,
>>> this file did not pose any problems but today yes.
>>> Thank you.
>>> Fabrice
>>> \starttext
>>> \startluacode
>>> local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" }
>>> local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002",
>>> "2003", "2004", "2005","2006" }
>>> context.startxtable({"align={middle,lohi},
>>> width=1.2cm,offset=0.8ex,bodyfont=9pt"})
>> 
>> context.startxtable( { align = "middle,lohi", width = "1.2cm", offset = 
>> "0.8ex", bodyfont = "9pt" } )
>> 
>> The argument is a lua table. Values are usually strings.
>> 
>>> context.startxrow({"background=color,backgroundcolor=green"})
>> 
>> context.startxrow( { background = "color", backgroundcolor = "green" } )
>> 
>> ... and so on.
> 
> A table with just one string entry also works, but lua strings cannot be 
> split across lines. So, if you remove the newline after "align={middle,lohi}, 
> that also works.
> 
> Aditya___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] unwanted with epub

2020-03-05 Thread Hans van der Meer
I was wrong. The \penalty is not the culprit, but it turns out to be the \Word 
macro that introduces the  through a parfillskip_code in the internal 
list.

dr. Hans van der Meer


> On 5 Mar 2020, at 09:33, Hans van der Meer  wrote:
> 
> Found the cause in my case: a \penalty0 statement.
> 
> dr. Hans van der Meer


> On 3/3/2020 16:51, Hans van der Meer wrote:
>> In producing epub s are appearing (on the -raw.xml file) that are 
>> unwanted and seem spurious to me. For example aftersome macro's. 
>> Can someone tell me what triggers a ? In the pdf output such breaks 
>> are absent.
>> 
>> dr. Hans van der Meer
>> 

___
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] unwanted with epub

2020-03-05 Thread Hans van der Meer
Found the cause in my case: a \penalty0 statement.

dr. Hans van der Meer


> On 5 Mar 2020, at 03:08, Rik Kabel  wrote:
> 
> 
> 
> On 3/3/2020 16:51, Hans van der Meer wrote:
>> In producing epub s are appearing (on the -raw.xml file) that are 
>> unwanted and seem spurious to me. For example aftersome macro's. 
>> Can someone tell me what triggers a ? In the pdf output such breaks 
>> are absent.
>> 
>> dr. Hans van der Meer
>> 
> There are many situations in which the export contains break elements that 
> don't appear to be associated with aspects of the pdf output.  See, for 
> example, the following messages from 2018 in which I noted a few of them:
> 
> Spurious breaks in export when blank line ends paragraph 
> <https://www.mail-archive.com/ntg-context@ntg.nl/msg88729.html>
> More spurious problems in exports 
> <https://www.mail-archive.com/ntg-context@ntg.nl/msg88311.html>
> Unexpected  in XML output 
> <https://www.mail-archive.com/ntg-context@ntg.nl/msg88268.html>
> If you provide an example of your ConTeXt source demonstrating the problem, 
> perhaps someone on the list can help.
> 
> -- 
> 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
> ___

___
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] epub and pdf not the same

2020-03-04 Thread Hans van der Meer

On 3 Mar 2020, at 22:04, Rik Kabel  wrote:Instructions for creating the .epub from the export are contained in the log file.In the log comes:    create epub with: mtxrun --script epub --make "kookboek" --purge --rename --svgmathThis I did.The log gives: adding: mimetype (stored 0%)  adding: META-INF/ (stored 0%)  adding: META-INF/container.xml (deflated 32%)  adding: OEBPS/ (stored 0%)  adding: OEBPS/nav.xhtml (deflated 49%)  adding: OEBPS/images/ (stored 0%)  adding: OEBPS/kookboek.opf (deflated 65%)  adding: OEBPS/styles/ (stored 0%)  adding: OEBPS/styles/kookboek-styles.css (deflated 35%)  adding: OEBPS/styles/kookboek-defaults.css (deflated 80%)  adding: OEBPS/styles/kookboek-images.css (deflated 7%)  adding: OEBPS/cover.xhtml (deflated 38%)  adding: OEBPS/kookboek-div.html (deflated 67%)  adding: OEBPS/toc.ncx (deflated 53%)mtx-epub        | epub archive made using zip: kookboek.epubBut, the resulting epub is bad. Compare the output as pdf with the output as epub and it is immediately clear that something is wrong in the production of the epub. See also the corresponding -raw.xml. Unless I am making a gross mistake.

kookboek.epub
Description: application/epub


kookboek.pdf
Description: Adobe PDF document


kookboek-raw.xml
Description: XML document
dr. Hans van der Meer___
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] unwanted with epub

2020-03-03 Thread Hans van der Meer
In producing epub s are appearing (on the -raw.xml file) that are 
unwanted and seem spurious to me. For example aftersome macro's. 
Can someone tell me what triggers a ? In the pdf output such breaks are 
absent.

dr. Hans van der Meer


___
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] Why mode not recognized?

2020-03-03 Thread Hans van der Meer

> On 3 Mar 2020, at 22:21, Wolfgang Schuster 
>  wrote:
> 
> On Tue, 3 Mar 2020 22:07:51 +0100
> Hans van der Meer  wrote:
> 
>> Calling ConTeXt with:
>> 
>> mtxrun --autogenerate --mode=epub --script context "$1"
>> 
>> and in the tex-file called:
>> \starttext
>> \startmode[epub]
>>  Producing EPUB\crlf
>> \stopmode
>> \startnotmode[epub]
>>  Not producing EPUB\crlf
>> \stopnotmode
>> \stoptext
>> 
>> This produces "Not producing EPUB" Why?
> 
> I guess parameters which are passed to the context script have to come after 
> you call the script, e.g.
> 
> mtxrun --autogenerate --script context --mode=epub "$1"
> 
> Wolfgang

Indeed. That sets the mode. Thanks.

Hans van der Meer

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

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

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


[NTG-context] Why mode not recognized?

2020-03-03 Thread Hans van der Meer
Calling ConTeXt with:

mtxrun --autogenerate --mode=epub --script context "$1"

and in the tex-file called:
\starttext
\startmode[epub]
Producing EPUB\crlf
\stopmode
\startnotmode[epub]
Not producing EPUB\crlf
\stopnotmode
\stoptext

This produces "Not producing EPUB" Why?

dr. Hans van der Meer


___
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] Quick question about dual output pdf and epub

2020-03-03 Thread Hans van der Meer
I followed your advice and added the setup:

> You need
>  \setupbackend[export=yes]
> in your document. 

This, however, does not result in an .epub file but an export directory 
containing an html and xhtml file (only partially conformant to the equivalent 
pdf).

Can I get the output as an .epub file? Some more changes needed?

> 
> On Tue, 3 Mar 2020 19:37:47 +0100
> Hans van der Meer  wrote:
> 
>>> 
>>> and then run with --mode=epub
>> 
>> I am running with:
>>mtxrun --autogenerate --mode=epub --script context "$1"
>> but no epub document is generated, just the same result.pdf I get without 
>> that mode.
> 
> You need
> 
>  \setupbackend[export=yes]
> 
> in your document. When you put the setup above in a "epub"
> mode you create a epub-document only when you enable the mode
> which is recommended because it can have side effects for
> the normal PDF.
> 
> To avoid these side effects make an extra ConTeXt run
> by enabling the mode to get the epub file.
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] Quick question about dual output pdf and epub

2020-03-03 Thread Hans van der Meer
> 
> and then run with --mode=epub

I am running with:
mtxrun --autogenerate --mode=epub --script context "$1"
but no epub document is generated, just the same result.pdf I get without that 
mode.

In .bashrc using:
# The current version of the ConTeXt luametatex in use:
CONTEXTLMTX=$HOME/TeX/context-lmtx ; export CONTEXTLMTX
CONTEXTCURRENT=$CONTEXTLMTX ; export CONTEXTCURRENT
MYTEXMFHOME=$HOME/TeX/texmf ; export MYTEXMFHOME
TEXMF=$MYTEXMFHOME:$CONTEXTCURRENT/tex ; export TEXMF
PATH=$CONTEXTCURRENT/tex/texmf-osx-64/bin:$PATH ; export PATH

Log shows: ConTeXt  ver: 2019.10.02 12:53 MKIV beta  fmt: 2019.10.2

I am doing something wrong here?

dr. Hans van der Meer


> On 28 Feb 2020, at 12:07, Hans Hagen  wrote:
> 
> On 2/28/2020 11:48 AM, Christoph Hintermüller wrote:
>> Hi
>> Hust not to miss something or mess up every thing.
>> Can i setup my document preamble such that i can without any switching
>> create pdf and epub output at the same time.
>> Want to provide my lecture notes in pdf and epub format.
>> In other words does it have any side effects on pdf output, if i put
>> \setuptoutput command preparing document for xhtml/epub output in my
>> document preamble/main document?
>> Or would i have to enclose this in some \ifelse conditional block? If
>> is there a possibility to control condition from mtxrun command line?
> Currently it is created at the same time but it runs slower. Indeed using 
> some mode makes sense because you might also want to have a different layout 
> (the simpler, the less possible side effects, actually when doing epub or 
> export using some very large page also makes sense as then there can be less 
> interference of page breaks and so).
> 
> \startmode [epub]
>  
> \stopmode
> 
> and then run with --mode=epub
> 
> Hans
> 
> -
>  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
> ___

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

2019-10-02 Thread Hans van der Meer
You can add to the end of the install script:

echo "Removing luatex-cache/context"
rm -r tex/texmf-cache/luatex-cache/context

dr. Hans van der Meer


> On 2 Oct 2019, at 15:32, Alan Bowen  wrote:
> 
> Hi, Hans—
> 
> The latest lmtx now processes my docs as it should when texmf-cache was 
> deleted before installation. So, where is this zip that has the revised 
> install.sh script?
> 
> Alan
> 
> On Wed, Oct 2, 2019 at 7:06 AM Hans Hagen  <mailto:j.ha...@xs4all.nl>> wrote:
> On 9/30/2019 2:11 PM, Thomas A. Schmitz wrote:
> > On 29.09.19 16:31, Hans Hagen wrote:
> >> Hi,
> >>
> >> A week ago we had the (nice and pleasant) annual context meeting and 
> >> as usual some new stuff has been presented there which was not yet in 
> >> the distribution at that moment. Some pending code is now being moved 
> >> into the distribution. Part is font related (lmtx only, not relevant 
> >> for most users), most is metafun (luametafun or metafun xl or whatever 
> >> name suits) related (including a new preliminary manual) which uses 
> >> some new interfaces and therefore (currently) is lmtx only.
> > 
> > Hi Hans,
> > 
> > I just updated. I had to delete the cache for context to work again, got 
> > weird errors compiling a file that works normally. So my question: since 
> > creating a new cache and format takes only a few seconds, wouldn't it 
> > make sense to include it in install.sh ?
> I've added that feature but one needs the new install.sh script then 
> (from the zip).
> 
> (We also added openbsd installers.)
> 
> Hans
> 
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
> www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <http://contextgarden.net/>
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] coloring the logfile

2019-08-29 Thread Hans van der Meer
> On 29/08/19 5:35 PM, Henning Hraban Ramm wrote:
> This will need engine support but is in principle dead easy.

So it seems doable if someone is willing to provide the engine support. I 
sincerely hope it will be done. With many thanks, of course.

dr. Hans van der Meer


> On 29 Aug 2019, at 09:39, Henri Menke  wrote:
> 
> 
> 
> On 29/08/19 5:35 PM, Henning Hraban Ramm wrote:
>> 
>>> Am 2019-08-28 um 21:54 schrieb Hans van der Meer :
>>> 
>>> Is it possible to force lines  written in the log with \writestatus to have 
>>> a specific color? The log can be very substantial and it would be nice to 
>>> have some lines brought to attention by a different color.
>> 
>> As a text file, the log can’t have colors.
>> 
>> Only the output to your terminal could have ANSI color codes.
>> I’d welcome this, too, but then we need additional configuration, color 
>> breaks easily on some shells, the feature should adhere to the usual shell 
>> variables etc. Don’t know it it would be worth the effort.
> 
> This will need engine support but is in principle dead easy.
> 
> #include 
> 
> if (isatty(fileno(stdout))) {
>// color
> } else {
>// no color
> }
> 
>> 
>> Greetlings, Hraban
>> ---
>> https://www.fiee.net
>> http://wiki.contextgarden.net
>> https://www.dreiviertelhaus.de
>> 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
>> ___
>> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] coloring the logfile

2019-08-28 Thread Hans van der Meer
Is it possible to force lines  written in the log with \writestatus to have a 
specific color? The log can be very substantial and it would be nice to have 
some lines brought to attention by a different color.

dr. Hans van der Meer


___
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] newlines in return Lua string

2019-06-15 Thread Hans van der Meer
From\ctxlua{tex.print(hvdm.myluacall("\xmlatt{#1}{argument}"))}
Lua returns a string containing newline characters '\n'.

In ConTeXt this returned string is printed as one line, the embedded newlines 
are not honoured.
I thought to replace with \crlf in this manner: string1 .. "\\crlf" .. string2 
but the returned \crlf are not executed as such.

How to force \crlf's in the executed return?

dr. Hans van der Meer


___
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] error in LMTX?

2019-06-11 Thread Hans van der Meer
Found the origin of the curious error message containing my name.
Comes from the inclusion of a file named type-loc.mkiv residing in a directory 
~/TeX/texmf/tex/context/user/ and containing:

\endinput

Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.

On 1/3/2014 2:33 PM, H. van der Meer wrote: (etc.)

How this got included? I have no idea.
But removing it did not make a difference, even after calling mtxrun --generate.


> On 10 Jun 2019, at 22:21, Hans van der Meer  wrote:
> 
>> 
>> On 10 Jun 2019, at 12:04, Hans van der Meer > <mailto:havdm...@ziggo.nl>> wrote:
>> 
>> This looks to me as an error in the LMTX distribution:
>> 
>> tex error   > tex error on line 6 in file 
>> /Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv:
>>  ! Missing } inserted
>> 
>>  
>> }
>>  
>> \aligntab 
>> l.6 fontclass\aligntab
>> \fontclass\cr
>> 
>> Because running under my old ConTeXtBeta does not aborts with the error.
>> system  > ConTeXt  ver: 2019.06.01 19:11 MKIV beta  fmt: 2019.6.4  
>> int: english/english
>> 
>> I looked into that file but could not see what causes the error.
> 
> I did some more research and as a result now wonder what is happening.
> 
> The error occurred in this piece of code of mine:
> 
> \tabskip=1em\halign{%
> \alignmark\hfil\aligntab\alignmark\hfil\cr
> fontclass\aligntab\fontclass\cr
> Regular\aligntab\truefontname{Regular}\cr
> }
> 
> \aligntab and \alignmark were advertised as LuaTeX equivalents for & and # 
> respectively.
> 
> Then I took the following example from Victor Eijkhout's book "TeX by Topic", 
> page 197, last example.
> That surely should work, was the idea.
> 
> \starttext
> \halign{a###\cr 1&2\cr 1\cr}
> \stoptext
> 
> However this fails! How can such a basic example in pure TeX fail? I wonder 
> and am curious what is happening here.
> 
> This is LuaMetaTeX, Version 2.00.0 
> tex error   > tex error on line 3 in file 
> /Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Only one # is 
> allowed per tab
> 
> l.3 \halign{a##
>#\cr 1&2\cr 1\cr}
> 
>  1 \endinput
>  2 
>  3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
>  4 
>  5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
>  6 Has someone an idee what causes the unknown library message as in the
>  7 log below? Is it harmful?
>  8 
>  9 fonts   > typescripts > unknown library 'loc'
> 10 
> 11 you can add a file type-loc.mkiv someplace in your local tree with
> 12 
> 13 % dummy file
> 
> There should be exactly one # between &'s, when an
> \halign or \valign is being set up. In this case you had
> more than one, so I'm ignoring all but the first.
> 
> mtx-context | fatal error: return code: 256
> 
> and using \alignmark and \aligntab this results in:
> 
> \starttext
> \halign{a\alignmark\aligntab b\alignmark\aligntab c\alignmark\cr 1\aligntab 
> 2\cr 1\cr}
> \stoptext
> 
> And I am most curious how my name could turn up in the error message produced!
> 
> tex error   > tex error on line 3 in file 
> /Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Missing } inserted
> 
>  
> }
>  
> \aligntab 
> l.3 ...\alignmark\aligntab c\alignmark\cr 1\aligntab
>2\cr 1\cr}
> 
>  1 \endinput
>  2 
>  3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
>  4 
>  5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
>  6 Has someone an idee what causes the unknown library message as in the
>  7     log below? Is it harmful?
>  8 
>  9 fonts   > typescripts > unknown library 'loc'
> 10 
> 11 you can add a file type-loc.mkiv someplace in your local tree with
> 12 
> 13 % dummy file
> 
> I've put in what seems to be necessary to fix
> the current column of the current alignment.
> Try to go on, since this might almost work.
> 
> mtx-context | fatal error: return code: 256
> 
> 
> 
>> 
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pr

Re: [NTG-context] error in LMTX?

2019-06-10 Thread Hans van der Meer

> On 10 Jun 2019, at 12:04, Hans van der Meer  wrote:
> 
> This looks to me as an error in the LMTX distribution:
> 
> tex error   > tex error on line 6 in file 
> /Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv:
>  ! Missing } inserted
> 
>  
> }
>  
> \aligntab 
> l.6 fontclass\aligntab
> \fontclass\cr
> 
> Because running under my old ConTeXtBeta does not aborts with the error.
> system  > ConTeXt  ver: 2019.06.01 19:11 MKIV beta  fmt: 2019.6.4  
> int: english/english
> 
> I looked into that file but could not see what causes the error.

I did some more research and as a result now wonder what is happening.

The error occurred in this piece of code of mine:

\tabskip=1em\halign{%
\alignmark\hfil\aligntab\alignmark\hfil\cr
fontclass\aligntab\fontclass\cr
Regular\aligntab\truefontname{Regular}\cr
}

\aligntab and \alignmark were advertised as LuaTeX equivalents for & and # 
respectively.

Then I took the following example from Victor Eijkhout's book "TeX by Topic", 
page 197, last example.
That surely should work, was the idea.

\starttext
\halign{a###\cr 1&2\cr 1\cr}
\stoptext

However this fails! How can such a basic example in pure TeX fail? I wonder and 
am curious what is happening here.

This is LuaMetaTeX, Version 2.00.0 
tex error   > tex error on line 3 in file 
/Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Only one # is allowed 
per tab

l.3 \halign{a##
   #\cr 1&2\cr 1\cr}

 1 \endinput
 2 
 3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
 4 
 5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 6 Has someone an idee what causes the unknown library message as in the
 7 log below? Is it harmful?
 8 
 9 fonts   > typescripts > unknown library 'loc'
10 
11 you can add a file type-loc.mkiv someplace in your local tree with
12 
13 % dummy file

There should be exactly one # between &'s, when an
\halign or \valign is being set up. In this case you had
more than one, so I'm ignoring all but the first.

mtx-context | fatal error: return code: 256

and using \alignmark and \aligntab this results in:

\starttext
\halign{a\alignmark\aligntab b\alignmark\aligntab c\alignmark\cr 1\aligntab 
2\cr 1\cr}
\stoptext

And I am most curious how my name could turn up in the error message produced!

tex error   > tex error on line 3 in file 
/Users/hansm/TeX/texmf/tex/context/user/type-loc.mkiv: ! Missing } inserted

 
}
 
\aligntab 
l.3 ...\alignmark\aligntab c\alignmark\cr 1\aligntab
   2\cr 1\cr}

 1 \endinput
 2 
 3 >>  Op NTG ConTeXt nieuwsgroep, antwoord van Hans Hagen.
 4 
 5 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 6 Has someone an idee what causes the unknown library message as in the
 7 log below? Is it harmful?
 8 
 9 fonts   > typescripts > unknown library 'loc'
10 
11 you can add a file type-loc.mkiv someplace in your local tree with
12 
13 % dummy file

I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.

mtx-context | fatal error: return code: 256



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

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

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


[NTG-context] error in LMTX?

2019-06-10 Thread Hans van der Meer
This looks to me as an error in the LMTX distribution:

tex error   > tex error on line 6 in file 
/Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv:
 ! Missing } inserted

 
}
 
\aligntab 
l.6 fontclass\aligntab
\fontclass\cr

Because running under my old ConTeXtBeta does not aborts with the error.
system  > ConTeXt  ver: 2019.06.01 19:11 MKIV beta  fmt: 2019.6.4  int: 
english/english

I looked into that file but could not see what causes the error.

dr. Hans van der Meer


___
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] Test XML node registration

2019-05-17 Thread Hans van der Meer
Having a series of nodes in setups in a helper module:
\startxmlsetups xmlcommon:setups
\xmlsetsetup{#1}{error|comment|... etcetera}{xmlcommon:*}
\stopxmlsetups
\xmlregistersetup{xmlcommon:setups}

I would like to check if a certain node is in that series of nodes. For example 
doing \doifelse{\xmltag{#1}}... where the true branch is taken when \xmltag{#1} 
is one of those registered in the xmlcommon:setups.

Is that possible? Then what macro has to be called?

dr. Hans van der Meer


___
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] Bug or not?

2019-05-16 Thread Hans van der Meer
There is an interaction in the placement of float captions when their width is set and background coloring switched.Minimal example included here, the jpeg is arbitrary of course. Output shown.Setting the width of the caption effectively shifts the caption to the left.See the change between the last two floats where [background=] changes the game.I wonder, is this intended behaviour? Or should one expect something different?\starttextTesting figure captions with \tex{setupframed[background="">\setupframed[background="">\placefigure[][]{\tex{setupframed[background="">Add \tex{setupcaption[align=middle,width=\makeupwidth]} as setting here:\par\setupcaption[align=middle,width=\makeupwidth]\setupframed[background="">\placefigure[][]{\type{\setupcaption[align=middle,width=\makeupwidth]}}{\externalfigure[test.jpg]}\setupframed[background="">\placefigure[][]{\tex{setupframed[background="">\stoptext
dr. Hans van der Meer



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

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


[NTG-context] filling page to bottom

2019-05-15 Thread Hans van der Meer
I find that the current (default) settings tend to break pages early, leaving a 
fairly large amount of whitespace at the bottom of the pages. Obviously in 
order to avoid breaking paragraphs or to avoid small parts of a paragraph at 
the top of the page.

What parameters do I have to tweak to fill the pages more completely? Because I 
planned already to examine all pages individually for their appearance, 
inserting breaks by hand is not the problem here.

dr. Hans van der Meer


___
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] inserting figure labels

2019-05-12 Thread Hans van der Meer
Can I be absolutely sure that \placefigure[here,force] will not invoke the 
float mechanism, but instead always effects an in-place insertion?

dr. Hans van der Meer


> On 12 May 2019, at 14:32, Henning Hraban Ramm  wrote:
> 
> Am 2019-05-11 um 21:39 schrieb Hans van der Meer  <mailto:havdm...@ziggo.nl>>:
> 
>> Placing a float figure with
>>  \placefigure[][]{labeltext}{\externalfigure[]}
>> delivers a figure with a label like "Figure V.3 labeltext" (depending on the 
>> setup)
>> 
>> Now I want to intersperse this with an \externalfigure[] not within a 
>> placefigure but still accompanied by a label in the current running series.
>> For example an uninterrupted series of figure numbers with:
>>  \placefigure[][]{labeltext-1}{\externalfigure[figure1]} % -> Figure 1 
>> labeltext-1
>>  \externalfigure[figure-2] \macrocall{labeltext-2}   % -> Figure 2 
>> labeltext-2
>>  \placefigure[][]{labeltext-3}{\externalfigure[figure3]} % -> Figure 3 
>> labeltext-3
>> 
>> I could not find what macro to call as the instance for \macrocall.
> 
> Can’t you just use \placefigure with {here,force}?
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net <https://www.fiee.net/>
> http://wiki.contextgarden.net <http://wiki.contextgarden.net/>
> https://www.dreiviertelhaus.de <https://www.dreiviertelhaus.de/>
> 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
> ___

___
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] inserting figure labels

2019-05-11 Thread Hans van der Meer
Placing a float figure with
\placefigure[][]{labeltext}{\externalfigure[]}
delivers a figure with a label like "Figure V.3 labeltext" (depending on the 
setup)

Now I want to intersperse this with an \externalfigure[] not within a 
placefigure but still accompanied by a label in the current running series.
For example an uninterrupted series of figure numbers with:
\placefigure[][]{labeltext-1}{\externalfigure[figure1]} % -> Figure 1 
labeltext-1
\externalfigure[figure-2] \macrocall{labeltext-2}   % -> Figure 2 
labeltext-2
\placefigure[][]{labeltext-3}{\externalfigure[figure3]} % -> Figure 3 
labeltext-3

I could not find what macro to call as the instance for \macrocall.

dr. Hans van der Meer
___
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 call chapter title and chapter number

2019-04-26 Thread Hans van der Meer
This does not what I have in mind:
\setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter]

Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me 
in the header both the pagenumber and the recorded chapter title.
However \chapter turns out to be undefined, neither did \chaptertitle. What is 
the macro to be called?

In my previous post I forgot to ask the same question about [chapternumber] 
where also \chapternumber does not exists. (sorry for the noise)

dr. Hans van der Meer

___
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] calling up chapter title

2019-04-26 Thread Hans van der Meer
This does not what I have in mind:
\setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter]

Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me 
in the header both the pagenumber and the recorded chapter title.
However \chapter turns out to be undefined, neither did \chaptertitle. What is 
the macro to be called?

In my previous post I forgot to ask the same question about [chapternumber] 
where also \chapternumber does not exists. (sorry for the noise)

dr. Hans van der Meer___
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] calling up chapter title

2019-04-26 Thread Hans van der Meer
This does not what I have in mind:
\setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter]

Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me 
in the header both the pagenumber and the recorded chapter title.
However \chapter turns out to be undefined, neither did \chaptertitle. What is 
the macro to be called?

dr. Hans van der Meer


___
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] endnotes customizing how?

2019-04-09 Thread Hans van der Meer
In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence 
the text characteristics.
I tried things like
(1) \setupnotes[endnote][textcolor=blue]
(2) changed fonts before the \ bgroup\bf\placenote\egroup call
(3)
\startsetups[setups:endnotes]
\setupwhitespace[0pt]
\stopsetups
% textstyle influences endnotemarker in the text.
\setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}]

(4) \setupnotes[endnote][bodyfont=italic]

Where (3) made a difference in linespacing, nothing else does.
How can one determine the text characteristics of the endnotes?

dr. Hans van der Meer


___
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] LuaJitTeX doesn’t work any more

2019-03-20 Thread Hans van der Meer
Last login: Wed Mar 20 08:23:38 on ttys000
Wed Mar 20 18:17:51 CET 2019
21 ~: cdg
22 Genealogie: contexjit family-note.tex
-bash: contexjit: command not found
23 Genealogie: 

mmm... contextjit doesn't come with the beta install? Or do I miss something?

dr. Hans van der Meer


> On 20 Mar 2019, at 18:03, Wolfgang Schuster 
>  wrote:
> 
> Henning Hraban Ramm schrieb am 20.03.19 um 17:27:
>> With the latest beta, context --jit stopped working on my Mac (OSX 10.9.5):
>> 
>> 
>> This is LuajitTeX, Version 1.09.2 (TeX Live 2019/dev)
>>  system commands enabled.
>> 
>> ---! 
>> /Users/hraban/Library/texmf/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.fmt
>>  was written by luatex
>> (Fatal format file error; I'm stymied)mtx-context | fatal error: return 
>> code: 1
>> 
>> 
>> I can simply not use JIT, but maybe there’s something to fix?
> 
> contextjit 
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] ConTeXT install failing [solved]

2019-03-13 Thread Hans van der Meer
My fault. A spurious older version of luatex too early in the search path. 
Became disastrous only after the luatex version in the betas changed at some 
point in time.
However in search of the problem I stumbled on a few statements invoking a Lua 
error that can be avoided by safer coding, thus sparing non-programmers a 
problem.

The error message is:
/tex/texmf-context/scripts/context/lua/mtx-context.lua:1819: attempt to index a 
nil value (field 'filenames')

originates from:
elseif environment.filenames[1] or getargument("nofile") then
scripts.context.timed(scripts.context.autoctx)

I suggest to change this to (change highlighted)
elseif environment.filenames and environment.filenames[1] or 
getargument("nofile") then
scripts.context.timed(scripts.context.autoctx)

The same applies to lines 1208, 1795, 1802

In line 1188 I recommend interchanging the operands for a more natural order; 
here the check is already done.
local list = (name and { name }) or (environment.filenames and 
environment.filenames[1]) or defaultformats

dr. Hans van der Meer

> On 11 Mar 2019, at 22:53, Hans van der Meer  wrote:
> 
> I cannot get ConTeXt working on my other machine though I mimicked everything 
> there from the working one.
> Installed the contextbeta with the script than try to run but this fails. See 
> the output from what has been done and what results. Also attached the 
> .bashrc setup sofar as regarding TeX. These are the same on both machines.
> I am stymied of what happened here or what could be amiss.
> Any pointers to the solution will be very much appreciated.
> 
> dr. Hans van der Meer
> 

___
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] ConTeXT install failing

2019-03-11 Thread Hans van der Meer
ibtex/bst/context/mkii
export BSTINPUTS
alias contextrun='mtxrun --script context'
alias contextformat='context --make en'


dr. Hans van der Meer


___
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] Modes and conditional part of the source

2019-03-01 Thread Hans van der Meer
I used  \doifmode and friends for selection of mode dependent code.

dr. Hans van der Meer


> On 1 Mar 2019, at 01:24, Hans Hagen  wrote:
> 
> On 2/28/2019 11:29 AM, Procházka Lukáš Ing. wrote:
>> Hello,
>> I'm struggling with using modes to make a part of the text conditional.
>> Here is my code:
>> 
>> \def\b#1{\startmode[#1]}
>> \def\e{\stopmode}
>> % \enablemode[100] % For optional usage
>> \starttext
>>   A
>>   \b{100} % Should be start of some conditional text from here ...
>> B
>>   \e % ... to here
>> \stoptext
>> 
>> Compilation fails with:
>> "
>> tex error   > tex error on line 0 in file : ! Emergency stop
>> <*> cont-yes.mkiv
>> 
>> *** (job aborted, no legal \end found)
>> "
>> How to make the sample work?
> modes are like buffers ... don't wrap them in macros
> 
> (using names like \b \e is a bad idea anyway)
> 
> Hans
> 
> 
> -
>  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
> ___

___
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] Intrusion in footnotes

2019-01-27 Thread Hans van der Meer
De following intrusion of a twocolumn placement of endnotes in the footnote 
area is to be avoided, of course.
The code is:

text with footnotes.
\placefootnotes
\placefloats
\startcolumns
\placenotes[endnote]
\stopcolumns

Can this be avoided? How?



dr. Hans van der Meer

___
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] textext with plain MetaFun

2019-01-21 Thread Hans van der Meer
The following always worked for me:

\starttext
\startMPpage
.. metapost code ..
\stopMPpage
\stoptext

and delivered from a ConTeXt-run a separate pdf.

dr. Hans van der Meer


> On 21 Jan 2019, at 09:43, Henri Menke  wrote:
> 
> On 1/21/19 9:29 PM, Hans Hagen wrote:
>> On 1/21/2019 8:57 AM, Henri Menke wrote:
>>> Dear list,
>>> 
>>> When I process the short MetaFun example
>>> 
>>>  beginfig(1)
>>>  draw textext("MetaFun") ;
>>>  endfig;
>>>  end
>>> 
>>> with plain MetaFun, i.e.
>>> 
>>>  mpost '' test.mp
>>> 
>>> the resulting file only contains “unknown”.  How can I get the expected
>>> output?
>> context foo.mp
>> 
>> (in mkii one could use mptopdf but i have no interest in figuring out
>> some pure metapost solution when we can do the job with simple wrapping
>> in mkiv as mentioned)
> 
> I tried
> 
>mpost '' test.mp
>mptopdf test.1
> 
> and now I have a PDF which says “unknown“.  Maybe I didn't understand
> what you meant.
> 
> Cheers, Henri
> 
>> 
>> Hans
>> 
>> 
>> -
>>   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
> ___

___
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 up itemize

2019-01-03 Thread Hans van der Meer
Bedankt Taco. Maar had ik dit kunnen weten?
met vriendelijke groet
dr. Hans van der Meer


> On 3 Jan 2019, at 10:49, Taco Hoekwater  wrote:
> 
> It needs ‘each’ instead of an empty group:
> 
> \setupitemgroup[itemize][each][3,joinedup,packed][color=blue,inbetween=]
> 
> Best wishes,
> Taco
> 
> 
>> On 3 Jan 2019, at 10:27, Hans van der Meer  wrote:
>> 
>> I cannot get the general setup macros of itemize right. I suppose I am 
>> missing some clues although I tried to follow the Command Reference 
>> distributed with the contextbeta. Here my minimal working example.
>> 
>> dr. Hans van der Meer
>> 
>> 
>> 
>> ___
>> 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
>> ___
> 
> Taco Hoekwater
> Elvenkind BV
> 
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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

[NTG-context] setting up itemize

2019-01-03 Thread Hans van der Meer
I cannot get the general setup macros of itemize right. I suppose I am missing some clues although I tried to follow the Command Reference distributed with the contextbeta. Here my minimal working example.
dr. Hans van der Meer




itemizesetup.pdf
Description: Adobe PDF document


itemizesetup.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] double followtokens?

2019-01-01 Thread Hans van der Meer
Is followtext(“string”,path) not yet implemented?

Because I get an error when running:
\startMPcode
path p; p:=reverse halfcircle xyscaled 25mm; draw p;
followtext("some text but not that long",p); % <- causes error
\stopMPcode

Or do I need to call followtext in some other way that is not clear to me.

dr. Hans van der Meer


> On 8 Apr 2018, at 16:41, Hans Hagen  wrote:
> 
> On 4/8/2018 12:11 AM, Pablo Rodriguez wrote:
>> On 04/07/2018 11:25 PM, Hans Hagen wrote:
>>> On 4/7/2018 11:04 PM, Pablo Rodriguez wrote:
>>>> Dear list,
>>>> 
>>>> I have the following sample:
>>>> 
>>>>\useMPlibrary[txt]
>>>> 
>>>>\starttext
>>>> 
>>>>\startuseMPgraphic{followtokens}
>>>> path RotPath ; RotPath := reverse halfcircle ;
>>>> % path RotPath ; RotPath := halfcircle rotatedaround (origin, 180) ;
>>>>\stopuseMPgraphic
>>>> 
>>>>\followtokens{Just follow the tokens}
>>>>\stoptext
>>>> 
>>>> How can I get both paths (in diverse directions)?
>>>> 
>>>> I would like to repeat the same text twice, separating both sentences
>>>> with a character.
>>>> 
>>>> I have to ask this, beause MetaPost is all Greek to me.
>>> i have no clue what you mean but this will change the direction
>> Many thanks for your reply, Hans.
>> I attach an image of what I mean.
>> I want a full circle in two halves with the same duplicated sentence.
>> The first one written clockwise and the second one written
>> counterclockwise (as in the commented path above).
>> I hope it is clearer now.
> 
>path p ; p := reverse halfcircle scaled 5cm ;
>path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
> 
>path q ; q := reverse halfcircle scaled 5cm rotated 180 ;
> 
>\followtokens{~this way~}
>\followtokens{\reversedtext{~this way~}}
> 
> we will have this in metafun:
> 
>followtext("this way",p) ;
> 
> so that one can do it all in mp ... a nice gimmick for the ctx meeting
> 
> Hans
> 
> 
> -
>  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
> ___

___
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] \startnarrower

2018-12-13 Thread Hans van der Meer
Is it possible to not indent the very first line of narrower content?

Thus
\startnarrower
first line
second line
etc.
\stopnarrower

resulting in:
first line
second line
etc.

dr. Hans van der Meer


___
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] \xmlfunction

2018-12-12 Thread Hans van der Meer
How can one transmit argument values to \xmlfunction in order to be used by the 
Lua function called?

dr. Hans van der Meer


___
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] finding content of xml elements

2018-12-12 Thread Hans van der Meer
Having a string pointing to an element in the XML-tree, for example IDENT::3 as 
the third element of the tree IDENT.
How can access this element in a Lua function as function examine(element)…end 
called with value element =  IDENT::3?
Or formulated otherwise: how can I reach from that string into the XML-tree?

dr. Hans van der Meer


___
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] searching in nodes

2018-12-12 Thread Hans van der Meer
In a Lua function called from within an \startxmlsetups..\stopxmlsetups code 
block I would like to search through the current node and all below.
Using string.match("to-be-searched”,”pattern”).
The Lua function being called through 
\def\findmypattern#1#2{\ctxlua{tex.print(hvdm.findmypattern("#1","#2",))}

But I do not seem to get the node contents in the first argument #1. Using 
\xmlverbatim{#1} fails with Lua error "hexadecimal digit expected near '"\xm’”. 
\xmlflushpure{#1} fails with Lua error "invalid escape sequence near …”

Any help?

dr. Hans van der Meer


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

2018-12-09 Thread Hans van der Meer
I remember there existed a macro \disableXML, which at this time is undefined.
Or does my memory fails me here?

dr. Hans van der Meer


___
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] indenting after placefigure

2018-12-06 Thread Hans van der Meer
Thanks, indeed this does the trick.
But I wonder:  Has \placefigure then a default [indentnext=no] instead of 
abstaining from meddling with the indent setting?

dr. Hans van der Meer


> On 6 Dec 2018, at 21:25, Pablo Rodriguez  wrote:
> 
> On 12/6/18 6:10 PM, Hans van der Meer wrote:
>> I used \setupindenting[always,medium]. This works everywhere except
>> after a figure placed with \placefigure. Why does placing the figure
>> suppress the indent after it? And how can this behaviour be changed?
> 
> I wonder whehter \setupfloat[figure][indentnext=yes] would work here.
> 
> I hope it may 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
> ___

___
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] indenting after placefigure

2018-12-06 Thread Hans van der Meer
I used \setupindenting[always,medium]. This works everywhere except after a 
figure placed with \placefigure. Why does placing the figure suppress the 
indent after it? And how can this behaviour be changed?

dr. Hans van der Meer


___
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] 'figures.getinfo()' not to exit ConTeXt

2018-12-06 Thread Hans van der Meer
Are you sure that data is not nil here?
 If so, this function returns nil.
dr. Hans van der Meer


> On 6 Dec 2018, at 11:20, Procházka Lukáš Ing.  wrote:
> 
> Hello,
> 
> I'm using the following code, mentioned here some time ago, to get some info 
> about PDF:
> 
> 
> \startluacode
> figures.getinfo = function(name, page)
>if type(name) == "string" then
>name = { name = name, page = page }
>end
>if name.name then
>local data = figures.push(name)
> 
>--figures.identify()
> local ok, res = pcall(figures.identify)
> print(">>1", ok, res)
> 
>--figures.check()
> local ok, res = pcall(figures.check)
> print(">>2", ok, res)
> 
>figures.pop()
>return data
>end
> end
> 
> local data = figures.getinfo("NonExisting.pdf")
> 
> \stopluacode
> 
> 
> The problem is that once the PDF file doesn't exist, the function causes 
> ConTeXt to exit, even when I enclose 'figure.check()' into the 'pcall' (to be 
> handled like try/catch mechanism).
> 
> Is there a way so that the function 'figures.getinfo()' does't exit ConTeXt, 
> it just returns 'nil', or even gives info which directories (or even which 
> file types) were searched?
> 
> TIA.
> 
> Best regards,
> 
> Lukas
> 
> 
> -- 
> Ing. Lukáš Procházka | mailto:l...@pontex.cz
> Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
> nrpt3sn | IČO: 40763439
> Bezová 1658
> 147 14 Praha 4
> 
> Mob.: +420 702 033 396
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] directlua question

2018-12-04 Thread Hans van der Meer


On 4 Dec 2018, at 13:29, Hans van der Meer  wrote:

> I am trying to extract something from a string with a \directlua call, the 
> last word of a string in case:
> 
>   \directlua{tex.print(string.match(“This is a string","%s%a$"))}
> 
> However, the %s%a are not working with the TeX-error “unfinished string near 
> eof”. Obviously caused by the %’s.
> How to get this working? \textpercent will not do, off course within Luacode.

Also I tried to no avail

\begingroup\catcode`\%=12\relax\directlua{tex.print(string.match(“This is a 
string","%s%a$"))}\endgroup

dr. Hans van der Meer

___
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] directlua question

2018-12-04 Thread Hans van der Meer
I am trying to extract something from a string with a \directlua call, the last 
word of a string in case:

\directlua{tex.print(string.match(“This is a string","%s%a$"))}

However, the %s%a are not working with the TeX-error “unfinished string near 
eof”. Obviously caused by the %’s.
How to get this working? \textpercent will not do, off course within Luacode.

dr. Hans van der Meer


___
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] \framed regression

2018-10-30 Thread Hans van der Meer
> 
> So, \offinterlineskip disables the interline skip completely? 

Indeed, it is just plain TeX. In order to inhibit the interline glue in front 
of the next line only, use \nointerlineskip.

dr. Hans van der Meer


> On 30 Oct 2018, at 14:08, Henning Hraban Ramm  wrote:
> 
> Am 2018-10-29 um 16:47 schrieb Herbert Voss :
> 
>> Am 29.10.18 um 16:13 schrieb Henning Hraban Ramm:
>> 
>>> But it doesn’t help with my labels.
>> 
>> you have a
>> 
>> \setupinterlinespace[2ex]
>> 
>> so \offinterlinespace has no real meaning here. Try it without and
>> 
>> \setupinterlinespace[0.1pt]
>> 
>>> And why did it work without \offinterlineskip before?
>> 
>> No idea ...
>> 
>> Herbert, hope that I understand your problem well
> 
> I already tried without \setupinterlinespace, no change.
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> 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
> ___

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

2018-10-26 Thread Hans van der Meer
Using roman numbers in figures I encountered a case where XIII.9 was hyphenated 
into XI-II.9. A bit unclear, in my opinion. 

Easily repairable with something like 
\def\myfigure[#1]{{\nohyphens\in{figure}[#1]}}
Just an observation, not really a problem but maybe something waiting to be 
fixed.

dr. Hans van der Meer


___
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] linking to an external PDF file

2018-10-08 Thread Hans van der Meer
I am embedding links to an UR in my documents. Although it is used in 
XML-documents, you might be able to use the gist of this code that generates a 
clickable link. Perhaps you find it useful. 

dr. Hans van der Meer

% Return the code when clicking the link.
\def\URIReturnCode#1{\ctxlua{tex.print(hvdm.urireturncode("#1"))}}

— Some Lua code needed:
-- Check URI

socket.http.TIMEOUT = 5 -- set URI 
timeout in seconds
hvdm.urireturncode = function (theuri)
-- Differentiate between file and http protocols.
local first,last = string.find(theuri, "file://")
if first == nil then
-- We have http to search for.
local content, status, authinfo = socket.http.request{
method = "HEAD",
url = theuri,
}
return type(status) == "number" and status or "failure"
else
-- We must ascertain the existence of the file.
local thefile = io.open(string.sub(theuri, last+1, -1), 
"r")
if thefile then
io.close(thefile)
return "200"
else
return "404"
end
end
end

% . Place an url link .

% BEWARE: spaces in file names must be %20 in the link !!!

% This global definition of the URLbase cannot be missed.
\def\THEURLBASE{http://}

% Signal the occurence of timeout on URI search.
\newif\ifURItimeout

\startxmlsetups xmlcommon:urlbase
\edef\THEURLBASE{\xmlstrippednolines{#1}{.}}

% Reset the URI timeout for new URLbase.
\global\URItimeoutfalse
\stopxmlsetups

\startxmlsetups xmlcommon:url

% Define the full uri.
\edef\theurl{\THEURLBASE\xmlatt{#1}{link}}

 % File suffix should be one of the list.
\doifelse{\FileSuffixList{\xmlatt{#1}{link}}
{pdf,jpg,jpeg,html,png,tif,tiff}}{\empty}
{\def\suffix{.impossible}}% no suffix from the list here
{\def\suffix{\empty}}% one of the list is present

% First try link as given, beware of unreachable site.
\ifURItimeout
% For previously timeout on this site.
\else
\edef\returncode{\URIReturnCode{\theurl}}
\doif{\returncode}{failure}
{
\global\URItimeouttrue
\errorcall{#1}{url access fails for 
\THEURLBASE\xmlatt{#1}{link}}
}
\fi

% On URI timeout there is no hope to find the file.
\ifURItimeout
\else
% When there is no suffix from the list, try several.
\doifnot{\suffix}{\empty}
{
\scratchcounter=200\relax
\ifnum\returncode=\scratchcounter\else
\def\suffix{.pdf}
\edef\returncode{\URIReturnCode{\theurl\suffix}}
\fi
\ifnum\returncode=\scratchcounter\else
\def\suffix{.jpg}
\edef\returncode{\URIReturnCode{\theurl\suffix}}
\fi
\ifnum\returncode=\scratchcounter\else
\def\suffix{.jpeg}
\edef\returncode{\URIReturnCode{\theurl\suffix}}
\fi
\ifnum\returncode=\scratchcounter\else
\def\suffix{.html}
\edef\returncode{\URIReturnCode{\theurl\suffix}}
\fi
\ifnum\returncode=\scratchcounter\else
\def\suffix{.png}
\edef\returncode{\URIReturnCode{\theurl\suffix}}
\fi
\ifnum\returncode=\scratchcounter\else
\def\suffix{.tiff}
\edef\returncode{\URIReturnCode{\theurl\suffix}}
\fi
\ifnum\returncode=\scratchcounter\else
\def\suffix{.tif}
\edef\returncode{\URIReturnCode{\theurl\suffix}}
\fi
}

% Give up if returncode other then 200.
\ifnum\returncode=200\relax
% Page number might be added.
\doifelse{\xmlatt{#1}{page}}{\empty}
  

[NTG-context] xmlstrippednolines

2018-09-17 Thread Hans van der Meer
This completely escapes me: \xmlstrippednolines behaves differently for:(1) no embedded nodes - just the node content(2) embedded nodes - outer node encloses node contentSee the minimal example.For me this works out a disaster, because in the second case the outer node is added, throwing my program completely off track.Questions:Is this the defined behaviour? Then what other means can be used to get the node content and nothing but the node content in both cases?Why does \xmlstrippednolines behaves in this manner?
dr. Hans van der Meer



test.pdf
Description: Adobe PDF document


test.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] reference manual

2018-09-17 Thread Hans van der Meer
My most recent version of the "ConTeXt reference manual” is Hans Hagen, Taco 
Hoekwater September 27, 2013.
Is there a newer edition available? I could not find one in the (beta) 
distribution in texmf-context/doc.

dr. Hans van der Meer


___
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] coupling node name to xmlsetup

2018-09-12 Thread Hans van der Meer
Suppose we have node  and want to execute the xmlsetup: 
mysetups:examplehandler on it. The idea is not to hardcode this but to do it on 
the fly from .

The following \xmlsetup comes into mind:

\startxmlsetups mysetups:definesetup
\xmlsetsetup{#1}{\xmlatt{#1}{name}}{mysetups:examplehandler}
\stopxmlsetups
\startxmlsetups mysetups:examplehandler
...
\stopxmlsetups

But this is either the wrong call or there is something missing, because on 
input of  the examplehandler is not invoked.
How to?

dr. Hans van der Meer


___
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] wildcard selection in xmlfilter

2018-09-12 Thread Hans van der Meer
No, never thought of ** instead of *. Also not in my printout of the manual, 
but that might be fairly outdated.
Thanks.

By the way, did you see my post on \xmllastatt from yesterday?

> On 12 Sep 2018, at 13:23, Hans Hagen  wrote:
> 
> On 9/12/2018 1:03 PM, Hans van der Meer wrote:
>> There is a difference of behaviour in \xmlfilter between
>> (1) \xmlfilter{#1}{node/command(xmlsetup)} and
>> (2) \xmlfilter{#1}{*/command(xmlsetup)}
>> (3) \xmlfilter{#1}{*/*/command(xmlsetup)}
>> In case (1) the lpath ‘node’ results in processing of the  nodes 
>> in all child nodes.
>> In case (2) and (3) no more than the corresponding level is searched.
>> Thus there is a difference in behaviour between node and * as an lpath.
>> Very unfortunate for me, because I need to process all nodes regardless of 
>> theeir node name, but selected on the basis of an attribute: 
>> \xmlfilter{#1}{*[@attribute==“yes”].
>> The difference in behaviour makes this impossible, because a general 
>> proceudre is impossible and doing a search with * and */* and */*/* etc. 
>> always will be one level too short, I expect.
>> Is this intended behaviour, and if so, is there a general solution?
> 
> did you try **
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

dr. Hans van der Meer


___
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] wildcard selection in xmlfilter

2018-09-12 Thread Hans van der Meer
There is a difference of behaviour in \xmlfilter between (1) \xmlfilter{#1}{node/command(xmlsetup)} and(2) \xmlfilter{#1}{*/command(xmlsetup)}(3) \xmlfilter{#1}{*/*/command(xmlsetup)}In case (1) the lpath ‘node’ results in processing of the  nodes in all child nodes.In case (2) and (3) no more than the corresponding level is searched.Thus there is a difference in behaviour between node and * as an lpath.Very unfortunate for me, because I need to process all nodes regardless of theeir node name, but selected on the basis of an attribute: \xmlfilter{#1}{*[@attribute==“yes”]. The difference in behaviour makes this impossible, because a general proceudre is impossible and doing a search with * and */* and */*/* etc. always will be one level too short, I expect.Is this intended behaviour, and if so, is there a general solution?
dr. Hans van der Meer




test.pdf
Description: Adobe PDF document


test.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Fwd: xmlchainatt and xmllastatt

2018-09-11 Thread Hans van der Meer
Sorry, wrong button. Now with the attachments.Begin forwarded message:From: Hans van der Meer <havdm...@ziggo.nl>Subject: xmlchainatt and xmllastattDate: 11 September 2018 at 10:13:25 CESTTo: NTG ConTeXt <ntg-context@ntg.nl>I found at best an inconsistency in the xml-mkiv manual and at its worst an omission in the code.I must conclude that \xmllastatt is not delivering the attribute retrieved with \xmlchainatt and that \xmllastatt seems restricted to calls of the \xmlatt family. This put me on the wrong foot for a while, because I understood the manual otherwise.Vide the minimal example given.
dr. Hans van der Meer



met vriendelijke groetdr. Hans van der Meer




xml-tex-chainlastatt.pdf
Description: Adobe PDF document


xml-tex-chainlastatt.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] xmlchainatt and xmllastatt

2018-09-11 Thread Hans van der Meer
I found at best an inconsistency in the xml-mkiv manual and at its worst an 
omission in the code.

I must conclude that \xmllastatt is not delivering the attribute retrieved with 
\xmlchainatt and that \xmllastatt seems restricted to calls of the \xmlatt 
family. This put me on the wrong foot for a while, because I understood the 
manual otherwise.
Vide the minimal example given.

dr. Hans van der Meer


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

2018-09-10 Thread Hans van der Meer
I want to differentiate the typing of XML-code with \startXML and other text with \starttyping.That doesn’t work as I expect or I misinterpret something.The minimal example shows that in the following code there is no difference between using  \startXML or \starttyping

typingsetup.pdf
Description: Adobe PDF document


typingsetup.tex
Description: Binary data
.
dr. Hans van der Meer

___
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] picking up parameters from mtxrun

2018-09-08 Thread Hans van der Meer
I seem to remember (from a galaxy far far away) that it was possible to pick up 
the parameters from the mtxrun call that sets ConTeXt typesetting in motion. 
For example doing 
mtxrun —mymode=something
and then in the program retrieving that something.
Will someone enlighten me?

dr. Hans van der Meer


___
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] contextbeta moved or server down? SOLVED

2018-09-08 Thread Hans van der Meer
I am not inclined to react so strongly. In general I am happy when the ISP 
provides its customers with default save settings. It is best for most people, 
I think.

Perhaps the rsync port 873 should have been opened by default in the firewall, 
because I suspect more and more people will use it to backup their data over 
the internet. 

But in general I can live with changing the modem settings temporarily, because 
I am updating the ConText minimals infrequently only.

> On 8 Sep 2018, at 14:34, juh  wrote:
> 
> Hi Hans,
> 
> I think that this is a scandal, as it is nothing else but censorship by
> your ISP.
> 
> I am a member of a cooperative hoster in Germany (Hostsharing) and
> Telekom, the biggest German ISP, blocked our mail servers for years in their
> routers they bundle with internet access services.
> 
> We had to complain at the Netzagentur a state agency which has to
> guarantee net neutrality in Germany – we were successful.
> 
> https://www.hostsharing.net/blog/2018/06/24/telekom-speedport-mailblockade-verfa
> hren-beendet/
> 
> Maybe the context community should complain somewhere about this.
> 
> juh
> 
> -- 
> Autoren-Homepage: . http://literatur.hasecke.com
> Satiren & Essays: . http://www.sudelbuch.de
> Privater Blog:  http://www.hasecke.eu
> Netzliteratur-Projekt:  http://www.generationenprojekt.de
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

dr. Hans van der Meer


___
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] contextbeta moved or server down? SOLVED

2018-09-08 Thread Hans van der Meer
This caused a lot of headaches but was finally solved this morning. Brainwave 
(and a nights sleep) needed to find the cause and it was so simple!

The case being that between my last successful access of the garden and 
yesterday the firewall protection of my modem had gone up to the highest level 
of protection (firmware update by ISP maybe, one is not always informed when 
these happen). Anyway, setting that level to low enabled the rsync service to 
the garden. Afterwards I set the protection level back to high, of course.

I hope that leaving this solution on the newsgroup will spare others the same 
headache.

Finally I wish to thank those who helped me search the culprit, especially 
Mojca who spent an hour with me on this case.

> On 7 Sep 2018, at 11:10, Hans van der Meer  wrote:
> 
> This used to give me the latest contextbeta:
> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh 
>  .
> 
> Today I get this error
> start download and iinstall of contextbeta
> rsync: failed to connect to contextgarden.net <http://contextgarden.net/>: 
> Operation timed out (60)
> 
> Is the garden down or have the sources been moved since my last access this 
> June?
> At least this link is still active at the moment: 
> http://wiki.contextgarden.net <http://wiki.contextgarden.net/>
> 
> dr. Hans van der Meer

dr. Hans van der Meer


___
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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
telnet is not present here on the system (for safety I presume)

> On 7 Sep 2018, at 17:45, Harald Koenig  
> wrote:
> 
> On Sep 07, Alan Braslau wrote:
> 
>> rsync uses port 873
>> 
>> This often gets blocked at many sites.
> 
> an easy and "naiive" test can be trying to connect to that port via rsync:
> 
> 
>   telnet 193.2.4.200 rsync
> or
>   telnet 193.2.4.200 873
> 
> 
> the output should look similar to this if that outgoing port is open (not 
> blocked):
> 
>   Trying 193.2.4.200...
>   Connected to 193.2.4.200.
>   Escape character is '^]'.
>   @RSYNCD: 31.0
> 
> 
> Harald
> -- 
> "I hope to die  ___   _
> before I *have* to use Microsoft Word.",   0--,|/OOO\
> Donald E. Knuth, 02-Oct-2001 in Tuebingen.<_/  /  /OOO\
>\  \/OOO\
>  \ O|//
>   \/\/\/\/\/\/\/\/\/
> Harald Koenig   //  / \\  \
> koe...@tat.physik.uni-tuebingen.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
> ___

met vriendelijke groet
dr. Hans van der Meer


___
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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
I looked into the modem: no port filtering set up there.

> On 7 Sep 2018, at 17:25, Alan Braslau  wrote:
> 
> rsync uses port 873
> 
> This often gets blocked at many sites.
> 
> Alan
> 
>> On 7 Sep 2018, at 17:17, Hans van der Meer  wrote:
>> 
>> Tried it on a MacBook too, same problem. Could be my router then.
>> 
>>> On 7 Sep 2018, at 17:04, Mohammad Hossein Bateni  wrote:
>>> 
>>> works for me.  I have macbook pro (mid 2015) running High Sierra 10.13.6.  
>>> I guess, you should try to ping or traceroute to contextgarden.net from 
>>> terminal.  the IP is different for www.contextgarden.net, which is probably 
>>> what the browser looks for.
>> 
>> Ping gave this:
>> 
>> 33 context-47: ping contextgarden.net
>> PING contextgarden.net (193.2.4.200): 56 data bytes
>> ..
>> 64 bytes from 193.2.4.200: icmp_seq=27 ttl=49 time=39.023 ms
>> 64 bytes from 193.2.4.200: icmp_seq=28 ttl=49 time=38.522 ms
>> ^C
>> --- contextgarden.net ping statistics ---
>> 29 packets transmitted, 29 packets received, 0.0% packet loss
>> round-trip min/avg/max/stddev = 37.669/38.526/39.896/0.656 ms
>> 
>> What now. Any ideas perhaps?
>> 
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> 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
> ___

met vriendelijke groet
dr. Hans van der Meer


___
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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Did this, see below, 

> On 7 Sep 2018, at 17:16, Mojca Miklavec  
> wrote:
> 
> On Fri, 7 Sep 2018 at 17:08, Hans van der Meer wrote:
>> 
>> If I connect in the browser to 
>> contextgarden.net/minimals/setup/$platform/bin (platform set to my osx-64) 
>> it gives an empty page with text as below. Shouldn’t there be something to 
>> download?
> 
> No, because that's the wrong URL. The correct URL would be
>http://minimals.contextgarden.net/setup/osx-64/bin/
> if talking about the browser. Apache's and rsync's URLs are not the same.
> 
> Can you please check if you can use rsync at all (behind the firewalls
> you currently reside)? Do you get any response from, say,
>rsync rsync://rsync.macports.org/
> ?
> 
35 context-47: rsync rsync://rsync.macports.org/

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.


release MacPorts rsync release repository, providing the current 
MacPorts "released" sources and the ports tree.
trunk   MacPorts rsync "trunk" repository, providing experimental 
MacPorts sources in svn's trunk/base.
distfiles   Distfile mirror for MacPorts

And a lot more like this ..

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


dr. Hans van der Meer


___
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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Tried it on a MacBook too, same problem. Could be my router then.

> On 7 Sep 2018, at 17:04, Mohammad Hossein Bateni  wrote:
> 
> works for me.  I have macbook pro (mid 2015) running High Sierra 10.13.6.  I 
> guess, you should try to ping or traceroute to contextgarden.net 
> <http://contextgarden.net/> from terminal.  the IP is different for 
> www.contextgarden.net <http://www.contextgarden.net/>, which is probably what 
> the browser looks for.

Ping gave this:

33 context-47: ping contextgarden.net
PING contextgarden.net (193.2.4.200): 56 data bytes
..
64 bytes from 193.2.4.200: icmp_seq=27 ttl=49 time=39.023 ms
64 bytes from 193.2.4.200: icmp_seq=28 ttl=49 time=38.522 ms
^C
--- contextgarden.net ping statistics ---
29 packets transmitted, 29 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 37.669/38.526/39.896/0.656 ms

What now. Any ideas perhaps?

dr. Hans van der Meer


___
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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
If I connect in the browser to contextgarden.net/minimals/setup/$platform/bin 
<http://contextgarden.net/minimals/setup/$platform/bin> (platform set to my 
osx-64) it gives an empty page with text as below. Shouldn’t there be something 
to download?
minimals/setup/osx-64/bin

There is currently no text in this page. You can search for this page title 
<http://wiki.contextgarden.net/Special:Search/minimals/setup/osx-64/bin> in 
other pages, or search the related logs 
<http://wiki.contextgarden.net/index.php?title=Special:Log=minimals/setup/osx-64/bin>
 


> On 7 Sep 2018, at 16:42, Hans van der Meer  wrote:
> 
> Not here. I copied your call into Terminal and it gave the same timeout as 
> before. 
> 
> My system is a MacPro (2017), could it have a special setting in the tailored 
> software? Anywhere someone with the same machine who can test this?
> 
> Otherwise, can I download ‘manually’ a package and then install (howto?).
> 
>> On 7 Sep 2018, at 16:34, Wolfgang Schuster 
>> > <mailto:wolfgang.schuster.li...@gmail.com>> wrote:
>> 
>> Hi Hans,
>> 
>> I can download first-setup.sh without problems.
>> 
>> 
>> $ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh 
>>  .
>> first-setup.sh
>> 
>> sent 38 bytes  received 4826 bytes  3242.67 bytes/sec
>> total size is 4715  speedup is 0.97
>> 
>> 
>> Wolfgang
>> 
>> 
>> Hans van der Meer schrieb am 07.09.18 um 16:25:
>>> Clicking on  contextgarden.net <http://contextgarden.net/> brings up the 
>>> garden in the browser. The site therefore is reachable from here.
>>> 
>>> I guess then, the problem is in the rsync. I am afraid I known next to 
>>> nothing about rsync. 
>>> 
>>> It would be nice if someone with an Apple Macintosh will try the same. 
>>> Maybe it is something in the system here (running MacOSX High Sierra 
>>> 10.13.6) and I would be glad/unhappy to know if that is the case.
>>> 
>>>> On 7 Sep 2018, at 15:37, Taco Hoekwater >>> <mailto:t...@elvenkind.com>> wrote:
>>>> 
>>>> Hi Hans,
>>>> 
>>>> The garden server is working for me as well, but I am on the same IP as 
>>>> Mojca 
>>>> at the moment, so that is probably to be expected.
>>>> 
>>>> Can you connect to contextgarden.net <http://contextgarden.net/> in *any* 
>>>> way from where you are?
>>>> There could be some issue with the internet routing from your machine
>>>> to contextgarden.net <http://contextgarden.net/>, or it could be a 
>>>> firewall blockade somewhere
>>>> in between. The machine itself is definitely running.
>>>> 
>>>> Best wishes,
>>>> Taco
>>>> 
>>>>> On 7 Sep 2018, at 13:13, Hans van der Meer >>>> <mailto:havdm...@ziggo.nl>> wrote:
>>>>> 
>>>>> Still not working. this is the full script, I didn’t change the rsync 
>>>>> line since last time it ran ok:
>>>>> 
>>>>> echo "start download and install of contextbeta"
>>>>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh 
>>>>>  .
>>>>> chmod a+x first-setup.sh
>>>>> mkdir tex
>>>>> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
>>>>> #sh ./first-setup.sh --context=current >first-setup.log
>>>>> #sh ./first-setup.sh --context=date >first-setup.log
>>>>> 
>>>>> # link to command reference
>>>>> cp -p -v 
>>>>> tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
>>>>> ~/Desktop/Context\ Commands.pdf
>>>>> rm ~/Desktop/Context\ Manuals
>>>>> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals 
>>>>> Context\ Manuals
>>>>> mv Context\ Manuals ..
>>>>> 
>>>>> # link to mkiv source
>>>>> rm mkiv_base
>>>>> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
>>>>> 
>>>>> exit
>>>>> 
>>>>> And this is the full output of a run, put the rsync data in red:
>>>>> 
>>>>> 4 context-47: contextbeta
>>>>> start download and install of contextbeta
>>>>> rsync: failed to connect to contextgarden.net 
>>>>> <http://contextgarden.net/>: Operation timed out (60)
>>>

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Not here. I copied your call into Terminal and it gave the same timeout as 
before. 

My system is a MacPro (2017), could it have a special setting in the tailored 
software? Anywhere someone with the same machine who can test this?

Otherwise, can I download ‘manually’ a package and then install (howto?).

> On 7 Sep 2018, at 16:34, Wolfgang Schuster 
>  wrote:
> 
> Hi Hans,
> 
> I can download first-setup.sh without problems.
> 
> 
> $ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
> first-setup.sh
> 
> sent 38 bytes  received 4826 bytes  3242.67 bytes/sec
> total size is 4715  speedup is 0.97
> 
> 
> Wolfgang
> 
> 
> Hans van der Meer schrieb am 07.09.18 um 16:25:
>> Clicking on  contextgarden.net <http://contextgarden.net/> brings up the 
>> garden in the browser. The site therefore is reachable from here.
>> 
>> I guess then, the problem is in the rsync. I am afraid I known next to 
>> nothing about rsync. 
>> 
>> It would be nice if someone with an Apple Macintosh will try the same. Maybe 
>> it is something in the system here (running MacOSX High Sierra 10.13.6) and 
>> I would be glad/unhappy to know if that is the case.
>> 
>>> On 7 Sep 2018, at 15:37, Taco Hoekwater >> <mailto:t...@elvenkind.com>> wrote:
>>> 
>>> Hi Hans,
>>> 
>>> The garden server is working for me as well, but I am on the same IP as 
>>> Mojca 
>>> at the moment, so that is probably to be expected.
>>> 
>>> Can you connect to contextgarden.net <http://contextgarden.net/> in *any* 
>>> way from where you are?
>>> There could be some issue with the internet routing from your machine
>>> to contextgarden.net <http://contextgarden.net/>, or it could be a firewall 
>>> blockade somewhere
>>> in between. The machine itself is definitely running.
>>> 
>>> Best wishes,
>>> Taco
>>> 
>>>> On 7 Sep 2018, at 13:13, Hans van der Meer >>> <mailto:havdm...@ziggo.nl>> wrote:
>>>> 
>>>> Still not working. this is the full script, I didn’t change the rsync line 
>>>> since last time it ran ok:
>>>> 
>>>> echo "start download and install of contextbeta"
>>>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh 
>>>>  .
>>>> chmod a+x first-setup.sh
>>>> mkdir tex
>>>> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
>>>> #sh ./first-setup.sh --context=current >first-setup.log
>>>> #sh ./first-setup.sh --context=date >first-setup.log
>>>> 
>>>> # link to command reference
>>>> cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
>>>> ~/Desktop/Context\ Commands.pdf
>>>> rm ~/Desktop/Context\ Manuals
>>>> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\ 
>>>> Manuals
>>>> mv Context\ Manuals ..
>>>> 
>>>> # link to mkiv source
>>>> rm mkiv_base
>>>> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
>>>> 
>>>> exit
>>>> 
>>>> And this is the full output of a run, put the rsync data in red:
>>>> 
>>>> 4 context-47: contextbeta
>>>> start download and install of contextbeta
>>>> rsync: failed to connect to contextgarden.net <http://contextgarden.net/>: 
>>>> Operation timed out (60)
>>>> rsync error: error in socket IO (code 10) at 
>>>> /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
>>>>  [receiver=2.6.9]
>>>> chmod: first-setup.sh: No such file or directory
>>>> mkdir: tex: File exists
>>>> sh: ./first-setup.sh: No such file or directory
>>>> cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No 
>>>> such file or directory
>>>> rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
>>>> Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
>>>> mkiv_base -> tex/texmf-context/tex/context/base/mkiv
>>>> 4 context-47: 
>>>> 
>>>> 
>>>>> On 7 Sep 2018, at 11:50, Mojca Miklavec >>>> <mailto:mojca.miklavec.li...@gmail.com>> wrote:
>>>>> 
>>>>> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer >>>> <mailto:havdm...@ziggo.nl>> wrote:
>>>&

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Clicking on  contextgarden.net <http://contextgarden.net/> brings up the garden 
in the browser. The site therefore is reachable from here.

I guess then, the problem is in the rsync. I am afraid I known next to nothing 
about rsync. 

It would be nice if someone with an Apple Macintosh will try the same. Maybe it 
is something in the system here (running MacOSX High Sierra 10.13.6) and I 
would be glad/unhappy to know if that is the case.

> On 7 Sep 2018, at 15:37, Taco Hoekwater  wrote:
> 
> Hi Hans,
> 
> The garden server is working for me as well, but I am on the same IP as Mojca 
> at the moment, so that is probably to be expected.
> 
> Can you connect to contextgarden.net in *any* way from where you are?
> There could be some issue with the internet routing from your machine
> to contextgarden.net, or it could be a firewall blockade somewhere
> in between. The machine itself is definitely running.
> 
> Best wishes,
> Taco
> 
>> On 7 Sep 2018, at 13:13, Hans van der Meer  wrote:
>> 
>> Still not working. this is the full script, I didn’t change the rsync line 
>> since last time it ran ok:
>> 
>> echo "start download and install of contextbeta"
>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>> chmod a+x first-setup.sh
>> mkdir tex
>> sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
>> #sh ./first-setup.sh --context=current >first-setup.log
>> #sh ./first-setup.sh --context=date >first-setup.log
>> 
>> # link to command reference
>> cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
>> ~/Desktop/Context\ Commands.pdf
>> rm ~/Desktop/Context\ Manuals
>> ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\ 
>> Manuals
>> mv Context\ Manuals ..
>> 
>> # link to mkiv source
>> rm mkiv_base
>> ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base
>> 
>> exit
>> 
>> And this is the full output of a run, put the rsync data in red:
>> 
>> 4 context-47: contextbeta
>> start download and install of contextbeta
>> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>> rsync error: error in socket IO (code 10) at 
>> /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
>>  [receiver=2.6.9]
>> chmod: first-setup.sh: No such file or directory
>> mkdir: tex: File exists
>> sh: ./first-setup.sh: No such file or directory
>> cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No 
>> such file or directory
>> rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
>> Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
>> mkiv_base -> tex/texmf-context/tex/context/base/mkiv
>> 4 context-47: 
>> 
>> 
>>> On 7 Sep 2018, at 11:50, Mojca Miklavec  
>>> wrote:
>>> 
>>> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer  wrote:
>>>> 
>>>> This used to give me the latest contextbeta:
>>>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>>>> 
>>>> Today I get this error
>>>> start download and iinstall of contextbeta
>>>> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>>>> 
>>>> Is the garden down or have the sources been moved since my last access 
>>>> this June?
>>>> At least this link is still active at the moment: 
>>>> http://wiki.contextgarden.net
>>> 
>>> While wiki.contextgarden.net is running on a different server than the
>>> distribution, there hasn't been any change recently and the
>>> installation works for me.
>>> 
>>> Mojca
>>> ___
>>> 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
>>> ___
>> 
>> met vriendelijke groet
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> If your question is of interest to others as well, please ad

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
Still not working. this is the full script, I didn’t change the rsync line 
since last time it ran ok:

echo "start download and install of contextbeta"
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
chmod a+x first-setup.sh
mkdir tex
sh ./first-setup.sh --engine=luatex --context=beta >first-setup.log
#sh ./first-setup.sh --context=current >first-setup.log
#sh ./first-setup.sh --context=date >first-setup.log

# link to command reference
cp -p -v tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf 
~/Desktop/Context\ Commands.pdf
rm ~/Desktop/Context\ Manuals
ln -s -v /tex/texmf-context/doc/context/documents/general/manuals Context\ 
Manuals
mv Context\ Manuals ..

# link to mkiv source
rm mkiv_base
ln -s -v tex/texmf-context/tex/context/base/mkiv mkiv_base

exit

And this is the full output of a run, put the rsync data in red:

4 context-47: contextbeta
start download and install of contextbeta
rsync: failed to connect to contextgarden.net: Operation timed out (60)
rsync error: error in socket IO (code 10) at 
/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/clientserver.c(106)
 [receiver=2.6.9]
chmod: first-setup.sh: No such file or directory
mkdir: tex: File exists
sh: ./first-setup.sh: No such file or directory
cp: tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf: No such 
file or directory
rm: /Users/hansm/Desktop/Context Manuals: No such file or directory
Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals
mkiv_base -> tex/texmf-context/tex/context/base/mkiv
4 context-47: 


> On 7 Sep 2018, at 11:50, Mojca Miklavec  
> wrote:
> 
> On Fri, 7 Sep 2018 at 11:11, Hans van der Meer  wrote:
>> 
>> This used to give me the latest contextbeta:
>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>> 
>> Today I get this error
>> start download and iinstall of contextbeta
>> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>> 
>> Is the garden down or have the sources been moved since my last access this 
>> June?
>> At least this link is still active at the moment: 
>> http://wiki.contextgarden.net
> 
> While wiki.contextgarden.net is running on a different server than the
> distribution, there hasn't been any change recently and the
> installation works for me.
> 
> Mojca
> ___
> 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
> ___

met vriendelijke groet
dr. Hans van der Meer


___
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] inmargin produces underfull hbox

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

produces an underfull hbox:

Underfull \hbox (badness 1210) in paragraph at lines 6--6
 [][][]

the same happens with the line: \inmargin{abc}
Underfull \hbox (badness 1210) in paragraph at lines 6--6
 []<9: lmroman12-bold @ 12.0pt> abc[]

addition of \hfil or \hss doesn’t help.

My conclusion: this is somewhere located in \inmargin. It would be nice if this 
can be resolved, because in procession some 500 \inmargin’s the log is 
cluttered with all these messages.

dr. Hans van der Meer


___
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] contextbeta moved or server down?

2018-09-07 Thread Hans van der Meer
This used to give me the latest contextbeta:
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .

Today I get this error
start download and iinstall of contextbeta
rsync: failed to connect to contextgarden.net: Operation timed out (60)

Is the garden down or have the sources been moved since my last access this 
June?
At least this link is still active at the moment: http://wiki.contextgarden.net

dr. Hans van der Meer


___
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] unknown library

2018-09-05 Thread Hans van der Meer
Mij font setup is nothing more then \setupbodyfont[cambria,12pt]

An underfull hbox I can understand but wherefrom these messages about an 
“unknown library normal”?
I guess it is not the font, because substituting lmodern for cambria makes no 
difference.
Does this signify I should change something? If so, then what?

Underfull \hbox (badness 1014) in paragraph at lines 7--7
 []<15: cambria @ 10.0pt> adres[]
fonts   > typescripts > unknown library 'normal'
fonts   > typescripts > unknown library 'normal'
pages   > flushing realpage 108, userpage 108

dr. Hans van der Meer


___
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] for-loop

2018-08-30 Thread Hans van der Meer
Sorry to ask, but I forgot how to execute a (for)-loop in an environment where 
\loop..\repeat gives the error:

! Undefined control sequence

\loop #1\repeat ->\def \@@plnbody 
  {#1}\@@plniterate

dr. Hans van der Meer


___
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] removing and reinstating xmlsetup's

2018-08-30 Thread Hans van der Meer

> On 30 Aug 2018, at 00:53, Hans Hagen  wrote:
> 
> On 8/29/2018 5:54 PM, Hans van der Meer wrote:
>> Doing: \xmlremovesetup{SETUP}
>> does not seems to have an effect.
>> Is it possible to deactivate a xml setup and reinstate at at a later point 
>> in time?
> normally one uses modes for that (inside the setup)
> 
> ir you can decide for explicit filtering (\xmlfilter)
> 

I cannot imagine how to accomplish it that way, given my intentions.

Solved it with a global if (not so happy with global code, but could not think 
of a neater, local solution).
All other solutions I tried typeset multiple copies of 








\startxmlsetups process:topnode  (structures the output, collects all 
s here)
\global\topleveltrue
\xmlall{#1}{subsubnode}
\global\toplevelfalse
\stopxmlsetups
\startxmlsetups process:subsubnode
\iftoplevel
        …
\fi
\stopxmlsetups

dr. Hans van der Meer


___
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] removing and reinstating xmlsetup's

2018-08-29 Thread Hans van der Meer
Doing:  \xmlremovesetup{SETUP}
does not seems to have an effect.

Is it possible to deactivate a xml setup and reinstate at at a later point in 
time?

dr. Hans van der Meer


___
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] parent of xml-node

2018-08-28 Thread Hans van der Meer
Thanks. Just what I needed to suppress expansion of a node below a certain node 
level.

> On 28 Aug 2018, at 22:17, mf  wrote:
> 
> 
>> With \xmltag{#1} one can find the identity of the current node. But
>> how can I find the tag of the parent node?
>> 
>> dr. Hans van der Meer
>> 
> \xmltext{#1}{../tag()}
> 
> ___
> 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
> ___________

dr. Hans van der Meer


___
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] parent of xml-node

2018-08-28 Thread Hans van der Meer
With \xmltag{#1} one can find the identity of the current node. But how can I 
find the tag of the parent node?

dr. Hans van der Meer


___
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] index with more than one column?

2018-08-26 Thread Hans van der Meer
How do I produce an index with more than one column?

This produces one column only:
\startchapter[title=\mytitle{Register}]
\startcolumns[n=2]
\placeregister[index]
\stopcolumns

Nor did \placeregister[index][n=2] or \placeindex[n=2], with or without the 
columns envirenment, produce the result wanted.
The \startsimplecolumns[n=2] environment did produce two columns, but then 
played havoc with the textheight.

dr. Hans van der Meer


___
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] future versions

2018-07-24 Thread Hans van der Meer
I am using XML a lot for structured data and typesetting them with hopefully 
not too much attention to detail — although I must confess often being a 
hopeless perfectionist.
If there are general improvements that can be made in that direction, I would 
welcome them. Although I apologise not being able to propose concrete 
suggestions at the moment, I hope this post will incite those more 
knowledgeable than me, to do so. They are thanked beforehand.

Hans van der Meer

> On 24 Jul 2018, at 20:43, Hans Hagen  wrote:
> 
> Hi,
> 
> Around the upcoming context meeting we expect to release luatex 1.09 (or 1.10 
> ... yet undecided) which is the prelude to the next year tex live version. 
> It's another step towards a stable version in terms of functionality as we 
> don't expect much more to be added (in fact, I'm wondering if it makes sense 
> to come up with a leaner and meaner version at some point because context can 
> probably benefit from that). Of course under the hood there are improvements 
> possible and we have some ideas (that might materialize at some point) but 
> generally spoken, this is what one gets.
> 
> That said, a logical question is how about next versions of context. Are 
> there fundamental features missing? Is more needed? Keep in mind that we're 
> not talking of desk top publishing (click and point and place stuff) and also 
> not of word processing (office like stuff) but of mostly automated structured 
> document rendering. Also, keep in mind the landscape that we operate in 
> (context development is mostly user driven as publishers imo long ago lost 
> interest in any research and development and the potential of tex and friends 
> is largely unknown elsewhere).
> 
> It's not my intention to implement each possible feature as core feature (no 
> one would document it anyway). Also, as development is basically a spare time 
> effort, don't expect complex commercially interesting niches to come for free 
> either as in that case one can wait till I a find a reason for implementing 
> it for fun or development is driven by a project.
> 
> When thinking of future additions, tex, lua, metapost of a mix is possible. 
> They should be of interest for more than one user. Of course it can also be 
> that everything needed is there. Maybe existing mechanisms can be improved in 
> terms of functionality or performance (although i think that performance wise 
> we're ok). But again keep in mind that the boundary conditions (all these 
> interacting sub mechanisms) also prohibit some functionality.
> 
> Hans
> 
> 
> -
>  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
> ___


___
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] title of index

2018-07-19 Thread Hans van der Meer
Thanks. Putting \placeregister[index] inside a  
\startchapter[title=\mytitle{}]-\stopchapter pair does the ttrick.

> On 19 Jul 2018, at 14:19, Rik Kabel  wrote:
> 
> On 7/19/2018 07:54, Hans van der Meer wrote:
>> The macro \completeregister[index] placed in 
>> \startbackmatter\startappendices typesets as “I Index”. 
>> How can I change and format with my custom macro the part “Index”? 
>> Such as using \mytitle{xyz} instead of Index?
>> 
>> No solution found in the Context Wiki.
>> 
>> dr. Hans van der Meer
>> 
> 
> Try \placeindex or \placeregister[index] and your own section heading. This 
> is analagous to \completecontent and \placecontent.

dr. Hans van der Meer


___
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] title of index

2018-07-19 Thread Hans van der Meer
The macro \completeregister[index] placed in \startbackmatter\startappendices 
typesets as “I Index”. 
How can I change and format with my custom macro the part “Index”? 
Such as using \mytitle{xyz} instead of Index?

No solution found in the Context Wiki.

dr. Hans van der Meer


___
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] DTD's and XML-ConTeXt question

2018-05-23 Thread Hans van der Meer
Here is a sample xml-document:


]>


The file setup/xmp.dtd contains the line:


My 1st question, why does this fail for ? The  is substituted 
but  is not. 

My 2nd question is why included files do not substitute either of these two 
entities. 
Thus in: xml-document-included processed by 
\xmlprocessfile{}{included-file}{}
nor  nor  is substituted.

So, what am I doing wrong here?

Hans van der Meer

___
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] \textrule location

2018-05-22 Thread Hans van der Meer
\textrule{TEXT} puts a rule with the TEXT to the left, like so:
--TEXT——[endofline]

I imagined that \textrule[location=..] could be used to vary the position of 
TEXT to middle or to the right (as I would like to have it). But I could not 
get this working, the only effect of for example \textrule[location=left] is to 
insert a blank line after the rule. I am missing something or isn’t this 
possible?

Hans van der Meer

___
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] Files on a server

2018-05-17 Thread Hans van der Meer
I too have the impression it is working for both.

Hans van der Meer

> On 17 May 2018, at 09:39, Taco Hoekwater <t...@elvenkind.com> wrote:
> 
> 
> 
>> On 17 May 2018, at 09:32, Ulrike Fischer <ne...@nililand.de> wrote:
>> 
>> Am Wed, 16 May 2018 14:23:42 +0200 schrieb Taco Hoekwater:
>> 
>>> Or use luasocket, which is included in the luatex binary:
>> 
>> But I'm right that this works only with http and not with https?
> 
> Works ok for me. Did you test?
> 
> Taco
> 
> ___
> 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
___

  1   2   3   4   5   6   7   >