Re: [NTG-context] Dash equivalent of $BASH_SOURCE (for setuptex)

2012-11-22 Thread Hans Hagen

On 11/21/2012 8:28 PM, Peter Münster wrote:

On Wed, Nov 21 2012, Mojca Miklavec wrote:


But Peter's idea is also not that bad. The drawback is that the
distribution cannot be moved to a different directory then, but one
could also have combination of both approaches somehow.


Is it worth the trouble to keep setuptex?
Just saying Please add ... to your PATH should be enough IMO.


I often use it.

-
  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] Dash equivalent of $BASH_SOURCE (for setuptex)

2012-11-22 Thread Taco Hoekwater

On 11/22/2012 10:18 AM, Hans Hagen wrote:

On 11/21/2012 8:28 PM, Peter Münster wrote:

On Wed, Nov 21 2012, Mojca Miklavec wrote:


But Peter's idea is also not that bad. The drawback is that the
distribution cannot be moved to a different directory then, but one
could also have combination of both approaches somehow.


Is it worth the trouble to keep setuptex?
Just saying Please add ... to your PATH should be enough IMO.


I often use it.


Me too, I have quite a bunch of scripts that are distributed to
online servers that do not all have the same architecture.

Best wishes,
Taco

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

2012-11-22 Thread Hans Hagen

Hi,

rsync rsync://10.100.1.2/all -r

work's here (internal ip) .. do you use more than -r ?

--

-
  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] rsync

2012-11-22 Thread Hans Hagen

On 11/22/2012 10:25 AM, Hans Hagen wrote:


work's here (internal ip) .. do you use more than -r ?


sorry, that mail was for taco/mojca not for the list

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] Dash equivalent of $BASH_SOURCE (for setuptex)

2012-11-22 Thread Alan BRASLAU
On Thu, 22 Nov 2012 10:21:28 +0100
Taco Hoekwater t...@elvenkind.com wrote:

 On 11/22/2012 10:18 AM, Hans Hagen wrote:
  On 11/21/2012 8:28 PM, Peter Münster wrote:
  On Wed, Nov 21 2012, Mojca Miklavec wrote:
 
  But Peter's idea is also not that bad. The drawback is that the
  distribution cannot be moved to a different directory then, but one
  could also have combination of both approaches somehow.
 
  Is it worth the trouble to keep setuptex?
  Just saying Please add ... to your PATH should be enough IMO.
 
  I often use it.
 
 Me too, I have quite a bunch of scripts that are distributed to
 online servers that do not all have the same architecture.

Sourcing setuptex (. pathtocontext/setuptex)
will fail to find and thus modify the path under pure Borne shells and their 
equivalents.
It will work just fine under bash, ksh (but sourcing the script will fail 
totally under csh and tcsh).
Executing the script (pathtocontext/setuptex) should run correctly under all 
shells
but will in all cases fail to set the path.

My suggestion is simply to modify the message printed at the end:
In the case of an execution rather than a sourcing, or in the case of sourcing 
under a Borne shell,
the script could instruct the user to manually modify the path. In the other 
case, it could set the path.

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] ConTeXt: Page numbering in words for spanish

2012-11-22 Thread Hans Hagen

On 11/22/2012 12:47 AM, Sietse Brouwer wrote:

Hi Hans,

I think the verbose.spanish code you put in the latest beta broke
verbose.english: after verbose.english is defined, a second `local
verbose = { }` at the start of the spanish code accidentally
overwrites that table.


sure, it was means as standalone example (I normally test that kind of 
code in a lua file that i process with mtxrun - just hit a key in scite 
to run it)



The code below works; as a bonus, it fixes the bug where 900 was


so where is the dutch?

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] beta

2012-11-22 Thread Hans Hagen

Hi Khaled


these virtual versions are essentially the body font counterparts with
lots of display-modifying tweaks piled on to make them behave like
math fonts. These virtual versions were used for a time while the math
fonts were in development.


The virtual counterparts are adaptations of the old TFM/Type1 fonts so
they look like OpenType math fonts to the engine (so that ConTeXt would
move entirely to Unicode/OpenType math while waiting for the real
OpenType fonts).


Which reminds me ... shouldn't we try to get the r2l math symbols into 
the lm/gyre fonts? I don't know how much extra that is in xits, but it 
would be nice to have it.


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] beta

2012-11-22 Thread Hans Hagen

On 11/21/2012 8:10 PM, Sietse Brouwer wrote:


Futher: I see in math-vfu.lua the following comment: There are still
areas where the virtuals are better. Which areas are these?


better hinting is one

there are also some pending symbols in lm/gyre, like combinations of 
extensible stacked arrows (used in chemistry) .. these will be added in 
due time but for the moment I simulate them using virtual glyphs .. 
these are not in unicode but can replace (and already do in context) 
messy macros



The design sized latin modern text font is still the default but one could
already change that by

\setupbodyfont[modern]


And what would you get instead -- 12pt Latin Modern, or something else?


scaled 10pt instead of the many design size instances


-
  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] ConTeXt: Page numbering in words for spanish

2012-11-22 Thread Mojca Miklavec
On Thu, Nov 22, 2012 at 1:03 AM, Acidrums4 wrote:

 * 100 before 'millón' -- should that be 'cien millón', or 'ciento millón'? -
 It should be 'cien millones'. 'Millones', plural for 'Millón'. Maybe it should
 be a variable for plurals for millions (the only plural used for numbers in
 spanish).

Singular and plural don't always suffice.

1M: en milijon
2M: dva milijona
3/4M: [tri|štiri] milijone
5M: pet milijonov

(And then of course, if you want more fun, en milijon, enega
milijona, enemu milijonu, en milijon, enem milijonu, enim
milijonom, dva milijona, dveh milijonov, dvema milijonoma, dva
milijona, dveh milijonih, dvema milijonoma, ...)

I'm not suggesting to implement the forms (declinations) from the last
paragraph, but if you want to introduce separate singular and plural
forms, you might want to support more than just two forms from the
start:

http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/Plural-forms.html

Mojca
___
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] Hiding columns in m-database TABLE

2012-11-22 Thread Marcin Borkowski
Hi all,

I'd like to process a csv file (with the database module) in order to
typeset a (nice) TABLE. However, I have a few columns I'd like to
omit.  I can (of course) hand-edit the csv file; but is there a way to
do it automatically?  Something like

\setupTABLE[column][3,4,5][kill]

I did [empty=yes,width=0pt] in place of [kill], and it worked, but it
seems like a hack (and I don't know whether it does actually process
the cells I'm omitting - which in my case wouldn't bother me, but might
be an additional layer of inelegance;)).  And better ideas?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] ConTeXt: Page numbering in words for spanish

2012-11-22 Thread Sietse Brouwer
Mojca wrote:
 Singular and plural don't always suffice.

Yes ... I was studiously avoiding bringing that up. :-) I suppose one
would end up with separate languages like es-s-m, es-s-f, es-pl-m,
es-pl-f for the converter to invoke. Then es would be a synonym of the
most common form (singular masculin, probably).

Hans wrote:
 so where is the dutch?

I might ask the same of you. :-P Anyway, I've written one up. I'll
post it later, after I've had a chance to adapt it to the structure
you lay out in the new beta.

Acidrums wrote:
 (there's no converters.verbose in my core-con.lua)
What version are you using? converters.verbose was put in on november
12. Are you using the latest beta, or the TeX Live 2012 stable
version?

As for the error you got:
Try the new beta Hans just uploaded, Spanish conversions are working
in that one.
E.g. \ctxcommand{verbose(123, es)}.
The bugs we discusses in a previous mail are also still in there ---
I'll try to get around to them.

Cheers,
Sietse
___
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] beta

2012-11-22 Thread Khaled Hosny
On Thu, Nov 22, 2012 at 11:35:36AM +0100, Hans Hagen wrote:
 Hi Khaled
 
 these virtual versions are essentially the body font counterparts with
 lots of display-modifying tweaks piled on to make them behave like
 math fonts. These virtual versions were used for a time while the math
 fonts were in development.
 
 The virtual counterparts are adaptations of the old TFM/Type1 fonts so
 they look like OpenType math fonts to the engine (so that ConTeXt would
 move entirely to Unicode/OpenType math while waiting for the real
 OpenType fonts).
 
 Which reminds me ... shouldn't we try to get the r2l math symbols
 into the lm/gyre fonts? I don't know how much extra that is in xits,
 but it would be nice to have it.

The stuff in XITS is of little value right now as does not even cover
Arabic math (the only language where math can be RTL), there is a whole
set of Arabic math alphabets (starting from U+1EE00) that need to be
covered first to be able to set any useuful Arabic math (both LTR and
RTL).

Regards,
 Khaled
___
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] Hiding columns in m-database TABLE

2012-11-22 Thread Mojca Miklavec
On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote:
 le) in order to
 typeset a (nice) TABLE. However, I have a few columns I'd like to
 omit.  I can (of course) hand-edit the csv file; but is there a way to
 do it automatically?  Something like

 \setupTABLE[column][3,4,5][kill]

 I did [empty=yes,width=0pt] in place of [kill], and it worked, but it
 seems like a hack (and I don't know whether it does actually process
 the cells I'm omitting - which in my case wouldn't bother me, but might
 be an additional layer of inelegance;)).  And better ideas?

If you have up to 9 columns, you could use

\def\ProcessingLine#1#2#3#4#5#6#7{%
\bTR\bTD#1\eTD\bTD#2\eTD\bTD#6\eTD\bTD#7\eTD}

and then [command=\ProcessingLine]

Mojca
___
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] Hiding columns in m-database TABLE

2012-11-22 Thread Marcin Borkowski
Dnia 2012-11-22, o godz. 13:26:52
Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a):

 On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote:
  le) in order to
  typeset a (nice) TABLE. However, I have a few columns I'd like to
  omit.  I can (of course) hand-edit the csv file; but is there a way
  to do it automatically?  Something like
 
  \setupTABLE[column][3,4,5][kill]
 
  I did [empty=yes,width=0pt] in place of [kill], and it worked, but
  it seems like a hack (and I don't know whether it does actually
  process the cells I'm omitting - which in my case wouldn't bother
  me, but might be an additional layer of inelegance;)).  And better
  ideas?
 
 If you have up to 9 columns, you could use
 
 \def\ProcessingLine#1#2#3#4#5#6#7{%
 \bTR\bTD#1\eTD\bTD#2\eTD\bTD#6\eTD\bTD#7\eTD}
 
 and then [command=\ProcessingLine]

Well, something like 20 columns (on A4 landscape). ;)

It turns out that my method somehow doesn't work well without setting
also height=0pt; then it's fine, but I'm still wondering about a
cleaner way.

 Mojca

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] \unit problem with powers of ten.

2012-11-22 Thread Romain Diss
Hi all,

Le mardi 20 novembre 2012, Romain Diss a écrit :
 Le lundi 19 novembre 2012, Romain Diss a écrit :
  I got some problems to express powers of ten in the \unit command. See
  the strange behaviour with these two minimal examples.
  
  \starttext
  \unit{10^2 meter}\\
  \unit{10^{-12} second}
  \stoptext
  Is this a bug or are these expressions not supported?
 
 I'm not an expert neither in TeX nor Lua, but I quickly glance at the
 source code (phys-dim.*) and here is what I understand:
 — the brackets { } are not recognized (a comment in the lua code mentioned
 it), so \unit{10^{-12} second} should be \unit{10^-12 second};
 — the hat sign '^' is recognized as 'e' so it means … times ten to the
 power… instead of to the power… as one should expect.
 
 So I come back to my problem. I want to write 10⁻¹² s (ten to the negative
 twelfth power second). Actually, I'm typing \math{10^{-12} \unit{second}}
 but I'd prefer to type \unit{10^-12 second} (for coherence). Is it
 possible to modify phys-dim.lua in that way or is this to much work (I
 have no idea if this is a matter of changing one line or a hundred lines
 in phys-dim.lua. Maybe also this is a too specific request, I don't know…

Nobody seems very enthusiastic concerning this thread so I tried to go further 
in the comprehension of the phys-dim.lua code. I now have found an approximate 
solution to my problem :
\unit{$10^{-12}$ second}
give the right result. It is not very satisfactory because I'm now used to use 
\m{} instead of $ $. In the phys-dim.lua code, the line 64 shows that \m{} can 
be used inside \unit{} but this doesn't work for:
\unit{\m{10^{-12}} second}
because the pattern doesn't handle nested curly braces.

Is there any Lua expert to find a pattern to handle exponents?

Thank you.

-- 
Romain Diss
romain.d...@yahoo.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
___

Re: [NTG-context] \unit problem with powers of ten.

2012-11-22 Thread luigi scarso
At least me have seen your post and tried some solutions, but nothing
useful


On Thu, Nov 22, 2012 at 3:45 PM, Romain Diss romain.d...@yahoo.fr wrote:

 Hi all,

 Le mardi 20 novembre 2012, Romain Diss a écrit :
  Le lundi 19 novembre 2012, Romain Diss a écrit :
   I got some problems to express powers of ten in the \unit command. See
   the strange behaviour with these two minimal examples.
  
   \starttext
   \unit{10^2 meter}\\
   \unit{10^{-12} second}
   \stoptext
   Is this a bug or are these expressions not supported?
 
  I'm not an expert neither in TeX nor Lua, but I quickly glance at the
  source code (phys-dim.*) and here is what I understand:
  — the brackets { } are not recognized (a comment in the lua code
 mentioned
  it), so \unit{10^{-12} second} should be \unit{10^-12 second};
  — the hat sign '^' is recognized as 'e' so it means … times ten to the
  power… instead of to the power… as one should expect.
 
  So I come back to my problem. I want to write 10⁻¹² s (ten to the
 negative
  twelfth power second). Actually, I'm typing \math{10^{-12} \unit{second}}
  but I'd prefer to type \unit{10^-12 second} (for coherence). Is it
  possible to modify phys-dim.lua in that way or is this to much work (I
  have no idea if this is a matter of changing one line or a hundred lines
  in phys-dim.lua. Maybe also this is a too specific request, I don't know…

 Nobody seems very enthusiastic concerning this thread so I tried to go
 further
 in the comprehension of the phys-dim.lua code. I now have found an
 approximate
 solution to my problem :
 \unit{$10^{-12}$ second}
 give the right result. It is not very satisfactory because I'm now used to
 use
 \m{} instead of $ $. In the phys-dim.lua code, the line 64 shows that \m{}
 can
 be used inside \unit{} but this doesn't work for:
 \unit{\m{10^{-12}} second}
 because the pattern doesn't handle nested curly braces.

 Is there any Lua expert to find a pattern to handle exponents?

 Thank you.

 --
 Romain Diss
 romain.d...@yahoo.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

 ___




-- 
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] Hiding columns in m-database TABLE

2012-11-22 Thread Alan BRASLAU
For example, easily such files are easily manipulated using awk.

awk {print $1,$2,$3,$5,$7} data.csv  interesting.csv

and this can be used in a pipeline...

Alan


On Thu, 22 Nov 2012 15:36:45 +0100
Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

 Dnia 2012-11-22, o godz. 13:26:52
 Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a):
 
  On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote:
   le) in order to
   typeset a (nice) TABLE. However, I have a few columns I'd like to
   omit.  I can (of course) hand-edit the csv file; but is there a way
   to do it automatically?  Something like
  
   \setupTABLE[column][3,4,5][kill]
  
   I did [empty=yes,width=0pt] in place of [kill], and it worked, but
   it seems like a hack (and I don't know whether it does actually
   process the cells I'm omitting - which in my case wouldn't bother
   me, but might be an additional layer of inelegance;)).  And better
   ideas?
  
  If you have up to 9 columns, you could use
  
  \def\ProcessingLine#1#2#3#4#5#6#7{%
  \bTR\bTD#1\eTD\bTD#2\eTD\bTD#6\eTD\bTD#7\eTD}
  
  and then [command=\ProcessingLine]
 
 Well, something like 20 columns (on A4 landscape). ;)
 
 It turns out that my method somehow doesn't work well without setting
 also height=0pt; then it's fine, but I'm still wondering about a
 cleaner way.
 
  Mojca
 
 Best,
 



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

Re: [NTG-context] Hiding columns in m-database TABLE

2012-11-22 Thread Hans Hagen

On 11/22/2012 3:36 PM, Marcin Borkowski wrote:

Dnia 2012-11-22, o godz. 13:26:52
Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a):


On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote:

le) in order to
typeset a (nice) TABLE. However, I have a few columns I'd like to
omit.  I can (of course) hand-edit the csv file; but is there a way
to do it automatically?  Something like

\setupTABLE[column][3,4,5][kill]

I did [empty=yes,width=0pt] in place of [kill], and it worked, but
it seems like a hack (and I don't know whether it does actually
process the cells I'm omitting - which in my case wouldn't bother
me, but might be an additional layer of inelegance;)).  And better
ideas?


If you have up to 9 columns, you could use

 \def\ProcessingLine#1#2#3#4#5#6#7{%
 \bTR\bTD#1\eTD\bTD#2\eTD\bTD#6\eTD\bTD#7\eTD}

and then [command=\ProcessingLine]


Well, something like 20 columns (on A4 landscape). ;)

It turns out that my method somehow doesn't work well without setting
also height=0pt; then it's fine, but I'm still wondering about a
cleaner way.


I've added a splutter to the core:

\startluacode

local mycsvsplitter = utilities.parsers.csvsplitter {
separator = ,,
quote = '',
}

local crap = [[
1,2,3,4
a,b,c,d
]]

local mycrap = mycsvsplitter(crap)

context.bTABLE()
for i=1,#mycrap do
context.bTR()
local c = mycrap[i]
for i=1,#c do
context.bTD()
context(c[i])
context.eTD()
end
context.eTR()
end
context.eTABLE()

\stopluacode

-
  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] beta

2012-11-22 Thread Bill Meahan

On 11/21/2012 05:41 PM, Otared Kavian wrote:

Hi Hans,

I made some testings with the new beta and noticed that there are a few maths 
characters or commands which are broken now.


Strictly FYI, Arkandis Digital Foundry has a couple of math fonts 
available. I can't say how good/useful they are since I don't typeset 
math but I noticed them while visiting the Arkandis site and thought I'd 
pass the information along.


More info:  http://arkandis.tuxfamily.org/tugfonts.htm

--
Bill Meahan
Westland, Michigan USA

___
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] \unit problem with powers of ten.

2012-11-22 Thread Hans Hagen

On 11/19/2012 11:44 PM, Romain Diss wrote:

Hi all,

I got some problems to express powers of ten in the \unit command. See the
strange behaviour with these two minimal examples.

\starttext
\unit{10^2 meter}\\
\unit{10^{-12} second}
\stoptext

However, there is no problem with this one: \unit{1e-4 kilogram}.

Is this a bug or are these expressions not supported?


not supported .. i've added it to the upcoming beta:

\starttext

\startlines
\unit{10^12 meter}
\unit{10^{-12} second}
\unit{10^{12} second}
\unit{10e12 meter}
\unit{10e{-12} second}
\unit{10e{12} second}
\stoplines

\stoptext

needs testing as usual (and wiki adaption as well)

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] \startitemize[columns] once again...

2012-11-22 Thread Hans Hagen

On 11/14/2012 11:16 AM, Marcin Borkowski wrote:

Dnia 2012-11-10, o godz. 03:23:11
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):


This minimal example behaves in a strange way:

\starttext
   Some text
   \startitemize[columns,two,joinedup]
   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
   \stopitemize
\stoptext

If we remove the percentage signs in the items, an additional vertical
skip appears.  Is it a feature or a bug?


was a feature ... gridsnapping in action


Hi, could anybody look into it?  I tried also \smash-ing the formulae -
with no luck.


the latest version is a bit more tolerant

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] Arabic with ConTeXt

2012-11-22 Thread H. Özoguz

Am 21.11.2012 23:41, schrieb ntg-context-requ...@ntg.nl:

What you are looking for is text streams. They are not yet fully
functional in mkiv. But as long as you need the streams to appear
as columns on the same page, as seems to be the case, there is a
cheap workaround using the*tabulate*  environment (see below).

The great thing about \{start,stop}tabulate is that it allows for
page breaks inside paragraphs of arbitrary length.

Regards
Philipp


?

\newcount\progresscounter \progresscounter0
\def\placeprogresscounter{%
   %% caution when using dynamic content: check
   %% for first pass to avoid multiple executions
   \iftrialtypesetting42\else
 \advance\progresscounter\plusone
 \the\progresscounter
   \fi
}

\starttext

\starttabulate[|r|p|p|]
   \NC \placeprogresscounter
   \NC \language[deo] Hallo, Welt!
   \NC \language[en]  \input knuth
   \NC\NR
   \HL % %
   \NC \placeprogresscounter
   \NC \language[deo] N?chster Abschnitt!
   \NC \language[en]  \input ward
   \NC\NR
\stoptabulate

\stoptext


Thank you. Why not simply a table without any workaround?

\starttabulate[|p|p|]

\NC \language[deo] Hallo, Welt!

\NC \language[en] \input knuth

\NC\NR

\NC \language[deo] Nächster Abschnitt!

\NC \language[en] \input ward

\NC\NR

\stoptabulate


Huseyin


___
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] ConTeXt Standalone/Suite in Windows

2012-11-22 Thread Pablo Rodríguez
Hi everybody,

I would like to be able to use a ConTeXt Standalone on a computer with
WinXP Pro and no internet connection and no administrative rights.

Isn't it possible to install on a different computer (let's say
c:\context) and then move that to the same directory on the other computer?

I'm really interested in knowing whether this works, since I must first
ask to a friend to be able to install ConTeXt on her computer to be able
to use it on the computer I want. I'm on Linux myself.

Many thanks in advance,


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] ConTeXt Standalone/Suite in Windows

2012-11-22 Thread Hans Hagen

On 11/22/2012 10:00 PM, Pablo Rodríguez wrote:

Hi everybody,

I would like to be able to use a ConTeXt Standalone on a computer with
WinXP Pro and no internet connection and no administrative rights.

Isn't it possible to install on a different computer (let's say
c:\context) and then move that to the same directory on the other computer?

I'm really interested in knowing whether this works, since I must first
ask to a friend to be able to install ConTeXt on her computer to be able
to use it on the computer I want. I'm on Linux myself.


just download all, zip it and move it to the win machine .. use

--platform=windows

-
  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] ConTeXt Standalone/Suite in Windows

2012-11-22 Thread Philipp Gesang
···date: 2012-11-22, Thursday···from: Pablo Rodríguez···

 Hi everybody,
 
 I would like to be able to use a ConTeXt Standalone on a computer with
 WinXP Pro and no internet connection and no administrative rights.
 
 Isn't it possible to install on a different computer (let's say
 c:\context) and then move that to the same directory on the other computer?
 
 I'm really interested in knowing whether this works, since I must first
 ask to a friend to be able to install ConTeXt on her computer to be able
 to use it on the computer I want. I'm on Linux myself.

You can install the minimals (for windows) on a pendrive with
Wine. This way I had no problem accessing my university’s Adobe
fonts at public computers in the library. All I had was a
restricted user account and cmd.exe. I used to work flawlessly
(until they disabled the terminal when they did a global upgrade
to win7).

Regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpbpOlINJagC.pgp
Description: PGP signature
___
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] ConTeXt Standalone/Suite in Windows

2012-11-22 Thread Aditya Mahajan

On Thu, 22 Nov 2012, Philipp Gesang wrote:


···date: 2012-11-22, Thursday···from: Pablo Rodríguez···


Hi everybody,

I would like to be able to use a ConTeXt Standalone on a computer with
WinXP Pro and no internet connection and no administrative rights.

Isn't it possible to install on a different computer (let's say
c:\context) and then move that to the same directory on the other computer?

I'm really interested in knowing whether this works, since I must first
ask to a friend to be able to install ConTeXt on her computer to be able
to use it on the computer I want. I'm on Linux myself.


You can install the minimals (for windows) on a pendrive with
Wine. This way I had no problem accessing my university’s Adobe
fonts at public computers in the library. All I had was a
restricted user account and cmd.exe. I used to work flawlessly
(until they disabled the terminal when they did a global upgrade
to win7).


Does first-setup support --platform=all? That way, you don't need wine to 
create a USB drive with binaries for windows (and all linux 
architectures).


Aditya___
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] ConTeXt Standalone/Suite in Windows

2012-11-22 Thread Mojca Miklavec
On Thu, Nov 22, 2012 at 11:28 PM, Aditya Mahajan wrote:
 On Thu, 22 Nov 2012, Philipp Gesang wrote:
 ···date: 2012-11-22, Thursday···from: Pablo Rodríguez···

 Hi everybody,

 I would like to be able to use a ConTeXt Standalone on a computer with
 WinXP Pro and no internet connection and no administrative rights.

 Isn't it possible to install on a different computer (let's say
 c:\context) and then move that to the same directory on the other
 computer?

 I'm really interested in knowing whether this works, since I must first
 ask to a friend to be able to install ConTeXt on her computer to be able
 to use it on the computer I want. I'm on Linux myself.


 You can install the minimals (for windows) on a pendrive with
 Wine. This way I had no problem accessing my university’s Adobe
 fonts at public computers in the library. All I had was a
 restricted user account and cmd.exe. I used to work flawlessly
 (until they disabled the terminal when they did a global upgrade
 to win7).

 Does first-setup support --platform=all? That way, you don't need wine to
 create a USB drive with binaries for windows (and all linux architectures).

One definitely doesn't need wine. If one only has a linux machine on
the network, using
./first-setup.sh --platform=mswin
should suffice (probably one only needs to run mtxrun/mktexlsr and
context --make [texexec --make] for the first time on the new
machine).

If you have windows computer, just fetch the files and copy them to
the other machine. Actually, we also had zips
(http://minimals.contextgarden.net/pragma/), but I stopped updating
them.

The distribution is not installed in traditional sense. Only the
files are fetched and nothing is written into global PATH or registry.

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