Re: [NTG-context] pgfplots broken?

2014-11-05 Thread luigi scarso
On Wed, Nov 5, 2014 at 8:42 AM, Akira Kakuto kak...@fuk.kindai.ac.jp
wrote:

 Dear Mikael,

 An example from PGFPlots Gallery.
 Please try if it works. Here on windows, it seems to work.
 Attached files are tt.log.txt and tt.pdf.

 Best,
 Akira

 %
 % tt.tex: from PGFPlots Gallery
 %
 \setupcolors[state=start]
 \usemodule[tikz]
 \usemodule[pgfplots]

 \starttext

 \midaligned{%
 \starttikzpicture
 \startaxis[
 xmin=-3, xmax=3,
 ymin=-3, ymax=3,
 extra x ticks={-1,1},
 extra y ticks={-2,2},
 extra tick style={grid=major},
 ]
 \draw[red] \pgfextra{
 \pgfpathellipse{\pgfplotspointaxisxy{0}{0}}
 {\pgfplotspointaxisdirectionxy{1}{0}}
 {\pgfplotspointaxisdirectionxy{0}{2}}
 % see also the documentation of
 % 'axis direction cs' which
 % allows a simpler way to draw this ellipse
 };
 \draw[blue] \pgfextra{
 \pgfpathellipse{\pgfplotspointaxisxy{0}{0}}
 {\pgfplotspointaxisdirectionxy{1}{1}}
 {\pgfplotspointaxisdirectionxy{0}{2}}
 };
 \addplot [only marks,mark=*] coordinates { (0,0) };
 \stopaxis
 \stoptikzpicture
 }

 \stoptext

it's ok with TL 2014 (and the latest luatex from experimental),
that has
\def\pgfversion{3.0.0}
and it should be the
http://sourceforge.net/projects/pgf/



but
downloading the pgf module from  the garden


lua errorerror on line 75 in file
/opt/luatex/standalone-mkiv-new-I/tex/texmf/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex:

...iv-new-I/tex/texmf-context/tex/context/base/util-lib.lua:246: module
'pgfluamath.functions' not found:
no field package.preload['pgfluamath.functions']
no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua'
no file './pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/pgfluamath.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath.so'
stack traceback:
[C]: in function 'savedrequire'
...iv-new-I/tex/texmf-context/tex/context/base/util-lib.lua:246: in
function 'require'
[\directlua]:1: in main chunk

65   \let\pgfutil@directlua\directlua
66   \pgfutil@directlua{%
67 tex.enableprimitives('pgfutil@',{'luaescapestring'})}
68 \else
69   \def\pgfutil@directlua#1{}
70   \def\pgfutil@luaescapestring#1{}
71 \fi
72
73 \pgfutil@directlua{%
74   pgfluamathfunctions = require(pgfluamath.functions)
75 pgfluamathparser = require(pgfluamath.parser)}
76
77
78 % Patch some configuration macros such that the modifications are
79 % available in LUA as well:
80 \pgfkeys{
81  /pgf/trig format/deg/.add
code={}{\directlua{pgfluamathfunctions.setTrigFormat(deg)}\aftergroup\pgfmath@settrigformat
},
82  /pgf/trig format/rad/.add
code={}{\directlua{pgfluamathfunctions.setTrigFormat(rad)}\aftergroup\pgfmath@settrigformat
},
83 }
84 % ... and reactivate the key:
85 \pgfmathiftrigonometricusesdeg{%

and
\def\pgfversion{3.0.0-cvs}

So it seems that the cvs version is not ok with ctx
and I think that these
74   pgfluamathfunctions = require(pgfluamath.functions)
75 pgfluamathparser = require(pgfluamath.parser)}
are also wrong in Lua .


-- 
luigi
___
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] Strange behavior with the command \color[]{}

2014-11-05 Thread Hans Hagen

On 11/4/2014 8:28 PM, Fabrice wrote:

Hi,
The problem is the \setupTABLE [column] [1] [[width = 4cm, align =
{right, lohi}, frame = on,
FrameColor = H1prime].
We must not put FrameColor = H1prime.


indeed, no spaces ...

width = 4cm

will not set width but width 

and it will set it to  4cm which is a valid dimension as when tex 
scans it it gobbles spaces


 H1prime as color could work in some cases when a color with a space 
in the name is defined


spaces after commas are ignores

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] Font Sizing in Layers

2014-11-05 Thread Hans Hagen

On 11/5/2014 6:17 AM, jdh wrote:


I wanted to change character sizes in a letter head but the \tfa...
macro doesn't work.

Here is a minimum example   See how the letter head does not give larger
fonts as requested with the \tfc{}  command.  See the difference
with the table in the body of the letter.


probably the most minimal example so far

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] Font Sizing in Layers

2014-11-05 Thread Henning Hraban Ramm
Am 2014-11-05 um 11:17 schrieb jdh dhen...@gmail.com:

 I wanted to change character sizes in a letter head but the \tfa... macro 
 doesn't work.
 
 Here is a minimum example   See how the letter head does not give larger 
 fonts as requested with the \tfc{}  command.  See the difference with the 
 table in the body of the letter.

Try {\tfa …} instead \tfa{…}


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Natural tables introduces spaces in \type

2014-11-05 Thread Hans Hagen

On 11/5/2014 8:09 AM, Christoph Reller wrote:

  On 11/2/2014 2:27 PM, Christoph Reller wrote:
   Hi,
  
   Why does \type{...} introduce spaces when used inside natural tables?
  
   MWE:
  
   \starttext
   \type{\test\test} %- no space introduced
   \bTABLE
   \bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced
   \eTABLE
   \stoptext
 
  it's the way tex works (when passing arguments) .. you can use this (and
  wikify it):
 
  \definetype[ctype][compact=absolute]
 
  \bTABLE
   \bTR \bTD \ctype{\test\test} \eTD \eTR
  \eTABLE

Thank you very much Hans!

Maybe you could tell me why the following still produces a space in
front of the full stop:

\definetype[ctype][compact=absolute]
\starttext
\bTABLE
   \bTR \bTD \ctype{\test.txt} \eTD \eTR
\eTABLE
\stoptext


because the absolute cleaner only deals with \foo { and \foo [


If this issue is resolved I will be glad to wikify.


i'll add the . to the filter criteria

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] Problem with PDF bookmarks (outline)

2014-11-05 Thread Michał Goliński

W dniu 2014-11-04 20:00, Robert Blackstone napisał(a):

On 4 Nov 2014, at 15:27 , Michał Goliński golin...@amu.edu.pl  wrote


A few weeks back I've asked here about the structure of titles, as the
PDF bookmarks didn't work for me. I was given a solution, which should
work, but unfortunately it doesn't. I don't know if this is a bug or 
is

this expected behaviour.

For the file:

\setupinteraction[state=start]
\placebookmarks[part,chapter,section]
\setupinteractionscreen[option=bookmark]
\starttext
\placecontent

\startfrontmatter
 \startchapter[title=Prologue]
 \input knuth
 \stopchapter
\stopfrontmatter

\startpart[title={Part A}]
  \startchapter[title=One]
  \input knuth
  \stopchapter
\stoppart

\startbackmatter
 \startchapter[title=Epilogue]
 \input knuth
 \stopchapter
\stopbackmatter
\stoptext


ConTeXt (Mk IV) generates a PDF file which has only one item in the
bookmarks -- the Prologue. The other chapters show up only if the file
is changed with

\placebookmarks[chapter,section]

but then of course there is no sign of Part A in the bookmarks.

I would expect the bookmarks to look like this:

Prologue
Part A
  One
Epilogue


Hi,
I think it is a  very recent bug. Only the standalone I installed
today gives the same wrong result that you get.
My previous standalones, of which the most recent was installed two
days ago, on  november 2, all give the correct result. That is, the
bookmarks look OK but Part A starts on empty page 3 (no head) and
Chapter 1 starts on page 4.
Is that really what you want?


Best regards,
Robert Blackstone


The file I am really trying to compile has also:

\setuphead[part][placehead=yes]

I've stripped that when making an MWE as it doesn't change the behaviour 
of the bookmarks.


I am quite sure, that the problem was in beta much older than few days 
(although I do not update daily, so it might have been ok in between). 
The behaviour is the same in TeXLive 2014.




Tangentially related problem. The table of contents in the file differs 
between the two versions (beta and TeXLive), in TeXLive I get:


Prologue
1 Part A
1.1 One
Epilogue

and in beta with the same file I get only:

1 Part A
1.1 One

Regards
Michał
___
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] pgfplots broken?

2014-11-05 Thread Mikael P. Sundqvist
On Wed, Nov 5, 2014 at 8:42 AM, Akira Kakuto kak...@fuk.kindai.ac.jp wrote:
 Dear Mikael,

 An example from PGFPlots Gallery.
 Please try if it works. Here on windows, it seems to work.
 Attached files are tt.log.txt and tt.pdf.

 Best,
 Akira


Dear Akira,

since loading the package generates the error, this example does not
work either. I guess (hope) that the clash in version or what it is
will be resolved soon.

/Mikael
___
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] pgfplots broken?

2014-11-05 Thread Hans Hagen

On 11/5/2014 10:28 AM, Mikael P. Sundqvist wrote:

On Wed, Nov 5, 2014 at 8:42 AM, Akira Kakuto kak...@fuk.kindai.ac.jp wrote:

Dear Mikael,

An example from PGFPlots Gallery.
Please try if it works. Here on windows, it seems to work.
Attached files are tt.log.txt and tt.pdf.

Best,
Akira



Dear Akira,

since loading the package generates the error, this example does not
work either. I guess (hope) that the clash in version or what it is
will be resolved soon.


the pgf file structure is just wrong, if you run this you can see where 
is searched:


\starttext
\startluacode
package.helpers.trace = true
io.savedata(foo.bar.lua,[[print(hello)]])
require (foo.bar)
\stopluacode
\stoptext

so, if you want to

  require(foo.bar.whatever

it should be e.g.:

 tex/generic/foo/bar/whatever.lua

when kpse is plugged into the package loader it might find 
foo.bar.whatever.lua but context is not going to support that lookup; in 
that case


dofile(resolvers.findfile(foo.bar.whatever.lua))

has to be used.

Also keep in mind that dot separated filenames can conflict with module 
initialization functions (e.g. when you have foo.core.lua it would load 
foo and initialize using the core function in it). The require 
functionality is already messy enough and adding all kind of catches to 
it would make it worse.


(Context already has an extended and quite extensive loader, including 
versions external libraries and so but that's another story.)


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] pgfplots broken?

2014-11-05 Thread Keith J. Schultz
Hi Mikeal, Hans, All,

This is indeed strange as I can confirm that the code works with TeXLive 2014.

I checked my latest Standalone updates this morning.
I am running it on a MacBook Pro with clean installed Yosemite and latest
Xcode. I use TeXShop to use TeX, et al. 

The files are indeed there:

/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua

and

/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua
/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua

interesting parts of log file from standalone run:

mtx-context | warning: synctex is enabled
mtx-context | run 1: luatex 
--fmt=/Users/quayjay/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --jobname=Ohne-Titel1 
--lua=/Users/quayjay/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --synctex=1 --c:autogenerate --c:currentrun=1 
--c:fulljobname=./Ohne-Titel1.tex --c:input=./Ohne-Titel1.tex 
--c:kindofrun=1 --c:maxnofruns=8 --c:synctex=1 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) 
 \write18 enabled.
open source  1  1  
/Users/quayjay/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
job  passes  version mismatch: 1.25  1.27

ConTeXt  ver: 2014.11.04 19:10 MKIV beta  fmt: 2014.11.5  int: english/english

[snip, snip]

open source  5  70  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/pgfplotscore.code.tex
open source  6  71  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex
Package pgfplots notification 'compat/show suggested version=true': document 
has been generated with the most recent feature set 
(\pgfplotsset{compat=\mostrecent }).

close source 6  71  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex
close source 5  71  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/pgfplotscore.code.tex

[snip, snip]

open source  6  75  
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex

lua errorerror on line 75 in file 
/Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex:

.../context/tex/texmf-context/tex/context/base/util-lib.lua:246: module 
'pgfluamath.functions' not found:
no field package.preload['pgfluamath.functions']
no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua'
no file './pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/pgfluamath.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath.so'
stack traceback:
[C]: in function 'savedrequire'
.../context/tex/texmf-context/tex/context/base/util-lib.lua:246: in 
function 'require'
[\directlua]:1: in main chunk


1) I can not be sure that the pgfplot notification has anything to do with our 
problem. But, I doubt it.

2)  no field package.preload['pgfluamath.functions']
 Now, this msg does give me concern, they should have been preloaded or am 
I missing something!

3) I look at the different versions of pgfluamath,functions.lua
   and noticed then has been new logic introduced. So, the problem
   might be a programmers error from PGF-code somewhere. 

Personally, I do not think this is a problem with ConTeXt not finding files, but
a problem in the PGF-Code itself. That is some tables are not being set up 
right.


Hope this helps.

Keith J. Schultz
  
 
 Am 04.11.2014 um 16:32 schrieb Hans Hagen pra...@wxs.nl:
 
 On 11/4/2014 12:42 PM, Mikael P. Sundqvist wrote:
 Hi, pgfplots seems broken with the latest standalone.With the example
 
 \usemodule[pgfplots]
 \starttext
 Foo
 \stoptext
 
 Is there a pgfluamath.* file on the system?
 
 Hans
 
 
 Best regards, Mikael
 
 lua errorerror on line 75 in file
 /opt/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex:
 
 .../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:246:
 module 'pgfluamath.functions' not found:
 no field package.preload['pgfluamath.functions']
 no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua'
 no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua'
 no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua'
 

Re: [NTG-context] Problem with PDF bookmarks (outline)

2014-11-05 Thread Gareth Jones
On 04/11/14 19:00, Robert Blackstone wrote:
 Hi, 
 I think it is a  very recent bug. Only the standalone I installed  today 
 gives the same wrong result that you get.

The PDF index seems broken this week for me too.  Last Monday’s build
generated the bookmarks properly, but this week there are none.  The
set-ups I’m using are:

\pdfcompresslevel=9
\mainlanguage [en-gb]
\setupinteraction
[
state=start,
title={...},
author={Gareth Jones},
color=black,
style=normal,
]
\setupinteractionscreen [option=bookmark]
\placebookmarks [all]
% Some font stuff trimmed.
\definehead [spec] [title] [style=\tfd, alternative=middle]
\definehead [phase]   [section]   [style=\ss\bfc]
\definehead [feature] [subsection][style=\ss\bfb]
\definehead [changes] [subsubsection] [style=\ss\tfa]
\definedescription [change] [width=3.6cm]
\starttext

Previously all but the spec/title header were bookmarked.

I’ve no idea if this is in any way related to Michał’s problem though.

Thanks,
Gareth
___
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 PDF bookmarks (outline)

2014-11-05 Thread Hans Hagen

On 11/5/2014 10:34 AM, Michał Goliński wrote:

W dniu 2014-11-04 20:00, Robert Blackstone napisał(a):

On 4 Nov 2014, at 15:27 , Michał Goliński golin...@amu.edu.pl  wrote


A few weeks back I've asked here about the structure of titles, as the
PDF bookmarks didn't work for me. I was given a solution, which should
work, but unfortunately it doesn't. I don't know if this is a bug or is
this expected behaviour.

For the file:

\setupinteraction[state=start]
\placebookmarks[part,chapter,section]
\setupinteractionscreen[option=bookmark]
\starttext
\placecontent

\startfrontmatter
 \startchapter[title=Prologue]
 \input knuth
 \stopchapter
\stopfrontmatter

\startpart[title={Part A}]
  \startchapter[title=One]
  \input knuth
  \stopchapter
\stoppart

\startbackmatter
 \startchapter[title=Epilogue]
 \input knuth
 \stopchapter
\stopbackmatter
\stoptext


ConTeXt (Mk IV) generates a PDF file which has only one item in the
bookmarks -- the Prologue. The other chapters show up only if the file
is changed with

\placebookmarks[chapter,section]

but then of course there is no sign of Part A in the bookmarks.

I would expect the bookmarks to look like this:

Prologue
Part A
  One
Epilogue


Hi,
I think it is a  very recent bug. Only the standalone I installed
today gives the same wrong result that you get.
My previous standalones, of which the most recent was installed two
days ago, on  november 2, all give the correct result. That is, the
bookmarks look OK but Part A starts on empty page 3 (no head) and
Chapter 1 starts on page 4.
Is that really what you want?


Best regards,
Robert Blackstone


The file I am really trying to compile has also:

\setuphead[part][placehead=yes]

I've stripped that when making an MWE as it doesn't change the behaviour
of the bookmarks.

I am quite sure, that the problem was in beta much older than few days
(although I do not update daily, so it might have been ok in between).
The behaviour is the same in TeXLive 2014.



Tangentially related problem. The table of contents in the file differs
between the two versions (beta and TeXLive), in TeXLive I get:

Prologue
1 Part A
1.1 One
Epilogue

and in beta with the same file I get only:

1 Part A
1.1 One


bookmarks assume some hierarchical structure and the parts mixed with no 
parts and sections confuses it ... i can have a look at it but not today


-
  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] Problem with PDF bookmarks (outline)

2014-11-05 Thread Alan BRASLAU
On Wed, 5 Nov 2014 12:36:38 +0100
Hans Hagen pra...@wxs.nl wrote:

 bookmarks assume some hierarchical structure and the parts mixed with
 no parts and sections confuses it ... i can have a look at it but not
 today

I use parts, not chapters in frontmatter/backmatter
when using parts in bodymatter.

Alan
___
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 PDF bookmarks (outline)

2014-11-05 Thread Hans Hagen

On 11/5/2014 10:34 AM, Michał Goliński wrote:

W dniu 2014-11-04 20:00, Robert Blackstone napisał(a):

On 4 Nov 2014, at 15:27 , Michał Goliński golin...@amu.edu.pl  wrote


A few weeks back I've asked here about the structure of titles, as the
PDF bookmarks didn't work for me. I was given a solution, which should
work, but unfortunately it doesn't. I don't know if this is a bug or is
this expected behaviour.

For the file:

\setupinteraction[state=start]
\placebookmarks[part,chapter,section]
\setupinteractionscreen[option=bookmark]
\starttext
\placecontent

\startfrontmatter
 \startchapter[title=Prologue]
 \input knuth
 \stopchapter
\stopfrontmatter

\startpart[title={Part A}]
  \startchapter[title=One]
  \input knuth
  \stopchapter
\stoppart

\startbackmatter
 \startchapter[title=Epilogue]
 \input knuth
 \stopchapter
\stopbackmatter
\stoptext


ConTeXt (Mk IV) generates a PDF file which has only one item in the
bookmarks -- the Prologue. The other chapters show up only if the file
is changed with

\placebookmarks[chapter,section]

but then of course there is no sign of Part A in the bookmarks.

I would expect the bookmarks to look like this:

Prologue
Part A
  One
Epilogue


Hi,
I think it is a  very recent bug. Only the standalone I installed
today gives the same wrong result that you get.
My previous standalones, of which the most recent was installed two
days ago, on  november 2, all give the correct result. That is, the
bookmarks look OK but Part A starts on empty page 3 (no head) and
Chapter 1 starts on page 4.
Is that really what you want?


Best regards,
Robert Blackstone


The file I am really trying to compile has also:

\setuphead[part][placehead=yes]

I've stripped that when making an MWE as it doesn't change the behaviour
of the bookmarks.

I am quite sure, that the problem was in beta much older than few days
(although I do not update daily, so it might have been ok in between).
The behaviour is the same in TeXLive 2014.



Tangentially related problem. The table of contents in the file differs
between the two versions (beta and TeXLive), in TeXLive I get:

Prologue
1 Part A
1.1 One
Epilogue

and in beta with the same file I get only:

1 Part A
1.1 One


The bookmark mechanism was largely redone so that one could control teh 
list in detail (in lua). It also is possible now to inherit bookmarks 
from included pages from pdf files. In the process some restrictions on 
structure were added, but also some more options.


I'll try to catch this fuzzy structure case (also issuing a message), 
but one option is to add


\setupbookmarks
  [sectionblock=yes]


-
  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] Minimal Working Examples

2014-11-05 Thread Alan BRASLAU
There is always discussion on this list about providing a minimal
working example (MWE). To spawn your creativity, I hereby launch the
official

Minimal Working Example Contest

The contest will award prizes on several categories:
*shortest code
*fastest execution
*shortest code + fastest execution

http://wiki.contextgarden.net/MWE

In the future, new categories may be added.

(Of course, shortest code + largest output is excluded as it is too
easy to write infinite loops...)


Alan
___
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 PDF bookmarks (outline)

2014-11-05 Thread Michał Goliński

W dniu 2014-11-05 14:01, Alan BRASLAU napisał(a):

On Wed, 5 Nov 2014 12:36:38 +0100
Hans Hagen pra...@wxs.nl wrote:


bookmarks assume some hierarchical structure and the parts mixed with
no parts and sections confuses it ... i can have a look at it but not
today


I use parts, not chapters in frontmatter/backmatter
when using parts in bodymatter.

Alan


Thanks to Hans's reply I am able to make it work with the current 
structure.


I am nevertheless curious, how one could change the chapters in 
frontmatter/backmatter to parts without affecting the numbering of later 
parts (or correct the numbering, \decrementnumber[part] doesn't seem to 
work).




I have tried to mimic the chapter style with

\definehead[chapterpart][part][command=\MyFancyChapterStyle, number=no, 
incrementnumber=yes]


And it either disrupts the numbering (incrementnumber=yes) or doesn't 
show up in bookmarks (incrementnumber=no).



I have tried also a ghost part to use around chapters:

\definehead[ghostpart][part][placehead=no, incrementnumber=no]

but turns out it doesn't help:

\startpart[title=First]
\startchapter[title=A]
\stopchapter
\stoppart

\startghostpart
\startchapter[title=Epilogue]
\stopchapter
\stopghostpart

Epilogue is still a child of the First part in the bookmarks.

Regards,

Michał
___
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 PDF bookmarks (outline)

2014-11-05 Thread Hans Hagen

On 11/5/2014 3:36 PM, Michał Goliński wrote:


I am nevertheless curious, how one could change the chapters in
frontmatter/backmatter to parts without affecting the numbering of later
parts (or correct the numbering, \decrementnumber[part] doesn't seem to
work).


the magic words is 'resetset' and you can search for it on the wiki and 
in the test suite .. you can control when gets reset at what level


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] Problem with PDF bookmarks (outline)

2014-11-05 Thread Alan BRASLAU
On Wed, 5 Nov 2014 15:36:38 +0100
Michał Goliński golin...@amu.edu.pl wrote:

 W dniu 2014-11-05 14:01, Alan BRASLAU napisał(a):
  On Wed, 5 Nov 2014 12:36:38 +0100
  Hans Hagen pra...@wxs.nl wrote:
  
  bookmarks assume some hierarchical structure and the parts mixed
  with no parts and sections confuses it ... i can have a look at it
  but not today
  
  I use parts, not chapters in frontmatter/backmatter
  when using parts in bodymatter.
  
  Alan
 
 Thanks to Hans's reply I am able to make it work with the current 
 structure.
 
 I am nevertheless curious, how one could change the chapters in 
 frontmatter/backmatter to parts without affecting the numbering of
 later parts (or correct the numbering, \decrementnumber[part] doesn't
 seem to work).
 

I use

\definestructureresetset [default] [0,0] [1] % do not reset parts and chapters
\setuphead [part]
[
sectionresetset=default,conversion=Romannumerals,
placehead=yes,
bodypartlabel=part, % strange that this must be defined...
]

and in frontmatter the parts do not get numbered,
in bodymatter they get Part I Title ...
in backmatter they do not get numbered.

Bookmarks work fine. Note that only acrobat (now defunct)
is the only reader that I know that handles bookmarks.

Alan
___
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] mail merge in mkiv?

2014-11-05 Thread Jaroslav Hajtmar

Hello Pablo.
I do very often mailmerge using ConTeXt. I do it with my lua library and 
data in my external CSV file. Unfortunately I do not have a manual to 
the my lua library. If you send me a minimal example of how you imagine 
it, I'll send you back solving and my lualibrary too...


Jaroslav Hajtmar

Dne 3.11.2014 20:41, Pablo Rodriguez napsal(a):

Dear list,

I would like to be able to use ConTeXt at work for mail merging. The
issue here is that I don’t have any clue on how to do it with MKIV. I
don’t even know whehter this is possible at all.

BTW, searching for merge at the wiki, I found
http://wiki.contextgarden.net/An_Update_On_Essential_Elements_In_how_can_i_merge_google_plus_and_facebook,
which seems spam to me.

Is there any way to do mail merge with mkiv?

Many thanks for your help,


Pablo


___
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] Strange behavior with the command \color[]{}

2014-11-05 Thread Fabrice

Hi Hans,
For spaces parasites, it is my fault because I copy and paste my code.
However, I do not understand why this code does not work :


\usemodule[tikz]
\usetikzlibrary[calc]
\usetikzlibrary[cd]
\usetikzlibrary[3d]
\usetikzlibrary[arrows.meta]
\usetikzlibrary[positioning]



\definecolor[H1][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]




\tikzset{%
  cube join/.style={
thick, -{Stealth},
  },
  cube face/.style={
minimum size=1cm, outer sep=0pt,
draw=white, thick, line join=round,
shading=ball,
text=white,
  },
  face color/.style={cube face/.append style={ball color=#1}},
  pics/cube/.style args={#1 with #2}{
  code={
\node [cube face, label={[name=-label]below:#2}] (-front) {#1};
\node [cube face] (-top)  at (-front.north west) [anchor=south west,
xslant=1, yscale=1/3] {};
\node [cube face] (-side) at (-front.south east) [anchor=south west,
yslant=1, xscale=1/3] {};
   }}
}



\starttext

\startsetups[table:initialize]
  \setupTABLE[height=2.5cm,align={middle,lohi}]
\setupTABLE[column][2][[width=3cm,align={right,lohi},frame=off]
\setupTABLE[column][3][[width=8cm,align={right,lohi},frame=off]
  \setupTABLE[1][1][[width=5cm,align={right,lohi},frame=off]
  \setupTABLE[1][2,3][bottomframe=off]
  \setupTABLE[1][3,4][topframe=off]
\stopsetups
\bTABLE[setups=table:initialize]
\switchtobodyfont[11pt]
\bTR \bTD \color[orange]{\tfa Suite d'instructions 
correspondant au
programme de calcul :} \eTD \bTD \eTD \bTD \color[orange]{\tfa Valeur 
de la

variable $X$ après l'exécution de chaque instruction :} \eTD \eTR
\bTR
\bTD $X$ prend la valeur $7$ \eTD \bTD \dontleavehmode 
\startMPcode

input hvdm;
l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled
0.4mm; arrowline (0cm,0cm)--(3cm,0cm) withcolor blue ;\stopMPcode \eTD
\bTD On affecte à $X$ la valeur $7$ : la valeur de $X$ est
\color[green]{$7$}. \eTD
\eTR
\bTR
\bTD $X$ prend la valeur $2X$ \eTD \bTD \dontleavehmode
\startMPcode input hvdm;
l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled
0.4mm; arrowline (0cm,0cm)--(3cm,0cm) withcolor red ;\stopMPcode\eTD
\bTD On affecte à $X$ la valeur $2X$.\\Comme la valeur de $X$ est
\color[green]{$7$}, la nouvelle valeur de $X$ est :
$2\times\color[green]{7}$.\\La valeur de $X$ est maintenant
\color[green]{$14$}.
 \eTD
\eTR
\bTR
\bTD $X$ prend la valeur $X+3$ \eTD \bTD \dontleavehmode
\startMPcode input hvdm;
l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled
0.4mm; arrowline (0cm,0cm)--(3cm,0cm) withcolor green ;\stopMPcode\eTD
\eTR
\bTD On affecte à $X$ la valeur $X+3$.\\Comme la valeur de $X$ est
\color[green]{$14$}, la nouvelle valeur de $X$ est :
$\color[green]{14}+3$.\\La valeur de $X$ est maintenant 
\color[green]{$17$}.

 \eTD
\eTABLE{}

\startsetups[table:initialize]
  \setupTABLE[height=2cm,align={middle,lohi}]
\setupTABLE[column][1][[width=4cm,align={right,lohi},frame=on,framecolor=H1]
\setupTABLE[column][2][[width=5cm,align={middle,lohi},frame=off]
\setupTABLE[column][3][[width=1cm,align={middle,lohi},frame=off]
\setupTABLE[column][4][[width=9cm,align={right,lohi},frame=off]
  \setupTABLE[1][1][frame=off]
  \setupTABLE[1][2,3][bottomframe=off]
  \setupTABLE[1][3,4][topframe=off]
\stopsetups
\bTABLE[setups=table:initialize]
\switchtobodyfont[10pt]
\bTR
\bTD \color[red]{ Suite d'instructions :} \eTD
\bTD \eTD
\bTD \eTD
 \bTD \color[orange]{ Valeur de la variable $A$  et valeur de la variable
$B$ après l'exécution de chaque instruction :}\eTD
\eTR
\bTR
\bTD $A$ prend la valeur $3$ \eTD
\bTD
\starttikzpicture
\pic [cube face/.append style={ball color=green}] at (-1, 1) {cube=3  with
$A$};\pic [cube face/.append style={ball color=red}] at ( 1, 1) {cube={}
with $B$};

\stoptikzpicture
 \eTD
\bTD
\dontleavehmode \startMPcode input hvdm;
l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled
0.4mm; arrowline (1cm,0cm)--(0cm,0cm)  ;\stopMPcode
\eTD
\bTD La valeur de $A$ est \color[green]{3} et $B$  n'a pas encore de 
valeur

\eTD
\eTR
\bTR
\bTD $B$ prend la valeur $A+1$ \eTD
\bTD
\starttikzpicture
\pic [cube face/.append style={ball color=green}] at (-1, 1) {cube=3  with
$A$};
\pic [cube face/.append style={ball color=red}] at ( 1, 1) {cube=4 with
$B$};
\stoptikzpicture
\eTD
\bTD
\dontleavehmode \startMPcode input hvdm;
l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled
0.4mm; arrowline (1cm,0cm)--(0cm,0cm)  ;\stopMPcode
\eTD
\bTD Comme la valeur de $A$ est \color[green]{$3$}, la valeur de $B$ est :
$\color[geen]{3}+1$, soit \color[red]{$4$}.\\La valeur de $A$ ne 
change pas

: elle reste égale à \color[green]{$3$}.\eTD
\bTR
\bTD $A$ prend la valeur $A+B$ 

[NTG-context] fallback font not displaying

2014-11-05 Thread Alan Bowen
In the latest beta (ConTeXt  ver: 2014.11.04 19:10 MKIV), when I run

\definefallbackfamily[mainface][serif][IFAO Grec Unicode]
[range={02BB-F8FF,10140-1D513},
protrusion=quality,
expansion=quality,
mode=node,
  kern=yes,
force=yes,
check=no,
rscale=0.95]

\setupbodyfont[mainface,10pt]

\definefont[Greek][IFAO-Grec at 10pt]

\starttext
 ἔφεϲιϲ and τελειότηϲ

 {\Greek ἔφεϲιϲ and τελειότηϲ}
\stoptext

the fallback Greek does not display. All I get is:

and
 ἔφεϲιϲ and τελειότηϲ

This definition of \definefallbackfamily used to work. Has there been a
change in the font mechanism?

Alan
___
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] Natural tables introduces spaces in \type

2014-11-05 Thread Christoph Reller
On 11/5/2014 10:28 AM, Hans Hagen wrote:
 On 11/5/2014 8:09 AM, Christoph Reller wrote:
  Thank you very much Hans!
 
  Maybe you could tell me why the following still produces a space in
  front of the full stop:
 
  \definetype[ctype][compact=absolute]
  \starttext
  \bTABLE
 \bTR \bTD \ctype{\test.txt} \eTD \eTR
  \eTABLE
  \stoptext

 because the absolute cleaner only deals with \foo { and \foo [

  If this issue is resolved I will be glad to wikify.

 i'll add the . to the filter criteria

Thank you for the explanation.  I am not sure if it is a wise idea to add
only . (the full stop).  I tried the following characters, and they all
are preceded by a space:

  . - _ # % , ; @ !

Basically, what I want is to write a file system path name such as
C:\Path_to-my\file.ext.  The above characters are all valid file system
characters.  Is there a better solution?  Or are you willing to add all the
above (maybe except for # and %) to the absolute cleaner?

Thank you in advance for your help.

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