[NTG-context] mail server problems

2006-05-09 Thread Hans Hagen
Hi,

Last night there were problems with the ntg mail server (disk space). It 
looks like the list works again now so if you lost postings, resent.

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] bug in mptopdf?

2006-05-09 Thread Peter Rolf
Hi,

I get the following error with the newest context (09.05.2006):
---


1 output file written: testbrief-mpgraph.1
Transcript written on testbrief-mpgraph.log.
 [MP to PDF]
(./testbrief-mpgraph.1)This is MetaPost, Version 0.901 (Web2c 7.5.3)
(testbrief-mpgraph.mp
! Extra tokens will be flushed.
to be read again
   numeric
resetspotcolors-numeric
.spotcolorhash[][];
scantokens  resetspotcolors
  ;  resetcmykcolors ;  add_special_signal ;
spe...
to be read again
   ;
endfig-scantokens.extra_endfig;
shipit;endgroup
l.160 endfig
;
?

---

No problems with the version from 27.04.2006. The mp-file is attached.
Calling 'mptopdf *filename*' results in the same error.

Greets, Peter
mpgraph:=1;
randomseed:=2648;
_special_div_ := 1;
 
if unknown context_tool: input mp-tool;
 fi;

if unknown context_spec: input mp-spec;
 fi;

if unknown context_grph: input mp-grph;
 fi;


graphictextformat:=context;
graphictextdirective \global \loadfontfileoncetrue \usetypescriptfile 
[type-adobe-copperplate] \usetypescript [Copperplate] \usetypescriptfile 
[type-monotype] \usetypescript [ArialMT] \loadmapfile 
[texnansi-bitstrea-zapfhumanist.map] \usetypescriptfile 
[type-bitstrea-zapfhumanist] \usetypescript [ZapfHumanist] \setupbodyfont 
[ZapfHumanist,12pt];

string contextversion;

contextversion:=2006.05.08 23:37;

if not known _data_prefix_:
string _data_prefix_,_data_suffix_;

fi;

_data_prefix_:=testbrief-mpd-;
_data_suffix_:=.mpd;

boolean collapse_data;
 collapse_data:=true;

_data_suffix_:=.mpd; 
color OverlayColor,OverlayLineColor;


def initialize_form_numbers =
do_initialize_numbers;

enddef;


vardef ForegroundBox =
unitsquare xysized(HSize,VSize)
enddef ;

vardef PageFraction =
if 31: (1-1)/(3-1) else: 1 fi
enddef ;


if unknown context_page: input mp-page;
 fi;


boolean PageStateAvailable,OnRightPage,InPageBody;

PageStateAvailable:=true;


path PlainTextArea;


if unknown context_core : input mp-core.mp ;
 fi ;

;
defaultfont:=texnansi-zapfhumanist-roman;
defaultscale:=12.0pt/10pt;


cmykcolors:=true;

spotcolors:=true;


OverlayWidth:=469.47046pt  ;

OverlayHeight:=681.80237pt  ;

OverlayDepth:=681.80237pt  ;

OverlayColor:=(0,0,0);

OverlayLineWidth:=0pt ;

OverlayLineColor:=(0,0,0);

BaseLineSkip:=15.8592pt;

LineHeight:=15.8592pt;

BodyFontSize:=12.0pt;

TopSkip:=12.0pt;

StrutHeight:=11.41864pt;

StrutDepth:=4.44055pt;

CurrentWidth:=469.47046pt;

CurrentHeight:=681.80237pt;

EmWidth:=12.0pt;

ExHeight:=5.664pt;

PageNumber:=1;

RealPageNumber:=1;

LastPageNumber:= lastpage;


prologues:=2;


HSize:=469.47046pt;

VSize:=681.80237pt;


OnRightPage:=true;

InPageBody:=false ;


def LoadPageState =
OnRightPage:=true;

OnOddPage:=true;

RealPageNumber:=1;

PageNumber:=1;

NOfPages:=3;

PaperHeight:=845.04684pt;

PaperWidth:=597.50787pt;

PrintPaperHeight:=845.04684pt;

PrintPaperWidth:=597.50787pt;

TopSpace:=48.08513pt;

BottomSpace:=74.26172pt;

BackSpace:=68.57115pt;

CutSpace:=59.46626pt;

MakeupHeight:=722.7pt;

MakeupWidth:=469.47046pt;

TopHeight:=0.0pt;

TopDistance:=0.0pt;

HeaderHeight:=0.0pt;

HeaderDistance:=0.0pt;

TextHeight:=681.80237pt;

FooterDistance:=25.03842pt;

FooterHeight:=15.8592pt;

BottomDistance:=0.0pt;

BottomHeight:=0.0pt;

LeftEdgeWidth:=0.0pt;

LeftEdgeDistance:=0.0pt;

LeftMarginWidth:=75.58197pt;

LeftMarginDistance:=11.99829pt;

TextWidth:=469.47046pt;

RightMarginDistance:=11.99829pt;

RightMarginWidth:=75.58197pt;

RightEdgeDistance:=0.0pt;

RightEdgeWidth:=0.0pt;

InnerMarginDistance:=11.99829pt;

InnerMarginWidth:=75.58197pt;

OuterMarginDistance:=11.99829pt;

OuterMarginWidth:=75.58197pt;

InnerEdgeDistance:=0.0pt;

InnerEdgeWidth:=0.0pt;

OuterEdgeDistance:=0.0pt;

OuterEdgeWidth:=0.0pt;

PageOffset:=0.0pt;

PageDepth:=0.0pt;

LayoutColumns:=1;

LayoutColumnDistance:=0.0pt;

LayoutColumnWidth:=469.47046pt;

enddef;


ResetTextAreas;

;

SaveTextAreas;

ResetTextAreas;

;

;

PlainTextArea:=boundingbox((0pt,0pt)--(0pt,0pt)
shifted (0pt,0pt));


local_multi_par_area:=false;

;
let mprunend = end ;
beginfig(1);

begingroup
newnumeric u ;

newpicture tb,p ;

interim bboxmargin:= .3pt ;

interim defaultscale:= .3 ;


u:= 2.54/7.2 ;
 
p:=dashpattern(on 2.5mm off 2.5mm);


draw (origin--(PaperWidth,0))
dashed p
withpen pencircle scaled .2mm
withcolor (scaledrgb(.9373,.6471,0,1)) ;


tb:= thelabel.top(decimal(roundd(142.26378pt*u,2))  mm, (2mm,0)) ;


fill bbox tb withcolor transparent(1,.7,(scaledgray(1,1))) ;
 draw tb ;

endgroup
endfig;
let end=mprunend;
end.

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


Re: [NTG-context] new release

2006-05-09 Thread nico
On Mon, 08 May 2006 13:04:58 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 Hi,

 Today i'll upload a new release.

Got big problems with the fonts that are no more found when using the ruby  
stuff. Since the unix stubs are crappy, I do this:

ruby /usr/local/share/texmf-local/scripts/context/ruby/texmfstart.rb  
texexec.rb --pdf typefile.tex

What's wrong?

Here is the log:

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=cont-en
2006.5.8)  8 MAY 2006 19:55
entering extended mode
(/usr/local/share/texmf-local/web2c/natural.tcx)
**typefile.tex emergencyend
(./typefile.tex

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

language: language en is active
protectionstate 0
system  : cont-new loaded
(/usr/local/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/share/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/local/share/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(/usr/local/share/texmf-dist/tex/context/user/cont-sys.tex
(/usr/local/share/texmf-local/tex/context/base/type-exa.tex)
(/usr/local/share/texmf-local/tex/context/base/type-syn.tex)
(/usr/local/share/texmf-local/tex/context/base/type-enc.tex)
(/usr/local/share/texmf-local/tex/context/base/type-siz.tex)
(/usr/local/share/texmf-local/tex/context/base/type-map.tex)
(/usr/local/share/texmf-local/tex/context/base/type-spe.tex)
(/usr/local/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-ec:ec-19-2:3 en-ec:ec-21-2:3
uk-ec:ec-
 22-2:3 us-ec:ec-23-2:3 agr-agr:agr-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-3
0-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
\openout2 = `typefile.tui'.

system  : typefile.top loaded
(./typefile.top
specials: loading definition file tpd
(/usr/local/share/texmf-local/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/local/share/texmf-local/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
\openout0 = `typefile-mpgraph.mp'.

\openout0 = `mpgraph.mp'.

(./typefile.tuo) (./typefile.tuo) (./typefile.tuo) (./typefile.tuo)
(./typefile.tuo) (./typefile.tuo) (./typefile.tuo) (./typefile.tuo)
(./typefile.tuo) (./typefile.tuo) (./typefile.tuo) (./typefile.tuo)
systems : begin file typefile at line 146
(/usr/local/share/texmf-local/tex/context/base/pdfr-ec.tex)
verbatim: file ./test-001.tex does not exist
verbatim: file joke does not exist
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
[1.1
Warning: pdfetex (file original-empty.map): cannot open font map file

Warning: pdfetex (file original-base.map): cannot open font map file

Warning: pdfetex (file ec-public-lm.map): cannot open font map file

Warning: pdfetex (file ec-base.map): cannot open font map file

Warning: pdfetex (file 8r-base.map): cannot open font map file

Warning: pdfetex (file t5-base.map): cannot open font map file

Warning: pdfetex (file original-ams-base.map): cannot open font map file

Warning: pdfetex (file original-ams-euler.map): cannot open font map file

Warning: pdfetex (file original-public-lm.map): cannot open font map file
] [2.2]
systems : end file typefile at line 167
)
Here is how much of TeX's memory you used:
1168 strings out of 58787
21094 string characters out of 563686
4585586 words of memory out of 5529308
39652 multiletter control sequences out of 1+10
75349 words of font info for 38 fonts, out of 50 for 2000
232 hyphenation exceptions out of 1000
47i,18n,54p,252b,773s stack positions out of
1500i,500n,5000p,20b,5000s
PDF statistics:
10 PDF objects out of 30
0 named destinations out of 131072
5 words of extra memory for PDF output out of 65536


Re: [NTG-context] new release

2006-05-09 Thread Hans Hagen
nico wrote:
 On Mon, 08 May 2006 13:04:58 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

   
 Got big problems with the fonts that are no more found when using the ruby  
 stuff. Since the unix stubs are crappy, I do this:

 ruby /usr/local/share/texmf-local/scripts/context/ruby/texmfstart.rb  
 texexec.rb --pdf typefile.tex
   
this should be ok in this mornings version
 What's wrong?
   
maybe you need  to run mktexlsr

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] new release

2006-05-09 Thread Thomas A . Schmitz

On May 8, 2006, at 1:04 PM, Hans Hagen wrote:

 Hi,

 Today i'll upload a new release. Highlights:


Hans,

another (big) problem with the new release. Unfortunately, I can't  
really say what breaks, but when I compile a file under the new  
release, I get hundreds of overfull boxes. I get hyphenation, but TeX  
doesn't seem to find the same break points as before. The same file  
compiles wonderfully with version 2006.04.27. Can I send a logfile or  
something?

Hope this message makes it to the list...

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


Re: [NTG-context] typing midaligned

2006-05-09 Thread Peter Münster
On Mon, 8 May 2006, Hans Hagen wrote:

 ? wrote:
  On Sun, 7 May 2006, Hans Hagen wrote:
 
  ? wrote:
  
  On Sat, 6 May 2006, Hans Hagen wrote:

  you mean that you want centered verbatim? 
  
  Yes!
  A very nice solution would be:
  \starttyping[location=middle] or \setuptyping[location=middle]

  \starttext
  \setuptyping
[before={\startframedtext[strut=no,width=fit,align={lohi,middle}]},
 after={\stopframedtext}]
 
  Hello Hans,
  with align=middle, the typing is aligned line by line. What I'm looking for
  is this:
 
  normal text in a paragraph, normal text in a paragraph, normal  text in a
  paragraph, normal text in a paragraph, normal text in a paragraph, normal
  text  in a  paragraph,  normal  text  in  a paragraph,  normal  text in a
  paragraph, normal text in a paragraph, normal text in a paragraph
  on line of typing
  second line of typing but longer
  normal text in a paragraph, normal text in a paragraph, normal  text in a
  paragraph, normal text in a paragraph, normal text in a paragraph, normal
  text  in a  paragraph,  normal  text  in  a paragraph,  normal  text in a
  paragraph, normal text in a paragraph, normal text in a paragraph

 \starttext
 \setuptyping[margin=3cm]

Hello Hans,
I don't understand, it's still not centred...
Or do you mean, I have to put the typing into a box,
measure the width of the box, and then calculate the
right margin ((\textwidth - \typingwidth) / 2) ?

Greetings, 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

2006-05-09 Thread nico
On Tue, 09 May 2006 11:09:43 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 nico wrote:
 On Mon, 08 May 2006 13:04:58 +0200, Hans Hagen [EMAIL PROTECTED] wrote:


 Got big problems with the fonts that are no more found when using the  
 ruby
 stuff. Since the unix stubs are crappy, I do this:

 ruby /usr/local/share/texmf-local/scripts/context/ruby/texmfstart.rb
 texexec.rb --pdf typefile.tex

 this should be ok in this mornings version

Seems that the unix texmfstart stub is missing.

 What's wrong?

 maybe you need  to run mktexlsr

Doesn't help, and the required map files are here for a while (eg:  
kpsewhich ec-base.map gives
/usr/local/share/texmf-local/fonts/map/pdftex/context/ec-base.map).

I tried to use the perl version, and now it tries to find stuff in dvipdfm  
fonts, which plants:

Warning: pdfetex (file  
/usr/local/share/texmf-local/fonts/map/dvipdfm/context/original-base.map):  
invalid entry for `fmvr8x': font file missing

It works if i remove (or rename) the dvipdfm directory.

What can i do to have ruby thing working, and pdftex fonts used instead of  
dvipdfm ones?

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


Re: [NTG-context] new release

2006-05-09 Thread Hans Hagen
Thomas A.Schmitz wrote:
 On May 8, 2006, at 1:04 PM, Hans Hagen wrote:

   
 Hi,

 Today i'll upload a new release. Highlights:

 

 Hans,

 another (big) problem with the new release. Unfortunately, I can't  
 really say what breaks, but when I compile a file under the new  
 release, I get hundreds of overfull boxes. I get hyphenation, but TeX  
 doesn't seem to find the same break points as before. The same file  
 compiles wonderfully with version 2006.04.27. Can I send a logfile or  
 something?

 Hope this message makes it to the list...
   
can you send some example hyphenatable words?  

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] new release

2006-05-09 Thread Hans Hagen
Thomas A.Schmitz wrote:
 On May 8, 2006, at 1:04 PM, Hans Hagen wrote:

   
 Hi,

 Today i'll upload a new release. Highlights:

 

 Hans,

 another (big) problem with the new release. Unfortunately, I can't  
 really say what breaks, but when I compile a file under the new  
 release, I get hundreds of overfull boxes. I get hyphenation, but TeX  
 doesn't seem to find the same break points as before. The same file  
 compiles wonderfully with version 2006.04.27. Can I send a logfile or  
 something?

 Hope this message makes it to the list...
   
btw, there was a problem with the german patterns for a while; let me check it  

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] problem using \usepackage{m-metapo}

2006-05-09 Thread Luis A Escobar




I do not know if it is proper to post this question to
this list but a miktex-user suggested to send it to you because
there were not suggestioned solutions on that list.

My apologies if I am sending this to the wrong list.

This is the problem
I am new to MiKTeX and I am have not been able to solve
 a problem that arises when I try to use the m-metapo package.

Here is a simple example

 \documentclass{article}
\usepackage{m-metapo}
\begin{document}
Why this error?
\end{document}

This is the error I get

(C:\MiKTeX\Main\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
)
loading : Context Support Macros / MetaPost Inclusion
! Undefined control sequence.
\startMPinclusions -\dosingleempty
\dostartMPinclusions
l.245 \startMPinclusions
 \stopMPinclusions
?

The relevant part of the log says

\MPextensions=\toks18
! Undefined control sequence.
\startMPinclusions -\dosingleempty
\dostartMPinclusions
l.245 \startMPinclusions
 \stopMPinclusions
? r
OK, entering \nonstopmode...
! Use of \dostartMPinclusions doesn't match its definition.
l.245 \startMPinclusions \stopMPinclusions

If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.


I have wasted hours on this stupid thing.
I would greatly a hint to solve this.

I have a large number of metapost graphs that I used
through the m-metapo package

Thank you for any help
Luis A. Escobar
Louisiana State University

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


[NTG-context] TeXUtil fatal error ?!

2006-05-09 Thread Renaud AUBIN




Hi all,

I have upgraded to the latest release and I'm not sure if this problem
is due to this update but I obtain at compilation:

Transcript written on prd_phd.log.
TeXUtil | parsing file prd_phd.tui
-- TeXUtil | fatal error in plugin processor MySynonyms (wrong
argument type nil (expected Regexp))
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 12
TeXUtil | commands: 1918
TeXUtil | synonyms: flowchart 1
TeXUtil | synonyms: unit 5
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 66.441343

The pdf looks good... An idea ?

Cheers,

Renaud



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


[NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Johan Sandblom
Dear expertise,

I have the following:

\definepapersize[thesis][width=169mm, height=239mm]
\setuppapersize[thesis][A4]
\setuplayout
 [location=middle, marking=on]
\setuppagenumbering
 [alternative=doublesided, location=marginedge, state=stop]

\starttext

% Title page
\startMPpage
% Some metafun
\stopMPpage

% Some text
\stoptext

The resulting pdf has a smaller first page (thesis size) while the
rest are A4 with the thesis pages place centrally. I would like to see
the title page placed on an A4 sheet as well. What am I doing wrong?

Johan



--
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] new release

2006-05-09 Thread Hans Hagen
nico wrote:
 On Tue, 09 May 2006 11:09:43 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

   
 nico wrote:
 
 On Mon, 08 May 2006 13:04:58 +0200, Hans Hagen [EMAIL PROTECTED] wrote:


 Got big problems with the fonts that are no more found when using the  
 ruby
 stuff. Since the unix stubs are crappy, I do this:

 ruby /usr/local/share/texmf-local/scripts/context/ruby/texmfstart.rb
 texexec.rb --pdf typefile.tex

   
 this should be ok in this mornings version
 

 Seems that the unix texmfstart stub is missing.
   
indeed; the fastest method is:

cp texmfstart.rb  .../bin/texmfstart

or make a  stub that directly points to your copy of texmfstart
   
 What's wrong?

   
 maybe you need  to run mktexlsr
 

 Doesn't help, and the required map files are here for a while (eg:  
 kpsewhich ec-base.map gives
 /usr/local/share/texmf-local/fonts/map/pdftex/context/ec-base.map).

 I tried to use the perl version, and now it tries to find stuff in dvipdfm  
 fonts, which plants:

 Warning: pdfetex (file  
 /usr/local/share/texmf-local/fonts/map/dvipdfm/context/original-base.map):  
 invalid entry for `fmvr8x': font file missing

 It works if i remove (or rename) the dvipdfm directory.

 What can i do to have ruby thing working, and pdftex fonts used instead of  
 dvipdfm ones?
   
your texmf.cnf file should contain:

TEXFONTMAPS   = 
.;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//;$TEXMF/{$progname,pdftex,dvips}/{config,}//

as long as we have no uniform map file syntax, progs needs to be able to 
find their own map files

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] new release

2006-05-09 Thread nico
On Mon, 08 May 2006 13:04:58 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 Hi,

 Today i'll upload a new release. Highlights:

 - some fixes/extensions discussed the last few weeks

What about fixing this one  
(http://archive.contextgarden.net/message/20060430.190029.2f68d437.en.html)?

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


Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Aditya Mahajan
On Tue, 9 May 2006, Johan Sandblom wrote:

 Dear expertise,

 I have the following:

 \definepapersize[thesis][width=169mm, height=239mm]
 \setuppapersize[thesis][A4]
 \setuplayout
 [location=middle, marking=on]
 \setuppagenumbering
 [alternative=doublesided, location=marginedge, state=stop]

 \starttext

 % Title page
 \startMPpage
 % Some metafun
 \stopMPpage

 % Some text
 \stoptext

 The resulting pdf has a smaller first page (thesis size) while the
 rest are A4 with the thesis pages place centrally. I would like to see
 the title page placed on an A4 sheet as well. What am I doing wrong?

MPpage creates a page with dimensions equal to the bounding box of the 
graphic. If you want to center a MP figure on your title page, use 
\startMPgraphic

Aditya

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


[NTG-context] m-bib and \onlinecite

2006-05-09 Thread Tobias Burnus
Hello,

what is the recommended way to get the following:

   as is written in Ref.~4.

Using Ref.~\cite[four] gives Ref. [4] with the superfluous brackets.
(\cite[ref] should remain unmodified, ie with brackets, as this is
mostly used in texts [1-5,7].)

APS' revtex offers \onlinecite (Ref.~\onlinecite{four}) to obtain the
reference number without the brackets.

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


Re: [NTG-context] TeXUtil fatal error ?!

2006-05-09 Thread Hans Hagen
Renaud AUBIN wrote:
 Hi all,

 I have upgraded to the latest release and I'm not sure if this problem 
 is due to this update but I obtain at compilation:

 Transcript written on prd_phd.log.
 TeXUtil | parsing file prd_phd.tui
 -- TeXUtil | fatal error in plugin processor MySynonyms (wrong 
 argument type nil (expected Regexp))
 TeXUtil | shortcuts : 0
 TeXUtil | expansions: 0
 TeXUtil | reductions: 0
 TeXUtil | divisions : 0
 TeXUtil | loaded files: 12
 TeXUtil | commands: 1918
 TeXUtil | synonyms: flowchart 1
 TeXUtil | synonyms: unit 5
 TeXUtil | programs: 0
 TeXUtil | tuo file saved
 TeXExec | runtime: 66.441343

 The pdf looks good... An idea ?
can you send me a small test file? 

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] new release

2006-05-09 Thread nico
On Tue, 09 May 2006 15:11:23 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 nico wrote:
 On Tue, 09 May 2006 11:09:43 +0200, Hans Hagen [EMAIL PROTECTED] wrote:


 nico wrote:

 On Mon, 08 May 2006 13:04:58 +0200, Hans Hagen [EMAIL PROTECTED] wrote:


 Got big problems with the fonts that are no more found when using the
 ruby
 stuff. Since the unix stubs are crappy, I do this:

 ruby /usr/local/share/texmf-local/scripts/context/ruby/texmfstart.rb
 texexec.rb --pdf typefile.tex

 What's wrong?

 maybe you need  to run mktexlsr

 Doesn't help, and the required map files are here for a while (eg:
 kpsewhich ec-base.map gives
 /usr/local/share/texmf-local/fonts/map/pdftex/context/ec-base.map).

 I tried to use the perl version, and now it tries to find stuff in  
 dvipdfm
 fonts, which plants:

 Warning: pdfetex (file
 /usr/local/share/texmf-local/fonts/map/dvipdfm/context/original-base.map):
 invalid entry for `fmvr8x': font file missing

 It works if i remove (or rename) the dvipdfm directory.

 What can i do to have ruby thing working, and pdftex fonts used instead  
 of
 dvipdfm ones?

 your texmf.cnf file should contain:

 TEXFONTMAPS   =
 .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//;$TEXMF/{$progname,pdftex,dvips}/{config,}//

 as long as we have no uniform map file syntax, progs needs to be able to
 find their own map files

Ok, thanks, modifying texmf.cnf as you say fixes the path precedence. Now,  
is there a ruby debug mode to see why the paths are lost with texexec.rb?  
Or tests I could do to find out what happens?

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


Re: [NTG-context] m-bib and \onlinecite

2006-05-09 Thread Taco Hoekwater


Tobias Burnus wrote:
 Hello,
 
 what is the recommended way to get the following:
 
as is written in Ref.~4.
 
 Using Ref.~\cite[four] gives Ref. [4] with the superfluous brackets.
 (\cite[ref] should remain unmodified, ie with brackets, as this is
 mostly used in texts [1-5,7].)

   \def\onlinecite#1{\cite[left=,right=][#1]}

But are you sure the macro should not be called \inlinecite ?

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


Re: [NTG-context] new release

2006-05-09 Thread nico
On Tue, 09 May 2006 15:11:23 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 What's wrong?

 maybe you need  to run mktexlsr

 Doesn't help, and the required map files are here for a while (eg:
 kpsewhich ec-base.map gives
 /usr/local/share/texmf-local/fonts/map/pdftex/context/ec-base.map).

 I tried to use the perl version, and now it tries to find stuff in  
 dvipdfm
 fonts, which plants:

 Warning: pdfetex (file
 /usr/local/share/texmf-local/fonts/map/dvipdfm/context/original-base.map):
 invalid entry for `fmvr8x': font file missing

 It works if i remove (or rename) the dvipdfm directory.

 What can i do to have ruby thing working, and pdftex fonts used instead  
 of
 dvipdfm ones?

 your texmf.cnf file should contain:

 TEXFONTMAPS   =
 .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//;$TEXMF/{$progname,pdftex,dvips}/{config,}//

For the ruby issue:

if I remove the TEXFONTMAPS environment setting from tex.rb, it works on  
my machine. I don't know if it can be a fix working on any platform:

 def fixbackendvars(backend)
 if backend then
 report(fixing backend map path for #{backend}) if  
getvariable('verbose')
 ENV['backend'] = backend ;
 ENV['progname']= backend unless validtexengine(backend)
 #ENV['TEXFONTMAPS'] =  
.;\$TEXMF/fonts/map/{#{backend},pdftex,dvips,}//
 else
 report(unable to fix backend map path) if  
getvariable('verbose')
 end
 end

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


Re: [NTG-context] TeXUtil fatal error ?!

2006-05-09 Thread Renaud AUBIN




Hi Hans,

Seems hard to provide a "light" test...

I'll try to define the problem more precisely...



  can you send me a small test file? 

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


Re: [NTG-context] new release

2006-05-09 Thread Hans Hagen
nico wrote:

 Ok, thanks, modifying texmf.cnf as you say fixes the path precedence. Now,  
 is there a ruby debug mode to see why the paths are lost with texexec.rb?  
 Or tests I could do to find out what happens?
   
--verbose gives some info 

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] new release

2006-05-09 Thread Hans Hagen
nico wrote:
 On Tue, 09 May 2006 15:11:23 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

   
 What's wrong?

   
 maybe you need  to run mktexlsr

 
 Doesn't help, and the required map files are here for a while (eg:
 kpsewhich ec-base.map gives
 /usr/local/share/texmf-local/fonts/map/pdftex/context/ec-base.map).

 I tried to use the perl version, and now it tries to find stuff in  
 dvipdfm
 fonts, which plants:

 Warning: pdfetex (file
 /usr/local/share/texmf-local/fonts/map/dvipdfm/context/original-base.map):
 invalid entry for `fmvr8x': font file missing

 It works if i remove (or rename) the dvipdfm directory.

 What can i do to have ruby thing working, and pdftex fonts used instead  
 of
 dvipdfm ones?

   
 your texmf.cnf file should contain:

 TEXFONTMAPS   =
 .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//;$TEXMF/{$progname,pdftex,dvips}/{config,}//
 

 For the ruby issue:

 if I remove the TEXFONTMAPS environment setting from tex.rb, it works on  
 my machine. I don't know if it can be a fix working on any platform:

  def fixbackendvars(backend)
  if backend then
  report(fixing backend map path for #{backend}) if  
 getvariable('verbose')
  ENV['backend'] = backend ;
  ENV['progname']= backend unless validtexengine(backend)
  #ENV['TEXFONTMAPS'] =  
 .;\$TEXMF/fonts/map/{#{backend},pdftex,dvips,}//
  else
  report(unable to fix backend map path) if  
 getvariable('verbose')
  end
  end
   
i wonder why this does not 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
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] treat framed and externalfigure as characters

2006-05-09 Thread Peter Münster
Hello Taco and Hans,

in http://context.literatesolutions.com/collector/89
you write
   Both Hans and me have documents that depend on \framed staying in
vertical mode.

Could you give me an example please?

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] typing midaligned

2006-05-09 Thread Peter Münster
On Tue, 9 May 2006, Hans Hagen wrote:

 ? wrote:
 
  I don't understand, it's still not centred...
  Or do you mean, I have to put the typing into a box,
  measure the width of the box, and then calculate the
  right margin ((\textwidth - \typingwidth) / 2) ?

 indeed this is teh only way since in typing each line is a par 

Ok, this seems to work:

\def\startTypeMidaligned{%
  \dostartbuffer[typemidaligned][startTypeMidaligned][stopTypeMidaligned]}
\def\stopTypeMidaligned{\setuptyping[margin=0pt]%
  \setbox\scratchbox\hbox{%
\framed[frame=off,offset=overlay,align=lohi]{\typebuffer[typemidaligned]}}%
  \setuptyping[margin=\dimexpr (\textwidth - \wd\scratchbox) / 2 \relax]%
  \typebuffer[typemidaligned]}
\starttext
\input tufte
\startTypeMidaligned
bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\stopTypeMidaligned
\input tufte
\startTypeMidaligned
bla bla bla
blub
\stopTypeMidaligned
\input tufte
\stoptext

Can be wikified ;)
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

2006-05-09 Thread nico
On Tue, 09 May 2006 17:16:38 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

  #ENV['TEXFONTMAPS'] =
 .;\$TEXMF/fonts/map/{#{backend},pdftex,dvips,}//
 i wonder why this does not work

Unix likes column separator (and often cannot stand windows one ;-). If i  
change ';' into ':' it works. BTW, why is this set? Isn't it up to  
texmf.cnf to configure this (like for texexec.pl)?

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


Re: [NTG-context] new release

2006-05-09 Thread Hans Hagen
nico wrote:
 On Tue, 09 May 2006 17:16:38 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

   
  #ENV['TEXFONTMAPS'] =
 .;\$TEXMF/fonts/map/{#{backend},pdftex,dvips,}//
   
 i wonder why this does not work
 

 Unix likes column separator (and often cannot stand windows one ;-). If i  
 change ';' into ':' it works. BTW, why is this set? Isn't it up to  
 texmf.cnf to configure this (like for texexec.pl)?
   
as usual, it takes a while before such changes end up in the mainstream 
distributions 

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] \quad in pdf author

2006-05-09 Thread Aditya Mahajan
Hi,

\setupinteraction
   [
author={Author 1 \quad Author 2},
   ]


gives me Author 1 hskip 1em in pdf info. Is there some way to ensure 
that \quad is ignored when used in \setupinteraction[...].

I use variables and setups to create a title page and use doctitle and 
author information in pdf document properties. I need quad in the 
titlepage but not in pdf properties.

Thanks,
Aditya

-- 
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] \quad in pdf author

2006-05-09 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,

 \setupinteraction
[
 author={Author 1 \quad Author 2},
]


 gives me Author 1 hskip 1em in pdf info. Is there some way to ensure 
 that \quad is ignored when used in \setupinteraction[...].

 I use variables and setups to create a title page and use doctitle and 
 author information in pdf document properties. I need quad in the 
 titlepage but not in pdf properties.
   
\appendtoks
\let\quad\space
\to \simplifiedcommands

wikifyable 

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] \quad in pdf author

2006-05-09 Thread nico
On Tue, 9 May 2006 12:50:05 -0400 (EDT), Aditya Mahajan  
[EMAIL PROTECTED] wrote:

 Hi,

 \setupinteraction
[
 author={Author 1 \quad Author 2},
]

 gives me Author 1 hskip 1em in pdf info. Is there some way to ensure
 that \quad is ignored when used in \setupinteraction[...].

As Hans said once, you can do this:

\appendtoks
   \def\quad{}%
\to \simplifiedcommands

\setupinteraction
[state=start,
 author={Author 1 \quad Author 2}]

\starttext
bla
\stoptext

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


Re: [NTG-context] \quad in pdf author

2006-05-09 Thread Peter Münster
On Tue, 9 May 2006, Aditya Mahajan wrote:

 \setupinteraction
[
 author={Author 1 \quad Author 2},
]
 
 gives me Author 1 hskip 1em in pdf info. Is there some way to ensure 
 that \quad is ignored when used in \setupinteraction[...].

\appendtoks
  \def\quad{}%
\to \simplifiedcommands

or

\appendtoks
  \def\quad{\ \ \ \ }%
\to \simplifiedcommands

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] \quad in pdf author

2006-05-09 Thread Hans Hagen
nico wrote:
 On Tue, 9 May 2006 12:50:05 -0400 (EDT), Aditya Mahajan  
 [EMAIL PROTECTED] wrote:

   
 Hi,

 \setupinteraction
[
 author={Author 1 \quad Author 2},
]

 gives me Author 1 hskip 1em in pdf info. Is there some way to ensure
 that \quad is ignored when used in \setupinteraction[...].
 

 As Hans said once, you can do this:

 \appendtoks
\def\quad{}%
 \to \simplifiedcommands

 \setupinteraction
 [state=start,
  author={Author 1 \quad Author 2}]

 \starttext
 bla
 \stoptext
   
actually, in the title it should be:

Author 1\quad Author 2


\def\MyQuad{\removeunwantedspaces\quad\ignorespaces}

\appendtoks \let\MyQuad\empty \to \simplifiedcommands

Author 1 \MyQuad Author 2


-- 

-
  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] m-bib and \onlinecite

2006-05-09 Thread Tobias Burnus
Hi Taco,

Taco Hoekwater schrieb:
\def\onlinecite#1{\cite[left=,right=][#1]}
 But are you sure the macro should not be called \inlinecite ?
   
I'm not sure how it should be called, however, in APS' RevTeX it is
called \onlinecite (as the number is not a superscript but on the line).
(Thanks for the reminder to use \cite[left=...][]. I was thinking only
of \setupcite[num][left=...]; now wikified)

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


[NTG-context] List of Formulas

2006-05-09 Thread nico
Hello,

Is it possible to display a list of the numbered formulas (done with  
\placeformula)? I tried \placelist[formula] without success.

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


[NTG-context] customized itemize

2006-05-09 Thread Na Li

I need use repeatedly a list like this, with the same set of words (five
or six of them), 'icon', 'coni', etc,

  \startitemize[width=3em,symstyle=bold]
\sym{icon} blah
\sym{coni} llla
  \stopitemize

How to define a customized list so I can do:

 \startmylist
   \item blah
   \item llla
 \stopmylist

to get the same result?

Thanks,

Michael

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


Re: [NTG-context] \quad in pdf author

2006-05-09 Thread Aditya Mahajan
On Tue, 9 May 2006, Hans Hagen wrote:

 nico wrote:
 On Tue, 9 May 2006 12:50:05 -0400 (EDT), Aditya Mahajan
 [EMAIL PROTECTED] wrote:


 Hi,

 \setupinteraction
[
 author={Author 1 \quad Author 2},
]

 gives me Author 1 hskip 1em in pdf info. Is there some way to ensure
 that \quad is ignored when used in \setupinteraction[...].


 As Hans said once, you can do this:

 \appendtoks
\def\quad{}%
 \to \simplifiedcommands

 \setupinteraction
 [state=start,
  author={Author 1 \quad Author 2}]

 \starttext
 bla
 \stoptext

 actually, in the title it should be:

 Author 1\quad Author 2


 \def\MyQuad{\removeunwantedspaces\quad\ignorespaces}

 \appendtoks \let\MyQuad\empty \to \simplifiedcommands

 Author 1 \MyQuad Author 2

Thanks. I'll add it to the wiki (in a day or two)

Aditya


-- 
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] Bib bug in using months

2006-05-09 Thread Aditya Mahajan
On Mon, 8 May 2006, Taco Hoekwater wrote:


 Hi Aditya,


 Aditya Mahajan wrote:
 However, the bib module does not support this naming scheme. I get

 \month{1}
 \month{2}

 etc in my bbl file. Can this be corrected?

 Sure, it is just an oversight. For this to work, only a redefinition
 of \insertmonth is needed (I had intented that all along, just
 forgot to implement it), For now, just add this somewhere after
 the loading of the bib module.

   \unprotect
   \def\insertmonth#1#2#3%
 {\bibdoifelse{\@@[EMAIL PROTECTED]
{#1\doifnumberelse{\@@[EMAIL PROTECTED]
   [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
   {\@@[EMAIL PROTECTED]
   \protect

 That will give you the full month name according to the current
 language labeltext for the month names. Not perfect yet, but better.

Thanks. For my present project I need short month names, and the 
deadline is tomorrow. So, I will stick to the manual solution at the 
moment.


 I'll ask Hans to provide true \numberconversions for month names in
 short and long format, so I can extend the module officially.

That will be great.

Aditya


-- 
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] customized itemize

2006-05-09 Thread Aditya Mahajan
On Tue, 9 May 2006, Na Li wrote:


 I need use repeatedly a list like this, with the same set of words (five
 or six of them), 'icon', 'coni', etc,

  \startitemize[width=3em,symstyle=bold]
\sym{icon} blah
\sym{coni} llla
  \stopitemize

 How to define a customized list so I can do:

 \startmylist
   \item blah
   \item llla
 \stopmylist

 to get the same result?


Does http://wiki.contextgarden.net/User-Defined_Enumerations help?

Aditya

-- 
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] treat framed and externalfigure as characters

2006-05-09 Thread Taco Hoekwater
Peter Münster wrote:
 Hello Taco and Hans,
 
 in http://context.literatesolutions.com/collector/89
 you write
Both Hans and me have documents that depend on \framed staying in
 vertical mode.
 
 Could you give me an example please?

For instance in a recipe booklet, where one of the macros
goes like this:

   \def\startrecipe[#1]%
 {\getparameters[Recipe]
[Title=,Summary=,Image=none,#1]% ..
  \framed{\tfd \RecipeTitle}%
  \externalfigure[\RecipeImage]%
  {\bf\RecipeSummary}%
  \blank }

I am not saying that that is the best way to write macros (and I 
certainly do not do it like that anymore) but changing the behaviour
would break quite a lot of my existing documents, including some
I have been payed for to do.

Maybe Hans is willing to add a global switch that you can set at
the top of your document(s).

For Hans: Peter would like an implicit \dontleavehmode added to
\framed and \externalfigure, so they behave more like characters
(not like \hboxes).

Cheers, Taco





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


Re: [NTG-context] Bib bug in using months

2006-05-09 Thread Taco Hoekwater
Aditya Mahajan wrote:
 
 
 Thanks. For my present project I need short month names, and the 
 deadline is tomorrow. So, I will stick to the manual solution at the 
 moment.

There should be no need for manual fixes, just do this:

   \unprotect
   \def\insertmonth#1#2#3%
{\bibdoifelse{\@@[EMAIL PROTECTED]
   {#1\doifnumberelse{\@@[EMAIL PROTECTED]
   [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
   {\@@[EMAIL PROTECTED]
   \protect
   \def\doconvertshortmonth#1%
 {\ifcase#1\or % adjust names as you like
  jan\or feb\or mar\or apr\or may\or jun\or
  jul\or aug\or sep\or oct\or nov\or dec\else !!!\fi }

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


Re: [NTG-context] customized itemize

2006-05-09 Thread Na Li
On  9 May 2006, Aditya Mahajan wrote:

On Tue, 9 May 2006, Na Li wrote: 
  I need use repeatedly a list like this, with the same set of words (five
  or six of them), 'icon', 'coni', etc,
  
  \startitemize[width=3em,symstyle=bold]
  \sym{icon} blah
  \sym{coni} llla
  \stopitemize
  
  How to define a customized list so I can do:
  
  \startmylist
  \item blah
  \item llla
  \stopmylist
  
  to get the same result?
  
 
 Does http://wiki.contextgarden.net/User-Defined_Enumerations help?

Thanks! This works fine:

\defineconversion[s][icon,coni]
\startitemize[s,packed][width=5em,stopper=:,style=bold]
\item blah
\item lla
\stopitemize 

Is there a way of defining an itemize style without having to specify
the same set of options to \startitemize every time?  Something like:

\defineitemize[myitemize][s,packed][width=5em,stopper=:,style=bold]

Michael 

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


Re: [NTG-context] treat framed and externalfigure as characters

2006-05-09 Thread Peter Münster
On Tue, 9 May 2006, Taco Hoekwater wrote:

 Peter Münster wrote:
  Hello Taco and Hans,
  
  in http://context.literatesolutions.com/collector/89
  you write
 Both Hans and me have documents that depend on \framed staying in
  vertical mode.
  
  Could you give me an example please?
 
 For instance in a recipe booklet, where one of the macros
 goes like this:
 
\def\startrecipe[#1]%
  {\getparameters[Recipe]
 [Title=,Summary=,Image=none,#1]% ..
   \framed{\tfd \RecipeTitle}%
   \externalfigure[\RecipeImage]%
   {\bf\RecipeSummary}%
   \blank }
 
 I am not saying that that is the best way to write macros (and I 
 certainly do not do it like that anymore) but changing the behaviour
 would break quite a lot of my existing documents, including some
 I have been payed for to do.

Hello Taco,
I understand and accept your arguments. Even for me, it's no more problem
to add here and there a \dontleavehmode, since I know it now. But for a
beginner and a user without ambition to become a ConTeXt expert, the actual
behaviour is annoying. He just sees a line break, where he does not expect
it. There is a fundamental difference between
 bla \framed{bla} bla
and
 \framed{bla} bla bla
that is not understandable.

It's much more straightforward and clear to add a \par (and perhaps
\noindentation) if you really want this line break (for example in your
macro \startrecipe).

 Maybe Hans is willing to add a global switch that you can set at
 the top of your document(s).

Perhaps one day, I would like to convert some of my colleagues from M$-Word
to ConTeXt, but if I have to teach them about things like \dontleavehmode
there is no need for further efforts. So, such a switch would be very
welcome (I would put it into cont-sys.tex)!

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] treat framed and externalfigure as characters

2006-05-09 Thread Hans Hagen
Taco Hoekwater wrote:
 Peter M�nster wrote:
   
 Hello Taco and Hans,

 in http://context.literatesolutions.com/collector/89
 you write
Both Hans and me have documents that depend on \framed staying in
 vertical mode.

 Could you give me an example please?
 

 For instance in a recipe booklet, where one of the macros
 goes like this:

\def\startrecipe[#1]%
  {\getparameters[Recipe]
 [Title=,Summary=,Image=none,#1]% ..
   \framed{\tfd \RecipeTitle}%
   \externalfigure[\RecipeImage]%
   {\bf\RecipeSummary}%
   \blank }

 I am not saying that that is the best way to write macros (and I 
 certainly do not do it like that anymore) but changing the behaviour
 would break quite a lot of my existing documents, including some
 I have been payed for to do.

 Maybe Hans is willing to add a global switch that you can set at
 the top of your document(s).

 For Hans: Peter would like an implicit \dontleavehmode added to
 \framed and \externalfigure, so they behave more like characters
 (not like \hboxes).
   
as you say, a dangerous feature that would break much (keep in mind that 
\framed is used all over the place)


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] customized itemize

2006-05-09 Thread Hans Hagen
Na Li wrote:

 Is there a way of defining an itemize style without having to specify
 the same set of options to \startitemize every time?  Something like:

 \defineitemize[myitemize][s,packed][width=5em,stopper=:,style=bold]
   
\defineitemgroup

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] treat framed and externalfigure as characters

2006-05-09 Thread Hans Hagen
� wrote:

 I understand and accept your arguments. Even for me, it's no more problem
 to add here and there a \dontleavehmode, since I know it now. But for a
 beginner and a user without ambition to become a ConTeXt expert, the actual
 behaviour is annoying. He just sees a line break, where he does not expect
 it. There is a fundamental difference between
  bla \framed{bla} bla
 and
  \framed{bla} bla bla
 that is not understandable.
   
this is the case for many more things and a tex speciality which takes 
while to get accustomed to; a similar case is

{\bf whatever} rest of par

best put a \dontleavevmode or \strut in front if you want indentation 
and related features to work
 Perhaps one day, I would like to convert some of my colleagues from M$-Word
 to ConTeXt, but if I have to teach them about things like \dontleavehmode
 there is no need for further efforts. So, such a switch would be very
 welcome (I would put it into cont-sys.tex)!
   
but then it would break other things and your collegues would scream about that 

btw, there is \inframed for inline usage, or one could define a symbol 

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] List of Formulas

2006-05-09 Thread Hans Hagen
nico wrote:
 Hello,

 Is it possible to display a list of the numbered formulas (done with  
 \placeformula)? I tried \placelist[formula] without success.
   
you want to see the formulas too? 

\defineblock[formula]

\starttext

\beginformula
\placeformula
\startformula
a = 1
\stopformula
\endformula

\startformula
a = 2
\stopformula

\beginformula
\placeformula
\startformula
a = 3
\stopformula
\endformula

\page

\resetnumber[formula]

\useblocks[formula]

\stoptext

-
  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] Global and per product TOC

2006-05-09 Thread nico
Hello,

I would like to be able to have a set of books in a single document, and  
think the project/product model could be used.

In the big manual it is said that one can have a completecontent per  
product. I would like a global TOC, and for each product a TOC per product  
(in this case per book). Currently each book have the whole project TOC.   
How to achieve this? Thanks for any hint.

The structure I've tried:

\startproject proj

% global TOC
\completecontent
\product book1
\product book2

\stopproject
--
\startproduct book1

\project proj

% well, to put in an environment file...
\startsectionblockenvironment[frontpart]
   \setuppagenumber[number=1]
   \setuppagenumbering[conversion=romannumerals]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
   \setuppagenumber[number=1]
\stopsectionblockenvironment

\starttext
\startfrontmatter
% Local book TOC?
\completecontent[criterium=local]
\chapter{A}
a
\chapter{B}
a
\stopfrontmatter
\startbodymatter
\chapter{A}
a
\chapter{B}
a
\stopbodymatter
\startappendices
\chapter{A}
a
\chapter{B}
a
\stopappendices
\stoptext

\stopproduct
-
(The same for book2)


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


[NTG-context] batch mode

2006-05-09 Thread Aditya Mahajan
--batch --interaction=batch does not always process file in batch 
mode, while internally running mp.

\starttext
\startMPpage
   draw path ;
\stopMPpage
\stoptext

texmfstart texexec.rb --batch --interaction=batchmode --pdf test

should not stop at the error. However it does. Running ConTeXt  ver: 
2006.05.08 23:37.

Aditya

-- 
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] List of Formulas

2006-05-09 Thread nico
On Tue, 09 May 2006 23:38:47 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 nico wrote:
 Hello,

 Is it possible to display a list of the numbered formulas (done with
 \placeformula)? I tried \placelist[formula] without success.

 you want to see the formulas too?

Well, no, i just wanted a list, like a list of tables, figures, or  
enumerations, with the pages where they appear. But ok, since it is not  
available by default, i can put each formula in a specific Equation  
enumeration an then do a \placelist[enumeration:Equation].

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


[NTG-context] Yet Another French Punctuation Problem ;)

2006-05-09 Thread Renaud AUBIN





Hi Hans,

With the latest release the following example doesn't give correct
punctuation spaces... (at least here)

\setupoutput[pdftex]

\mainlanguage[fr]

% Fonts settings for ConTeXt
\usetypescriptfile[type-buy]
\loadmapfile[texnansi-bh-lucida.map]
\usetypescript[lucida][texnansi]
\setupbodyfont[lucida,10pt]

\starttext

\placecontent[criterium=all]

\section{Caractres accentus}
i

\section{Caractres spciaux}
\oe

\euro

\section{Ponctuation}

Un test:

Un autre test pour la ponctuation!

Un autre test pour la ponctuation?

\stoptext

Cheers,

Renaud



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


[NTG-context] Problem with a french document

2006-05-09 Thread Renaud AUBIN




Hi all,

I use a "complex" structure for my document (project, product,
environment and components).

The project is allmost empty except for the environment and the product
declarations.
The environment contains all my \usemodule, \setupstuff and fonts
settings (I use texnansi because I can't have correct horizontal spaces
in MetaUML with the EC encoding... and don't want bitmap fonts :) ).
The product obviously contains the project declaration, the
\start-\stoptext and my components.

My question is: What's the best place to put french settings ?
For the moment, I have:

 \useregime[il9]
 \enableencoding[ffr]
 \mainlanguage[fr]

in my product but I have some VERY STRANGE problems with accentuated
characters (I have tried before and after \startproduct...):

1.I have a custom title page defined in a t-title.tex module - a 
results in ' while  and  are right (maybe a problem with texnansi
but I don't think so)

2.
\setupheadertexts[][{\sl \getmarking[chapter]}]
 
 \startfrontmatter
 \setuppagenumbering[conversion=romannumerals]
 \setuppagenumber[number=1]
 \chapter{Table des matires}

\placecontent[alternative=c,criterium=all,interaction=all,partnumber=no]
\stopfrontmatter

results in: Tables des Mati'res in the header, the toc element and the
chapter title... while other toc elements is ok (with accentuated
characters)

3. same problems with \chapter within backmatter start/stop pair...


I must precise that I have the following error:
TeXUtil | fatal error in plugin processor MySynonyms (wrong argument
type nil (expected Regexp))



I'm going nuts...  :-! 

Cheers,

Renaud





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


Re: [NTG-context] Yet Another French Punctuation Problem ;)

2006-05-09 Thread Renaud AUBIN





I have forgotten \useencoding[ffr]... Don't work too...

Renaud AUBIN a crit:

  Hi Hans,

With the latest release the following example doesn't give correct
punctuation spaces...  (at least here)

\setupoutput[pdftex]

\mainlanguage[fr]

% Fonts settings for ConTeXt
\usetypescriptfile[type-buy]
\loadmapfile[texnansi-bh-lucida.map]
\usetypescript[lucida][texnansi]
\setupbodyfont[lucida,10pt]

\starttext

\placecontent[criterium=all]

\section{Caractres accentus}
i

\section{Caractres spciaux}
\oe

\euro

\section{Ponctuation}

Un test:

Un autre test pour la ponctuation!

Un autre test pour la ponctuation?

\stoptext

Cheers,

Renaud

  
  

___
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] Yet Another French Punctuation Problem ;)

2006-05-09 Thread Renaud AUBIN





Just forget previous posts...

\useencoding[ffr]
\mainlanguage[fr]

is the correct sequence !!! I'm just too tired... Sorry

Renaud AUBIN a crit:

  Hi Hans,

With the latest release the following example doesn't give correct
punctuation spaces...  (at least here)

\setupoutput[pdftex]

\mainlanguage[fr]

% Fonts settings for ConTeXt
\usetypescriptfile[type-buy]
\loadmapfile[texnansi-bh-lucida.map]
\usetypescript[lucida][texnansi]
\setupbodyfont[lucida,10pt]

\starttext

\placecontent[criterium=all]

\section{Caractres accentus}
i

\section{Caractres spciaux}
\oe

\euro

\section{Ponctuation}

Un test:

Un autre test pour la ponctuation!

Un autre test pour la ponctuation?

\stoptext

Cheers,

Renaud

  
  

___
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] new release

2006-05-09 Thread Johannes Graumann
Trouble with tex/context/base/cont-err.tex:


system  : cont-err loaded
(/home/balin/texmf/tex/context/base/cont-err.tex
Runaway argument?
on Otten}] %C %C This module is part of the \CONTEXT\ macro||package \ETC.
! Paragraph ended before  was complete.
to be read again
   \par
l.13

Can't find anything wrong though ...

Joh

Hans Hagen wrote:

 Hi,
 
 Today i'll upload a new release. Highlights:
 
 - some fixes/extensions discussed the last few weeks
 - xetex support adapted to using xdvipdfmx
 - ctxtools --update which will update your local context
 - an update feature in scite (can be used a example for other editors)
 - an integrated mpto (more robust that the binary approach)
 
 (btw, use textext instead of btex .. etex when possible)
 
 Taco will undoubtely give mnore details later.
 
 Keep in mind that you need to change the stubs:
 
 - preferable use texmfstart to launch scripts
 - texmfstart itself can be stubbed if needed
 - there is a ../scripts/context/stubs path in the zip
 
 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] components and figure search paths

2006-05-09 Thread Sanjoy Mahajan
Using components (e.g. book chapters), with each component in its own
directory, say I have

\startproduct onebook
\project manybooks
\component 1/chap
\component 2/chap
\stopproduct

with this 1/chap.tex:

\startcomponent 1/chap
\product onebook
\project manybooks
\title{One}
An essential chapter.
\useexternalfigure[ff][abc.1]
\placefigure[here][ff]{Some caption}{\externalfigure[ff]}
\stopcomponent

I'd like to keep the figures and source for a chapter together,
e.g. abc.mp and abc.1 in 1/chap/ since each chapter has many figures,
and I edit and test one chapter at a time.

That arrangement works fine if I build the component:
  cd 1  texexec chap.tex
but not if I build the product:
  texexec book.tex
(it doesn't find abc.1 since it's not in the same dir as book.tex)

The details.pdf manual says that figures are searched for in the local
path (current directory) and the global one, with the global one set by
the directory keyword:

\setupexternalfigures[directory={c:/fig/eps,c:/fig/pdf}]

Is there a way to specify current directory relative to this
component, or a way to add that setting to the default 'local' path
(even before '.')?

I could add it manually in the preamble of the 1/chap.tex but it would
mean hardwiring the pathname into it, which seems hacky. E.g. it fails
if I export the whole source tree to /tmp/tmp.2773ab/ to test rebuilding
all the pdf's from scratch.

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


[NTG-context] New release and XeTeX - XeConTeXt

2006-05-09 Thread Otared KAVIAN
Dear all,

After upgrading to the latest release (that is TeXExec 5.4.3, and
ConTeXt  ver: 2006.05.08 12:59  fmt: 2006.5.9  int: english  mes:
english), when I tried to generate the format with XeTeX (that is to
generate XeConTeXt), with the command

sudo texexec --make --xtx en

I get the folllowing error message:

language: patterns de for de loaded (n=3,e=texnansi,m=texnansi)
(/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
?

Has anyone encountered this error? Is there a solution?

Many thanks for your help: Otared K.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context