[NTG-context] first steps with \dosingleempty

2008-09-11 Thread Goebel, Juergen
Hi,

Regarding the following example I've got two questions.

(1) Why don't I ever see the argument #2 in the output?
(2) What do I have to do to suppress the unwanted space
after the end of the output of this macro (as can be seen
in the result before the following comma)?

Regards,

Juergen


\def\Geb{\dosingleempty\doMyGeb}
\def\doMyGeb[#1]#2#3{, x %
   \iffirstargument%
  Aha
   \else
 \ifsecondargument%
   #2
 \else%
   ... %C%
 \fi
   \fi
   \ifthirdargument%
 #3%
   \else%
 ...%
   \fi}

\starttext

\Geb{Ulm}{11. 9. 2008} % should deliver x Ulm 11. 9. 2008
\Geb[Ulm]{Ulm}{11. 9. 2008} % should deliver x Aha Ulm 11. 9. 2008
\Geb{}{11. 9. 2008} % should deliver x ... 11. 9. 2008
\Geb{Ulm}{} % should deliver x Ulm ...
\Geb{}{} % should deliver x ...

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


Re: [NTG-context] first steps with \dosingleempty

2008-09-11 Thread Goebel, Juergen
Hans Hagen wrote:

 \unexpanded\def\Geb{\dosingleempty\doMyGeb}
 
 \def\doMyGeb[#1]#2#3%
{, x \iffirstargument Aha \fi
 \doifsomethingelse{#2}{#2}{...}\space
 \doifsomethingelse{#3}{#3}{...}%
 \par}

Thanks a lot, elegant and much shorter.
But, alas, I can't test it yet since the
\doifsomethingelse seems to be somewhat
newer.  My oldtimer (according to Hraban)
shall really be updated during the next 
days or weeks ... 

Does anyone know when the TL 2008 will be
distributed to the DANTE-members?

Juergen
___
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] ntg-context Digest, Vol 51, Issue 36

2008-09-11 Thread Goebel, Juergen
Mojca Miklavec wrote:

 But as far as I understood, the problem got resolved, right? Didn't
 the umlaut-utf work OK?

No, not with my oldtimer.

 (Jürgen, in case that you are still using the old version of ConTeXt -
 *many* aspects have improved since then, including encodings and
 regimes, so before starting complaining that something doesn't work,
 try upgrading first. And I really mean it.)

ACK.

Regards,

Jürgen
___
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] first steps with \dosingleempty

2008-09-11 Thread Goebel, Juergen
Patrick Gundlach wrote:

 http://distribution.contextgarden.net/

Hmm, is there a zip-file or something like this, which 
I can download via http or ftp for use with windows?  I 
think of something like context-setup-mswin.zip, only 
not minimal.  I would very much appreciated a link to
this resource.

TIA,

Juergen
___
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] ntg-context Digest, Vol 51, Issue 36

2008-09-11 Thread Goebel, Juergen
Wolfgang Schuster wrote:

 Can you try it again with my new test files.

umlaut-iso-8859-1.tex --   no sharp s
umlaut-utf-8.tex  --   sharp s
umlaut-windows-1250.tex   --   no sharp s

BTW: The download is running (or should I say 
crawling) with a gargantuan data rate of
about 25 kbit/s ...

Juergen
___
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] ntg-context Digest, Vol 51, Issue 36

2008-09-11 Thread Goebel, Juergen
Wolfgang Schuster wrote:

 Can you try my updated version of the two buggy files, I think I found
 the problem and want to be sure.

Both versions still show no sharp s,
but it's the oldtimer running.  The
download of the new version will soon
be finished and tomorrow I'll install
it - hopefully successfull!

Juergen
___
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] installation of ConTeXt

2008-09-11 Thread Goebel, Juergen
Hi,

Do I really have to install ruby?  I downloaded it, but can't find
anything like install, setup or something like this.  Even the
readme is not very helpful at all.  And another question: for
using Ruby - and therefore ConTeXt - do I need cygwin?

Regards,

Juergen


___
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] installation of ConTeXt

2008-09-11 Thread Goebel, Juergen
Mojca Miklavec wrote:

 There are two alternatives for installing ruby. Take this one:
 http://rubyinstaller.rubyforge.org/wiki/wiki.pl?RubyInstaller

Thanks, I'll give it a try (installation is already running).

Juergen
___
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] ntg-context Digest, Vol 51, Issue 36

2008-09-10 Thread Goebel, Juergen
Wolfgang Schuster wrote:

 Which file do you used for test3 and which for test4?

I'm sorry, seems to be too early in the morning.

test3: umlaut-utf.tex
test4: umlaut-latin.tex

Jürgen
___
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] defining (new) macros with optional arguments

2008-09-10 Thread Goebel, Juergen
Hi,

Does something like \newcommand exist in ConTeXt? 
My questions aims especially at the optional argument
with a predefined value.  So, how do I realize 

\newcommand{\test}[2][A]{foo}

with ConTeXt. In the fine manual I found an index entry
\definecommand, but in the 'rest' of the manual it was
never mentioned (print and screen version alike)!

Regards,

Juergen
___
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] ntg-context Digest, Vol 51, Issue 38

2008-09-10 Thread Goebel, Juergen
Wolfgang Schuster schrieb:

 Can you try this
 
 \enableregime[windows]
 \starttext
 \SS\space\ssharp\space\number`?
 \stoptext

The result is shown in the attached test5.pdf,
\SS and \ssharp show the 'eszet', \number`
deliveres 63.

Juergen


test5.pdf
Description: test5.pdf
___
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] ntg-context Digest, Vol 51, Issue 39

2008-09-10 Thread Goebel, Juergen
Thomas A. Schmitz wrote:

 No, we never define any commands... Err, in fact yes, 
 sometimes we do.  
 You want to read http://wiki.contextgarden.net/System_Macros ,  
 especially 
 http://wiki.contextgarden.net/System_Macros/Handling_Arguments
 
 HTH

Yes, it does.  Although I must admit, that this 'handling' might
be an advantage of LaTeX.  I never wanted to learn TeX, but maybe
now I have to (at least to some extent).

And sorry for the changing subject, I'll change to the
non-digest mode.

Jürgen



___
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] ntg-context Digest, Vol 51, Issue 39

2008-09-10 Thread Goebel, Juergen
Wolfgang Schuster wrote:

 http://wiki.contextgarden.net/Commands_with_optional_arguments
 
 And we have also \define and \redefine but you can't use 
 optional arguments with them.

That's a good starting point, thanks for the link.  My first
attempts are running, although faulty.  Perhaps I'll be back 
here for further help.

Thanks,

Juergen
___
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] ntg-context Digest, Vol 51, Issue 40

2008-09-10 Thread Goebel, Juergen
Thomas A. Schmitz wrote:

 ??? I have no idea what you want to say here.

ACK.
Accustomed to LaTeX this handling had the feeling
of TeX, but of course it isn't.  Nevertheless I'm
afraid I'm going to have a hard time to learn this.
The next problem(s) are already in the pipeline.

Juergen
___
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] ntg-context Digest, Vol 51, Issue 33

2008-09-09 Thread Goebel, Juergen
 Wolfgang Schuster wrote:

 How old is your TeX installation, the name of the binary is now pdftex
 and no longer pdfetex

Seems to be somewhat older since pdftex is not known as executable.
He says pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2)

(I'm hopefully waiting for TL 2008 for updating the complete system.)

 Use \mainlanguage[de], \language is just for local switches.

Thanks, that's it!

Jürgen
___
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] german Umlaut 'ß'

2008-09-09 Thread Goebel, Juergen
Hi,

My next problem seems to be the german umlaut 'ß'.
Running the following example delivers only six of the
seven wanted characters, while the 'ß' is left blank.
I'm not sure whether this might be a problem with
my editor WinEdt, but I'm sure you can show me the
right direction.

Regards,

Jürgen




% language=de tex=pdfetex output=pdftex
\usetypescript[modern]
\mainlanguage[de]
\enableregime[utf]
\setupencoding[texnansi]

\starttext

äöüß ÄÖÜ

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


Re: [NTG-context] ntg-context Digest, Vol 51, Issue 36

2008-09-09 Thread Goebel, Juergen
Wolfgang Schuster wrote:

 Can you show us what do you get from my two examples.

I'm going to try to and I hope the attachments will work.
In short: the first example (result in test3.pdf) shows 
the 'eszet' while the second example (test4.pdf) doesn't.

Jürgen



test3.pdf
Description: test3.pdf


test4.pdf
Description: test4.pdf
___
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] \language[de] ?

2008-09-08 Thread Goebel, Juergen
Hi,

Doing my first steps with ConTeXt (after about ten years
experience with LaTeX) I was running into the following
problem.

Running the enclosed example I got still the english
version (as can be seen in the 'Contents'-title of the
TOC).

% language=de tex=pdfetex output=pdftex
\language[de]
\starttext
\completecontent
Test äöü
\stoptext

I'm using ConTeXt version 2003.9.25 (fmt 2004.8.31) - 
rather old, I know, but I don't believe that this might
be the source of my problem since the manual is
older ...

Regards,

Jürgen
___
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
___