[NTG-context] \startitem [reference=xxx]

2014-12-17 Thread Alan BRASLAU
Hello,

An item in an itemized list can have a reference:

\startitemize [n]
\item[first] This is a first item;
\item[second] This is a second item.
\stopitemize

\in{item}[first] appears before \in{item}[second].


How does this work with \startitem\stopitem?
I tried, of course:
\startitem[reference=first]
This is a first item.
\stopitem

Thanks.

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 \processaction

2014-12-17 Thread Pablo Rodriguez
On 12/17/2014 01:18 AM, Hans Hagen wrote:
 On 12/16/2014 10:24 PM, Pablo Rodriguez wrote:
 [...]
 Is there no other way to get the text value (so that it could be
 compared with \doif) from a command that assigns values using
 \processaction?
 
 \setvalue{SomeName:foo}{one}
 \setvalue{SomeName:bar}{two}
 
 % and another 50 names
 
 \def\SomeName{foo}
 % \def\SomeName{bar}
 
 \doifelse{\getvalue{SomeName:\SomeName}}{two}
{YES}
{NOP}

Many thanks for your reply, Hans.

I didn’t know of this alternative to \processaction.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] \startitem [reference=xxx]

2014-12-17 Thread Otared Kavian
Hi Alan,

This works here:
%%
\starttext
\startitemize [n]
   \startitem[first]
   This is a first item.
   \stopitem

\item[second] This is a second item.
\stopitemize

Alan’s \in{item}[first] appears before \in{item}[second].

\stoptext
%%

Is this what you wanted?

best regards: OK

 On 17 Dec 2014, at 17:30, Alan BRASLAU alan.bras...@cea.fr wrote:
 
 Hello,
 
 An item in an itemized list can have a reference:
 
 \startitemize [n]
 \item[first] This is a first item;
 \item[second] This is a second item.
 \stopitemize
 
 \in{item}[first] appears before \in{item}[second].
 
 
 How does this work with \startitem\stopitem?
 I tried, of course:
\startitem[reference=first]
This is a first item.
\stopitem
 
 Thanks.
 
 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
 ___

___
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] \startitem [reference=xxx]

2014-12-17 Thread Alan BRASLAU
On Wed, 17 Dec 2014 20:16:18 +0100
Otared Kavian ota...@gmail.com wrote:

\startitem[first]
This is a first item.
\stopitem

Thanks. It does work.
I did not think about trying this (obsolete) syntax.

Wouldn't it be a good idea to respect the explicit reference=first
syntax?

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
___

[NTG-context] expand date from CSV file

2014-12-17 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\usemodule[scancsv]

\unexpanded\def\lineaction{
\Name\ arrived on \Date\\
}

\setheader
\setsep{;}
\setfiletoscan{mail.csv}

\starttext
\filelineaction
\stoptext

that reads data from mail.csv:

Name;Date
ME;11/10/14
You;05/02/14
He;15/02/2014
She;03/03/12
It;03/03/14

My question is simple (and not related to CSV data import): how can I
define a command (ConTeXt or Lua) that changes date format from DD/MM/YY
to DD/MM/ when required?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] PSTricks in Context

2014-12-17 Thread Context NTG
I am using on Win7 x 64bit with standalone Context from
http://standalone.contextgarden.net/setup/context-setup-win64.zip
http://standalone.contextgarden.net/setup/context-setup-win64.zip

in \tex\texmf-context\tex\context\base\m-pstricks.mkii line 46 looks as
following:
\loadpstrickscolors{colo-rgb.mkii}}

The following example does not yield anything

\usemodule[pstricks]

\starttext

 \startPSTRICKS

\pspicture(0mm,0mm)(30mm,30mm)

\psline(0,0)(3,3)

\endpspicture

\stopPSTRICKS

 \stoptext


Is there anything I am doing wrong?

Jeroen


2014-12-16 13:07 GMT+00:00 Herbert Voss herbert.v...@fu-berlin.de:

 Am 16.12.2014 um 11:35 schrieb luigi scarso:



 On Tue, Dec 16, 2014 at 11:04 AM, Akira Kakuto kak...@fuk.kindai.ac.jp
 mailto:kak...@fuk.kindai.ac.jp wrote:

 Hi Luigi,

 The example works if one copies colo-rgb.mkii as colo-rgb.tex in
 the same
 folder of the example ...


 It is OK by changing

 line 46 in m-pstricks.mkii:
\loadpstrickscolors{colo-rgb}}
 to
\loadpstrickscolors{colo-rgb.__mkii}}

 as Herbert said.

 In the recent beta's, the change was already done.


 yes right ---  I have downloaded the current into TL,
 but one can do the same with the zips of beta and have the correct
   \loadpstrickscolors{colo-rgb.mkii}


 I have a script cpCTX2TL which installs the current beta and
 then copies all relevant files into the current TL installation.

 Herbert

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