Re: [NTG-context] WARNING: File path includes directory that doesn't exist

2016-07-30 Thread Thangalin
$ inkscape -V
Inkscape 0.92pre1 unknown (Jul 30 2016)

https://launchpad.net/~inkscape.dev/+archive/ubuntu/trunk

I'm not sure if this version of Inkscape is at fault. It'd be cool if
there was a way to specify the SVG to PDF converter program (e.g., to
use rsvg-converter instead) from the command line.
___
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] WARNING: File path includes directory that doesn't exist

2016-07-30 Thread Thangalin
Hi,

Possible problem converting SVG to PDF.

$ context --version

mtx-context | ConTeXt Process Management 0.63
mtx-context |
mtx-context | main context file:
/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2016.07.18 16:46

cd $HOME/test
$ cat test.tex
\setupexternalfigures[
  order={svg,pdf,png},
  location={local,default,global},
  directory={images},
  frameoffset=.5em,
  maxwidth=\makeupwidth,
  width=\makeupwidth,
]

\starttext
\placefigure{}{\externalfigure[images/drawing.svg]}
\stoptext

$ cat images/drawing.svg

http://purl.org/dc/elements/1.1/;
   xmlns:cc="http://creativecommons.org/ns#;
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
   xmlns:svg="http://www.w3.org/2000/svg;
   xmlns="http://www.w3.org/2000/svg;
   id="svg8"
   version="1.1"
   viewBox="0 0 210 297"
   height="297mm"
   width="210mm">
  
  

  
image/svg+xml
http://purl.org/dc/dcmitype/StillImage; />

  

  
  

  


$ context test.tex
... logging ...
** (inkscape:19807): WARNING **: File path
"--export-pdf=/home/username/temp/images/m_k_i_v_drawing.svg.pdf"
includes directory that doesn't exist.
... more logging ...

Work Around

$ cd images
$ inkscape -z drawing.svg
--export-pdf=/home/username/temp/images/m_k_i_v_drawing.svg.pdf
$ cd ..
$ context test.tex

No errors.

Any ideas how to fix, without manually converting each file first?
___
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 tables - how do you cope?

2016-07-30 Thread Hans Hagen

On 7/30/2016 3:04 PM, Joseph Canedo wrote:

If the requirement is to iterate on a table having the keys, values
sorted by key (assuming the keys can be sorted), there are ways to do
this. Please see http://lua-users.org/wiki/SortedIteration for an
example (this just replaces pairs(t) with orderedPairs(t)).


or just in context

for k, v in table.sortedhash(t)
  print(k,v)
end

btw,

mtxrun --script foo.lua

has all that on board as well




Hope this helps



Joseph



*De : *Schmitz Thomas A. 
*Envoyé le :*samedi 30 juillet 2016 12:21
*À : *mailing list for ConTeXt users 
*Objet :*[NTG-context] lua tables - how do you cope?



This is less a specific question about ConTeXt than a hope for good
advice: I’m maltreating my xml files with a mixture of TeX and Lua. I
want to extract and typeset information in different forms, so I first
collect everything in lua tables, rearrange and order these tables and
typeset the results. All fine and dandy. My problem is that I have to
have tables within tables within tables… you get the picture. One aspect
of Lua that is really bugging me is the fact that associative tables
have no order, which can be a pain in the butt for this kind of
operation. So I have to be careful that I have to use constructs that
will keep the order in which items have been added and loop through them
via ipairs() instead of pairs(). I find it difficult to keep track of
what’s inside my layers upon layers of tables. So my question is: how do
those of you who are more experienced with this kind of question
proceed? Do you have any handy tool to visualize a table? Any tips you
want to share?



Thanks a lot!



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

___





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




--

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

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Hans Hagen

On 7/30/2016 11:01 PM, Schmitz Thomas A. wrote:

Thank you, but this is not what I’m looking for. I know how to sort a table, and I 
know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
disorganized). I have to construct deeply nested tables and sometimes lose track of 
what is at what level of my table, so I was wondering if there was an easy way of 
visualizing a nested table. On the web, you can find a number of (mostly abandoned) 
projects; the one at http://siffiejoe.github.io/lua-microscope/ says: "Many Lua 
programmers have written their own pretty-printer or data dumper and some even use 
it for (de-)serializing Lua data structures.” So I was wondering if any of the Lua 
users here on the list has something they want to share.


\startluacode
context.tocontext(yourtable)
\stopluaxcode

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

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Schmitz Thomas A.

> On 30 Jul 2016, at 23:46, Lukas Prochazka  wrote:
> 
> Hello Thomas,
> 
> here is my "dump()" I've been using for several years:

Arthur, Lukas,

these are both great and very helpful, thanks a lot! I feel bad for not knowing 
table.serialize (which can even be used with the context() function to typeset 
the result, and I really like Lukas’ step-by-step breakdown of the table. Maybe 
I’ll try and think of a nice visual way to represent these Lua tables!

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
___

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Lukas Prochazka
Hello Thomas,

here is my "dump()" I've been using for several years:


function dump(arg, opts) -- .seen, .pfx
  if type(opts) == "string" then print(opts); opts = nil
  elseif opts == true then print("-- (dump)"); opts = nil
  end

  local pfx = opts and opts.pfx
  local seen = opts and opts.seen or {}

  if type(arg) == "table" then
if pfx then pfx = pfx .. "]["
else
  pfx = "["
  --seen = {}
end

seen[arg] = tostring(arg) --true

local keys = {}

do
  -- Sort keys, if all are strings

  local strs_only = true

  for k in pairs(arg) do
if strs_only and type(k) ~= "string" then strs_only = false end

keys[#keys + 1] = k
  end

  if strs_only then table.sort(keys) end
end

for _, key in ipairs(keys) do
  local val = arg[key]

  io.write(pfx .. tostring(key) .. "] = " .. tostring(val) .. "\t(" .. 
type(val) .. ")")

  if type(val) == "table" then
if seen[val] then print(" (seen)")
else
  print()

  dump(val, {pfx = pfx .. tostring(key), seen = seen}) --pfx .. 
tostring(key), seen)
end
  else
print()
  end
end
  else
print(arg)
  end
end


Try:


a = {c = 1, b = 2}; a.a = a

dump(a)
dump(a, "This is 'a'.")


Improvements or parametrization of visualizing style would be possible, of 
course... 

Best regards,

Lukas


- Original Message -
From: Schmitz Thomas A. [mailto:thomas.schm...@uni-bonn.de]
To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl]
Sent: Sat, 30 Jul 2016 23:01:29 +0100
Subject: Re: [NTG-context] lua tables - how do you cope?


> Thank you, but this is not what I’m looking for. I know how to sort a table, 
> and I know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
> disorganized). I have to construct deeply nested tables and sometimes lose 
> track of what is at what level of my table, so I was wondering if there was 
> an easy way of visualizing a nested table. On the web, you can find a number 
> of (mostly abandoned) projects; the one at 
> http://siffiejoe.github.io/lua-microscope/ says: "Many Lua programmers have 
> written their own pretty-printer or data dumper and some even use it for 
> (de-)serializing Lua data structures.” So I was wondering if any of the Lua 
> users here on the list has something they want to share.

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
___

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Arthur Reutenauer
On Sat, Jul 30, 2016 at 11:01:29PM +0200, Schmitz Thomas A. wrote:
> Thank you, but this is not what I’m looking for. I know how to sort a table, 
> and I know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
> disorganized). I have to construct deeply nested tables and sometimes lose 
> track of what is at what level of my table, so I was wondering if there was 
> an easy way of visualizing a nested table. On the web, you can find a number 
> of (mostly abandoned) projects; the one at 
> http://siffiejoe.github.io/lua-microscope/ says: "Many Lua programmers have 
> written their own pretty-printer or data dumper and some even use it for 
> (de-)serializing Lua data structures.” So I was wondering if any of the Lua 
> users here on the list has something they want to share.

  Well, there’s table.serialize from the ConTeXt core, which fits nicely
in the description you quote.

Best,

Arthur
___
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 tables - how do you cope?

2016-07-30 Thread Schmitz Thomas A.
Thank you, but this is not what I’m looking for. I know how to sort a table, 
and I know the Lua table tutorial (the Lua wiki is, IMHO, really terrible and 
disorganized). I have to construct deeply nested tables and sometimes lose 
track of what is at what level of my table, so I was wondering if there was an 
easy way of visualizing a nested table. On the web, you can find a number of 
(mostly abandoned) projects; the one at 
http://siffiejoe.github.io/lua-microscope/ says: "Many Lua programmers have 
written their own pretty-printer or data dumper and some even use it for 
(de-)serializing Lua data structures.” So I was wondering if any of the Lua 
users here on the list has something they want to share.

Thomas


> On 30 Jul 2016, at 16:31, Wolfgang Schuster  
> wrote:
> 
>> If the requirement is to iterate on a table having the keys, values sorted 
>> by key (assuming the keys can be sorted), there are ways to do this. Please 
>> see http://lua-users.org/wiki/SortedIteration for an example (this just 
>> replaces pairs(t) with orderedPairs(t)). 
> 
> \starttext
> 
> \startluacode
> 
> local testtable = { z = "A", y = "B", x = "C" }
> 
> for i, j in next, testtable do
> context("%s:%s",i,j)
> context.par()
> end
> 
> context.blank()
> 
> for i, j in table.sortedhash(testtable) do
> context("%s:%s",i,j)
> context.par()
> end
> 
> \stopluacode
> 
> \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] gmane might go off-line soon

2016-07-30 Thread Arthur Reutenauer
> Long story short: the sole maintainer of gmane is getting fed up with ddos 
> attacks and is thinking about terminating the service.

  That’s sad :-(  It really was a great service.  I can’t blame the
maintainer, of course.

> Maybe the approaching end of gmane would be a good motivation to really do 
> this work? 

  Alternatively, Mailman, the mailing list software used by this list,
can be set up to use htdig for searching the archive; that’s what most
lists on tug.org use (see the top of http://tug.org/pipermail/xetex/ for
example).

Best,

Arthur
___
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] inconsistent math fontsize

2016-07-30 Thread Jan Willem Flamma

> On 28 jul. 2016, at 00:46, Hans Hagen  wrote:
> 
> On 7/27/2016 2:29 PM, Jan Willem Flamma wrote:
>> Dear list members
>> 
>> Sofar, I’ve been using \qquad to separate two formulas side-by-side on a 
>> single line.
>> To ensure consistency with spacing I want to change to using a 
>> \startformulas .. \stopformulas construction.
>> See MWE below
>> 
>> However, the solution using the \startformulas .. \stopformulas construction 
>> gives a noticeably smaller fontsize !
>> 
>> I’m using the latest beta: ConTeXt  ver: 2016.07.25; Luatex 0.95
>> 
>> Worth noting that all both fontsizes are identical when using context live 
>> via contextgarden.
>> 
>> Kind regards,
>> Jan Willem Flamma
>> 
>> 
>> MWE:
>> 
>> \starttext
>> 
>> % Printed in normal fontsize
>> \startformula
>>a=\frac{b}{c}
>>\qquad \qquad \qquad
>>a=\frac{b}{c}
>> \stopformula
>> 
>> % Printed in smaller fontsize
>> \startformulas
>>\startformula
>>a=\frac{b}{c}
>>\stopformula
>> 
>>\startformula
>>a=\frac{b}{c}
>>\stopformula
>> \stopformulas
>> 
>> \stoptext
> 
> fixed in next beta

Confirmed okay in ConTeXt  ver: 2016.07.30 00:26 MKIV beta

Thanks for the quick fix.


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

Re: [NTG-context] lua tables - how do you cope?

2016-07-30 Thread Wolfgang Schuster

Joseph Canedo 
30. Juli 2016 um 15:04

If the requirement is to iterate on a table having the keys, values 
sorted by key (assuming the keys can be sorted), there are ways to do 
this. Please see http://lua-users.org/wiki/SortedIteration for an 
example (this just replaces pairs(t) with orderedPairs(t)).




\starttext

\startluacode

local testtable = { z = "A", y = "B", x = "C" }

for i, j in next, testtable do
context("%s:%s",i,j)
context.par()
end

context.blank()

for i, j in table.sortedhash(testtable) do
context("%s:%s",i,j)
context.par()
end

\stopluacode

\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] lua tables - how do you cope?

2016-07-30 Thread Joseph Canedo
If the requirement is to iterate on a table having the keys, values sorted by 
key (assuming the keys can be sorted), there are ways to do this. Please see 
http://lua-users.org/wiki/SortedIteration for an example (this just replaces 
pairs(t) with orderedPairs(t)).

Hope this helps

Joseph

De : Schmitz Thomas A.___
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] (perhaps benign) difference in ebgaramond12-regular.tma after upgrade to 2016.07.30 00:26 beta

2016-07-30 Thread Hans Hagen

On 7/30/2016 2:10 PM, Joseph Canedo wrote:

Hi Hans,



Perhaps completely benign, but a bit strange difference I’ve spotted
(because I log the ligatures of the font I use).



After upgrade to 2016.07.30 00:26 I notice that 1 entry (only one which
is a bit strange, because there are other similar entries in the
description table which were not changed at all) in descriptions table
in ebgaramond12-regular.tma (in
tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/
directory) has changed from



  [983766]={

   ["boundingbox"]=519,

   ["index"]=2684,

   ["name"]="ij.sc",

   ["unicode"]={ 105, 106 },

   ["width"]=570,

  },



To (latest beta)



[983766]={

   ["boundingbox"]=519,

   ["index"]=2684,

   ["name"]="ij.sc",

   ["unicode"]=307,  -- 307 is ij ligature whose unicode = { 105, 106 }

   ["width"]=570,

  },



Is this expected at all ?


harmless ... both should work ok in cut/paste with tounicodes



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

[NTG-context] (perhaps benign) difference in ebgaramond12-regular.tma after upgrade to 2016.07.30 00:26 beta

2016-07-30 Thread Joseph Canedo
Hi Hans,

Perhaps completely benign, but a bit strange difference I’ve spotted (because I 
log the ligatures of the font I use). 

After upgrade to 2016.07.30 00:26 I notice that 1 entry (only one which is a 
bit strange, because there are other similar entries in the description table 
which were not changed at all) in descriptions table in 
ebgaramond12-regular.tma (in 
tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/
 directory) has changed from

  [983766]={
   ["boundingbox"]=519,
   ["index"]=2684,
   ["name"]="ij.sc",
   ["unicode"]={ 105, 106 }, 
   ["width"]=570,
  },

To (latest beta)

[983766]={
   ["boundingbox"]=519,
   ["index"]=2684,
   ["name"]="ij.sc",
   ["unicode"]=307,  -- 307 is ij ligature whose unicode = { 105, 106 }
   ["width"]=570,
  },

Is this expected at all ? 
Thanks a lot

Best regards

Joseph Canedo


___
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] \setupalign (protrusion and expansion) in notes

2016-07-30 Thread Pablo Rodriguez
On 07/30/2016 10:06 AM, Joseph Canedo wrote:
> Had same problem for marginal notes, simply used the align= key to
> specify hanging and hz.
> [...]
> I guess there is similar way to enable protusion and expansion for
> footnotes.

Setups are the way of doing it.

I thought it might be interesting that notes would inherit the setup
from the main text.


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
___

[NTG-context] gmane might go off-line soon

2016-07-30 Thread Schmitz Thomas A.
Hi all (especially the gardeners),

have you seen this post? 
https://lars.ingebrigtsen.no/2016/07/28/the-end-of-gmane/

Long story short: the sole maintainer of gmane is getting fed up with ddos 
attacks and is thinking about terminating the service. If I’m not mistaken, for 
the time being, gmane is the only searchable archive of the context mailing 
list, so this would be a major setback. On the garden, there has been a note 
for five or six years (I think) that work is being done on 
archive.contextgarden.net. Maybe the approaching end of gmane would be a good 
motivation to really do this work? 

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] lua tables - how do you cope?

2016-07-30 Thread Schmitz Thomas A.
This is less a specific question about ConTeXt than a hope for good advice: I’m 
maltreating my xml files with a mixture of TeX and Lua. I want to extract and 
typeset information in different forms, so I first collect everything in lua 
tables, rearrange and order these tables and typeset the results. All fine and 
dandy. My problem is that I have to have tables within tables within tables… 
you get the picture. One aspect of Lua that is really bugging me is the fact 
that associative tables have no order, which can be a pain in the butt for this 
kind of operation. So I have to be careful that I have to use constructs that 
will keep the order in which items have been added and loop through them via 
ipairs() instead of pairs(). I find it difficult to keep track of what’s inside 
my layers upon layers of tables. So my question is: how do those of you who are 
more experienced with this kind of question proceed? Do you have any handy tool 
to visualize a table? Any tips you want to share?

Thanks a lot!

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
___

Re: [NTG-context] Use \framedtext to write an algorithm

2016-07-30 Thread Fabrice Couvreur
Hi Wolfgang,
That's great, I did not know but it's really convenient.
Fabrice

2016-07-29 17:02 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 29. Juli 2016 um 16:43
> I know that Wolfgang wrote a module to reproduce algorithms, but it is in
> English !
> Can we ensure to respect the withdrawal of the text ?
>
> You can use the lines environment with enabled spaces (space=on).
>
> \defineframedtext
>   [algorithmframe]
>   [width=fit,
>background=color,
>backgroundcolor=lightgray,
>framecolor=darkred,
>corner=round]
>
> \definelines
>   [algorithm]
>   [space=on,
>before=\startalgorithmframe,
>after=\stopalgorithmframe]
>
> \starttext
>
> \startalgorithm
> Variables \math{I} et \math{J} entiers
> T tableau d'entiers
> Début
> Pour \math{I} allant de \math{1} à \math{3}
>Pour \math{J} allant de \math{1} à \math{3}
>  Si \math{J>I}
> Alors \math{T[I, J]=J-I}
> Sinon \math{T[I, J]=0}
>  Fin Si
>Fin Pour
> Fin
> \stopalgorithm
>
> \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
>
> ___
>
___
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] \setupalign (protrusion and expansion) in notes

2016-07-30 Thread Pablo Rodriguez
On 07/30/2016 12:01 AM, Hans Hagen wrote:
> On 7/29/2016 10:32 PM, Pablo Rodriguez wrote:
>> Hans,
>> [...]
>> Notes don’t inherit by default the \setupalign values.
>>
>> Wouldn’t it make sense that they share the same align values than the
>> main text, unless other values are specified for notes?
> 
> notes really are a separate stream (and also kind of asynchronous ... 
> what if you change the alignment temporary and a page break occurs in 
> between

I understand that they have to be a separate stream.

Of course, I didn’t mean a partial alignment should be inherited in the
notes. I meant the alignment properties for the whole document.

I don’t know whether it would make sense to add a key/value pair to
\setupalign, such as "notes=inherit".

My question is more an open one than a feature request. I don’t know
whether it might be useful (because there is a lot about text streams in
ConTeXt that I simply don’t know).

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
___