[NTG-context] Bug in lmtx in display mathmode

2019-08-18 Thread Otared Kavian
Hi Hans,

I have a long document which typesets correctly with mkiv, but I get a (cryptic 
for me…) fatal error message when I try to typeset it in lmtx:

! error:  (nodes): trying to delete an attribute reference of a non attribute 
list node 4476mtx-context | fatal error: return code: 256

I could finally find the origin of the error, which is exposed in the following 
example: if you comment out the part from \startformula ... \stopformula, the 
file typesets correctly.
But with this part, one gets the above error message, the culprit being 
\liminfbar which is defined in the first line. Note that \liminfbar is accepted 
when it is inline math.

Best regards: OK

%%% begin bug-math-lmtx.tex

\definemathcommand[liminfbar][limop] {\underline{\mfunctionlabeltext{lim}}}

\starttext
If $(u_{n})_{n}$ is a sequence of real numbers, we define its {\it limit 
inferior}, denoted $\liminfbar$ by setting:
\startformula
a_{n} := \inf\{u_{k} \; ; \; k \geq n \},
\qquad\text{and then}\quad
\liminfbar_{n\to\infty} u_{n} := \sup_{n \geq 1} a_{n}.
\stopformula 

\stoptext

%%% end bug-math-lmtx.tex
___
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 use ConTeXt extensions with VS Code

2019-08-18 Thread Hans Hagen

On 8/18/2019 10:14 PM, Denis Maier wrote:

Hi,

I have seen ConTeXt comes with an extension for VS Code. How do you use 
that? I have tried the code in the readme, but this doesn't seem to work.

there is an vscode-context.cmd file

this could also work:

>mtxrun --script vscode --start

(it's still somewhat experimental and i'm waiting till the editor has 
better - easier - support for runners associated with suffixes, which 
currently is kind of one-for-all)


-
  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] Again: Graphics placement with columnsets/page grids

2019-08-18 Thread Denis Maier
Hi,
I have posted a question regarding floats and columnsets some time ago. I
am wondering why I am having text under a figure in a two column layout.


\usemodule[newcolumnsets]

\setuplayout
  [grid=yes]

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]

\dorecurse{11}{
  \input ward\par
}

\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}

\dorecurse{10}{
  \input ward\par
}

\stopcolumnset
\stoptext


Shouldn't the figure stick to the bottom?

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
___


Re: [NTG-context] Cross referencing by using \useexternaldoument

2019-08-18 Thread Willi Egger
Hello Wolfgang!

Thank you again for your explanation. Indeed the thing is the availability of 
the tuc-file of the referenced file. — I will add a note on this on the Wiki.


Willi

> On 18 Aug 2019, at 18:07, Wolfgang Schuster 
>  wrote:
> 
> Willi Egger schrieb am 18.08.2019 um 17:30:
>> Hi all,
>> 
>> there is an old thread concerning this issue from september 2015. It appears 
>> unfortunately, that this issue persists.
>> 
>> You can reference to places inside a document, but references to an outside 
>> document are broken. The links do not work and no page numbers or texts are 
>> typeset from the external document.
>> 
>> Can someone help me to solve this?
> I tried your example and had no problem to get the page and section numbers
> from the other document. What you have to ensure is that the tuc-file for the
> other document you want to refer dies exist because context uses it to get
> the values for the numbers etc.
> 
> 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 use ConTeXt extensions with VS Code

2019-08-18 Thread Denis Maier
Hi,

I have seen ConTeXt comes with an extension for VS Code. How do you use
that? I have tried the code in the readme, but this doesn't seem to work.

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
___


Re: [NTG-context] Cross referencing by using \useexternaldoument

2019-08-18 Thread Willi Egger
Hello Wolfgang!

thank you so much for your quick reply! I will test and see!

Thanks!

Willi

> On 18 Aug 2019, at 18:07, Wolfgang Schuster 
>  wrote:
> 
> Willi Egger schrieb am 18.08.2019 um 17:30:
>> Hi all,
>> 
>> there is an old thread concerning this issue from september 2015. It appears 
>> unfortunately, that this issue persists.
>> 
>> You can reference to places inside a document, but references to an outside 
>> document are broken. The links do not work and no page numbers or texts are 
>> typeset from the external document.
>> 
>> Can someone help me to solve this?
> I tried your example and had no problem to get the page and section numbers
> from the other document. What you have to ensure is that the tuc-file for the
> other document you want to refer dies exist because context uses it to get
> the values for the numbers etc.
> 
> 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] Cross referencing by using \useexternaldoument

2019-08-18 Thread Wolfgang Schuster

Willi Egger schrieb am 18.08.2019 um 17:30:

Hi all,

there is an old thread concerning this issue from september 2015. It appears 
unfortunately, that this issue persists.

You can reference to places inside a document, but references to an outside 
document are broken. The links do not work and no page numbers or texts are 
typeset from the external document.

Can someone help me to solve this?

I tried your example and had no problem to get the page and section numbers
from the other document. What you have to ensure is that the tuc-file 
for the

other document you want to refer dies exist because context uses it to get
the values for the numbers etc.

Wolfgang

local utilitydata = { }

utilitydata.comment={
 ["escape"]="[===[ ... ]===]",
 ["file"]="two",
 ["format"]="cont-en",
 ["stamp"]="2019.08.17 11:46",
 ["version"]=1.31,
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.variables then utilitydata.job.variables = { } end

utilitydata.job.variables.checksums={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.variables then utilitydata.job.variables = { } end

utilitydata.job.variables.collected={
 ["macros"]={},
 ["randomseed"]=0.20989990234375,
 ["sectionblockorder"]={},
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.structure then utilitydata.job.structure = { } end

utilitydata.job.structure.collected={
 ["branches"]={},
 ["name"]="",
 ["type"]="text",
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.positions then utilitydata.job.positions = { } end

utilitydata.job.positions.collected={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.passes then utilitydata.job.passes = { } end

utilitydata.job.passes.collected={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.datasets then utilitydata.job.datasets = { } end

utilitydata.job.datasets.collected={
}

if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.pagestates then utilitydata.job.pagestates = { } end

utilitydata.job.pagestates.collected={
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.specials then utilitydata.structures.specials = { 
} end

utilitydata.structures.specials.collected={
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.sections then utilitydata.structures.sections = { 
} end

utilitydata.structures.sections.collected={
 {
  ["block"]="bodypart",
  ["conversionset"]="default",
  ["language"]="en",
  ["numbers"]=1,
  ["separatorset"]="default",
  ["set"]="all",
 },
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.counters then utilitydata.structures.counters = { 
} end

utilitydata.structures.counters.collected={
 ["chemical"]={
  { 0, 0 },
 },
 ["combination"]={
  { 0 },
 },
 ["endnote"]={
  { 0 },
 },
 ["figure"]={
  { 0, 0 },
 },
 ["footnote"]={
  { 0 },
 },
 ["formula"]={
  { 0, 0 },
 },
 ["graphic"]={
  { 0, 0 },
 },
 ["intermezzo"]={
  { 0, 0 },
 },
 ["itemgroup:itemize"]={
  { 0, 0 },
 },
 ["linenote"]={
  { 0 },
 },
 ["paragraph"]={
  { 0, 0 },
 },
 ["realpage"]={
  { 4 },
 },
 ["subpage"]={
  { 4 },
 },
 ["table"]={
  { 0, 0 },
 },
 ["textnote:note"]={
  { 0 },
 },
 ["userpage"]={
  { 4 },
 },
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.lists then utilitydata.structures.lists = { } end

utilitydata.structures.lists.collected={
 {
  ["metadata"]=2,
  ["numberdata"]=3,
  ["references"]={
   ["block"]="bodypart",
   ["internal"]=1,
   ["realpage"]=4,
   ["reference"]="sec:second",
   ["section"]=1,
   ["used"]="fit",
  },
  ["titledata"]={
   ["label"]="chapter",
   ["title"]="Second document",
  },
 },
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.pages then utilitydata.structures.pages = { } end

utilitydata.structures.pages.collected={
 {
  ["block"]="bodypart",
  ["number"]=1,
  ["numberdata"]=4,
  ["prefixdata"]=5,
  ["state"]="start",
 },
 {
  ["block"]="bodypart",
  ["number"]=2,
  ["numberdata"]=4,
  ["prefixdata"]=5,
  ["state"]="start",
 },
 {
  ["block"]="bodypart",
  ["number"]=3,
  ["numberdata"]=4,
  ["prefixdata"]=5,
  ["state"]="start",
 },
 {
  ["block"]="bodypart",
  ["number"]=4,
  ["numberdata"]=4,
  ["prefixdata"]=5,
  ["state"]="start",
 },
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.references then utilitydata.structures.references 
= { } end

utilitydata.structures.references.collected={
}

if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.references then utilitydata.structures.references 
= { } end

utilitydata.structures.references.referred={
 { 1, 10 },
 { 1, 12 },
 { 1, 14 },
 { 1, 16 },
}

if not utilitydata.job 

[NTG-context] Cross referencing by using \useexternaldoument

2019-08-18 Thread Willi Egger
Hi all,

there is an old thread concerning this issue from september 2015. It appears 
unfortunately, that this issue persists. 

You can reference to places inside a document, but references to an outside 
document are broken. The links do not work and no page numbers or texts are 
typeset from the external document.

Can someone help me to solve this?

Kind regards

Willi

MWE
File: one.tex

\enabletrackers[structures.referencing.analyzing]

\setupinteraction[state=start]

\starttext

\starttabulate[|l|l|l|]
\NC First document  \NC \in{Chapter}[sec:first]   \NC \at{Page}[sec:first]  
 \NC\NR
\NC Second document \NC \in{Chapter}[two::sec:second] \NC 
\at{Page}[two::sec:second] \NC\NR
\stoptabulate

\dorecurse{3}{\page[empty]}

\chapter[sec:first]{First document}

\stoptext


File; two.tex

\enabletrackers[structures.referencing.analyzing]

\setupinteraction[state=start]

\starttext

\starttabulate[|l|l|l|]
\NC First document  \NC \in{Chapter}[one::sec:first] \NC 
\at{Page}[one::sec:first] \NC\NR
\NC Second document \NC \in{Chapter}[sec:second] \NC \at{Page}[sec:second]  
   \NC\NR
\stoptabulate

\dorecurse{2}{\page[empty]}

\chapter[sec:second]{Second document}

\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] \date in LMTX

2019-08-18 Thread Hans Hagen

On 8/18/2019 9:59 AM, Otared Kavian wrote:

On 18 Aug 2019, at 05:25, Aditya Mahajan  wrote:

Hi,

There is a bug with \date in LMTX.

\starttext
\date[d=10]
\stoptext

does not change the date. Works okay in MKIV.


Hi,

Actually it does not work in mkiv version 2019.08.14 11:26, nor in lmtx version 
2019.08.14 11:44.
But it works in mkiv version 2019.03.21 21:39 from TeXLive 2019.

fixed in next beta

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


Re: [NTG-context] \date in LMTX

2019-08-18 Thread Otared Kavian
> On 18 Aug 2019, at 05:25, Aditya Mahajan  wrote:
> 
> Hi,
> 
> There is a bug with \date in LMTX.
> 
> \starttext
> \date[d=10]
> \stoptext
> 
> does not change the date. Works okay in MKIV.

Hi,

Actually it does not work in mkiv version 2019.08.14 11:26, nor in lmtx version 
2019.08.14 11:44. 
But it works in mkiv version 2019.03.21 21:39 from TeXLive 2019.

Best regards: OK
___
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
___