[NTG-context] brace error after a \placefigure

2006-05-13 Thread Sanjoy Mahajan
I can't figure out what causes the brace error with this test.tex
example file:

\starttext
\placefigure[margin]{A caption}{\externalfigure[]}

{test}.
\stoptext

$ texexec test
  [...]
  ! Too many }'s.
  l.4 {test}
.
  ? H
  You've closed more groups than you opened.
  Such booboos are generally harmless, so keep going.

If I change 

{test}.

to

The {test}.

then it compiles fine.

$ texexec --version

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
   context : ver: 2006.04.17 23:14
   cont-en : ver: 2006.04.17 23:14  fmt: 2006.5.10  mes: english

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


[NTG-context] Reference for the \but command

2006-05-13 Thread Jean Magnan de Bornier
Hello,
Where can I find the list of all keywords recognized by the \but command
to set up interaction?
(Honest, I searched the manual!)

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


Re: [NTG-context] Reference for the \but command

2006-05-13 Thread Peter Münster
On Sat, 13 May 2006, Jean Magnan de Bornier wrote:

> Where can I find the list of all keywords recognized by the \but command
> to set up interaction?
> (Honest, I searched the manual!)

TeXshow says, that there is only one argument: the reference
\but[ref]

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] about texmfstart

2006-05-13 Thread Dalyoung
Dear Aditya,

I did what you told me,

set RUBYLIB=/texmf.local/scripts/context/ruby
export $RUBYLIB

But there is no change in the output of "texmfstart --verbose texexec".

I copied texexec.rb in the home directory, then I got

~ mac$ texmfstart --verbose texexec
texmfstart version 1.8.6
expanding 'texexec' to 'texexec.rb'
locating 'texexec.rb' in current path '.'
registering 'texexec' as '/Users/mac/texexec.rb'
'texexec.rb' located in current path
registering 'THREAD' as '/Users/mac'
starting texexec
using 'system' call: ruby /Users/mac/texexec.rb
/Users/mac/texexec.rb:10:in `require': No such file to load -- base/ 
switch (LoadError)
 from /Users/mac/texexec.rb:10

According to this message, it locate texexec.rb. However, the commnad

texmfstart texexec --make en

did nothing but only a message like this.

/Users/mac/texexec.rb:10:in `require': No such file to load -- base/ 
switch (LoadError)
 from /Users/mac/texexec.rb:10

Would you please tell me what I have to do more?

Thank you for reading.

Best regards,

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


[NTG-context] bibdemo.tex example needs a few defs

2006-05-13 Thread Sanjoy Mahajan
The bibdemo.tex example on the Wiki
 fails with complaints about
\newcommand being undefined.  The problem is that xampl.bib (which here
is /usr/share/texmf-tetex/bibtex/bib/base/xampl.bib on this teTeX 3.0
distribution) has this:

@preamble{ "\newcommand{\noopsort}[1]{} "
# "\newcommand{\printfirst}[2]{#1} "
# "\newcommand{\singleletter}[1]{#1} "
# "\newcommand{\switchargs}[2]{#2#1} " }

So bibtex puts those LaTeX commands at the top of the .bbl file, and
ConTeXt doesn't know about \newcommand.  A temporary workaround is to
define those commands by hand (see below).  A better workaround is to
define \newcommand.  latex.ltx has a long and involved one, but maybe
there's a nicer ConTeXt way?

Meanwhile, the following example works (context version 2006.04.17 23:14):

\usemodule[bib]
\def\newcommand#1[#2]#3{}
\newcommand{\noopsort}[1]{}
\def\noopsort#1{}
\def\printfirst#1#2{#1}
\def\singleletter#1{#1}
\def\switchargs#1#2{#2#1}
\setupbibtex[database=xampl]
\starttext
As \cite[article-full] already indicated, bibtex is a \LaTeX-centric program.
\completepublications
\stoptext

I'll put this version on the wiki, if there's no clean solution (unless
I've missed an easy fix to the \newcommand problem).

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


Re: [NTG-context] brace error after a \placefigure

2006-05-13 Thread nico
On Sat, 13 May 2006 04:08:58 -0400, Sanjoy Mahajan <[EMAIL PROTECTED]>  
wrote:

> I can't figure out what causes the brace error with this test.tex
> example file:
>
> \starttext
> \placefigure[margin]{A caption}{\externalfigure[]}
>
> {test}.
> \stoptext

Yes, strange. Looks like a grouping issue around this in page-flt:

\ifmargeblokken % waarschijnlijk gebroken ! ! ! !
  \doifinset\v!margin{#2}
{\endgraf
 \bgroup\everypar{\egroup\the\everypar}%
 \hsize\@@mbwidth}%
\fi

inmargin seems to work, but i don't know if it should do the same thing.

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


Re: [NTG-context] Reference for the \but command

2006-05-13 Thread Jean Magnan de Bornier
Le 13 mai à 14:21:17 Peter Münster <[EMAIL PROTECTED]> écrit notamment:

| On Sat, 13 May 2006, Jean Magnan de Bornier wrote:
>
| > Where can I find the list of all keywords recognized by the \but command
| > to set up interaction?
| > (Honest, I searched the manual!)
>
| TeXshow says, that there is only one argument: the reference
| \but[ref]
>
Thanks; but let me be more precise about what I'm looking for:
in the demo file d-en-all I see this:

\startinteractionmenu[right]
  \but [content]   contents \\
  \but [sample]sample   \\
  \but [PreviousJump]  back \\
  \but [CloseDocument] exit \\
  \vfill
\stopinteractionmenu

So I wonder, is there some place where the list of all terms like
"PreviousJump" are defined (I suppose they are defined somewhere as I
don't see their definition in this file)?
thx,
-- 
Jean
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Reference for the \but command

2006-05-13 Thread Johan Sandblom
It appears they are defined in

http://source.contextgarden.net/tex/context/base/core-ref.tex

slightly more than halfway down.

Regards, Johan

2006/5/13, Jean Magnan de Bornier <[EMAIL PROTECTED]>:
> Le 13 mai à 14:21:17 Peter Münster <[EMAIL PROTECTED]> écrit notamment:
>
> | On Sat, 13 May 2006, Jean Magnan de Bornier wrote:
> >
> | > Where can I find the list of all keywords recognized by the \but command
> | > to set up interaction?
> | > (Honest, I searched the manual!)
> >
> | TeXshow says, that there is only one argument: the reference
> | \but[ref]
> >
> Thanks; but let me be more precise about what I'm looking for:
> in the demo file d-en-all I see this:
>
> \startinteractionmenu[right]
>   \but [content]   contents \\
>   \but [sample]sample   \\
>   \but [PreviousJump]  back \\
>   \but [CloseDocument] exit \\
>   \vfill
> \stopinteractionmenu
>
> So I wonder, is there some place where the list of all terms like
> "PreviousJump" are defined (I suppose they are defined somewhere as I
> don't see their definition in this file)?
> thx,
> --
> Jean
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-13 Thread Peter Münster
On Thu, 11 May 2006, Hans Hagen wrote:

> ? wrote:
> >
> > One remark for the texexec developer: it seems, when searching for
> > executables, the order in $PATH is not respected. For example: I had
> > /opt/teTeX/bin/dvips and /usr/bin/dvips and PATH=/opt/teTeX/bin:...
> > but it was /usr/bin/dvips that was called to create the PS-file.
> >   
> hm, i just call dvips -) 

I think, I must have made a mistake somewhere, since I cannot reproduce
this behaviour.

But there is another problem with the following test file:

%%% This needed to get upright \textmu:
\setupencoding[default=texnansi]
\usetypescript[modern-base][\defaultencoding]
\setupbodyfont[modern]
%%%
\starttext
bla and \textmu
\stoptext

When running "texexec --dvi test", the output of dvips is
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.05.13:1508' -> test.ps
. [1] 
and the PostScript page is completely empty (blanc).

When running "dvips -u +original-base -u +ec-public-lm -u +ec-base -u
+8r-base -u +t5-base -u +original-ams-base -u +original-ams-euler -u
+original-public-lm -u +texnansi-base -u +texnansi-public-lm test" (same
command is used by texexec), the output of dvips is
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.05.13:1510' -> test.ps
. [1] 
and the PostScript file has an ugly font and nothing for \textmu.

When running "dvips test", the output of dvips is
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.05.13:1510' -> test.ps
. [1] 
and the PostScript file is ok.

So here my questions:
- Why does texexec use these options for dvips?
- Where can I tell texexec to use just "dvips" without options?
- Why is there a difference between running dvips by texexec or by command
  line, does texexec modify perhaps the environment?
- Why do I have this behaviour only with texnansi but not with ec encoding?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-13 Thread Peter Münster
On Thu, 11 May 2006, Peter Münster wrote:

> Using teTeX-3.0, here is what I've done to switch from perl texexec to the
> ruby one:
> chmod +x /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb
> cd /usr/local/bin
> ln -s /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb texmfstart
> 
> copy these 3 lines into /opt/teTeX/bin/texexec:
> #!/bin/sh
> export RUBYLIB=/opt/teTeX/texmf-context/scripts/context/ruby
> exec texmfstart texexec.rb "$@"

I've just seen, that there are a lot of symbolic links in the teTeX
installation to /opt/teTeX/bin/texexec, so please forget my advice above.
Now I'm doing it like this:
- keep the link for texmfstart
- copy these 3 lines into /usr/local/bin/texexec:
#!/bin/sh
export RUBYLIB=/opt/teTeX/texmf-context/scripts/context/ruby
exec texmfstart `basename $0` "$@"
- /usr/local/bin must come before the /opt/teTeX/bin in your PATH
- in /usr/local/bin you can create other symbolic links to texexec, for
  example texutil and texsync

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Reference for the \but command

2006-05-13 Thread Jean Magnan de Bornier
Le 13 mai à 17:49:35 "Johan Sandblom" <[EMAIL PROTECTED]> écrit notamment:

| It appears they are defined in
>
| http://source.contextgarden.net/tex/context/base/core-ref.tex
>
| slightly more than halfway down.
>
| Regards, Johan

Thank you, I will try to understand that file...

>
| 2006/5/13, Jean Magnan de Bornier <[EMAIL PROTECTED]>:
| > Le 13 mai à 14:21:17 Peter Münster <[EMAIL PROTECTED]> écrit notamment:
| >
| > | On Sat, 13 May 2006, Jean Magnan de Bornier wrote:
| > >
| > | > Where can I find the list of all keywords recognized by the \but command
| > | > to set up interaction?
| > | > (Honest, I searched the manual!)
| > >
| > | TeXshow says, that there is only one argument: the reference
| > | \but[ref]
| > >
| > Thanks; but let me be more precise about what I'm looking for:
| > in the demo file d-en-all I see this:
| >
| > \startinteractionmenu[right]
| >   \but [content]   contents \\
| >   \but [sample]sample   \\
| >   \but [PreviousJump]  back \\
| >   \but [CloseDocument] exit \\
| >   \vfill
| > \stopinteractionmenu
| >
| > So I wonder, is there some place where the list of all terms like
| > "PreviousJump" are defined (I suppose they are defined somewhere as I
| > don't see their definition in this file)?
| > thx,
| > --
| > Jean
| > ___
| > ntg-context mailing list
| > ntg-context@ntg.nl
| > http://www.ntg.nl/mailman/listinfo/ntg-context
| >

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


[NTG-context] \startbackmatter requires \chapter to get bibliography?

2006-05-13 Thread Sanjoy Mahajan
I just noticed the following behavior of \startbackmatter: A
\placepublications needs a \chapter{...} before it, otherwise no
bibliography is generated (i.e. p.2 is empty).  Consistent with that
behavior, \completepublications works fine without needing a \chapter
beforehand.  Here's the minimal file:

\usemodule[bib]
\setupbibtex[database=book]
\starttext
See \cite[van-Dyke:82]
\startbackmatter
%\chapter{References}
\placepublications
\stopbackmatter

\stoptext


With this .bbl file:

\setuppublicationlist[samplesize={vD82},totalnumber=1]

\startpublication[k=van-Dyke:82,t=book,
a={{van Dyke}},y=1982,
n=1,s=vD82]
\author[]{Milton}[M.]{van}{Dyke}
\pubyear{1982}
\title{An Album of Fluid Motion}
\city{Stanford, Calif.}
\pubname{Parabolic Press}
\stoppublication

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


Re: [NTG-context] about texmfstart

2006-05-13 Thread Aditya Mahajan
On Sat, 13 May 2006, Dalyoung wrote:

> Dear Aditya,
>
> I did what you told me,
>
> set RUBYLIB=/texmf.local/scripts/context/ruby
> export $RUBYLIB

I assume that by ... you mean the exact path of texmf.local

> But there is no change in the output of "texmfstart --verbose texexec".
>
> I copied texexec.rb in the home directory, then I got

What is the output of

export RUBYLIB=path-to-texmf-local/scripts/context/ruby

ruby path-to-texmf-local/scripts/context/ruby/texmfstart texexec.rb 
--version



>
> ~ mac$ texmfstart --verbose texexec
> texmfstart version 1.8.6
> expanding 'texexec' to 'texexec.rb'
> locating 'texexec.rb' in current path '.'
> registering 'texexec' as '/Users/mac/texexec.rb'
> 'texexec.rb' located in current path
> registering 'THREAD' as '/Users/mac'
> starting texexec
> using 'system' call: ruby /Users/mac/texexec.rb
> /Users/mac/texexec.rb:10:in `require': No such file to load -- base/
> switch (LoadError)
> from /Users/mac/texexec.rb:10
>
> According to this message, it locate texexec.rb. However, the commnad
>
>   texmfstart texexec --make en
>
> did nothing but only a message like this.
>
> /Users/mac/texexec.rb:10:in `require': No such file to load -- base/
> switch (LoadError)
> from /Users/mac/texexec.rb:10
>
> Would you please tell me what I have to do more?
>
> Thank you for reading.
>
> Best regards,
>
> Dalyoung
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \startbackmatter requires \chapter to get bibliography?

2006-05-13 Thread Peter Münster
On Sun, 14 May 2006, Sanjoy Mahajan wrote:

> I just noticed the following behavior of \startbackmatter: A
> \placepublications needs a \chapter{...} before it, otherwise no
> bibliography is generated (i.e. p.2 is empty).  Consistent with that
> behavior, \completepublications works fine without needing a \chapter
> beforehand.  Here's the minimal file:
> 
> \usemodule[bib]
> \setupbibtex[database=book]
> \starttext
> See \cite[van-Dyke:82]
> \startbackmatter
> %\chapter{References}
> \placepublications

\placepublications[criterium=all]


Hans and Taco, it seems that the bib module does not work with the ruby
version of texexec. The cite command prints only .

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New release and XeTeX - XeConTeXt

2006-05-13 Thread Christopher Creutzig

Otared KAVIAN wrote:


sudo texexec --make --xtx en



(/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-de.pat
! Bad \patterns.
\unknownchar ->{
\hbox {\vrule \!!width .5em\!!height 1ex\!!depth \zeropoint }}
l.114 .ge
 s6
?


 Same for me.  The problem is that in line 113, we have
.ge5rö
in Latin-1 encoding, but XeTeX tries reading the file in UTF-8.


Has anyone encountered this error? Is there a solution?


 I only have a nasty hack:  In the patterns directory, run (in bash)

for file in *.pat *.hyp
  do iconv -f iso-8859-1 -t utf-8 <$file >$file-u
done

and in mult-sys.tex, change the lines reading

\definefileconstant {patternsextension}  {pat}
\definefileconstant {hyphensextension}   {hyp}

to

\doifundefinedelse{XeTeXversion}
{\definefileconstant {patternsextension}  {pat}
 \definefileconstant {hyphensextension}   {hyp}}
{\definefileconstant {patternsextension}  {pat-u}
 \definefileconstant {hyphensextension}   {hyp-u}}

There probably is a much better place for this change, but cont-new.tex, 
afaik, is not read when generating formats and I don't know where the 
code really should go.  It mayalso be possible to fix the behaviour by 
some regime switchting in the .pat and .hyp files, but I know very 
little about those commands and haven't tested it.


 Still, XeConTeXt does not work as expected in the current version:
The plain TeX file

\font\myface="Hiragino Mincho Pro W3"
\myface
こちらはテストです。日本語のテストです。
\bye

works like a charm, but

\definetypeface[myface][rm][Xserif][Hiragino Mincho Pro W3]

\setupbodyfont[myface,14pt]
\starttext
こちらはテストです。日本語のテストです。
\stoptext

produces an output containing only a lot of accented latin characters, 
see attached file.



Best regards,
Christopher


jap.pdf
Description: Adobe PDF document
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=cont-en 
2006.5.9)  13 MAY 2006 22:52
entering extended mode
 (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
**jap.tex emergencyend
(./jap.tex

ConTeXt  ver: 2006.05.08 12:59  fmt: 2006.5.9  int: english  mes: english

language: language en is active

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 en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials: tex,postscript,rokicki loaded
\openout2 = `jap.tui'.

system  : jap.top loaded
(./jap.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
)
\openout0 = `jap-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


systems : system commands are disabled
(/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)
(/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/texm