Re: [NTG-context] Understanding the basics of \define

2013-12-11 Thread Pavel Stupin
Thank you everyone for your help! Quite excited about having so much
for me to learn. This mailing list is immensely helpful indeed. So,
both solutions worked for me, but I've decided to stick to the one
that uses comma separated list having adapted to my needs the code
kindly offered by Wolfgang (it would take me a while to figure out the
solution myself).

Kind regards, Pavel.

2013/12/11 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 10.12.2013 um 17:54 schrieb Alan Braslau alan.bras...@cea.fr:

 Perhaps you might want to do something processing a comma separated
 list:

 http://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists


 A short example can help to show how it can be used:

 \def\test
   {\dosingleargument\dotest}

 \def\dotest[#1]%
   {\starttabulate
\NC 1 \EQ \getfromcommalist[#1][1]\commalistelement \NC\NR
\NC 2 \EQ \getfromcommalist[#1][2]\commalistelement \NC\NR
\stoptabulate}

 \starttext
 \test[First row,Second row]
 \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] Russian language support in ConTeXt

2013-12-10 Thread Pavel Stupin
Wolfgang, thank you very much for the detailed answer. It works great for me.
Best regards, Pavel.

2013/12/9 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 09.12.2013 um 09:49 schrieb Pavel Stupin stupin.pa...@gmail.com:

 Hello:

 I would like to use ConTeXt for typesetting documents in Russian. I
 used it about 10 years ago and it worked just fine. Much has been
 changed since then, however, and it doesn't work out-of-box while the
 only howto I've been able to find
 (http://wiki.contextgarden.net/Russian) seems to be outdated (?) as
 none of the examples works with the latest ConTeXt. Could someone
 please explain me what I need to set up the program, if this is
 possible at all. I would appreciate your help and advise a lot.

 When you use ConTeXt MkIV (context command on the command line)
 you need a font which has cyrillic letters, e.g. the DejaVu fonts which are
 shipped with the ConTeXt Suite.

 \setupbodyfont[dejavu]

 \mainlanguage[russian]

 \starttext
 Немного русского текста для пробы.
 \stoptext


 You can also use other fonts on your system with have cyrillic glyphs and
 load the fonts with the simplefonts module. When you have a recent
 installation you can use the internal simplefonts commands (not the best
 example because you can load the libertine fonts also with 
 \setupbodyfont[libertine])

 \definefontfamily [mainface] [rm] [Linux Libertine O]
 \definefontfamily [mainface] [ss] [Linux Biolinum O]
 \definefontfamily [mainface] [mm] [Latin Modern Math]

 \setupbodyfont[mainface]

 \mainlanguage[russian]

 \starttext

 Немного русского текста для пробы.

 \ss Немного русского текста для пробы.

 \stoptext

 When your ConTeXt version is older (e.g. because you use TeXLive) change
 the example above to:

 \usemodule[simplefonts]

 \setmainfont [Linux Libertine O]
 \setsansfont [Linux Biolinum O]

 \mainlanguage[russian]

 \starttext

 Немного русского текста для пробы.

 \ss Немного русского текста для пробы.

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

[NTG-context] Understanding the basics of \define

2013-12-10 Thread Pavel Stupin
Hello:

I'm struggling with understanding the way \define is supposed to work.
I would like to have a macros to generate tables and populate them
with some specific data submitted as arguments. I apologize for my
lack of understanding of the very basics, but e.g. the following code
just doesn't compile:

\define[1]\mytable{
\startxtable
\startxrow
\startxcell #1 \stopxcell
\stopxrow
\stopxtable}

\mytable{abc}


I would appreciate your help and maybe some references to read (if
any) in order to educate myself.
Kind regards, Pavel.
___
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] Understanding the basics of \define

2013-12-10 Thread Pavel Stupin
Thank you, Wolfgang!  Much to my delight, \startembeddedxtable works
indeed, however, when I increase the number of arguments up to 10
--- to use the simplest example possible, without any tables:
\define[10]\myText{#1 #2 #3 #4 #5 #6 #7 #8 #9 #10} --- it doesn't work
again (works fine with 9 arguments). Am I correct assuming that
there's an inherent limitation to 9 arguments only or the 2+-digit
numbers should be written somehow differently? Is there any
workaround?

Kind regards, Pavel.

2013/12/10 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 10.12.2013 um 12:23 schrieb Pavel Stupin stupin.pa...@gmail.com:

 Hello:

 I'm struggling with understanding the way \define is supposed to work.
 I would like to have a macros to generate tables and populate them
 with some specific data submitted as arguments. I apologize for my
 lack of understanding of the very basics, but e.g. the following code
 just doesn't compile:

 \define[1]\mytable{
 \startxtable
 \startxrow
 \startxcell #1 \stopxcell
 \stopxrow
 \stopxtable}

 \mytable{abc}


 I would appreciate your help and maybe some references to read (if
 any) in order to educate myself.

 The problem in your example isn’t define but the stable which uses a buffer
 to collect the content and buffers and be used in \def or \define commands.

 What you can do in this case is to replace \startxtable with 
 \startembeddedxtable
 and change your code to

 \dfeine[1]\mytable
   {\startembeddedxtable
  \startxrow
\startxcell#1\stopxcell
  \stopxrow
\stopembeddedxtable}

 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] Understanding the basics of \define

2013-12-10 Thread Pavel Stupin
To answer my own question. I think I've solved the problem by
splitting a macros into several ones and then nesting them into each
opther. A sort of a clumsy solution but it works. Kind regards, Pavel.

2013/12/10 Pavel Stupin stupin.pa...@gmail.com:
 Thank you, Wolfgang!  Much to my delight, \startembeddedxtable works
 indeed, however, when I increase the number of arguments up to 10
 --- to use the simplest example possible, without any tables:
 \define[10]\myText{#1 #2 #3 #4 #5 #6 #7 #8 #9 #10} --- it doesn't work
 again (works fine with 9 arguments). Am I correct assuming that
 there's an inherent limitation to 9 arguments only or the 2+-digit
 numbers should be written somehow differently? Is there any
 workaround?

 Kind regards, Pavel.

 2013/12/10 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 10.12.2013 um 12:23 schrieb Pavel Stupin stupin.pa...@gmail.com:

 Hello:

 I'm struggling with understanding the way \define is supposed to work.
 I would like to have a macros to generate tables and populate them
 with some specific data submitted as arguments. I apologize for my
 lack of understanding of the very basics, but e.g. the following code
 just doesn't compile:

 \define[1]\mytable{
 \startxtable
 \startxrow
 \startxcell #1 \stopxcell
 \stopxrow
 \stopxtable}

 \mytable{abc}


 I would appreciate your help and maybe some references to read (if
 any) in order to educate myself.

 The problem in your example isn’t define but the stable which uses a buffer
 to collect the content and buffers and be used in \def or \define commands.

 What you can do in this case is to replace \startxtable with 
 \startembeddedxtable
 and change your code to

 \dfeine[1]\mytable
   {\startembeddedxtable
  \startxrow
\startxcell#1\stopxcell
  \stopxrow
\stopembeddedxtable}

 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] Understanding the basics of \define

2013-12-10 Thread Pavel Stupin
..Alas, I was too hasty to congratulate myself as it obviously doesn't
work as intended (the arguments in the nested function get hard-coded
and are of no use). :) So I'm still looking forward for ConTeXt
masters to enlighten me.

Kind regards, Pavel.

2013/12/11 Pavel Stupin stupin.pa...@gmail.com:
 To answer my own question. I think I've solved the problem by
 splitting a macros into several ones and then nesting them into each
 opther. A sort of a clumsy solution but it works. Kind regards, Pavel.

 2013/12/10 Pavel Stupin stupin.pa...@gmail.com:
 Thank you, Wolfgang!  Much to my delight, \startembeddedxtable works
 indeed, however, when I increase the number of arguments up to 10
 --- to use the simplest example possible, without any tables:
 \define[10]\myText{#1 #2 #3 #4 #5 #6 #7 #8 #9 #10} --- it doesn't work
 again (works fine with 9 arguments). Am I correct assuming that
 there's an inherent limitation to 9 arguments only or the 2+-digit
 numbers should be written somehow differently? Is there any
 workaround?

 Kind regards, Pavel.

 2013/12/10 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 10.12.2013 um 12:23 schrieb Pavel Stupin stupin.pa...@gmail.com:

 Hello:

 I'm struggling with understanding the way \define is supposed to work.
 I would like to have a macros to generate tables and populate them
 with some specific data submitted as arguments. I apologize for my
 lack of understanding of the very basics, but e.g. the following code
 just doesn't compile:

 \define[1]\mytable{
 \startxtable
 \startxrow
 \startxcell #1 \stopxcell
 \stopxrow
 \stopxtable}

 \mytable{abc}


 I would appreciate your help and maybe some references to read (if
 any) in order to educate myself.

 The problem in your example isn’t define but the stable which uses a buffer
 to collect the content and buffers and be used in \def or \define commands.

 What you can do in this case is to replace \startxtable with 
 \startembeddedxtable
 and change your code to

 \dfeine[1]\mytable
   {\startembeddedxtable
  \startxrow
\startxcell#1\stopxcell
  \stopxrow
\stopembeddedxtable}

 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
___


[NTG-context] Russian language support in ConTeXt

2013-12-09 Thread Pavel Stupin
Hello:

I would like to use ConTeXt for typesetting the documents in Russian.
I used it about 10 years ago and it worked just fine. Much has been
changed since then, however, and it doesn't work out-of-box while the
only howto I've been able to find
(http://wiki.contextgarden.net/Russian) seems to be outdated as none
of the examples works with the latest ConTeXt. Could someone please
explain me what I need to set up the program accordingly. I would
appreciate your help a lot.

Kind regards, Pavel.
___
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] Fwd: Russian language support in ConTeXt

2013-12-09 Thread Pavel Stupin
Hello:

I would like to use ConTeXt for typesetting documents in Russian. I
used it about 10 years ago and it worked just fine. Much has been
changed since then, however, and it doesn't work out-of-box while the
only howto I've been able to find
(http://wiki.contextgarden.net/Russian) seems to be outdated (?) as
none of the examples works with the latest ConTeXt. Could someone
please explain me what I need to set up the program, if this is
possible at all. I would appreciate your help and advise a lot.

Kind regards, Pavel.
___
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] Installation problem

2006-04-07 Thread Pavel Stupin
Dear ConTeXt developers and users,

Please excuse me for bothering you with such a trivial question, but I 
still would really appreciate your help.

I've downloaded the current ConTeXt version and generated the format 
files. Now, when I try to invoke texexec to process a test file 
(\starttext Test \stoptext) the script complains the following way:

***

This is pdfeTeX, Version 3.14159-1.10a-2.1 (Web2C 7.4.4) (format=cont-en 
2006.4.8)  8 APR 2006 10:50
entering extended mode
\write18 enabled.
  (/usr/share/texmf/web2c/natural.tcx)
**cont-en test.tex
(./test.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2006.03.25 13:21  fmt: 2006.4.8  int: english  mes: english

systems : pdfTeX version 110 - please update

systems : eTeX version 201 - too old (bugs)

language: language en is active

...

bodyfont: 12pt rm is loaded
! Font \*12ptrmtf*=ec-lmr12 not loadable: Metric (TFM) file not found.
to be read again

...

l.1
 \starttext
?
! Font \*7ptrmtf*=ec-lmr7 not loadable: Metric (TFM) file not found.
to be read again

...




Could you please advise me what I'm supposed to do to have the metric 
files found and whether I must update my obsolete pdfTeX and eTeX to 
handle the problem.

Also, I'm interested if Russian language is supported by ConTeXt out of 
the box or not.


Thank you in advance!

Kind regards,
Pavel Stupin.

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] greek

2003-10-20 Thread Pavel Stupin

On Mon, 20 Oct 2003 13:43:54 +0200
Hans Hagen [EMAIL PROTECTED] wrote:


:Hi,
:
:What are the preferred encodings for cyrillic and greek?
:

for cyrillic: koi8-r (on Unix-like systems) and cp1251.

Best,
Pavel V. Stupin.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \index + \definedescription

2003-10-08 Thread Pavel Stupin
Hello,

In my document, I have a description defined in this way:

\definedescription[DictEntry][headstyle=bold,location=serried,width=broad]


I use the DictEntry description like this:

*

\startDictEntry{Walters, Barbara (1931- )}
a  US  television  journalist  known especially  for  her  series
Barbara Walters  Special...
\stopDictEntry

\startDictEntry{Waterhouse, Keith (1929- )}
an English  journalist and writer  of novels and  plays...
\stopDictEntry

\startDictEntry{West, Rebecca (1892-1983)}
an  English   writer  and  journalist. She  wrote   many  novels...
\stopDictEntry

... etc.

*


What I  would like to do  is to automatically create  an \index{}
for  every DictEntry  so  that  every entry  then  appear in  the
register. Probably,  I   should  use  'between'   parameter  when
defining  my DictEntry  description, but  I'm confused  with what
should be  the proper  argument in  'between=\index{???}. I would
appreciate any help.


Thank you in advance.
Best, Pavel.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context