[NTG-context] Re: textext() doesn't work on my MikTeX distr.

2004-10-15 Thread Patrick Gundlach
Hello Mojca,

I can only guess, since I (do I repeat myself?) don't have MikTeX
installed. 

It seems that you don't have shell-escape or write18 enabled. This
feature lets you run external programs from your tex-run. This is a
potential security hole, so it is disabled by default. You have two
options, enable write18 by using --shell-escape on the command line 
(see http://www.phys.uvic.ca/Help_Guides/miktex.html#IDX164 ) or tell
ConTeXt to do without (that's what I have on live.contextgarden.net)


[cont-sys.tex:]

> \unprotect
> \setupoutput [pdf]

this should be [pdftex], not [pdf] (please correct me if I'm wrong)

> \runMPgraphicstrue
> \runMPTEXgraphicstrue

disable these two:

% \runMPgraphicstrue
% \runMPTEXgraphicstrue

[...]

Hope this helps.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: textext() doesn't work on my MikTeX distr.

2004-10-15 Thread Hans Hagen
Mojca Miklavec wrote:
system(texexec --batch --output=dvips --mpformat=metafun --mptex --nomp 
--once
x-origin-mpgraph)...disabled.
run:
  kpsewhich texmf.cnf
and search in that file for write18, enable it and your setup will work
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problems with indented columnized itemization

2004-10-15 Thread Hans Hagen
Stefan Wachter wrote:
Hi all,
I try to generate the following output:
Some Label  * item 1  * item 2   * item 3
* item 4  * item 4   * item 5
i.e. I want to have a label followed by an itemization that is set in 
columns.

I tried several things but did not succeede
1. Variant - a tabulate environment
\starttabulate[|l|p|]
\NC
\inframed[width=\LabelWidth,align=left]{Teilnehmer}\hskip\SepWidth
\NC
\startitemize[columns,three]
\item Bauherr
\item Architekt
\item Bauleiter
\stopitemize
\NC\NR
\stoptabulate
this is beyond the tabulate handler; i guess i can implement support for 
that but it's not that trivial (using simplecolumns and collecting lines 
and such)

There the following problems: a) the itemization introduces an 
additional empty line and b) the [columns,three] parameter is not 
considered.

2. Variant - using a narrower
\startnarrower[left]
\startitemize[columns,three]
\item Bauherr
\item Architekt
\item Bauleiter
\stopitemize
\stopnarrower
The problem with this variant is that the coluns do not respect the 
right margin, i.e. the items reach beyond the paper.

Has anyone a solution for this problem?
see end of mail; the third one only works with the patched macro:
\unprotect
\def\redostartitemgroup[#1][#2]%
  {\setfalse\inlinelistitem % new, no indent (leftskip)
   \setfalse\concatnextitem % new, concat
   \ifhmode
 \ifconditional\autoconcatnextitem % new, concat
   \ifdim\lastskip=\itemsignal % new, concat
 \settrue\concatnextitem   % new, concat
   \fi % new, concat
 \fi   % new, concat
 \iftextitems\else\doifnotinset\v!text{#1}\par\fi % suboptimal
   \fi
   \begingroup
   \ifnum\itemlevel=\plusone % NIEUW
 \doadaptleftskip {\getitemparameter1\c!margin}%
 \doadaptleftskip {\getitemparameter1\c!leftmargin}%
 \doadaptrightskip{\getitemparameter1\c!rightmargin}%
   \fi
  \dosetraggedcommand{\getitemparameter\itemlevel\c!align}\raggedcommand
   \doifsomething{\getitemparameter\itemlevel\c!indenting}
 {% is \expanded needed?
   \expanded{\setupindenting[\getitemparameter\itemlevel\c!indenting]}}%
   \doifinset\v!columns{#1}%
 {\ifinsidecolumns\else\ifnum\itemcolumndepth=\zerocount
\globallet\itemcolumndepth\itemlevel
\getitemparameter\itemlevel\c!before
\processfirstactioninset
  [#1]
  [  \v!one=>\!!counta1\relax,
 \v!two=>\!!counta2\relax,
   \v!three=>\!!counta3\relax,
\v!four=>\!!counta4\relax,
\v!five=>\!!counta5\relax,
 \s!unknown=>[EMAIL PROTECTED]
% new
% \edef\columneditemleftskip{\the\leftskip}%
% \def\postprocesscolumnbox##1%
%   {\scratchdimen\columneditemleftskip
%\divide\scratchdimen \nofcolumns
%\hbox{\hskip\columneditemleftskip\hbox{\box##1}}}%
% \scratchdimen-\columneditemleftskip
% \multiply\scratchdimen \nofcolumns
% \advance\scratchdimen \columneditemleftskip
% \advance\scratchdimen \hsize
% \edef\columntextwidth{\the\scratchdimen}%
% \leftskip\zeropoint
% so far
\startcolumns
  [\c!n=\!!counta, % netter \??op\itemlevel\c!n
   \c!height=,
   \c!rule=\v!off,
   \c!balance=\v!yes,
   \c!align=\v!no]%
  \fi\fi}%
   \doifinsetelse\v!intro{#1}\itemintrotrue\itemintrofalse
   \doglobal\increment\noflists
   \let\currentlist\noflists
   \newcounter\noflistelements
   \headitemfalse
   \subitemfalse
   \symbolitemfalse
   \let\marsymbol\relax
   \globallet\somdestination\empty
   \let\symsymbol\empty
   \the\itemgroupcommands
   \setitemlevel{#1}%
  %\getitemparameter\itemlevel\empty
   \let\listitem\empty % ** start value
   \doifelsenothing{#1} % iffirstargument
 {\edef\@@opsymbol{\getitemparameter\itemlevel\c!symbol}%
  \letgvalueempty{\@@globalitemsymbol\itemlevel}%
  \global\letitemparameter\itemlevel\v!continue\empty
% \setitemmark\@@opsymbol % ** default value
  \dosetupitemgroupvariable[\itemlevel][#2]}
 {\dosetupitemgroupconstant[\itemlevel][#1]%
  \dosetupitemgroupvariable[\itemlevel][#2]%
  \doifinsetelse\v!continue{#1}% 
{\edef\@@opsymbol{\noexpand\getvalue{\@@globalitemsymbol\itemlevel}}%
 \getitemparameter\itemlevel\v!continue} 
{\edef\@@opsymbol{\noexpand\getitemparameter{\itemlevel}{\c!symbol}}%
 \global\setitemparameter\itemlevel\v!continue
   {\dosetupitemgroupconstant[\itemlevel][#1]%
\dosetupitemgroupvariable[\itemlevel][#2]}}%
  \def\docommando##1% \setitemmark resets \docommando
{\doifnot{##1}{0}{\setitemmark{##1}}}%
% \processcommalist[#1,\@@opsymbol]\docommando
  \processcommalist[#1]\docommando}%
   \ifx\listitem\empty
 \setitemmark\@@opsymbol
 \ifx\listitem\empty
   \edef\currentitemsymbol{\itemlevel}%
 \fi
   \fi
   \ifautoitemintro\ifnum\prevgraf<3

[NTG-context] Chinese ConTeXt

2004-10-15 Thread Lutz Haseloff
Hi Hans, hi all,
it seems, that the commands:
\usemodule[chi-simplified]
\usemodule[chi-traditional]
do nothing. They are pointing to files
s-chi-01.tex and s-chi-02.tex which
are not present.
How can i have access to the traditional
chinese characters?
Greetings Lutz
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese ConTeXt

2004-10-15 Thread Hans Hagen
Lutz Haseloff wrote:
Hi Hans, hi all,
it seems, that the commands:
\usemodule[chi-simplified]
\usemodule[chi-traditional]
do nothing. They are pointing to files
s-chi-01.tex and s-chi-02.tex which
are not present.
ok, i removed those entries
How can i have access to the traditional
chinese characters?
see font-chi.tex, there are quite some things predefined in there
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: textext() doesn't work on my MikTeX distr.

2004-10-15 Thread Mojca Miklavec
Hans Hagen wrote:
Mojca Miklavec wrote:
system(texexec --batch --output=dvips --mpformat=metafun --mptex 
--nomp --once
x-origin-mpgraph)...disabled.
run:
  kpsewhich texmf.cnf
and search in that file for write18, enable it and your setup will work
Hans
Thanks a lot to both of you. It finally works. The line I had to change 
was in miktex.ini. (I never had to bother about MikTeX specific issues 
till now and I didn't expect the problem to lie so deep in the system.)

Thanks,
Mojca
Now I've found a couple of old posts with more or less the same problem 
on this and some other mailing lists, but I didn't know what to look for 
before. Would it make sense to add just a short hint for newbies 
somewhere at the beginning of the manual, warning that write18 has to be 
enabled in order to process some graphics properly?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: textext() doesn't work on my MikTeX distr.

2004-10-15 Thread Adam Lindsay
Mojca Miklavec said this at Fri, 15 Oct 2004 13:10:46 +0200:

>Thanks a lot to both of you. It finally works. The line I had to change 
>was in miktex.ini. (I never had to bother about MikTeX specific issues 
>till now and I didn't expect the problem to lie so deep in the system.)

I found it bad to do this so deep in the system as well. I found a way
that enables \write18 only for ConTeXt, using the texexec configuration
file. I documented it at:


Basically, you would change texexec.ini so that it had the line:
for  miktex  set  TeXPassString to  --alias=context -shell-escape

...is there any reason why this wouldn't work for MikTeX?
or, for that matter, for general ConTeXt use?

>Would it make sense to add just a short hint for newbies 
>somewhere at the beginning of the manual, warning that write18 has to be 
>enabled in order to process some graphics properly?

:) I suppose Hans could, but it would mean fewer people come join the
ConTeXt community...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: [NTG-context] Re: textext() doesn't work on my MikTeX distr.

2004-10-15 Thread Hans Hagen
Adam Lindsay wrote:
:) I suppose Hans could, but it would mean fewer people come join the
ConTeXt community...
if you don't run mp graphics using write 18 (disabled in texmf.cnf as 
well as in cont-sys.tex) then mp should be called in between

(same as --automp)
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Visiting Context Again --- Math

2004-10-15 Thread David Arnold
All,

I'd like to pick up Context again. I have some colleagues at work who are
getting new MacIntoshes and I'd like to form a group to do some articles
and activities for our students. Two questions:

1. Has anyone experience with TeXShop and Context? Any special things I
need to know to set it up? Any things to watch out for?

2. I understand there are some new math modules, nath and something Hans
called newmat. Where can I find the documentation for these modules?

Any pointers and links will be appreciated.

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


[NTG-context] Installation Problem

2004-10-15 Thread David Arnold
All,

Got the latest cont-tfm.zip from:

http://www.pragma-ade.com/context/current/cont-tmf.zip

Extracted with WinZip on my Win95 machine running Miktex. 

Added 

map +context.map

to pdftex.cfg.

Refreshed the Filename Database.

Copied texexec.rme to texexec.ini and changed:

%set  TeXShell  to  tetex
%set TeXShell  to  fptex
set TeXShell  to  miktex
%set TeXShell  to  private

Built formats with:

texexec --make en nl

Moved formats to f:\localtexmf\miktex\fmt\

Refreshed the filename database.

Built metafun with:

texexec --make metafun 

Moved format files to f:\localtexmf\miktex\mem\

Refreshed filename database.

Saved the following in C:\temp\junk.tex

\starttext
\framed {Let’s see if it works.}
\stoptext

Change to the C:\ drive and: 

texexec junk

Got this error:

This is pdfeTeX, Version 3.141592-1.10b-2.1 (MiKTeX 2.3)
entering extended mode
(junk.tex{pdftex.cfg}

ConTeXt  ver: 2004.10.07  fmt: 2004.10.15  int: english  mes: english

systems: pdfTeX version 110 -> please update

systems: eTeX version 201 -> too old (bugs)

language   : language en is active

system : cont-new loaded
(F:\miktex\tex\context\base\cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 966]
system (E-TEX) : [line 1021]
)
system : cont-old loaded
(F:\miktex\tex\context\base\cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(F:\miktex\tex\context\base\cont-fil.tex
loading: Context File Synonyms
)
bodyfont   : 12pt rm is loaded
language   : patterns en->default:default->1->2:2
uk->default:default->2->2
:2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2
fr->texnansi:texnansi->5->2:
2 fr->ec:ec->6->2:2 es->default:default->7->2:2
it->texnansi:texnansi->8->2:2 i
t->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded
specials   : tex,postscript,rokicki loaded
system : junk.top loaded
(./junk.top
! Undefined control sequence.
 \c!gebied
 ={C:/}
\xprocesscommaitem #1,#2->\if ,#1
 ,[EMAIL PROTECTED] \xprocesscommaitem \else \if
[EMAIL PROTECTED]

\xdogetparameters #1]->\xprocesscommaitem #1,]
  ,[EMAIL PROTECTED]@
\dosetupsystem [#1]->\getparameters [\??sv ][#1]
\setuprandomize
[\@@svrandom...
l.3 ...ost --undump=}\setupsystem[\c!gebied={C:/}]

?

Any ideas?

I also have the unusual behavior that I start with:

C:\temp> texexec junk

and wind up at

F:\temp>

Anyone else ever have to deal with this changing of drives at the end of a
texexec run?
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] semicolon in \useMPgraphic btex ... etex

2004-10-15 Thread Laurent Chéno
(* Please excuse my poor english *)
Semicolon usage in btex ... etex seems weird to me. Can you help me ?
The following source don't produce the expected result :
% WRONG
\startuseMPgraphic{test}

dotlabel.top(btex 2;3 etex, (0,0)) ;
\stopuseMPgraphic
\starttext
\midaligned{\useMPgraphic{test}}
\stoptext
\end
%-
But the following is ok :
%-- OK
\startuseMPgraphic{test}

dotlabel.top(btex 2,3 etex, (0,0)) ;
\stopuseMPgraphic
\starttext
\midaligned{\useMPgraphic{test}}
\stoptext
\end
%-
I have the same problem withbtex $2;3$ etex
Thank you for any help,
best regards,
Laurent Chéno
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context