Re: [NTG-context] Converting counters?

2008-04-02 Thread Wolfgang Schuster
On Tue, Apr 1, 2008 at 11:04 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Tue, Apr 1, 2008 at 10:49 AM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:
  On Tue, Apr 1, 2008 at 9:56 AM, Zhichu Chen [EMAIL PROTECTED] wrote:
   Yes, only I don't need that complex. I mean \chinesenumber{123} will give
   one hundred and twenty-three but all I want is one two three. Besides,
   I don't like to copy such long codes since I really don't want to load
   font-chi.tex
   which gives weird spacing problems while typesetting Chinese along with
   English. Anyway, I'd love to learn something rather than to use something.
  
   Thanks.

Another solution using \afterassignment.

The number is now removed from the input but you have to use
a if test, number tests did not work.

\def\zhnumber#1%
  {\expandafter\dozhnumber#1\endzhnumber}

\def\endzhnumber{\endzhnumber}

\def\dozhnumber
  {\afterassignment\dodozhnumber\let\next= }

\def\dodozhnumber
  {\ifx\next\endzhnumber\let\next\relax
   \else
 \if\next 0a\else
   \if\next 1b\else
 \if\next 2c\else
   \if\next 3d\else
 \if\next 4e\else
   \if\next 5f\else
 \if\next 6g\else
   \if\next 7h\else
 \if\next 8i\else
   \if\next 9j\relax
 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
 \let\next\dozhnumber
   \fi\next}

\starttext

\zhnumber{01234}

\zhnumber{\number\pageno}

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


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-02 Thread Jean Magnan de Bornier
Le 01 avril à 22:32:56 Mojca Miklavec [EMAIL PROTECTED] écrit notamment:

| On Tue, Apr 1, 2008 at 9:09 PM, Steffen Wolfrum wrote:
|  I hope you are joking, no?!
| 
|   As today is April fool's day I don't worry about your email ...
|   ... otherwise I really would, cause as all tickets are now booked and
|   payed for August!!!

| No need to worry.

| Mojca

Getting up the 2nd of april, I find the whole thread, yesterday I had only
seen your original letter, and *believed it*!! (I heard many april's fool
yesterday but only bought yours!)

What a relief! (says Charlie Brown)
-- 
Jean
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-02 Thread luigi scarso
On Wed, Apr 2, 2008 at 12:00 AM, Hans Hagen [EMAIL PROTECTED] wrote:
 Idris Samawi Hamid wrote:
   On Tue, 01 Apr 2008 12:15:00 -0600, Mojca Miklavec
   [EMAIL PROTECTED] wrote:
  
   I'm sorry to inform you that due to some other unavoidable obligations
   at the faculty, I have been forced to move the ConTeXt meeting to 29th
   October - 3rd November, unless I will be able to find someone else to
   take over the organisation.
No problem for me .
For an alternative location, there is my home free in that period.


-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] properties file for gedit

2008-04-02 Thread Jan-Erik Hägglöf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

HI!

Has anyone a clue how to make gedit texteditor contextable?

Best Regards

Janneman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH847Z/zRis+sQPvARApInAKCD/ilDNg0QnsdUMnKEGm4PtOmRkQCbBuNb
iGN6XFB7VG3hlKiKphK4fGU=
=xxt1
-END 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] staticMPfigure

2008-04-02 Thread Wolfgang Werners-Lucchini
Hallo,

the following example is a cooked down version of something I found 
on the net. Compiling this

%
\setupcolors[state=start]

\forceMPTEXcheck{LABEL}

\startMPinclusions
vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext(%
   \framed[width=1.5cm]{  s  }),p)
enddef ;
\stopMPinclusions

\startstaticMPfigure{tst}
  LABEL.llft(Test, (1,1) ) ;
\stopstaticMPfigure

\starttext
\midaligned{\usestaticMPfigure[tst]}
\stoptext
%

I got the following error:

%
! Illegal parameter number in definition of [EMAIL PROTECTED]@@@.
to be read again 
   (
argument vardef [EMAIL PROTECTED](
   expr s, p)= [EMAIL PROTECTED](textext(\framed 
[width=1.5c...

\dodostartuseMPgraphic ...useMPgraphic {#1}{#2}{#3
  }}\elabelgroup 
\dodostartMPpage ...aphic {@@}#1\stopuseMPgraphic 
  \useMPgraphic 
{@@}\dostopf...
l.14 endfig; \stopMPpage
%

What is wrong here?

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


Re: [NTG-context] xetex and attachment: troubles

2008-04-02 Thread Andrea Valle
Sorry, but I would need a solution, or at least to know if there's  
nothing to do.


Any hints?

Best

Thanks

-a-


On 31 Mar 2008, at 17:28, Andrea Valle wrote:


Dear all,
I'm using xetex with fun (as suggested and discussed on the mailing  
list).


I'm revising a previously created document which used attachment  
command.

(the one documented here:
http://wiki.contextgarden.net/ 
Verbatim_text#A_different_approach_to_formatting_and_code_colorization

)

The actual version is here:
http://www.cirma.unito.it/andrea/sw/sc/prd_tSCIRMA_scr.pdf

Now, with ConTeXt no problem.
If I use XeConTeXt (-- texexec --xtx) the file is not attached  
(there's the marker, a link is diplayed, but Acrobat says that  
there's no attachment).

As far as I can say, the problem seems to depend on --xtx switch,

Any hints?

Thanks

Best

-a-


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





__ 
_
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





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


Re: [NTG-context] xetex and attachment: troubles

2008-04-02 Thread Mojca Miklavec
On Mon, Mar 31, 2008 at 5:28 PM, Andrea Valle wrote:
 Dear all,
 I'm using xetex with fun (as suggested and discussed on the mailing list).

 I'm revising a previously created document which used attachment command.
 (the one documented here:
 http://wiki.contextgarden.net/Verbatim_text#A_different_approach_to_formatting_and_code_colorization
 )

 The actual version is here:
 http://www.cirma.unito.it/andrea/sw/sc/prd_tSCIRMA_scr.pdf

 Now, with ConTeXt no problem.
 If I use XeConTeXt (-- texexec --xtx) the file is not attached (there's the
 marker, a link is diplayed, but Acrobat says that there's no attachment).
 As far as I can say, the problem seems to depend on --xtx switch,

The problem is not the --xtx switch, but the lack of support for the
underlying (xdvipdfmx) driver.

I googled a bit and found the following slides:
  http://project.ktug.or.kr/dvipdfmx/doc/tug2005.pdf
see page 18 in particular.

In spec-fdf there is:

\definespecial \doattachfile {\doPDFattachfile}

\def\doPDFattachfile#1#2#3#4#5#6#7#8%
  {\bgroup % title width height color symbol file
   \edefconvertedargument\PDFfile{#8}%
   % beware: the symbol may (indirectly) use the file
   % reference when typesetting the object number;
   \presetPDFsymbolappearance{#5}{#6}{#2}{#3}{#4}% sets width/height
   \startPDFsymbolappearance
 \doPDFembedfile\PDFfile{#7}{#8}%
 \doPDFgetembeddedfilereference\PDFfile\PDFobjectreference
 \setFDFlayer\@@DriverAttachmentLayer
 \doPDFannotation{\width}{\totalheight}
   {/Subtype /FileAttachment
/FS \PDFobjectreference\space
/Contents (#1)
\PDFsymbol
\FDFlayer
\PDFattributes}%
   \stopPDFsymbolappearance
   \egroup}

Something similar needs to be added to spec-dpx.tex. (If Hans doesn't
reply, then someone else will have to.)

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