[NTG-context] Problems with metapost in texlive 2009

2010-04-24 Thread Ram Potluri
I had a working installation of texlive 2007 on my opensuse 11.0
machine. I had metapost
working nicely converting my *.mp files into *.pdf files. Yesterday, I
upgraded to texlive
2009 that is available at
http://software.opensuse.org/search/download?base=openSUSE%3A11.0fil...http://www.google.com/url?sa=Dq=http://software.opensuse.org/search/download%3Fbase%3DopenSUSE%253A11.0%26file%3DPublishing%252FopenSUSE_11.0%252Fnoarch%252Ftexlive-2009-42.2.noarch.rpm%26query%3Dtexliveusg=AFQjCNFYOop1cl-WcQify3O1T-zyK3GFeA

I installed all the upgrades of the following packages:

texlive
texlive-bin-tools
texlive-bin-metapost
texlive-bin-latex
texlive-bin
texlive-tools
texlive-metapost
texlive-latex
texlive-context
texlive-latex-doc

To test my installation, I ran the command mptopdf on some mp files
that
I had successfully converted to pdf on the earlier installation. Here
is the
message I am seeing for one such file (blk.mp):

r...@linux-94ai:~/Desktop mptopdf blk.mp
MTXrun | kpse fallback with progname 'context' initialized in 0.12
seconds

MPtoPDF 1.3.3 : running 'mpost --mem=mpost   --tex=latex  blk.mp'
This is MetaPost, version 1.208 (kpathsea version 5.0.0)
! I can't find file `blk.mp'.
* blk.mp

Please type another input file name:

You see, the file blk.mp is very much present in the directory (~/
Desktop).

Could someone please help me? Thanks in advance.

Best wishes,
Ram.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] float at fixed position

2010-04-24 Thread Peter Rolf
Am 23.04.2010 19:44, schrieb Hans Hagen:
 On 22-4-2010 8:15, Peter Rolf wrote:
 Hi,

 in a multi column layout I want to place a figure at a fixed position.
 Inserting a floating object at a fixed position doesn't make any sense,
 but I need the correct caption (number) for the graphic. Sadly
 \placefigure fails with
 
 nx=3
 
yes (example works) and no (no general solution) :)

I updated the example (end of mail). Haven't looked into the code, but
this looks like an indexing problem to me. If \@@mc4 stands for 'multi
column 4' we are in trouble, because only three columns are used here.

[..]
todo: enable notes
! Missing number, treated as zero.
to be read again
   \@@mc4@@mcwidth
\@@ar@@4 ...ace \OTRSETlocalwidth \scratchcounter
  \relax
\OTRSETcheckwidthga...
\redoloop -\expandrecursecontent
  \endofloop
to be read again
   {
inserted text
2
\dodoloop ...mexpr \recurselevel +\plusone \relax
  }
...
l.19 \stopcolumnset

?

Peter


%-
\setupexternalfigures[location={local,global,default}]
\setuppagenumbering[alternative=doublesided]


\usemodule[visual]

\definecolumnset[example][n=3]

\definecolumnsetarea[one][left][x=1,y=1,nx=3,ny=16,state=start]
\setupcolumnsetareatext[one][left][\setup{test}]

\startsetups test
\placefigure[here,force][test]{test}{\externalfigure[cow]}
\stopsetups

\starttext
\startcolumnset[example]
\dorecurse{25}{\fakewords{50}{100}}
\stopcolumnset
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ! Undefined control sequence

2010-04-24 Thread Wolfgang Schuster

Am 23.04.10 22:24, schrieb Peter Münster:

On Fri, Apr 23 2010, Wolfgang Schuster wrote:

   

\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]
 

Hello Wolfgang,

It works event without \setvariables:

\defineitemgroup[Tst]
\setupTst[1][n,\getvariable{tst}{broad}*broad]
\starttext
\setvariables[tst][broad=1]
\startTst
\item text
\stopTst
\setvariables[tst][broad=5]
\startTst
\item text
\stopTst
\stoptext

But why? I don't see any \noexpand in the definition of \getvariable...
   

Not sure but it could be possible \setvariables makes only a one level
expansion and in this case you get '\csname ...broad\endcsname*broad'
but not the the number itself.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Questions about \setuphead and \framed

2010-04-24 Thread Wolfgang Schuster

Am 20.04.10 23:01, schrieb Michael Ewe:

1 The frames in the chapter both headings are much bigger than in the normal
text.
   
The chapter insert it's own strut in the number and the text and 
changing/disabling
the strut in the header command is useless here (it's a bug but i'll 
report this

in another mail)

2 The gap between the chapter number and the chapter name is different for
chapter 1 (on page 1) and chapter 2 (on page 2). The word test is not
aligned
   
Setting a font for style is not the same as setting it to textstyle and 
numberstyle.

3 The value of strut has no effect at all.
   
strut in \setuphead accepts only yes and no, in \framed you can use the 
values

yes, no, global and local, dimensions are no legal argument.

Since you haven't shown what dou want to achieve i can only guess but maybe
this setup is what you want:

\definefont[FontA][Sans at 36pt]

\defineframed[chapterframe][offset=0pt,strut=local]

\definehead[ChapterA][chapter]

\setuphead
  [ChapterA]
  [deeptextcommand=\chapterframe,
   deepnumbercommand=\chapterframe,
   distance=0pt,
   style=FontA]

\starttext
\ChapterA{Test}
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fullpage

2010-04-24 Thread Vyatcheslav Yatskovsky

Hi,


  The module is now on the garden, it’s Mojcas job to include it in the
  minimals.

It's there.


I just synchronized with beta minimals, and no fullpage module is 
included :(


--
Best Regards,
Vyatcheslav Yatskovsky
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Sorting the content of \startlines

2010-04-24 Thread Vyatcheslav Yatskovsky

Hello,

Is there a way to sort the content of \startlines envinroment by the 
alphabet? I have a list of songs in arbitrary order, and what to output 
it in alphabetical one.


ex.:

\starttext
\subject{My set-list}
\startcolumns\startlinenumbering\startlines
Fly me to the moon
Hit the road jack
Sway
Libertango
Sunny
% and more titles
\stoplines\stoplinenumbering\stopcolumns
\stoptext

--
Best Regards,
Vyatcheslav Yatskovsky
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fullpage

2010-04-24 Thread Mojca Miklavec
On Sat, Apr 24, 2010 at 15:03, Vyatcheslav Yatskovsky
yatskov...@gmail.com wrote:
 Hi,

   The module is now on the garden, it’s Mojcas job to include it in the
   minimals.

 It's there.

 I just synchronized with beta minimals, and no fullpage module is included
 :(

It might help to request it explicitely (--extras=t-fullpage or all)

http://minimals.contextgarden.net/current/modules/t-fullpage/

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___