Re: [NTG-context] Spurious registers log entry?

2015-03-30 Thread Rik Kabel

On 2015-03-29 17:47, Rik Kabel wrote:

The following code:

\setupregister[index][n=1]
\starttext
\index{A}\index{A+A}AA\seeindex{AA}{A+A}.
\placeindex
\stoptext

generates the following log entry.

structure   > registers > invalid see entry in register
'index', reference 'AA'

No similar entry is produced for a non-+ target. This does not appear 
to cause a problem in the output, but the log message
is annoying, and may point to incorrect logic in the source 
(strc-reg.lua).



Nice fix, thank you.

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

[NTG-context] beta

2015-03-30 Thread Hans Hagen

Hi,

I uploaded a new beta (with again a bunch of low level interface 
changes) + some fixed.


Wolfgang: can you check selectfont?

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] string capacity exceeded

2015-03-30 Thread Hans Hagen

On 3/30/2015 11:16 PM, John Culleton wrote:

I get this message in a file where I am using
many external figures:

error on line 1 in file chapter2.tex: ! TeX
capacity exceeded, sorry [input stack size=1]

The wiki says:
In texmf.cnf fix the value that has been reported
as too small...

In texmf.cnf I raised this parameter from 5000 to
15000:

stack_size = 5000   % simultaneous input
sources

But got the same message.

Any hints? Do I need to reboot something to make
this new size be in effect?


context doesn't use texxmf.cnf but after texmfcnf.lua ... after adapting 
that file, run


context --make

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] string capacity exceeded

2015-03-30 Thread John Culleton
I get this message in a file where I am using
many external figures:

error on line 1 in file chapter2.tex: ! TeX
capacity exceeded, sorry [input stack size=1]

The wiki says:
In texmf.cnf fix the value that has been reported
as too small...

In texmf.cnf I raised this parameter from 5000 to
15000:

stack_size = 5000   % simultaneous input
sources

But got the same message.
 
Any hints? Do I need to reboot something to make
this new size be in effect?

Do I need to reduce the size of some of my
external figures?

do I need to split the output pdf file into
multiples? 

Texlive 2014 Slackware Linux 14.1 three 64k
processors
4 gigs memory.

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: "Create Book Covers with
Scribus 1.4.5" coming soon at
http://www.booklocker.com/!
___
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] lua code prevents compilation

2015-03-30 Thread Hans Hagen

On 3/30/2015 5:19 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

\startluacode

 function document.addfunnyhyphen(tfmdata)
 local underscore = utf.byte("_")
 local char   = tfmdata.characters[underscore]
 tfmdata.characters[0xFE000]   = {
 width= 0,
 height   = 0,
 depth= 0,
 commands = {
 { "right", -char.width },
 { "down", char.depth },
 { "slot", 1, underscore },
 }
 }
 end


utilities.sequencers.appendaction("aftercopyingcharacters","after","document.addfunnyhyphen")

\stopluacode


\def\CoverImageFile{}%\externalfigure[TypeWriter][width=\textwidth]}
\definefontfamily[ornamenta][rm][FontAwesome]
\def\CoverImageFont{\scale[width=\textwidth]{\ornamenta }}
\def\CoverImage{\doifsomethingelse{\CoverImageFile}{\CoverImageFile}{\CoverImageFont}}

\starttext
\CoverImage
\stoptext

For some reason unknown to me, the only way to compile the sample is to
remove the luacode snippet.

I need the lua code to have underscore hyphenation in type commands. And
I need two extra \definehyphenationfeatures and \sethyphenationfeatures
to invoke it.

Have I hit a bug or what am I missing?


I don't know as i see nothing at all with that code .. this is more fun:

\startluacode

function document.addfunnyhyphen(tfmdata)
local underscore = utf.byte("_")
local char   = tfmdata.characters[underscore]
tfmdata.characters[0xFE000]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ "right", -char.width },
{ "down", char.depth },
{ "slot", 1, underscore },
}
}
tfmdata.characters[0xFE001]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ "down", char.depth },
{ "slot", 1, underscore },
{ "right", char.width },
}
}
end



utilities.sequencers.appendaction("aftercopyingcharacters","after","document.addfunnyhyphen")

\stopluacode

\setuplanguage[en][righthyphenchar="FE000,lefthyphenchar="FE001]

\starttext
\input tufte
\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] tagging publications

2015-03-30 Thread Hans Hagen

On 3/30/2015 7:12 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:


Yes, I understand that this module is on the way out. That said, would
it be too much trouble to add tags to each publication entry on export,
or at least wrap each one in a \start-stop? I looked in bibl-tra.mkiv
but could not figure out where such a tag should go. Thanks in advance and


maybe in a later release and only after we finished the work

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2015-03-30 Thread Thomas Floeren
On 30 Mar 2015, at 1:36, John Haltiwanger wrote:

> Impressive work!
>

The script has slightly grown in size over time ;-)


-- 
Thomas


___
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] tagging publications

2015-03-30 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

In the current bib module publications are not tagged (see attached and  
below):

==
\setupbackend[export=yes]

\setuppublications[alternative=apa]

\starttext
\startpublication[k=corbin81,
  t=book,
  a=Corbin,
  y=1981,
  s=Corbin81]
\author[]{Henry}[H.]{}{Corbin}
\title{The Concept of Comparative Philosophy}
\pubname{Golgonooza Press}
\city{Ipswich, United Kingdom}
\pubyear{1981}
\stoppublication

\startpublication[k=haq,
  t=book,
  a=Haq,
  y=1994,
  s=Haq94]
\author[]{Syed Nomanul}[S.]{}{Haq}
\title{Names, Natures, and Things}
\pubname{Kluwer}
\city{Dordrecht}
\pubyear{1994}
\stoppublication

\cite[corbin81]

\cite[haq]

\placepublications [criterium=cite] % inherits from \setuppublications

\stoptext
==

(Corbin, 1981)
 
(Haq, 1994)
 
Corbin, H. (1981). The Concept of Comparative Philosophy. Ipswich, United  
Kingdom: Golgonooza Press.Haq, S. (1994). Names, Natures, and Things.  
Dordrecht: Kluwer.


==

As you can see, each publication reference runs into the next without even  
a space after the final period.


Yes, I understand that this module is on the way out. That said, would it  
be too much trouble to add tags to each publication entry on export, or at  
least wrap each one in a \start-stop? I looked in bibl-tra.mkiv but could  
not figure out where such a tag should go. Thanks in advance and


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

test-bib-export.tex
Description: TeX document


test-bib-export-div.xhtml
Description: application/xhtml


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

[NTG-context] lua code prevents compilation

2015-03-30 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startluacode

function document.addfunnyhyphen(tfmdata)
local underscore = utf.byte("_")
local char   = tfmdata.characters[underscore]
tfmdata.characters[0xFE000]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ "right", -char.width },
{ "down", char.depth },
{ "slot", 1, underscore },
}
}
end


utilities.sequencers.appendaction("aftercopyingcharacters","after","document.addfunnyhyphen")

\stopluacode


\def\CoverImageFile{}%\externalfigure[TypeWriter][width=\textwidth]}
\definefontfamily[ornamenta][rm][FontAwesome]
\def\CoverImageFont{\scale[width=\textwidth]{\ornamenta }}
\def\CoverImage{\doifsomethingelse{\CoverImageFile}{\CoverImageFile}{\CoverImageFont}}

\starttext
\CoverImage
\stoptext

For some reason unknown to me, the only way to compile the sample is to
remove the luacode snippet.

I need the lua code to have underscore hyphenation in type commands. And
I need two extra \definehyphenationfeatures and \sethyphenationfeatures
to invoke it.

Have I hit a bug or what am I missing?

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

Re: [NTG-context] Color in an environment

2015-03-30 Thread Fabrice

Hi Wolfgang,
I would first like to express once again my admiration for your 
knowledge and attention that you have to explain clearly.
The code is cleaner, but I want the title ("DÉFINITION :Expérience 
aléatoire") is not in the colored frame, that is to say, as my original 
code.

Best regards,
Fabrice
___
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] Adjusting vertical location of a margin figure

2015-03-30 Thread Wolfgang Schuster

> Am 30.03.2015 um 08:41 schrieb Mari Voipio :
> 
> On Tue, Mar 24, 2015 at 1:41 PM, Wolfgang Schuster
>  wrote:
>> 
>> You can use the \tbox command for the alignment of the graphic.
>> 
>> \setuplayout[backspace=4cm,width=14cm]
>> 
>> \starttext
>> 
>> \inmargin{\tbox{\externalfigure[warning][width=\leftmarginwidth]}}
>> \input tufte
>> 
>> \stoptext
> 
> This is much better, and quite a bit cleaner, too. Thank you Wolfgang!

When you have more graphics in the margin you create a new inmargin
command which always uses the \tbox command for the image.

\setuplayout[backspace=4cm,width=14cm]

\definemargindata[marginfigure][inmargin]
\setupmargindata [marginfigure][command=\tbox]

\starttext

\marginfigure{\externalfigure[warning][width=\leftmarginwidth]}
\input tufte

\stoptext

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
___

Re: [NTG-context] Bug in the latest beta: \frac

2015-03-30 Thread Alan BRASLAU
On Sat, 28 Mar 2015 20:29:15 +0100
Otared Kavian  wrote:

> Hi Hans,
> 
> I just tried the new beta (ConTeXt  ver: 2015.03.28 16:30 MKIV beta
> fmt: 2015.3.28  int: english/english) It gives an error with the
> following minimal example:
> 
> \starttext
> \startformula
> \frac{2}{4}
> \stopformula
> \stoptext
> 
> The error message is:
> \math_frac_command ->\cclf_mathfraction 
> {\mathfractionparameter
> \c!rule }\nu... \math_fraction_inner_normal ...\math_frac_command 
>   {\usemathstyleparameter
> \m... l.3 \frac{2}{4}
> 
> 
> However using \over works fine, as in the following example:
> 
> \starttext
> \startformula
> {1 \over 2}
> \stopformula
> \stoptext

I confirm that $\frac12$ yields an error:


tex error   > error on line 2 in file frac.tex: ! Missing number, treated 
as zero

 
x
\506>:left ->0x
   2E
\math_frac_command ...thfractionparameter \c!left 
  \relax \numexpr
\mathfract... \math_fraction_inner_normal ...\math_frac_command 
  {\usemathstyleparameter
\m... l.2 $\frac12
  $

1 \starttext
2 >>  $\frac12$
3 \stoptext
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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
___