Re: [NTG-context] extended ascii characters

2004-01-03 Thread Pawel Jackowski na Onet
Hi all!


 I would like to know how I may use extended ascii characters in context,
for
 example character number 167.

I'm sure Hans has made a lot of extensions for ,,strange'' character
support. But also plain TeX offers \char167 instruction, which returns
character 167 according to given font encoding. Is that what You looking
for?

Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pdf[e]tex formats

2003-12-18 Thread Pawel Jackowski na Onet

- Original Message -
From: Hans Hagen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 8:46 AM
Subject: Re: [NTG-context] pdf[e]tex formats


 At 21:54 17/12/2003, you wrote:
 Hi all!
 
 The question is not about ConTeXt, but...
 
 I need to generate non-standard pdf[e]tex format. To do so I prepared
 pro.ini file which contains:
 
  \pdfoutput=1
  \input plain
  \input my-set-of-macros
  \dump
  \endinput
 
 Then I run pdftex with command:
 
  pdftex -ini -jobname=pro pro.ini

 maybe adding

-progname=pdftex

 helps; otherwise make a pro.cfg file

Thanks Hans but it doesn't seem to be a solution. After generating pro.fmt
it still complains during compilation about missing pdftex.cfg file.
Everything works ok when I copy pdftex.cfg into working directory, so what
pdftex says looks to be true. But why not-standard format needs config file
in local directory? Meybe I should add some entry to texmf.cnf... Anyone
knows?



Thanks, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pdf[e]tex formats

2003-12-17 Thread Pawel Jackowski na Onet
Hi all!

The question is not about ConTeXt, but...

I need to generate non-standard pdf[e]tex format. To do so I prepared
pro.ini file which contains:

\pdfoutput=1
\input plain
\input my-set-of-macros
\dump
\endinput

Then I run pdftex with command:

pdftex -ini -jobname=pro pro.ini

The format has been successfully generated. However, when I use generated
format, the following error message appears:

Error: pdftex.exe (file pdftex.cfg): cannot open config file
 == Fatal error occurred, the output PDF file is not finished!

I don't have such problem with any standard formats. Could somebody tell me
what is wrong?


Thanks, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] countproblem

2003-11-11 Thread Pawel Jackowski na Onet


 Hi all!
 
 
 what is wong?
 % 
 %
 %   ad the points of each question
 \def\getPunkte[#1]{\advance\summeP by \number#1}
 %
 %   show the points on the right side
 \def\showP[#1]{\inright{\hfill(#1 P.)}}
 %
 %   handle the points
 \def\pkt[#1]%
 {%
 \showP[#1]%
 \getPunkte[#1]  
 }
 %
 Using this macro in normal text like 
 TestQuestion \pkt[5]
 it works!!!
[...]

I'm not sure but consider

TestQuestion \pkt[5] 
{TestQuestion \pkt[5]}
TestQuestion \pkt[5] 

That will probably produce not what you need. Meybe You should use

\global\advance\summeP by \number#1

in \getPunkte definition? Let me know if I'm right.



Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: reset \use[sub]path

2003-11-10 Thread Pawel Jackowski na Onet
Problem: reset path

  Also without expected results. So what is wrong in the following
  code?
 

  \starttext
  \usesubpath[lofo1]
  \processXMLfilegrouped{aqq.xml}
  \usesubpath[reset]

 try: \usepath[reset]

I did so. I've noticed that 'reset' option works for \usepath only but I
still get the solution. Please consider the following example (attached). We
have './lofo1' and './lofo2' directories, each contains 'x.xml' file (the
same filename but different content). ConTeXt code is as following:

\starttext
 \usepath[lofo1]
 \processXMLfilegrouped{x.xml}

 \usepath[reset]

 \usepath[lofo2]
 \processXMLfilegrouped{x.xml}
\stoptext

In this case 'reset' option works probably OK, since \allinputpaths variable
IS redefined to \empty (lines 99 to 104 of core-job.tex). So I expect that
the first processed XML file should be './lofo1/x.xml' and the second --
'./lofo2/x.xml'. But './lofo1/x.xml' file is processed twice instead. What
construction should I use to process two or more XML files, which have the
same name but different localization? I'm aware that my problem is not
common but...

Thanks for Your help, Pawe/l


usepath.zip
Description: Binary data


[NTG-context] backgrounds

2003-11-03 Thread Pawel Jackowski na Onet
Hi all!

Could You give me some hint how to setup different backgrounds for even and
odd pages? Lets say I would like to have something like

\setupbackgrounds[footer][rightmargin][background=screen] % for even
pages and
\setupbackgrounds[footer][leftmargin][background=screen]  % for odd
pages


Thanks in advance, Pawel


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] reset \use[sub]path

2003-11-03 Thread Pawel Jackowski na Onet
Hi all!

Lets consider the following situation. There are 3 catalogs; ./lofo1,
./lofo2, ./lofo3, each of them contains files 'aqq.xml' and 'cow.png' for
example. Filenames are the same, but they may have different content. I need
to include all these files into one PDF document WITHOUT giving absolute
paths in TeX code. I tried something like

\usepath[lofo1]
\processXMLfilegrouped{aqq.xml}
\usepath[lofo2]
\processXMLfilegrouped{aqq.xml}
\usepath[lofo3]
\processXMLfilegrouped{aqq.xml}

but in this example the same file (./lofo1/aqq.xml) will be processed 3
times and that is not what I need. Actually the situation is even more
complicated; I have quite big XML tree with hunderts of files and images,
with dozens of catalogs. I wrote a perl script which change current
directory for each process and run texexec in changed one. And it works OK
since I want to have separate PDF document from each `lofo?' catalog. But
how to make one PDF document in such situation using \use[sub]path texnique?

In other words, how to reset settings from \usepath and \usesubpath
commands? And how to do the same for externalfigures?


Thanks in advance, Pawe/l



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reset \use[sub]path

2003-11-03 Thread Pawel Jackowski na Onet
problem: reseting input paths

Hi Hans

At 20:12 03/11/2003, Pawel wrote:

 In other words, how to reset settings from \usepath and \usesubpath
commands? And how to do the same for externalfigures?


From: Hans Hagen [EMAIL PROTECTED]
 \usesubpath[reset]

Thanks a lot but I still can't get it. After inspecting core-job.tex file
and tried
'reset' option. Also without expected results. So what is
wrong in the following code?

\starttext
\usesubpath[lofo1]
\processXMLfilegrouped{aqq.xml}
\usesubpath[reset]
\usesubpath[lofo2]
\processXMLfilegrouped{aqq.xml}
\usesubpath[reset]
\write16{\allinputpaths}
\stoptext

In this example \allinputpaths comma-list written to log looks like this:

lofo1,lofo1/reset,lofo1/lofo2,lofo1/reset/lofo2,lofo1/reset/reset,lofo1/lofo
2/reset,lofo1/reset/lofo2/reset

So 'reset' is treated as a directory name. Why? What am I doing wrong?



Pawe/l





___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] unwanted code in bookmarks

2003-10-18 Thread Pawel Jackowski na Onet
Hi all!

Please consider (or compile) the following code:

\setupinteraction[state=start]
\placebookmarks[chapter,section][chapter]
\defineXMLenvironment
 [chapter]
 {\defineXMLargument[title]{\chapter}}
 {\relax}
\defineXMLsingular[end]{\end}

\enableXML
chaptertitleWhatever with an entity;/title
chaptertitleWhatever with a command//title
end/

The problem is that bookmarks in output PDF file contains literal or
partially expanded ConTeX-code instead of it's effect. How to force context
to expand code entirely before writing bookmarks?


Thanks for any hints, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: uncompatibility?

2003-10-14 Thread Pawel Jackowski na Onet
Problem: a (very) different ConTeXt versions and a different output

From: Hans Hagen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:52 PM


 At 17:36 11/10/2003, you wrote:

 Lets consider the following code:
 
 \setupitemize[4,packed]
 \starttext
 \startitemize[n]
   \item one
   \item two
   \item three
 \stopitemize
 \stoptext
 
 The problem is that in newer installation, default itemize style (meaning
 packed, with triangle symbol) IS FORCED instead of style given direclty
 (just numbering). The older one do what I would expect; numbered style
has a

 hm, i'll look into it; it's probably related to the fact that last year
 itemize became definable and retaining downward compatibility for the
 \setupitemize command was tricky

Thanks in advance. The simplest way to customize that code to suit the fresh
context versions is to comment first line, so I can live with it.




Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] uncompatibility?

2003-10-11 Thread Pawel Jackowski na Onet
Hi all!

I've installed TeX based on tl8 which is used paralely with based on tl7.
Attached ZIP contains TeX code and two outputs with logs; tl7 and 8, which
are quite different... There are some warnings in newer one (about doubled
map entries) but shouldn't play a role here. Thanks for any hints!


Regards, Pawe/l


test.zip
Description: Binary data


Re: [NTG-context] Re: uncompatibility?

2003-10-11 Thread Pawel Jackowski na Onet

From: Pawel Jackowski na Onet [EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 9:29 AM
 At 11:09 11/10/2003, you wrote:
 Hi,
 
   are quite different... There are some warnings in newer one (about
doubled
   map entries) but shouldn't play a role here. Thanks for any hints!
 


From: Patrick Gundlach [EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 11:09 AM
 right. You might want to clean up the map files, but that is not
 important.
 
 tl7: ConTeXt  ver: 2002.5.24  fmt: 2003.10.6  int: english  mes: english
 tl8: ConTeXt  ver: 2003.10.5  fmt: 2003.10.10  int: english  mes: english

Ok, the difference is about 17 months in ConTeXt version, while formats are
quite fresh... Can't see the clue :-?

From: Hans Hagen [EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 11:34 AM
  actually, cleaning up really matters! I have my own alternative map files
 without the Internal Font Names since that will mess up pdf inclusion of
 fonts with similar names but different instances (slanted etc)

I admit that maps in my tl8 installation aren't cleaned up already; I have
to spend some time to make it in the way that suits me best. But the problem
I sent doesn't look to be font-dependent. Every characters are found at this
moment, so I put the problem off.

Lets consider the following code:

\setupitemize[4,packed]
\starttext
\startitemize[n]
 \item one
 \item two
 \item three
\stopitemize
\stoptext

The problem is that in newer installation, default itemize style (meaning
packed, with triangle symbol) IS FORCED instead of style given direclty
(just numbering). The older one do what I would expect; numbered style has a
priority. So after running tl8 I get three items with triangles, but after
running tl7 I get three numbered items. Why it is so? Has anything been
changed in itemizing mechanism? I will accept all changes with pleasure, but
the point is to understand what is going on :-D


Thanks, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: first attempt to run mp (system error) -- summary?

2003-10-09 Thread Pawel Jackowski na Onet
Problem: memory violoating error under Linux while running mp

From: Patrick Gundlach [EMAIL PROTECTED]
 [...]
  2. 'Memory violating' error while compiling nested mp code (under
Linux) --
  still can't find the answer...

 that is really strange. If you are brave and experienced, you might
 trace the mpost run with strace to see where the error occurs.

 Please post the logfile of the bad run.

As I mentioned, created 'mpgraph.log' file has zero length...

   you don't need --automprun. Everything should work fine w/o.
 
  I tried to omit this option, but without that MetaPost doesn't run at
all.

 could you post the output of texexec --verbose and the logfile of a
 simple ConTeXt file with mp code in it?

Ahh, to late! Finally I decided to remove tl7 installation (just before i
recived your answer) and try to make an upgrade. So if the problem will
occur again, I will report it to you.


Thanks, Pawe/l




___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] first attempt to run mp (system error) -- summary?

2003-10-08 Thread Pawel Jackowski na Onet
Pawe/l wrote about:
1. System error while compiling nested mp code (under Windows) --
regenerating metafun format solves that
2. 'Memory violating' error while compiling nested mp code (under Linux) --
still can't find the answer...
3. Missed mp graphics in output PDF -- solved of course... sorry for that
silly question, I've taken the first example appearing in ConTeXt manual
assuming that it is the basic one.


From: Patrick Gundlach [EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 6:32 PM
 you don't need --automprun. Everything should work fine w/o.

I tried to omit this option, but without that MetaPost doesn't run at all.

From: Hans Hagen [EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 9:53 AM
 ok, take one of:

 www.pragma-ade.com/context/mswintex.zip
 www.pragma-ade.com/context/linuxtex.zip

 (some 20Meg)

 Thanks a lot! downloading started.

 this is what's needed for running context

 in there you'll find

 setuptex
 setuptex.bat

 on linux, make sure that you chmod -R 755 * the tree first

 the windows file has formats, in it (i'll remove them some day) but for
 linux you need to generate them.

Doesn't hurt. ...But wait -- I aks to be on the safe side: since I remember,
I use common formats (and every other files in texmf tree) for linux and
windows. Is there ANY reason to generate nativ format for each operating
system? Is there any reason not to make common any other texmf files?

 If all goes well, you'll have a system running now.
 (this one has tl8 binaries)

Surely I will! Which version has tl2003 binarises: linux, windows or both?
By the way, does anybody know if tl2003 binaries are frozen already?

Thanks to all of You!
Best regards,  Pawe/l



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] first attempt to run mp

2003-10-07 Thread Pawel Jackowski na Onet
Hi all!

I've just made a quick test -- running metapost with ConTeXt. The sample
code was just:

\starttext
 The simplest metapost code sample
\startMPgraphic
 fill unitsquare scaled 123 withcolor (.2,.3,.4) ;
\stopMPgraphic
\stoptext

which looks ok, right? And of course mpost creates nice navy square from
that code. But running

texexec  --automprun sample.mp

cause a serious system error; ''There is a problem with mpost.exe and bla
bla bla''. Smart and clever' windows XP try to report that problem to
microsoft.
The problem occur just after terminal says

This is MetaPost,  Version 0.641 (Web2c 7.3.7x)
(mpgraph.mp

and after that system display an error box.
As manual says I 've made some changes in texmf.cnf:

openout_any = a
shell_escape = t
allow_multiple_suffixes = f

What should I do next to catch 'serious system error' while running metapost
code included in tex code?
Is the problem comonly known?

Thanks, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] first attempt to run mp (system error)

2003-10-07 Thread Pawel Jackowski na Onet

Problem: serious system error while running 'texexec --automprun'


Hi Willi!

 Pawel wrote: At 09:42 07.10.2003, you wrote:
 Hi all!
 
 I've just made a quick test -- running metapost with ConTeXt. The sample
 code was just:
 
  \starttext
   The simplest metapost code sample
  \startMPgraphic
   fill unitsquare scaled 123 withcolor (.2,.3,.4) ;
  \stopMPgraphic
  \stoptext
 
 which looks ok, right? And of course mpost creates nice navy square from
 that code. But running
 
  texexec  --automprun sample.mp
 
 cause a serious system error; ''There is a problem with mpost.exe and bla
 bla bla''. Smart and clever' windows XP try to report that problem to
 microsoft.
 The problem occur just after terminal says
 
  This is MetaPost,  Version 0.641 (Web2c 7.3.7x)
  (mpgraph.mp
 
 and after that system display an error box.
 As manual says I 've made some changes in texmf.cnf:
 
  openout_any = a
  shell_escape = t
  allow_multiple_suffixes = f
 
 What should I do next to catch 'serious system error' while running
metapost
 code included in tex code?
 Is the problem comonly known?

 I am using Windows XP myself. I never experienced the mentioned problem
 with metapost.
 What I miss in your error message is the used format like
  This is MetaPost, Version 0.641 (Web2c 7.3.7x) (mem=metafun
2003.9.25) 
 Did you generate the metafun format and placed it in e.g. the
 TeX\texmf-var\web2c directory, mktexlsr?

I have format properly generated, so that is not the problem. Even if I
there weren't metafun format 'serious system error' shouldn't occur... So I
have still no idea what is wrong. My friend use similar TeX installation
(based on TeXLive7) and has the same problem. Any ideas?


Pawe/l



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] RME and INI

2003-10-06 Thread Pawel Jackowski na Onet
Hi all!

TEXEXEC documentation and self documented 'texexec.rme' file says that it
should be copied to 'texexec.ini'. First of all; I have two 'texexec.rme' in
TeX tree; first in

...TeX/context/config

the second in

...TeX/context/perltk

Files looks to be identical but and the second location has a priority. But
which location is more convenient for texexec config file?

The second question is WHY I have to copy 'texexec.rme' to 'texexec.ini'? If
I do so and change some settings in 'texexec.ini' and than run
'texexec --verbose', I can see that settings are still taken from
'texexec.rme'. Could You tell me what is the point in copying RME to INI and
when INI file is used instead RME?



Thanks, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] RME and INI

2003-10-06 Thread Pawel Jackowski na Onet
Hi again

October 06, 2003 9:18 AM
Pawel wrote:


 Hi all!

 TEXEXEC documentation and self documented 'texexec.rme' file says that it
 should be copied to 'texexec.ini'. First of all; I have two 'texexec.rme'
in
 TeX tree; first in

 ...TeX/context/config

 the second in

 ...TeX/context/perltk

Of course should be '...TeX/texmf/context/config' and
'...TeX/texmf/context/perltk' respectively. Sorry for that.


Monday, October 06, 2003 11:17 AM
Patrick Gundlach:

 What system are you using?

I'm  using the same TeX installation for both windows and linux (common
texmf tree and binaries based on TeXLive7 distribution). The main adventage
is that I come across each problem only ones :-)

October 06, 2003 11:37 AM
George N. White III:

Did you run mktexlsr?

Ok, sorry for that stupid mistake. After updating base, 'texexec.ini' is
taken into account insead of 'texexec.rme'.

But I still can't get an idea of copying '.rme' to '.ini' since '.rme' file
can be read as well. Is that an easy way to save orginal config file
untouched?

The reason I'm so persistant to solve that (probably not crucial) problem is
that I'm still spying another problem -- generating format with proper
default font information (as described in details in other threads). I
thought that texexec config file(s) may be important at that point. But
after copying 'texexec.rme' to 'texexec,ini', changing some defaults, like

 set  FmtLanguage to  pl
 set  FmtBodyFont to  plr

and updating ls-R, the problem still appear, means that format generated
with proper command

texexec --make --language=pl,en --bodyfont=plr en

doesn't use the proper default font So I'm afraid it's not the solution.


Thanks anyway, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bodyfont plr

2003-10-06 Thread Pawel Jackowski na Onet

Subject: [NTG-context] bodyfont plr
(default font)


 Pawel Jackowski na Onet [EMAIL PROTECTED] writes:

 [...]

  The reason I'm so persistant to solve that (probably not crucial)
problem is
  that I'm still spying another problem -- generating format with proper
  default font information (as described in details in other threads). I
  thought that texexec config file(s) may be important at that point. But
  after copying 'texexec.rme' to 'texexec,ini', changing some defaults,
like
 
   set  FmtLanguage to  pl
   set  FmtBodyFont to  plr
 
  and updating ls-R, the problem still appear, means that format generated
  with proper command
 
  texexec --make --language=pl,en --bodyfont=plr en
 
  doesn't use the proper default font So I'm afraid it's not the
solution.

 I just did a quick test:

 texexec --make --alone --bodyfont=plr en

 and then run a simple tex file (\starttext \input tufte \stoptext)

 gave me an error that plr12 could not be found. So I guess it now
 uses plr as a default. But I am not sure.

 When you are using your setup, does plr12 get included in your
 document?

When I use format generated during first context installation, everything
works fine, means that context use plr by default. However this quite old
format contains only pl-hyphenation patterns.
For a couple of weeks I had been trying hard to generate format with
additional hyphenation patterns AND plr as default font. But each attempt
gave me a format which use cmr by default. Of course when I included i.e
plr10 definition in tex code or input some pl-oriented typescript,
everything was ok since I have correclty instaled and configured pl-fonts.
But default was still cmr, not plr.

I've just tried to generate format with additional option '--alone' (as in
your quick test) and that was the solution! Generated format uses the proper
default font now. Actually I didn't know that texexec uses 'fmtutil' by
default while generating formats (is there any special reason for that?...).
My problem shows that texexec (its self) is able to generate format in more
reliable way :)

Anyway Thank You Very Much For That Hint!


Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] RME and INI

2003-10-06 Thread Pawel Jackowski na Onet

Am Montag, 06.10.03, um 13:18 Uhr (Europe/Zurich) schrieb Pawel

 But I still can't get an idea of copying '.rme' to '.ini' since '.rme'
 file
 can be read as well. Is that an easy way to save orginal config file
 untouched?

.rme is overwritten at each update, your manually adapted .ini stays.

So that is the answer! Thanks a lot.

 and updating ls-R, the problem still appear, means that format
 generated
 with proper command
 texexec --make --language=pl,en --bodyfont=plr en
 doesn't use the proper default font So I'm afraid it's not the
 solution.

I think you must change that in cont-usr.tex (copy from cont-usr.ori,
same reason).
This file resides in texmf/tex/context/base.

I have tested a lot of modifiction of 'cont-usr.tex' (without effects)...
About two hours ago (following Patrick's hint) I added '--alone' option
while generating format and than bad dream disappeared. The conclusion is
that (probably) bypassing fmtutil in such special cases makes format
generating more reliable. Probably the best (quite advanced) way is to
generate 'strange' formats using directly 'tex_engine --ini ...' command,
but I'm not sure if I can generate proper context format in this way. I'm
afraid it's not my ligue yet :-]


Thanks, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XML command synonyms

2003-09-30 Thread Pawel Jackowski na Onet
Hi Hans, hi Simon!

First of all THANKS a lot for both of you for helpful hints and sugestions.
After many tests and experiments I decided to use
construction:

\def\XMLsynonym#1#2{%

\letcsnamecsname\csname\@@XMLelement:#1/\endcsname\csname\@@XMLelement:#2/\e
ndcsname

\letcsnamecsname\csname\@@XMLelement:#1\endcsname\csname\@@XMLelement:#2\end
csname

\letcsnamecsname\csname\@@XMLelement:/#1\endcsname\csname\@@XMLelement:/#2\e
ndcsname}

It works ok and suits me best since I (almost) understand HOW it works :)
Using constructions which I don't understand makes me a little bit
frustrated.
I'll do my best to understand other constructions as well.



Thanks a lot, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Hans, why don't you...

2003-09-25 Thread Pawel Jackowski na Onet
Hi Hans!

I found the following XML tabulate environment implementation in
xcont-ml.tex file:

...
\defineXMLsingular [context:tcell] [align=]
  {\appendtoks|\to\XMLtabtoks
   \processaction
 [\XMLop{align}]
 [left=\appendtoks l\to\XMLtabtoks,
  right=\appendtoks r\to\XMLtabtoks,
  center=\appendtoks c\to\XMLtabtoks,
  middle=\appendtoks c\to\XMLtabtoks]}
...


How about

para=\appendtoks p\to\XMLtabtoks

It makes it a little bit more flexible. Is there any reason You didn't add
'p' template token to the \processaction list?



Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XML command synonyms

2003-09-25 Thread Pawel Jackowski na Onet
Hi all!

Is there any way to define XML command synonyms? Assume that one defined

\deifneXMLenvirnment[subsubsubsubsection]{...}{...}

How to define '' as a synonym of 'subsubsubsubsection' without wrtiting
the same code twice?



Thanks, Pawe/l



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: is / notation (similar to german active ) still being...

2003-09-24 Thread Pawel Jackowski na Onet

Hans Hagen [EMAIL PROTECTED] wrote:


 At 21:30 21/09/2003 +0200, you wrote:

 Best regards, squealer Pawe/l

 just curious, is this / notation (similar to german active ) still being
 used in poland (and tex)?

 Hans

Some  Poles use \prefixing (MeX command which activate / notation) but it is
not common. I use it for exchanging i.e sample files with other Poles to
ensure that they will not be confused about encoding I send them. It is also
usefull for those who don't use/like TCX tables. Anyway / notation is
neither confortable for writing nor for reading but using it is to be on
safe side.


Regards



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] probably well known problem

2003-09-21 Thread Pawel Jackowski na Onet
 You might try
 
 texexec --make --language=pl,en,de --bodyfont=plr en
 
 from the texexec manual.
 
 Best succes...Karel
 
Thanks, but You probably haven't read my letter to the end. I wrote:

  After these changes I generated format with command
  
  texexec --make --language=pl,en,de --bodyfont=plr en

And than I wrote that it was not the solution.
I respect ntg-list and always try to ask the manual first :)
 
 
  Hi all!
  
  I've just finished (?) reinstalling and configuring my TeX system. It
  is quite small conglomerate of cont-bas, cont-tmf and my own packages.
  I've successfully generated all formats using fmtutil. However I have
  some troubles with 'cont-en'; it was successfully generated but do not
  work properly. I tried to do that also with texexec 'shell'.
  
  I need pl language hyphenation patterns as a default and for some
  cases also en and de. That's why I uncommented following lines in
  cont-usr.tex file: ...
   \installlanguage [\s!de] [\c!status=\v!start]
   \installlanguage [\s!en] [\c!status=\v!start]
   \installlanguage [\s!pl] [\c!status=\v!start]
  ...
   \setupcurrentlanguage[\s!pl]
   \definefilesynonym [font-cmr] [font-plr]
  % \useencoding[fde]  % commented by me
   \useencoding[fpl]
  ...
  
  After these changes I generated format with command
  
  texexec --make --language=pl,en,de --bodyfont=plr en
  
  Log file (cont-fmt):
  
  \unprotect
  \installlanguage[\s!pl][\c!status=\v!start]
  \installlanguage[\s!en][\c!status=\v!start]
  \installlanguage[\s!de][\c!status=\v!start]
  \setupcurrentlanguage[\s!pl]
  \definetypescriptsynonym[cmr][plr]\definefilesynonym[font-cmr][font-pl
  r] \protect \endinput
  
  Is it correct?
  
  After that I expect format with following features:
  -- interface: english
  -- default language: polish
  -- other languages (activated by \language[??]): en,de
  -- default font: plr
  
  The problem is that default font is still CMR and I want to use PLR.
  What is wrong? What should I do?
  
  Oh by the way, I recomend you cont-bas package; tidy, small and
  complete.
  
  
  Regards, Pawe/l
  
  
  ___
  ntg-context mailing list
  [EMAIL PROTECTED]
  http://www.ntg.nl/mailman/listinfo/ntg-context
  
 
 
 ___
 ntg-context mailing list
 [EMAIL PROTECTED]
 http://www.ntg.nl/mailman/listinfo/ntg-context
 


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: beginner question re: counters

2003-09-21 Thread Pawel Jackowski na Onet

Patrick Gundlach [EMAIL PROTECTED] writes:


 [...]
 It would be nice if the original posters would comment answers like
 this one if this works fine or not. Since these mails are archived,
 other people might come across this post and wonder if this is a good
 solution or not. 
 
 
 Just my $50^{-1}$ Euro

Ok, I will do my best to comment messages in more readable way.



Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] probably well known problem

2003-09-20 Thread Pawel Jackowski na Onet
Hi all!

I've just finished (?) reinstalling and configuring my TeX system. It is
quite small conglomerate of cont-bas, cont-tmf and my own packages. I've
successfully generated all formats using fmtutil. However I
have some troubles with 'cont-en'; it was successfully generated but do not
work properly. I tried to do that also with texexec 'shell'.

I need pl language hyphenation patterns as a default and for some cases also
en and de. That's why I uncommented following lines in cont-usr.tex file:
...
 \installlanguage [\s!de] [\c!status=\v!start]
 \installlanguage [\s!en] [\c!status=\v!start]
 \installlanguage [\s!pl] [\c!status=\v!start]
...
 \setupcurrentlanguage[\s!pl]
 \definefilesynonym [font-cmr] [font-plr]
% \useencoding[fde]  % commented by me
 \useencoding[fpl]
...

After these changes I generated format with command

texexec --make --language=pl,en,de --bodyfont=plr en

Log file (cont-fmt):

\unprotect
\installlanguage[\s!pl][\c!status=\v!start]
\installlanguage[\s!en][\c!status=\v!start]
\installlanguage[\s!de][\c!status=\v!start]
\setupcurrentlanguage[\s!pl]
\definetypescriptsynonym[cmr][plr]\definefilesynonym[font-cmr][font-plr]
\protect
\endinput

Is it correct?

After that I expect format with following features:
-- interface: english
-- default language: polish
-- other languages (activated by \language[??]): en,de
-- default font: plr

The problem is that default font is still CMR and I want to use PLR. What is
wrong? What should I do?

Oh by the way, I recomend you cont-bas package; tidy, small and complete.


Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] headers, marking and some puzzles

2003-09-19 Thread Pawel Jackowski na Onet
 simple way:

 \setupheadertexts[\hbox to
\hsize{\getmarking[chapter]\hrulefill\pagenumber}]

Of course simple way works ok. Below I described why \getmarking may couse
suprises.

 clever way:

 \startsetups[left header]

\hbox to \hsize \bgroup
  \getmarking[chapter]
  \quad \hrulefill \quad
  \pagenumber
\egroup

 \stopsetups

 \startsetups[right header]

\hbox to \hsize \bgroup
  \pagenumber
  \quad \hrulefill \quad
  \getmarking[chapter]
\egroup

 \stopsetups

 \setuppagenumbering [alternative=doublesided]
 \setupheadertexts   []
 \setupheadertexts   [\setups{left header}] [] [] [\setups{right header}]
 ...

Suprisingly clever way has no results -- headers are just EMPTYon every page
/ every chapter. The same with prettier way (with \doiftext clausule).
Probably there is my mistake, I will come back to it.

While studying this codes I've come across two not obvious things. Let's
look at this (silly) document

\setupheadertexts[]
\setupheadertexts[chapter][section]

\starttext
\chapter{Chapter One}
 Short introduction of \getmarking[chapter]
 \section{Section in first chapter}
  Body of \getmarking[section]

\chapter{Chapter Two}
\dorecurse{50}{Quite long introduction of \getmarking[chapter], which needs
at least one page. }
 \section{Section in second one}
  Body of {\bf\getmarking[section]}
\stoptext


The first is that \getmarking[whatever] used in bodytex and in header expand
to something different.
I can imagine that user has \in, \at, \about etc. instead, so that is not a
real problem. It puzzles me, however!

Another thing is that the header of the second page (begining of the SECOND
chapter) of this document contains a section mark
of the FIRST, already ended chapter. The same problem appear with plain
\mark primitive which is global. That is why I had to use additional
commands to reset marks. Is there any reasons for that that new part of
document (chapter, section) desn't reset marks of lower level parts?

... I've just noticed that the ConTeXt I use is a bit archaic. I will try to
do some upgrade and come back to the problem with fresh soft and mind.


Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Footnotes

2003-09-19 Thread Pawel Jackowski na Onet


 Hi Pawel,

Hi Willi!

 After all the solution is simpel ...
 [...]
  This command will force the bodyfont and the footnotes font to be the
same.
 If e.g. Myfont is setup as a typeface of Palatino for rm and Helvetica for
 ss, then the footnotes will be in Palatino when saying
 \setupfootnotes[bodyfont={small, rm}] and will be typeset in Helvetica
when
 saying \setupfootnotes[bodyfont={small, ss}]

Isn't that logical?

But look carrefully on the footnote numbers. Are they also from wanted font?
That was my problem.
It is not obvious that footnote reference numbers are set with xx size of
the bodyfontsize and footnote number with x size of
bodyfontsize used in footnote. So the way to set this numbers is to set
bodyfontenvironment for both bodyfintsize and 'footnotebodyfontsize'. The
puzzle is also that
one has no problems since bodyfontsize is default (i.e 12pt). So try to
change bodfontsize to i.e.13pt and than look at footnote numbers. If they
are correct you are the winner!

Thanks for report, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to set paths -- wider view

2003-09-18 Thread Pawel Jackowski na Onet
Hi!

 another option is to use:

\usepath[list of paths]
\usesubpath[list of subpaths]


Thanks again! It works almost like --path option -- files included with
\processXMLfile ARE included, but files included by
\input (or \typefile) ARE NOT. Anyway I've solved the problem already. I
described it below in case somebody have the same pain.

I have to make a package for automatic conversion XML2PDF. I decide to use
ConTeXt for it (neither XSLT nor xmltex, ..., are so suitable) and that is
how our love began! The problem is that the package should be independent
from kpathsea as far as possible. I mean searching paths for macros, fonts,
encodings, ..., must be configurable internaly, without touching texmf.cnf
and any other config files. There are three reasons: one is that my boss is
unfortunately not interested in learnig/configuring/using TeX at all, second
is that it must be portable and work with any(?) kpathsea installation with
ConTeXt.  The last but not least is that there isn't still miniTeX (really
mini!) kpathsea distribution which may be very usefull in such situation...
Of course it's possible to make this by cruel substraction of existing
distributoion but... Anyway I wrote some perl-scripts, which solve
kpathsea-like syntax in independent config file (which is nice training:-).
Variables (i.e TEXINPUTS) defined in this small, external config and are
either temporarly exported to (nested) environment or rewriten to generated
context code (into \setupexternalfigures[directory=...], \usepath[...] and
so on). Script traverse a tree of XML documents and generate context-codes
which are compiled directly to PDF.

It is still experimental and not best solution, but works ok. Meybe somebody
have made this voyage already?


Regards, Pawe/l




___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to set paths

2003-09-17 Thread Pawel Jackowski na Onet
Hello!

 you can set the directory (gebied in dutch) with:

\setupsystem

 or pass --path to texexec

Thanks a lot Hans! Although I can't still use \setupsystem  properly (even
with looking at core-code tricks), --path option seems to be the solution.
I've solve processing XML files in this way. Typing (\typefile) and inputing
(\input) files are still the quest. --path seems not to work with this
commands
or I do something wrong. I'll look closely into it.

Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] error \handlecompoundcharacter ...

2003-09-17 Thread Pawel Jackowski na Onet
Hi!

 Consider this simple code:
 
 \defineXMLcommand
   [de] {\language[de]}
 
 \defineXMLcommand
   [end]
   {\disableXML}
 
 \starttext
 \enableXML
   de/
   anytag anyattrib=Aqq/
   Ich liebe ConTeXt!
   end/
 \stoptext
 
 It cause en ERROR! It happens ONLY for \language[de] neither pl nor en,
 nl...

 ah ... you suffer from german double quote handling u - umlaut; if you
 were older you'd probably suffer from the polish active / as well
:-)

 \def\disablelanguagespecifics{\def\installcompoundcharacter##1 ##2{}}
 \appendtoks \disablelanguagespecifics \to \everyenableXML

That's it

 and you can love context again

I just can't stop loving it!

 (given that no de switch is done at the
 outer level). Some day i'll make context dual input mode aware.

Till that time I won't expect that form ConTeXt.

Thanks again, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] sorry (off topic)

2003-09-17 Thread Pawel Jackowski na Onet
Hi

 %  \relax is not always obligatory but treat it as a goode habit

^

What I wanted to say by 'goode'? Sorry for that... I sent it too fast.
Sorry for any other mistakes in my messages. Belive me, it's not my
negligence.
I work hard on it...

Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Footnotes

2003-09-16 Thread Pawel Jackowski na Onet
Hi!

 However, when I use
 \setupfootnotes[bodyfont={\switchtobodyfont[8pt]},offset=-1cm]
 I get an error.
[...]
 If I am using \setupfootnotes[bodyfont=5pt,offset=-1cm] then I  get  the
 footnote typeset in 5pt but still cmr and the error in the log-file is
still

Try

\definefontsynonym[myFont][your_font]
\definebodyfont[10pt,9pt,8pt,7pt][ss]
 [tf=myFont sa 1]

\setupbodyfontenvironment
 [10pt]
 [xx=9pt] % footnote reference number

\setupbodyfontenvironment
 [8pt]
 [x=7pt] % footnote number

% ALL 10, 9, 8, 7pt fonts MUST be defined in \definebodyfont

\setupbodyfont[10pt,ss]
\setupfootnotes[bodyfont=8pt]

There is somt text\footnote{and there is a footnote}
\end

Doesn't it work?



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] error \handlecompoundcharacter ...

2003-09-16 Thread Pawel Jackowski na Onet
Hi experts!
Consider this simple code:

\defineXMLcommand
 [de] {\language[de]}

\defineXMLcommand
 [end]
 {\disableXML}

\starttext
\enableXML
 de/
 anytag anyattrib=Aqq/
 Ich liebe ConTeXt!
 end/
\stoptext

It cause en ERROR! It happens ONLY for \language[de] neither pl nor en,
nl...
Error message is:

systems: begin file x at line 8
! Undefined control sequence.
\handlecompoundcharacter ...ndlecompoundcharacter

{\dohandlecompoundcharacte...

\dodoparseXMLarguments #1-\if #1
 \let \dodoparseXMLarguments \empty
\else \...
argument anyatrib=
 Aqq/
\parseXMLelement ...XMLarguments \rawXMLelement #3
  \fi \or \or \the
\everyXM...
l.11  anytag anyatrib=Aqq/

?
! Emergency stop.
\handlecompoundcharacter ...ndlecompoundcharacter

{\dohandlecompoundcharacte...

\dodoparseXMLarguments #1-\if #1
 \let \dodoparseXMLarguments \empty
\else \...
argument anyatrib=
 Aqq/
\parseXMLelement ...XMLarguments \rawXMLelement #3
  \fi \or \or \the
\everyXM...
l.11  anytag anyatrib=Aqq/

End of file on the terminal!


Any hints?

Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to set paths

2003-09-16 Thread Pawel Jackowski na Onet
Hello!

In some special cases I need to set paths for input files directly from
ConTeXt code not from config file.
In manuals \setupexternalfigures is described. Is there any similar command
for files that are inputed directly
by \input, \typefile \processXMLfile (the last is the most interesting for
me) and similar commands?

If there isn't any special command for that, how to do that using some
abrakadabra:-)


Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Footnotes

2003-09-16 Thread Pawel Jackowski na Onet
Hi Willi

 Thanks for your suggestions. In my case this does not seem to be the
 solution.
 I fiddled with the different options. The conclusion is, that the
footnotes
 do not readily follow the
 bodyfont settings.
 I provided Hans a test file and he will look into it.

Let me know when You solve the problem.

Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Footnotes

2003-09-15 Thread Pawel Jackowski na Onet
 Hi everybody,


 I have to typset several footnotes.

 I setup a bodyfont (sanserif, Helvetica like).
 Why are the footnotes typset in cmr?


I'm not sure but I've just solved similar problem. Footnotes have their
'own' bodyfontsize so if it isn't defined, ConTeXt uses default font.
For example I defined \definebodyfont [13pt,12pt], while footnotes are
'small' by default, which means that they are 10pt.
Footnotes were in cmr10 because I didn't defined 10pt body font. Is that
your problem?

Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] fonts and footnotes

2003-09-11 Thread Pawel Jackowski na Onet
Hi!

I have a problem with font of footnote-numbers. I will try to describe some
details because they can be important.

I've defined some sans-serif font with my own styles and sizes:

\definefontsynonym[tfMyFont][file_name1]
\definefontsynonym[bfMyFont][file_name2]
% I don't need neither italics- nor math-style
\definebodyfont[13pt,12pt,...,9pt][ss]
 [tfs=tfMyFont sa 0.75, % let's test alternative for tfxx
  tf=tfMyFont sa 1,
  
  bfs=bfMyFont sa 0.75,
  bf=bfMyFont sa 1,
  ]
\setupbodyfont[13pt,ss]

Then I set styles for heads (chapters, sections etc.). The same for headers
and footers. These setups work OK.
I have a problem with footnotes though. I tried \setupfootnotes[style=\tfs];
it doesn't work (why?) -- footnotes
are set with some ConTeXt-default ss font -- cmss10 -- which is not my
beautiful sansserif:-). I also tried setup \setupfootnotes[bodyfont=10pt];
it works good since ten-point font is defined in \definebodyfont.. BUT
numbers of footnotes still 'use' default sansserif font. So I tried
something like; \setupfootnotes[...,numbercommand=\MyCommand], where
\MyCommand set appropriate fontstyle and raise the number as a ^superscript
(quite sophisticated way...). Anyway I have still no idea how to setup
correct font and style for footnote-numbers.

1. How to setup font-style and -size for footnotes text without giving
dimension directly? I mean why I have to set \setupfootnotes[bodyfont=10pt]
and I can't set \setupfootnotes[style=\tfxx]?
2. How to setup font-style and -size for BOTH  footnote reference (in text)
and footnote number (in the bottom of the text area)?

Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: XML ConTeXt -- handling many conventions

2003-09-10 Thread Pawel Jackowski na Onet
Hi!

 Hello Pawe³ (I, hope your name comes out OK)[...]

Actually no, but don't worry. I'm aware that polish 'lslash' may not be
displayed properly. But using polish characters is the only way
to protect them from extinction. I will think about some compromise.

 The element chapter title=First Chapter is wrong.  By burying your
 title in an attribute you're making it neither easily searchable nor
 useble by other applications.

That is what I said to my boss. The problem is that J have to build
something more or less universal because
I don't known who will prepare XML documents and which convention will be
used.

 The general rule of thumb for when to use attributes and when to use
 elements is: use elements for presentable data and attributes for
 system data.  In this case where you're presenting the title First
 Chapter to the context-processor to be marked up as a chapter title,
 it is definitely presentable data, and therefore it belongs in an
 element.

Thanks, I will remember. It looks convincing.


Regards, Pawe/l


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, XML and verbatim

2003-09-04 Thread Pawel Jackowski na Onet
Hi!

 On Wed, Sep 03, 2003 at 09:49:40PM +0200, Simon Pepping wrote:
  
   Meybe someone knowns how to 'translate' verbatim environments for XML
code?
   I mean how to define environment which I can use in this way [..]

  There are no verbatim environments in XML, and you cannot get literal
  content. Instead, you can have tags, like your verbatim above, that
  request line-oriented layout. programlisting is such a tag in Docbook.

 That's correct with respect to elements--since XML deliberately avoids
 defining semantics for any element.  But you seem to be overlooking
 CDATA sections, which are more-or-less verbatim environments. The XML
 spec doesn't directly address the question of formatting in CDATA
 sections, but all characters are supposed to be output literally, and
 AFAIK that includes white space--hence all formatting should be
 preserved.

 But I don't know if ConTeXt can handle CDATA sections. Can it?

Good question! As far as I'm concerned (but I'm not concerned far...)
ConTeXt can handle some 'metadata'
like !ENTITY But I don't know exaclty which levels of XML syntax is
handled with ConTeXt core.
I hope Hans will provide some workshops :)


Regards, Pawel


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context