Re: [NTG-context] Strange bug in the latest version of ConTeXt - start-stop table problem

2016-04-30 Thread Jaroslav Hajtmar

Thanx Wolfgang for reply.
I looked for possible mistakes in my library, and finally I find out 
that described error that bug is reflecting when I use \starttable --- 
\stoptable environment. I am sending now an minimal example that 
illustrates the problem. I am aware that work with tables of this type 
is not recommended, however, I was surprised that in a previous version 
of standalone ConTeXt the bug did not show. Is there any changes in 
code, which is related with tables typing?


Thanks Jaroslav Hajtmar

Here is minimal example:



\starttext

\starttable[|l w50mm|c|]
\NC \NC {\bf } \MR
\NC \NC XXX \MR
\stoptable


\stoptext




Dne 27.04.16 v 12:22 Wolfgang Schuster napsal(a):

Jaroslav Hajtmar 
26. April 2016 um 16:02
Hello ConTeXist.

I have just installed the latest version of ConTeXt standalone. When 
I compiled an my old source code, I received an error:



! You can't use `\Ustopmath' in restricted horizontal mode! You can't 
use `\Ustopmath' in restricted horizontal mode! You can't use 
`\Ustartmath' in restricted horizontal mode! Inline math should end 
with \Ustopmath



This strange error is caused something in my extensive library for 
handling CSV files. I'm not sure why, because in library I am not use 
with any mathematical mode.


I am sorry, but at this moment I am not able to reveal the mistake to 
be able make a minimal example. Some of the older versions (not 
necessarily penultimate) worked without problems. Is there someone 
who help me start look from which point look for a mistake in my code 
library? Thanks for the information.
It’s possible you’re using a math command without enabling math mode 
or you use
the a wrong catcode regime (where _ and ^ work only in math) but 
without a example

there is not much to say.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Luatex 0.95.0 error with bidi and Hebrew

2016-04-30 Thread Rik Kabel

Version information:

   ConTeXt  ver: 2016.04.30 18:59 MKIV beta  fmt: 2016.4.30  int:
   english/english
   luajittex, 0.95.0 and luatex, 0.95.0

   running on Windows 10 x64

Error message:

   error:
   ...eXt/tex/texmf-context/tex/context/base/mkiv/font-otj.lua:1205:
   attempt to index local 'i' (a nil value)
   tex error   > tex error on line 7 in file
   C://Users/rik/Desktop/comp_body.tex: ?

Code:

   \setupdirections [bidi=global]
   \definefont [hebrew] [default] [lang=heb,ccmp=yes,script=hebr]
   \definefont [Hebrew] [sileotsr*hebrew sa .9]
   \starttext
 \startparagraph
  Hebrew : {\Hebrew רִ}
 \stopparagraph
   \stoptext

When the first line is removed, or the value of bidi changed to on, no 
error is thrown.


A single-font version of the code, for fonts that have Hebrew glyphs, 
fails with some fonts (libertine shown below), but works with others, 
for example, dejavu sans.


Code:

   \setupdirections [bidi=global]
   \setupbodyfont[libertine]
   \starttext
 \startparagraph
  Hebrew : רִ
 \stopparagraph
   \stoptext

My installation, or is this a bug?

--
Rik Kabel

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] RTL-related bug in \startcolumns

2016-04-30 Thread Mohammad Hossein Bateni
Hello,

In RTL text, I use direction=left to mirror the columns.  I just noticed
that surprisingly section numbering will not be correct.  See the MWE
below, where I get "2 First" at the top of the right column and then "1
Second" in the middle of the left column.  The correct numbering should be
"1 First" and "2 Second."

\starttext
\startcolumns[n=2,direction=left]
\section{First}
\input knuth

\section{Second}
\input ward
\stopcolumns
\stoptext

Produced using context version 2016.04.27 10:18.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] custom cite in \externalfigure

2016-04-30 Thread eidenbenz
Could somebody explain me why this (the part that is commented) doesn't work?
I get the following error:

tex error   > tex error on line 0 in file : ! Emergency stop
<*> cont-yes.mkiv

*** (job aborted, no legal \end found)



Thanks Michael


---


\startbuffer[duane]

@image {tug2014,
title   = "TUG 2014",
url = "http://tug.org/tug2014/;,
url_image   = "http://tug.org/art/tug2014-color.jpg;,
url_thumb   = "http://tug.org/tug2014/t2014-thumb.jpg;,
description = "Official drawing of the TUG 2014 conference",
author  = "Duane Bibby",
year= 2014,
}

\stopbuffer

\definebtxdataset
 [duane]

\usebtxdataset
 [duane]
 [duane.buffer]

\usebtxdefinitions  
 [duane]

\definebtxrendering
[duane]
[dataset=duane,
 method=local, 
]

\setupbtxlist
[duane]
[number=no]

\startsetups btx:duane:list:image
  \btxfield{title} 
\stopsetups

\startsetups btx:duane:cite:external
   {\externalfigure[\btxfield{url_image}][width=10cm]}
\stopsetups

\startsetups btx:duane:cite:filename
   {\btxfield{url_image}}
\stopsetups

\starttext

   \cite[filename][duane::tug2014]\par
   \cite[external][duane::tug2014]\par
   
   % Why does this not work?
   %\externalfigure[\cite[filename][duane::tug2014]][width=10cm]\par
   
   \placebtxrendering[duane]

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] typesetting content of attribute

2016-04-30 Thread Meer, Hans van der

On 30 Apr 2016, at 19:08, Hans Hagen > 
wrote:

On 4/30/2016 3:28 PM, Meer, Hans van der wrote:
The aim is to typeset a TeX-command given in an attribute on an xml node.
Example
...
\xmlatt{#1}{style}
...
where the node has


The problem is that this produces the macrotext\bf and does not execute
the \bf.
I guess that the catcoderegime is not that of TeX here.
With what (magical) incantation to do this?

Nb. I know that here I could have coded 'bf" and called with
\csname..\endcsname, but this is but a simple example and would not work
for '\it\bf', etc.

\starttexcode \stoptexcode


Either I am doing something the wrong way, or it isn't that simple. See the 
example and its output.

Hans van der Meer


% failure to typeset attribute.
\startxmlsetups demo:texatt
\xmlsetsetup{#1}{root|node}{demo:texatt:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo:texatt}
\startxmlsetups demo:texatt:root
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups demo:texatt:node
node: attribute textstyle = \xmlchainatt{#1}{textstyle}\crlf
now use \tex{it}:
{\starttexcode
\xmlchainatt{#1}{textstyle}"should be italic"
\stoptexcode
}\crlf
\stopxmlsetups
\startbuffer[texatt]



\stopbuffer
\starttext
\xmlprocessbuffer{demo}{texatt}{}
\stoptext





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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] typesetting content of attribute

2016-04-30 Thread Hans Hagen

On 4/30/2016 3:28 PM, Meer, Hans van der wrote:

The aim is to typeset a TeX-command given in an attribute on an xml node.
Example
...
\xmlatt{#1}{style}
...
where the node has


The problem is that this produces the macrotext\bf and does not execute
the \bf.
I guess that the catcoderegime is not that of TeX here.
With what (magical) incantation to do this?

Nb. I know that here I could have coded 'bf" and called with
\csname..\endcsname, but this is but a simple example and would not work
for '\it\bf', etc.


\starttexcode \stoptexcode

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with Quran KFGQPC Uthman Taha Naskh font

2016-04-30 Thread Hans Hagen

On 4/29/2016 12:00 PM, Mohammad Hossein Bateni wrote:

Actually the MWE may help:

\usemodule[simplefonts]
\setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic]
\setcharacterstripping[1]

\setupdirections[bidi=on,method=one]
\setupalign[r2l]

\starttext
\tfb

الْحَمْدُ

\stoptext


i made a fix but as i'm on a very slow line i'm not sure when an update 
is on the garden


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] typesetting content of attribute

2016-04-30 Thread Meer, Hans van der
The aim is to typeset a TeX-command given in an attribute on an xml node.
Example
...
\xmlatt{#1}{style}
...
where the node has


The problem is that this produces the macrotext \bf and does not execute the 
\bf.
I guess that the catcoderegime is not that of TeX here.
With what (magical) incantation to do this?

Nb. I know that here I could have coded 'bf" and called with 
\csname..\endcsname, but this is but a simple example and would not work for 
'\it\bf', etc.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___