Re: [NTG-context] Question regarding context's module defintion

2006-06-09 Thread Hans Hagen
Aditya Mahajan wrote:
 Are users supposed to use %D kind of remarks to comment their own 
 environment files? I am finding it a bit strange to work with. Does 
   
well, it has been so for a long time; originally there were also %S 
lines for the formal command definitions

anyhow, the %D is used to signal text that wil be typeset in a 
'documentation run'

in the editor that i use, i can remove/add %D's on a selection, so it's 
no real burden
 one have to leave a blank line after a %D line for that line to 
 appear?
   
no, but it's just that i like a spacy layout; if it does not work, then 
there is a bug in ctxtools
 Consider the test file
 %D \module
 %D  [file=test.tex,
 %D   version=0.0,
 %D   title=Test File,
 %D   subtitle=Blah blah,
 %D   author=Aditya Mahajan,
 %D   date=\currentdate]


 %D Explaination for the next macro does not work
 \def\test{test}

 %D \macros{test}
 %D Neither does this.
 \def\test{test}

 %D Leaving a blank space also works

 \def\test{test}

 ---

 and look at the output of texmfstart texexec --modules test.tex. Why 
 are the first two macro definitions not in the pdf?
   

in ctxtools.rb, locate:

inlocaldocument = indocument
inlocaldocument = false # else first 
line skipped when not empty

please test all kind of variants (there most have been a reason for 
this, so it may as well be a bug related to translating from perl to ruby)

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


[NTG-context] itemize and interlinespace

2006-06-09 Thread Olivier
Hi,

I am fighting to change the interlinespace in item text.
For instance:

\startitemize
\item This is the text
  % here the interline space is very small
  of the first item
\stopitemize

By the way, is there a way to change the font 
depending on the item level? 

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


[NTG-context] texmfstart texutil

2006-06-09 Thread Hans van der Meer
In order to purge the temporary context files I did (throught an alias)	texutil --purgeThis worked fine.Since the introduction of the ruby scripts this call now tells me:	remark: 'texutil' is now part of 'texexec'	warning: use 'texmfstart texutil' insteadSo I obediently call:	texmfstart.rb texutil --purgeThis silently does nothing.Neither does work "texmfstart texexec --version" the same as did "texexec --version".The former giving the TeXExec version, the latter gave the installed ConTeXt formats.It is not "texmfstart texexec --purge" because I tried that too.On the other hand, replacing "texexec --silent --pdf --autopdf file.tex"by the same preceded with "texmfstart" does work as expected.What happened? Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ec encoding and tcaron

2006-06-09 Thread Michal Kvasnicka
Dear friends,

I apologize that I ask the same question that had been asked a year ago 
but I can't find in the archive the definite solution.

I want to use new fonts in the ConTeXt to typeset the Czech documents. 
TeXFont seems to be the best way to prepare metrics. EC encoding seems 
to be the standard ConTeXt encoding. But it doesn't include tcaron 
(well, this is true at least for EC.enc on my teTeX 3.0 under the SuSE 
Linux 10.0 with the latest ConTeXt from May 28). (In the Czech the lower 
case of Tcaron looks like tqouteright but nowadays most AFM files call 
it tcaron).  Other glyphs may miss as well (I might not notice since I 
suspect that ConTeXt replaces missing letter with composites, e.g. 
Ecaron with \v{E}).

So, what is the standard way I should use? I can use ec-lm.enc but is it 
the right way? (Moreover, it seems there is no information for 
ligatures.) I could try to use il2, but is the right way? And I had some 
problems with xl2.enc used formerly for il2-encoded fonts.

So, what was decided to be the right encoding for the ConTeXt? (Is the 
answer the same for the Czech typesetters?)
And one more question: Does anybody have the enc file that would make 
the TeXFont to generate metrics for il2-encoded fonts for the use with 
csplain (the Czech version of plainTeX)?

Sincerely yours
Michal Kvasnicka

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


Re: [NTG-context] ec encoding and tcaron

2006-06-09 Thread Richard Gabriel




Hello Michal, I'm sure the EC encoding contains the 'tcaron' character (see the lm-ec.enc file for example).I have ConTeXt on top of TeXLive 2005.I can find:texmf/fonts/enc/dvips/base/ec.enctexmf/fonts/enc/dvips/lm/ec-lm.enctexmf/fonts/enc/dvips/lm/lm-ec.encI use EC normally for typesetting Czech documents. So I would suggest to use EC ;-)-RichardFrom: Michal Kvasnicka [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 09 Jun 2006 12:11:11 +0200Subject: [NTG-context] ec encoding and tcaronDear friends,

I apologize that I ask the same question that had been asked a year ago 
but I can't find in the archive the definite solution.

I want to use new fonts in the ConTeXt to typeset the Czech documents. 
TeXFont seems to be the best way to prepare metrics. EC encoding seems 
to be the standard ConTeXt encoding. But it doesn't include tcaron 
(well, this is true at least for EC.enc on my teTeX 3.0 under the SuSE 
Linux 10.0 with the latest ConTeXt from May 28). (In the Czech the lower 
case of Tcaron looks like tqouteright but nowadays most AFM files call 
it tcaron).  Other glyphs may miss as well (I might not notice since I 
suspect that ConTeXt replaces missing letter with composites, e.g. 
Ecaron with \v{E}).

So, what is the standard way I should use? I can use ec-lm.enc but is it 
the right way? (Moreover, it seems there is no information for 
ligatures.) I could try to use il2, but is the right way? And I had some 
problems with xl2.enc used formerly for il2-encoded fonts.

So, what was decided to be the right encoding for the ConTeXt? (Is the 
answer the same for the Czech typesetters?)
And one more question: Does anybody have the enc file that would make 
the TeXFont to generate metrics for il2-encoded fonts for the use with 
csplain (the Czech version of plainTeX)?

Sincerely yours
Michal Kvasnicka

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

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


Re: [NTG-context] ec encoding and tcaron

2006-06-09 Thread Michal Kvasnicka
Hi Richard.
 I'm sure the EC encoding contains the 'tcaron' character (see the 
 lm-ec.enc file for example).
 I have ConTeXt on top of TeXLive 2005.
 I can find:
 texmf/fonts/enc/dvips/base/ec.enc
 texmf/fonts/enc/dvips/lm/ec-lm.enc
 texmf/fonts/enc/dvips/lm/lm-ec.enc

 I use EC normally for typesetting Czech documents. So I would suggest 
 to use EC ;-)
I'm sorry you're not right. The lm-ec.enc really includes tcaron, but 
neither ec.enc nor EC.enc does, at least at my teTeX 3.0. If you use 
only LatinModern, it works, because lm-ec.enc is used. But I doubt it 
works well for other fonts. Does it? I was unsuccessful. Can you send me 
your ec.enc file please?

Yours
Michal Kvasnicka

P.S. It's nice to hear that more Czech use the ConTeXt.

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


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Hans Hagen
Hans van der Meer wrote:
 In order to purge the temporary context files I did (throught an alias)
 texutil --purge
 This worked fine.

 Since the introduction of the ruby scripts this call now tells me:
 remark: 'texutil' is now part of 'texexec'
 warning: use 'texmfstart texutil' instead

 So I obediently call:
 texmfstart.rb texutil --purge
 This silently does nothing.

 Neither does work texmfstart texexec --version the same as did 
 texexec --version.
 The former giving the TeXExec version, the latter gave the installed 
 ConTeXt formats.

 It is not texmfstart texexec --purge because I tried that too.
 On the other hand, replacing texexec --silent --pdf --autopdf file.tex
 by the same preceded with texmfstart does work as expected.

 What happened?
texutil will go away (i.e. be a wrapper only); the functionality has been moved 
to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb etc 

it's now: 

ctxtools --purge 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Hans Hagen
Richard Gabriel wrote:
 I'd like to confirm this, i tried
 texmfstart texutil.rb test.tui
 or
 texmfstart texutil.rb --references test.tui
 and nothing happened!
 Although, texutil is called correctly when processing a file with 
 texexec (maybe texexec calls methods from texutil.rb directly...)
indeed, texexec.rb therefore does not need to start another script (so 
we're faster now)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] \MetaFun

2006-06-09 Thread Hans Hagen
andrea valle wrote:
 As I made a presentation concerning typesetting I used the magic 
 symbols \TeX, \LaTex, \ConTeXt, \MetaFont, \MetaPost.
 I also used \MetaFun: no error (so it's a recognized command,  I 
 guess), but not special output, \MetaFun = MetaFun.  I was hoping to 
 have the nice MetaFun shaked logo...
   What am I missing?

   
\setupcolors[state=start] \MetaFun \end

should work ok; maybe some problem with your metafun run? 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Richard Gabriel




Of course I understand, I'd solve it the same way...But, I'd suggest to print some warning, if some functionality is moved or removed.E.g. if I try texmfstart texutil.rb --figuresit also doesn't work but I'm informed what has happened.. ;-)Thanks,RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 09 Jun 2006 12:50:45 +0200Subject: Re: [NTG-context] texmfstart texutilRichard Gabriel wrote:
 I'd like to confirm this, i tried
 texmfstart texutil.rb test.tui
 or
 texmfstart texutil.rb --references test.tui
 and nothing happened!
 Although, texutil is called correctly when processing a file with 
 texexec (maybe texexec calls methods from texutil.rb directly...)
indeed, texexec.rb therefore does not need to start another script (so 
we're faster now)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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

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


[NTG-context] backgroundcolor broken in 2006-06-07

2006-06-09 Thread Hans van der Meer
In the latest context version of 2006-06-7 coloring the background seems broken.Reverting to the version 2006-05-28 remedied this, but I have no intention of course, to freeze my system at that point.Here is a minimal example that colors the background in 2006-05-28 and does not in 2006-06-07:\setupcolors[state=start]\definetextbackground[showbkg][frame=off,location=text,    background="">\starttexttekst \startshowbkg background \stopshowbkg{} tekst.\stoptextCan someone look into this? I am relying on this coloring! Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Hans van der Meer

On Jun 9, 2006, at 11:43, Richard Gabriel wrote:


 Note: To check the installed formats and their version, use now:
 texmfstart texexec --check

Yes, but is so much more verbose.
While previously a neat, short  summary of the currently installed  
formats was printed. Just what I wanted.

met vriendelijke groet
Hans van der Meer



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


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Hans van der Meer

On Jun 9, 2006, at 12:49, Hans Hagen wrote:

 Hans van der Meer wrote:
 In order to purge the temporary context files I did (throught an  
 alias)
 texutil --purge
 This worked fine.



 texutil will go away (i.e. be a wrapper only); the functionality  
 has been moved to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb  
 etc

 it's now:

 ctxtools --purge

For those on UNIX(-like) systems that have only texmfstart.rb enabled  
as executable (chmod a+x texmfstart.rb) this will not work as none  
the ruby scripts in the distribution seem to have their execution  
bits set.
The next seems mandatory if only texmfstart is enabled: texmfstart  
ctxtools --purge

Hans van der Meer



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


Re: [NTG-context] backgroundcolor broken in 2006-06-07

2006-06-09 Thread Taco Hoekwater


Hans van der Meer wrote:
 In the latest context version of 2006-06-7 coloring the background seems 
 broken.
 Reverting to the version 2006-05-28 remedied this, but I have no 
 intention of course, to freeze my system at that point.
 
 Here is a minimal example that colors the background in 2006-05-28 and 
 does not in 2006-06-07:
 
 \setupcolors[state=start]
 \definetextbackground[showbkg][frame=off,location=text,
 background=color,backgroundcolor=orange,backgroundoffset=0pt]
 \starttext
 tekst \startshowbkg background \stopshowbkg{} tekst.
 \stoptext
 
 Can someone look into this? I am relying on this coloring!

Backgrounds work ok here (on Linux).

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


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Taco Hoekwater


Hans van der Meer wrote:
 
 For those on UNIX(-like) systems that have only texmfstart.rb enabled  
 as executable (chmod a+x texmfstart.rb) this will not work as none  
 the ruby scripts in the distribution seem to have their execution  
 bits set.

 The next seems mandatory if only texmfstart is enabled: texmfstart  
 ctxtools --purge

There is a whole bunch of shell stubs in the distribution, in

scripts/context/stubs/unix

but currently you always have to redo the chmod +x after each update
because the execution permission bit is not kept in the zip, so it
gets trashed during the unzip operation.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] backgroundcolor broken in 2006-06-07

2006-06-09 Thread Aditya Mahajan
On Fri, 9 Jun 2006, Taco Hoekwater wrote:



 Hans van der Meer wrote:
 In the latest context version of 2006-06-7 coloring the background seems
 broken.
 Reverting to the version 2006-05-28 remedied this, but I have no
 intention of course, to freeze my system at that point.

 Here is a minimal example that colors the background in 2006-05-28 and
 does not in 2006-06-07:

 \setupcolors[state=start]
 \definetextbackground[showbkg][frame=off,location=text,
 background=color,backgroundcolor=orange,backgroundoffset=0pt]
 \starttext
 tekst \startshowbkg background \stopshowbkg{} tekst.
 \stoptext

 Can someone look into this? I am relying on this coloring!

 Backgrounds work ok here (on Linux).

They also work on windows (standalone context from pragma)

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


Re: [NTG-context] ec encoding and tcaron

2006-06-09 Thread Vit Zyka
Michal Kvasnicka wrote:
 Hi Richard.
 I'm sure the EC encoding contains the 'tcaron' character (see the 
 lm-ec.enc file for example).
 I have ConTeXt on top of TeXLive 2005.
 I can find:
 texmf/fonts/enc/dvips/base/ec.enc
 texmf/fonts/enc/dvips/lm/ec-lm.enc
 texmf/fonts/enc/dvips/lm/lm-ec.enc

 I use EC normally for typesetting Czech documents. So I would suggest 
 to use EC ;-)
 I'm sorry you're not right. The lm-ec.enc really includes tcaron, but 
 neither ec.enc nor EC.enc does, at least at my teTeX 3.0. If you use 

I believe this bug was fixed more then a year ago. The names of ec-lm 
and lm-ec was changed during a time a year ago. teTeX 3.0 has not 
changed since last year since it is dead.

Vit

 only LatinModern, it works, because lm-ec.enc is used. But I doubt it 
 works well for other fonts. Does it? I was unsuccessful. Can you send me 
 your ec.enc file please?
 
 Yours
 Michal Kvasnicka
 
 P.S. It's nice to hear that more Czech use the ConTeXt.

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


Re: [NTG-context] \MetaFun

2006-06-09 Thread andrea valle
Thanks Hans

This is what I obtain.

http://www.semiotiche.it/andrea/membrana/metafun.zip

?

Best

-a-

PS: Console and log follow.

Here console:

  TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

fixing engine variable : pdfetex
 executable : pdfetex
 format : cont-en
  inputfile : metafun
 output : pdftex
  interface : en
   current mode : none
TeX run : 1

This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
  (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
entering extended mode
(./metafun.tex

ConTeXt  ver: 2006.02.03 21:03  fmt: 2006.3.13  int: english  mes:  
english

language: language en is active
protectionstate 0
system  : cont-new loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns nl-texnansi:texnansi-1-2:3  
nl-ec:ec-2-2:3 fr-
texnansi:texnansi-3-2:3 fr-ec:ec-4-2:3  
de-texnansi:texnansi-5-2:3 de-e
c:ec-6-2:3 it-texnansi:texnansi-7-2:3 it-ec:ec-8-2:3  
pt-texnansi:texna
nsi-9-2:3 pt-ec:ec-10-2:3 hr-ec:ec-11-2:3 pl-pl0:pl0-12-2:3  
pl-ec:e
c-13-2:3 pl-qx:qx-14-2:3 cz-il2:il2-15-2:3 cz-ec:ec-16-2:3  
sk-il2:i
l2-17-2:3 sk-ec:ec-18-2:3 sl-il2:il2-19-2:3 sl-ec:ec-20-2:3  
en-ec:e
c-22-2:3 uk-ec:ec-23-2:3 us-ec:ec-24-2:3 da-ec:ec-25-2:3  
sv-ec:ec-
26-2:3 af-ec:ec-27-2:3 no-ec:ec-28-2:3 deo-ec:ec-29-2:3  
es-ec:ec-30
-2:3 ca-ec:ec-31-2:3 la-ec:ec-32-2:3 ro-ec:ec-33-2:3  
tr-ec:ec-34-2
:3 fi-ec:ec-36-2:3 hu-ec:ec-37-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : metafun.top loaded
(./metafun.top
specials: loading definition file tpd
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
color   : system rgb is global activated
fonts   : resetting map file list
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
(/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex)  
[1.1{/usr/loc
al/teTeX/share/texmf.local/fonts/map/pdftex/context/original- 
empty.map}{/usr/lo
cal/teTeX/share/texmf.local/fonts/map/pdftex/context/original- 
base.map}{/usr/lo
cal/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-public- 
lm.map}{/usr/loc
al/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-base.map}{/usr/ 
local/teT
eX/share/texmf.local/fonts/map/pdftex/context/8r-base.map}{/usr/local/ 
teTeX/sha
re/texmf.local/fonts/map/pdftex/context/t5-base.map}{/usr/local/teTeX/ 
share/tex
mf.local/fonts/map/pdftex/context/original-ams-base.map}{/usr/local/ 
teTeX/share
/texmf.local/fonts/map/pdftex/context/original-ams-euler.map}{/usr/ 
local/teTeX/
share/texmf.local/fonts/map/pdftex/context/original-public-lm.map}]
systems : end file metafun at line 1
   
){/usr/local/teTeX/share/texmf.tetex/fonts/enc/dvips/lm/lm-ec.enc}/ 
usr/local/
teTeX/share/texmf.tetex/fonts/type1/public/lm/lmr12.pfb
Output written on metafun.pdf (1 page, 22275 bytes).
Transcript written on metafun.log.

return code : 0
   run time : 6 seconds
   sorting and checking : running texutil

  TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004

 action : processing commands, lists and registers
 option : sorting IJ under Y
 option : converting high ASCII values
 input file : metafun.tui
output file : metafun.tuo
passed commands : 18
  remapped keys : 0
   register entries : 0 - 0 entries 0 references

Re: [NTG-context] \MetaFun

2006-06-09 Thread Taco Hoekwater


andrea valle wrote:
 Thanks Hans
 
 This is what I obtain.
 
 http://www.semiotiche.it/andrea/membrana/metafun.zip

I may be missing something, but this is the output I would
expect. cont-log.tex contains only this simple definition:

   \unexpanded\def\MetaFun
 {MetaFun}

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


Re: [NTG-context] \MetaFun

2006-06-09 Thread andrea valle
Ah, ok, that's exactly what I need to know.

I was thinking that maybe there was some kind of special look for the 
\MetaFun word: I was supposing that calling \MetaFun I would have 
obtained the (nice) shaken metafun logo of the manuals.

Thanks

-a-


On 9 Jun 2006, at 16:55, Taco Hoekwater wrote:



 andrea valle wrote:
 Thanks Hans

 This is what I obtain.

 http://www.semiotiche.it/andrea/membrana/metafun.zip

 I may be missing something, but this is the output I would
 expect. cont-log.tex contains only this simple definition:

\unexpanded\def\MetaFun
  {MetaFun}

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


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Hans Hagen
Hans van der Meer wrote:
 On Jun 9, 2006, at 12:49, Hans Hagen wrote:

   
 Hans van der Meer wrote:
 
 In order to purge the temporary context files I did (throught an  
 alias)
 texutil --purge
 This worked fine.

   

   
 texutil will go away (i.e. be a wrapper only); the functionality  
 has been moved to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb  
 etc

 it's now:

 ctxtools --purge
 

 For those on UNIX(-like) systems that have only texmfstart.rb enabled  
 as executable (chmod a+x texmfstart.rb) this will not work as none  
 the ruby scripts in the distribution seem to have their execution  
 bits set.
 The next seems mandatory if only texmfstart is enabled: texmfstart  
 ctxtools --purge

   
on unix, one needs to copy texmfstart.rb to texmfstart and copy it to 
some bin path

-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Question regarding context's module defintion

2006-06-09 Thread Aditya Mahajan
On Fri, 9 Jun 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Are users supposed to use %D kind of remarks to comment their own
 environment files? I am finding it a bit strange to work with. Does

 well, it has been so for a long time; originally there were also %S
 lines for the formal command definitions

 anyhow, the %D is used to signal text that wil be typeset in a
 'documentation run'

 in the editor that i use, i can remove/add %D's on a selection, so it's
 no real burden
 one have to leave a blank line after a %D line for that line to
 appear?

 no, but it's just that i like a spacy layout; if it does not work, then
 there is a bug in ctxtools

 [code deleted]
 
 and look at the output of texmfstart texexec --modules test.tex. Why
 are the first two macro definitions not in the pdf?


 in ctxtools.rb, locate:

inlocaldocument = indocument
inlocaldocument = false # else first
 line skipped when not empty

 please test all kind of variants (there most have been a reason for
 this, so it may as well be a bug related to translating from perl to ruby)

From the code, I can not understand why inlocaldocument is there. 
Setting indocument to false works as expected. This is equivalent to 
removing inlocaldocument completely (the unless inlocaldocument is 
always run). I will do some more elaborate tests to check is anything 
breaks.

Should the test-suite contain tests for ruby scripts also?

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


Re: [NTG-context] A question about the build-in module s-pre-06(The Polish style)

2006-06-09 Thread Aditya Mahajan
On Fri, 9 Jun 2006, Ê¢¾¢ËÉ wrote:

 Hi,evergyone
   when I compile my .tex file in which the polish style module was been used, 
 It doesn't work. the pop-up
 window tells me that  maketfm: no creation rule for the font sy-anttrz.  
 i have known that the module
 pre-polish use a special font the Antikwa Torunska. this prolem may be to 
 some extent related to this font
 so my questions are:
 1. how can i install and use the font?
 2. how to fix the problem?
 any suggestion from you is highly appreciated!

 P.S.: I use the newst miKTex in windows xp sp2.

Open Miktex package manager and search for Antikwa and install that 
package. Open Miktex options and refresh database. This should install 
the font.

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


Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Aditya Mahajan
On Thu, 8 Jun 2006, Aditya Mahajan wrote:

 On Thu, 8 Jun 2006, John R. Culleton wrote:

 Here is a common situation. I need a doublesided layout so I can
 adjust the backspace. I want the header text on evens and odds
 centered over the text block. To simplify the issue let's say
 I want left on the evens and right on the odds. If I specify
 (per the manual)
 \setupheadertexts[text][left][right]
 then I get both words on both pages.
 If I use two extra sets of [] then I can get left on the left
 and right on the right but I cannot get them centered.

 I am missing something obvious I am sure. Anyone have a firm
 grasp of the obvious? I don't.

 If I understand you correctly, use \setupheadertexts[center]. If you
 want something in the left, center and right, then do

 \setupheadertexts[left][right]
 \setupheadertexts[center]

I misread your mail. How about something like this

\def\setupextendedheadertexts{%
   \dosixtupleempty\dosetupextendedheadertexts}

\def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
   \setupheadertexts[] %Empty the center headers
   \setupheadertexts
 %Odd page
 [{\rlap{#1}\hfill#2\hfill\llap{#3}}][]
 %Even page
 [][{\rlap{#4}\hfill#5\hfill\llap{#6}}]}

\setupextendedheadertexts[odd-left][odd-center][odd-right][even-left][even-center][even-right]

\starttext
\dorecurse{10}{This is a test \page}
\stoptext


This does not take care of magic texts like pagenumber, section, 
chapter. If you want that, you can try (careful with linebreaks)

\def\setupextendedheadertexts{%
   \dosixtupleempty\dosetupextendedheadertexts}

\def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
   \setupheadertexts[] %Empty the center headers
   \setupheadertexts
 %Odd page
[{\rlap{\domagic{#1}}\hfill\domagic{#2}\hfill\llap{\domagic{#3}}}][]
 %Even page
[][{\rlap{\domagic{#4}}\hfill\domagic{#5}\hfill\llap{\domagic{#6}}}]}

\unprotect
\def\domagic#1{%
   \convertargument#1\to\ascii
   \doifsomething\ascii{%
 \doifelsemarking\ascii
   {\getmarking[\ascii][\v!first]}
   {\ConvertConstantAfter\doifelse\v!pagenumber{#1}
 \@@plaatspaginanummer
 {\ConvertConstantAfter\doifelse\v!date{#1}
   {\currentdate}
   {#1{}{}{}}
\protect

\setupextendedheadertexts[date][chapter][pagenumber][pagenumber][section][Whatever]

\starttext
\dorecurse{4}{
\chapter{Chapter \recurselevel}
   \input tufte \endgraf
   \input tufte \endgraf
   \input tufte \endgraf
   \section{Section}
   \input knuth
   \input knuth
   \input knuth
}

\stoptext


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


Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Hans van der Meer

On Jun 9, 2006, at 17:21, Hans Hagen wrote:

 Hans van der Meer wrote:
 On Jun 9, 2006, at 12:49, Hans Hagen wrote:


 Hans van der Meer wrote:

 In order to purge the temporary context files I did (throught an
 alias)
 texutil --purge
 This worked fine.




 texutil will go away (i.e. be a wrapper only); the functionality
 has been moved to texexec.rb, ctxtools.rb, pdftools.rb, rlxtools.rb
 etc

 it's now:

 ctxtools --purge


 For those on UNIX(-like) systems that have only texmfstart.rb enabled
 as executable (chmod a+x texmfstart.rb) this will not work as none
 the ruby scripts in the distribution seem to have their execution
 bits set.
 The next seems mandatory if only texmfstart is enabled: texmfstart
 ctxtools --purge


 on unix, one needs to copy texmfstart.rb to texmfstart and copy it to
 some bin path


Copying is imho not necessary. As long as the execution bits are set  
any file can be made to execute by a shell. What to do is determined  
by the shebang line.
I am working in MacOSX which is UNIX under the hood and  
texmfstart.rb is excuted without the need for copying.

Hans van der Meer



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


Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread John R. Culleton
On Friday 09 June 2006 13:06, Aditya Mahajan wrote:
 On Thu, 8 Jun 2006, Aditya Mahajan wrote:
  On Thu, 8 Jun 2006, John R. Culleton wrote:
  Here is a common situation. I need a doublesided layout so I can
  adjust the backspace. I want the header text on evens and odds
  centered over the text block. To simplify the issue let's say
  I want left on the evens and right on the odds. If I specify
  (per the manual)
  \setupheadertexts[text][left][right]
  then I get both words on both pages.
  If I use two extra sets of [] then I can get left on the left
  and right on the right but I cannot get them centered.
 
  I am missing something obvious I am sure. Anyone have a firm
  grasp of the obvious? I don't.
 
  If I understand you correctly, use \setupheadertexts[center]. If you
  want something in the left, center and right, then do
 
  \setupheadertexts[left][right]
  \setupheadertexts[center]

 I misread your mail. How about something like this

 \def\setupextendedheadertexts{%
\dosixtupleempty\dosetupextendedheadertexts}

 \def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
\setupheadertexts[] %Empty the center headers
\setupheadertexts
  %Odd page
  [{\rlap{#1}\hfill#2\hfill\llap{#3}}][]
  %Even page
  [][{\rlap{#4}\hfill#5\hfill\llap{#6}}]}

 \setupextendedheadertexts[odd-left][odd-center][odd-right][even-left][even-
center][even-right]

 \starttext
 \dorecurse{10}{This is a test \page}
 \stoptext


 This does not take care of magic texts like pagenumber, section,
 chapter. If you want that, you can try (careful with linebreaks)

 \def\setupextendedheadertexts{%
\dosixtupleempty\dosetupextendedheadertexts}

 \def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
\setupheadertexts[] %Empty the center headers
\setupheadertexts
  %Odd page
 [{\rlap{\domagic{#1}}\hfill\domagic{#2}\hfill\llap{\domagic{#3}}}][]
  %Even page
 [][{\rlap{\domagic{#4}}\hfill\domagic{#5}\hfill\llap{\domagic{#6}}}]}

 \unprotect
 \def\domagic#1{%
\convertargument#1\to\ascii
\doifsomething\ascii{%
  \doifelsemarking\ascii
{\getmarking[\ascii][\v!first]}
{\ConvertConstantAfter\doifelse\v!pagenumber{#1}
  \@@plaatspaginanummer
  {\ConvertConstantAfter\doifelse\v!date{#1}
{\currentdate}
{#1{}{}{}}
 \protect

 \setupextendedheadertexts[date][chapter][pagenumber][pagenumber][section][W
hatever]

 \starttext
 \dorecurse{4}{
 \chapter{Chapter \recurselevel}
\input tufte \endgraf
\input tufte \endgraf
\input tufte \endgraf
\section{Section}
\input knuth
\input knuth
\input knuth
 }

 \stoptext


 Aditya
 ___
 ntg-context mailing list
 ntg-context@ntg.nl

Very impressive, but surely there is a simpler solution! I just
want one header on the left hand page, a different one on the
right, and both of them centered on their respective pages.  



-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf

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


Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Aditya Mahajan
On Fri, 9 Jun 2006, John R. Culleton wrote:

 On Friday 09 June 2006 13:06, Aditya Mahajan wrote:
 On Thu, 8 Jun 2006, Aditya Mahajan wrote:
 On Thu, 8 Jun 2006, John R. Culleton wrote:
 Here is a common situation. I need a doublesided layout so I can
 adjust the backspace. I want the header text on evens and odds
 centered over the text block. To simplify the issue let's say
 I want left on the evens and right on the odds. If I specify
 (per the manual)
 \setupheadertexts[text][left][right]
 then I get both words on both pages.
 If I use two extra sets of [] then I can get left on the left
 and right on the right but I cannot get them centered.

 I am missing something obvious I am sure. Anyone have a firm
 grasp of the obvious? I don't.

 If I understand you correctly, use \setupheadertexts[center]. If you
 want something in the left, center and right, then do

 \setupheadertexts[left][right]
 \setupheadertexts[center]

 I misread your mail. How about something like this

 \def\setupextendedheadertexts{%
\dosixtupleempty\dosetupextendedheadertexts}

 \def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
\setupheadertexts[] %Empty the center headers
\setupheadertexts
  %Odd page
  [{\rlap{#1}\hfill#2\hfill\llap{#3}}][]
  %Even page
  [][{\rlap{#4}\hfill#5\hfill\llap{#6}}]}

 \setupextendedheadertexts[odd-left][odd-center][odd-right][even-left][even-
 center][even-right]

 \starttext
 \dorecurse{10}{This is a test \page}
 \stoptext


 This does not take care of magic texts like pagenumber, section,
 chapter. If you want that, you can try (careful with linebreaks)

 \def\setupextendedheadertexts{%
\dosixtupleempty\dosetupextendedheadertexts}

 \def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
\setupheadertexts[] %Empty the center headers
\setupheadertexts
  %Odd page
 [{\rlap{\domagic{#1}}\hfill\domagic{#2}\hfill\llap{\domagic{#3}}}][]
  %Even page
 [][{\rlap{\domagic{#4}}\hfill\domagic{#5}\hfill\llap{\domagic{#6}}}]}

 \unprotect
 \def\domagic#1{%
\convertargument#1\to\ascii
\doifsomething\ascii{%
  \doifelsemarking\ascii
{\getmarking[\ascii][\v!first]}
{\ConvertConstantAfter\doifelse\v!pagenumber{#1}
  \@@plaatspaginanummer
  {\ConvertConstantAfter\doifelse\v!date{#1}
{\currentdate}
{#1{}{}{}}
 \protect

 \setupextendedheadertexts[date][chapter][pagenumber][pagenumber][section][W
 hatever]

 \starttext
 \dorecurse{4}{
 \chapter{Chapter \recurselevel}
\input tufte \endgraf
\input tufte \endgraf
\input tufte \endgraf
\section{Section}
\input knuth
\input knuth
\input knuth
 }

 \stoptext


 Aditya
 ___
 ntg-context mailing list
 ntg-context@ntg.nl

 Very impressive, but surely there is a simpler solution! I just
 want one header on the left hand page, a different one on the
 right, and both of them centered on their respective pages.

\def\MyHeader{
   \doifoddpageelse{Odd Header}
   {Even Header}}

\setupheadertexts[\MyHeader]

If you want you can extend it to recognize keywords like date, 
pagenumber, section etc.


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


Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Willi Egger
Hi John,

Humble, if I understand your question correctly then for me the 
following works:

\setupheadertexts[\hfill 
{\getmarking[section][last]}\hfill][pagenumber][pagenumber][\hfill Even 
page text\hfill]
\setuppagenumbering[location=, alternative=doublesided]

\starttext
\dorecurse{20}{\input knuth\blank[1cm]}
\stoptext

I have to admit that there might something be broken. If I compile the 
sample I get the wrong sectionnumber in the header. i.e. the section 
number of the first section on the next page is given. If I use [first] 
instead of last, the first sectionnumber should be given, but in this 
sample still the section number of the first section of the following 
page is given.
Hans may be you could have a look into this matter? - Or am I doing 
wrong things?


Cheers

Willi

John R. Culleton wrote:
 On Friday 09 June 2006 13:06, Aditya Mahajan wrote:
   
 On Thu, 8 Jun 2006, Aditya Mahajan wrote:
 
 On Thu, 8 Jun 2006, John R. Culleton wrote:
   
 Here is a common situation. I need a doublesided layout so I can
 adjust the backspace. I want the header text on evens and odds
 centered over the text block. To simplify the issue let's say
 I want left on the evens and right on the odds. If I specify
 (per the manual)
 \setupheadertexts[text][left][right]
 then I get both words on both pages.
 If I use two extra sets of [] then I can get left on the left
 and right on the right but I cannot get them centered.

 I am missing something obvious I am sure. Anyone have a firm
 grasp of the obvious? I don't.
 
 If I understand you correctly, use \setupheadertexts[center]. If you
 want something in the left, center and right, then do

 \setupheadertexts[left][right]
 \setupheadertexts[center]
   
 I misread your mail. How about something like this

 \def\setupextendedheadertexts{%
\dosixtupleempty\dosetupextendedheadertexts}

 \def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
\setupheadertexts[] %Empty the center headers
\setupheadertexts
  %Odd page
  [{\rlap{#1}\hfill#2\hfill\llap{#3}}][]
  %Even page
  [][{\rlap{#4}\hfill#5\hfill\llap{#6}}]}

 \setupextendedheadertexts[odd-left][odd-center][odd-right][even-left][even-
 center][even-right]

 \starttext
 \dorecurse{10}{This is a test \page}
 \stoptext


 This does not take care of magic texts like pagenumber, section,
 chapter. If you want that, you can try (careful with linebreaks)

 \def\setupextendedheadertexts{%
\dosixtupleempty\dosetupextendedheadertexts}

 \def\dosetupextendedheadertexts[#1][#2][#3][#4][#5][#6]{
\setupheadertexts[] %Empty the center headers
\setupheadertexts
  %Odd page
 [{\rlap{\domagic{#1}}\hfill\domagic{#2}\hfill\llap{\domagic{#3}}}][]
  %Even page
 [][{\rlap{\domagic{#4}}\hfill\domagic{#5}\hfill\llap{\domagic{#6}}}]}

 \unprotect
 \def\domagic#1{%
\convertargument#1\to\ascii
\doifsomething\ascii{%
  \doifelsemarking\ascii
{\getmarking[\ascii][\v!first]}
{\ConvertConstantAfter\doifelse\v!pagenumber{#1}
  \@@plaatspaginanummer
  {\ConvertConstantAfter\doifelse\v!date{#1}
{\currentdate}
{#1{}{}{}}
 \protect

 \setupextendedheadertexts[date][chapter][pagenumber][pagenumber][section][W
 hatever]

 \starttext
 \dorecurse{4}{
 \chapter{Chapter \recurselevel}
\input tufte \endgraf
\input tufte \endgraf
\input tufte \endgraf
\section{Section}
\input knuth
\input knuth
\input knuth
 }

 \stoptext


 Aditya
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 

 Very impressive, but surely there is a simpler solution! I just
 want one header on the left hand page, a different one on the
 right, and both of them centered on their respective pages.  



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


Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread John R. Culleton
On Friday 09 June 2006 15:33, Aditya Mahajan wrote:
  ntg-context@ntg.nl
 
  Very impressive, but surely there is a simpler solution! I just
  want one header on the left hand page, a different one on the
  right, and both of them centered on their respective pages.

 \def\MyHeader{
\doifoddpageelse{Odd Header}
{Even Header}}

 \setupheadertexts[\MyHeader]

 If you want you can extend it to recognize keywords like date,
 pagenumber, section etc.

Yes, I can do the above. Unfortunately the keywords like chapter
lose their special meaning when enclosed in any way. For example
\setupheadertexts
[chapter]
[][]
[\hfil\hbox to 20em{\stretched{\tfb\sc
Independent{}Publishing}}\hfil]

...works, but as soon as I place any command ahead of the keyword
chapter it just becomes the word chapter. for example this
doesn't work:

\setupheadertexts
[\hfil chapter\hfil]
[][]
[\hfil\hbox to 20em{\stretched{\tfb\sc
Independent{}Publishing}}\hfil]


And if I put commands in the \setupheader statement then this
works:

\setupheader[text][before={\tfb\sc\hskip 1in}}] 
but this has no effect:
\setupheader[text][before={\tfb\sc\hfil},after={\hfil}] 

I can of course roll my own as you suggest above. But if I want
chapter as a variable then I will have to encapsulate my \chapter
command thus:

\def\Chapter#1{\global\def\mychaptername{#1}\chapter{#1}}

...and use \mychaptername in my home grown header routine. 

In fact I have done just that today:
\def\mychapter{}
\def\Chapter#1{\global\def\mychapter{\tfb\sc\hfil#1\hfil}\chapter#1}

I can probably even get stretching in there if I work at it. 


I don't mind doing this kind of plain tex manipulation but it
still seems to me that Context should handle it somehow.  

-- 
John Culleton
Books with answers to marketing and publishing questions:
http://wexfordpress.com/tex/shortlist.pdf

Book coaches, consultants and packagers:
http://wexfordpress.com/tex/packagers.pdf


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


Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Aditya Mahajan
On Fri, 9 Jun 2006, John R. Culleton wrote:

 On Friday 09 June 2006 15:33, Aditya Mahajan wrote:
 ntg-context@ntg.nl

 Very impressive, but surely there is a simpler solution! I just
 want one header on the left hand page, a different one on the
 right, and both of them centered on their respective pages.

 \def\MyHeader{
\doifoddpageelse{Odd Header}
{Even Header}}

 \setupheadertexts[\MyHeader]

 If you want you can extend it to recognize keywords like date,
 pagenumber, section etc.

 Yes, I can do the above. Unfortunately the keywords like chapter
 lose their special meaning when enclosed in any way. For example
 \setupheadertexts
 [chapter]
 [][]
 [\hfil\hbox to 20em{\stretched{\tfb\sc
 Independent{}Publishing}}\hfil]

 ...works, but as soon as I place any command ahead of the keyword
 chapter it just becomes the word chapter. for example this
 doesn't work:
 [code snipped]

You can use the \domagic macro from my previous email to handle 
chapter, date and pagenumber.

 I can of course roll my own as you suggest above. But if I want
 chapter as a variable then I will have to encapsulate my \chapter
 command thus:
 [code snipped]

 I don't mind doing this kind of plain tex manipulation but it
 still seems to me that Context should handle it somehow.

If you just want chapter markings, use \getmarking[chapter].

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


Re: [NTG-context] Doublesided, with header text centered.

2006-06-09 Thread Aditya Mahajan
On Fri, 9 Jun 2006, Willi Egger wrote:

 Hi John,

 Humble, if I understand your question correctly then for me the
 following works:

 \setupheadertexts[\hfill
 {\getmarking[section][last]}\hfill][pagenumber][pagenumber][\hfill Even
 page text\hfill]
 \setuppagenumbering[location=, alternative=doublesided]

 \starttext
 \dorecurse{20}{\input knuth\blank[1cm]}
 \stoptext

 I have to admit that there might something be broken. If I compile the
 sample I get the wrong sectionnumber in the header. i.e. the section
 number of the first section on the next page is given. If I use [first]
 instead of last, the first sectionnumber should be given, but in this
 sample still the section number of the first section of the following
 page is given.
 Hans may be you could have a look into this matter? - Or am I doing
 wrong things?

It seems that something is broken. Even this simple example gives 
wrong headers

\setupheadertexts[section]
\starttext
  \dorecurse{20}{\section{Test \recurselevel}\input knuth\endgraf}
\stoptext

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


Re: [NTG-context] backgroundcolor broken in 2006-06-07

2006-06-09 Thread Hans van der Meer

On Jun 9, 2006, at 14:42, Taco Hoekwater wrote:



 Hans van der Meer wrote:
 In the latest context version of 2006-06-7 coloring the background  
 seems
 broken.
 Reverting to the version 2006-05-28 remedied this, but I have no
 intention of course, to freeze my system at that point.

 Here is a minimal example that colors the background in 2006-05-28  
 and
 does not in 2006-06-07:

 \setupcolors[state=start]
 \definetextbackground[showbkg][frame=off,location=text,
 background=color,backgroundcolor=orange,backgroundoffset=0pt]
 \starttext
 tekst \startshowbkg background \stopshowbkg{} tekst.
 \stoptext

 Can someone look into this? I am relying on this coloring!

 Backgrounds work ok here (on Linux).

THANKS for those who checked this on their system and found nothing  
wrong. But that was bad news for me.
I switched back and force between the versions of 2006-05-28 and  
2006-06-07 by replacing all context related files from cont-tmf.zip,  
taking care to first remove all the old contents, regenerating the  
formats afterwards. Definitely the 2006-05-28 works, the 2006-06-07  
does not work here.

At the brink of giving up I thought it should be metapost related and  
then found in cont-sys.tex some patches I had received earlier and  
these now had to be taken out. So back to normal!

QUESTION: is the issue related to these patches now resolved from  
version 2006-06-07 onwards?

These patches were:

% PATCH FOR SUPPRESS unknowns IN METAPOST COMMUNICATION OF textext
\unexpanded\def\startcolor
{\ifincolor
 \expandafter\doglobalstartcolor
   \else
 \expandafter\noglobalstartcolor
   \fi}
\unexpanded\def\stopcolor
{\ifincolor
 \doglobalstopcolor
   \else
 \noglobalstopcolor
   \fi}
and
% PATCH FOR STANDALONE GRAPHICS WHERE textext WAS NOT WORKING
\long\def\writecheckedMPgraphic#1%
{\ifforceMPTEXgraphic
 \global\MPTEXgraphictrue
   \else
 \global\MPTEXgraphicfalse
 \edef\ascii{#1}\convertcommand\ascii\to\MPascii
 \the\MPTEXgraphicchecks\relax % \relax is end condition!
   \fi
   \flushMPTEXgraphic % verbatimtex etc
   \writeMPgraphic{#1}}


Hans van der Meer



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


Re: [NTG-context] ec encoding and tcaron

2006-06-09 Thread Mojca Miklavec
On 6/9/06, Michal Kvasnicka wrote:
 Hi Richard.
  I'm sure the EC encoding contains the 'tcaron' character (see the
  lm-ec.enc file for example).
  I have ConTeXt on top of TeXLive 2005.
  I can find:
  texmf/fonts/enc/dvips/base/ec.enc
  texmf/fonts/enc/dvips/lm/ec-lm.enc
  texmf/fonts/enc/dvips/lm/lm-ec.enc
 
  I use EC normally for typesetting Czech documents. So I would suggest
  to use EC ;-)
 I'm sorry you're not right. The lm-ec.enc really includes tcaron, but
 neither ec.enc nor EC.enc does, at least at my teTeX 3.0. If you use
 only LatinModern, it works, because lm-ec.enc is used. But I doubt it
 works well for other fonts. Does it? I was unsuccessful. Can you send me
 your ec.enc file please?

Approximately a year ago there was a discussion on tex-fonts mailing
list about fixing ec.enc (for example there's a glyph called dbar,
which is agains any standards: in Unicode it's called d with stroke
and according to Adobe standards it should be called dcroat; and
many more inconsistencies).

The result of the discussion was something like: No, we may not
change this since it may break functionality of some fonts which used
that standard years ago. Googling for this and that reveales that some
fonts still use those old glyph names ... (perhaps Google found 4
hits or so ...) The explanation/excuse was that everyone using modern
glyph names should create his own ec.enc (just as it was done for
Latin Modern).

I would recommend you to use lm-ec.enc or tex256.ec (fixed version
of ec.enc which should be present in the same folder as ec.enc). The
Polish guys did their best to follow the standards, so the ec file of
Latin Modern should be OK for most fonts. If some glyph is still
missing, you can manually change the encoding definition (and then
note that specific encoding in map file as well, in the same was as
it's done for LM).

You can test the resulting font with
\showfont[yourfontname] % where yourfountname should preferrably
be ec-something
In that way you'll spot any missing glyphs pretty easily.

About xl2.enc: it is incomplete and neiter supported by ConTeXt (it
could be, but there's no real benefit) nor by most popular fonts (you
have to create metrics and everything by yourself, so your files might
be highly unportable). I dropped the idea about using it pretty soon.
It's not impossible to use it, but probably not worth it.

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


Re: [NTG-context] A question about the build-in module s-pre-06(The Polish style)

2006-06-09 Thread Mojca Miklavec
On 6/9/06, Aditya Mahajan wrote:
 On Fri, 9 Jun 2006, Ê¢¾¢ËÉ wrote:

  Hi,evergyone
when I compile my .tex file in which the polish style module was been 
  used, It doesn't work. the pop-up
  window tells me that  maketfm: no creation rule for the font sy-anttrz. 
   i have known that the module
  pre-polish use a special font the Antikwa Torunska. this prolem may be to 
  some extent related to this font
  so my questions are:
  1. how can i install and use the font?
 
  2. how to fix the problem?
  any suggestion from you is highly appreciated!
 
  P.S.: I use the newst miKTex in windows xp sp2.

 Open Miktex package manager and search for Antikwa and install that
 package. Open Miktex options and refresh database. This should install
 the font.

What makes me wonder: MikTeX should recognize that the file is
missing, but is present in its repository.

I tried to use the style with freshly installed MikTeX (MikTeX 2.5
alpha8) and the package with Antykwa was installed on the fly.

Otherwise follow Aditya's notice (in general you can also simply copy
content from CTAN into [local] MikTeX tree and refresh the filename
database).

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


Re: [NTG-context] Angle braces?

2006-06-09 Thread Steven Robertson
Hi Matthias, thanks for your reply.

The angle braces I'm after are the ones that go around URLs in
citations, as in

[12] Smith, `Article on Things', available at www.smith.com.

It's been suggested to me elsewhere that I upgrade my ConTeXt version,
so hopefully that will help. I'll have a look around and see if there
are particular angle braces that should be used for the above purpose
(i.e. not greater-than/less-than or guillemots--they are `double', but
Ithe suggestion is appreciated).

Thanks,
Steven

Matthias Weber wrote:
 Hi,
 
 this depends -- different fonts contain different kinds of 'angle  
 braces',
 depending on their purpose. Do you want them for (french style)
 quotations, or for typesetting math?
 
 The following is a set of examples -- they might look very different
 with other fonts.
 
 Matthias
 
 
 (\langle and \rangle is math mode only I believe)
 
 \setuplanguage [en] [rightquote=\rightguillemot,leftquote= 
 \leftguillemot]
 
 
 \starttext
 
 foo \leftguillemot bar\rightguillemot{} foo
 \leftsubguillemot bar\rightsubguillemot{}
 foo $\langle \text{bar}\rangle$ foo.
 
 
 foo \quote{bar} foo
 \stoptext
 
 
 On Jun 7, 2006, at 3:35 AM, Steven Robertson wrote:
 
 
Hi,

Annoyingly simple question -- apologies -- but I'm having no luck from
the web. The ConTeXt wiki isn't turning up anything, and the pragma  
site
seems to be broken, so I can't access the ConTeXt manual. So:

What are the commands in ConTeXt to get angled braces, i.e. `' and  
''?
I've got is \langle and \rangle respectively, but these aren't  
resulting
in output -- the dvi has nothing where they should be - foo bar foo
instead of foo bar foo. Using the braces themselves, eg

\starttext
foo bar foo
\stoptext

gives me upside-down exclamation and question marks, for left and  
right
braces respectively.

Thanks for any help.

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

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


Re: [NTG-context] Angle braces?

2006-06-09 Thread Mojca Miklavec
On 6/10/06, Steven Robertson wrote:
 Hi Matthias, thanks for your reply.

 The angle braces I'm after are the ones that go around URLs in
 citations, as in

 [12] Smith, `Article on Things', available at www.smith.com.

 It's been suggested to me elsewhere that I upgrade my ConTeXt version,
 so hopefully that will help.

Well ... if it's more than two months old, it might already be ancient ;)
Also consider updating the fonts.

Why are you using dvi instead of PDF?

 I'll have a look around and see if there
 are particular angle braces that should be used for the above purpose
 (i.e. not greater-than/less-than or guillemots--they are `double', but
 Ithe suggestion is appreciated).

The example works OK here. Which font are you using? Most probably
either the font is old/broken or the two characters are active.

What do you get if you type:
foo \char60 bar\char62 foo?
(You may never type like that, but just for debugging puposes.)

Mojca

Btw: there are two mirrors of Pragma website (see links on
wiki.contextgarden.net).
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context