Re: [NTG-context] problem in kpse.rb

2006-09-17 Thread Johan Sandblom
Disappointingly, over here it doesn't work with two backslashes, only
with one. Possibly because there are two texmf.cnf (minimal linux
distro) which give different answers:

./texmf/web2c/texmf.cnf, which claims
% A place for local additions to a standard texmf tree.
% This tree is not used for local configuration maintained by
% texconfig, it uses TEXMFCONFIG below.
TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local

and
./texmf-local/web2c/texmf.cnf, which claims
TEXMFMAIN = $SELFAUTOPARENT/texmf
TEXMFLOCAL= $SELFAUTOPARENT/texmf-local
TEXMFFONTS= $SELFAUTOPARENT/texmf-fonts

Regards, Johan


2006/9/17, Sanjoy Mahajan [EMAIL PROTECTED]:
  path = run(--expand-path=\\\$#{varname}) rescue ''
 
  to
 
  path = run(--expand-path=\$#{varname}) rescue ''

 I also ran into this (a few weeks ago on the list) and the patch I
 sent Hans after testing it on my Ubuntu Linux laptop was to use two
 backslashes:

   run(--expand-path=\\$#{varname})

 so that Unix sees the command as, for example,

   kpsewhich --expand-path=\$TEXMFLOCAL

 which prevents the shell from expanding TEXMFLOCAL as a shell or
 environment variable, leaving it for kpse to find it in texmf.cnf.
 Interesting that \$ also works.  I guess the \ gets passed unchanged,
 so the $ still gets procted from the shell.

 By the way, the rescue '' doesn't do anything, since a failed run of
 kpsewhich doesn't throw an exception.  I think I have a patch for
 that.

 Hans, should I resend those patches?

 -Sanjoy

 `Never underestimate the evil of which men of power are capable.'
  --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
 ___
 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] problem in kpse.rb

2006-09-17 Thread Taco Hoekwater
Johan Sandblom wrote:
I also ran into this (a few weeks ago on the list) and the patch I
sent Hans after testing it on my Ubuntu Linux laptop was to use two
backslashes:

  run(--expand-path=\\$#{varname})

My suggestion would be:

run(--expand-path='$#{varname}')

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


Re: [NTG-context] problem in kpse.rb

2006-09-17 Thread Johan Sandblom
Yes, that works.

Johan

2006/9/17, Taco Hoekwater [EMAIL PROTECTED]:
 Johan Sandblom wrote:
 I also ran into this (a few weeks ago on the list) and the patch I
 sent Hans after testing it on my Ubuntu Linux laptop was to use two
 backslashes:
 
   run(--expand-path=\\$#{varname})

 My suggestion would be:

 run(--expand-path='$#{varname}')

 Taco



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

2006-09-17 Thread Wolfgang Werners-Lucchini
 You need the option
 
 \setupfloats[numbering=nocheck]
 
 in your document settings.
 

Hallo Wolfgang!

This works.
How do you find your peaces of wisdom?

But I have not understand the whole figurenumber thing.

It is obviously (my example shows this), that there must
be a hidden number.

What is its name?
How can this number be influenzed?
What is 'checked' or 'not checked' in the above option?
And why does this produce the effect I wanted?

Gruß, Wolfgang
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt problem on Mac mini

2006-09-17 Thread Bernd Militzer

Mojca Miklavec schrieb:

A notice for Hans: can you please browse down for
\externalfigure[\jobname-something.tmp]

The thing with \AR versus \FR  \LR and table header  footer handling
might also be misfeatures, esp. if they have already worked before (I
never used them).

On 9/15/06, Bernd Militzer wrote:
  

Hi all,

I have problems with ConTeXt on my Mac mini (intel-platform).

My family project compiles perfect on my linux-machine and on my
PowerBook G4



The table causes problems here as well, so it's certainly not machine-specific.

  

Hi Mojca,

first thanks for your hints and testing my TestFile.

While creating different examinations this weekend  for my students I 
ran again in trap using tables. But this time I did not use any macro. 
Just two simple tables.


The example works with  context : ver: 2005.01.31
but not with  ConTeXt ver: 2006.08.22

The main problem is that \placetable with \startcombination ... does not 
work!



Bernd


TestFile2.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figurenumbering

2006-09-17 Thread Hans Hagen
Wolfgang Werners-Lucchini wrote:
 You need the option

 \setupfloats[numbering=nocheck]

 in your document settings.

 

 Hallo Wolfgang!

 This works.
 How do you find your peaces of wisdom?

 But I have not understand the whole figurenumber thing.

 It is obviously (my example shows this), that there must
 be a hidden number.

 What is its name?
 How can this number be influenzed?
 What is 'checked' or 'not checked' in the above option?
 And why does this produce the effect I wanted?
   
it's rather comples

- float numbers indeed use a number

- but when places, this number is checked against the order in which the  
floats were flushed, for which their final position on the page is used 

- clone figures using the same number most be treated as well 

- when on everloads the low level number, this mechanisme is to be bypassed 

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] problem in kpse.rb

2006-09-17 Thread Hans Hagen
Taco Hoekwater wrote:
 Johan Sandblom wrote:
   
 I also ran into this (a few weeks ago on the list) and the patch I
 sent Hans after testing it on my Ubuntu Linux laptop was to use two
 backslashes:

  run(--expand-path=\\$#{varname})
   

 My suggestion would be:

 run(--expand-path='$#{varname}')
   
ok

-
  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] Captions in Combinations

2006-09-17 Thread Hans Hagen
Pepe Barbe wrote:
 On 9/12/06, Hans Hagen [EMAIL PROTECTED] wrote:
   
 Pepe Barbe wrote:
 
 Hoping that the captions in the figures and in the combinations would
 have the same size, but they don't. Any ideas why this might be?

   
 can you make a minimal sample file
 

 Sorry about the delay. Here you go:

 \setupcaptions[ headstyle=\ss\bf,style=\tfx ]
 \setupcombinations[ style=\tfx\em ]

 \starttext

 \placefigure [center] {Combination Caption}
   
{
   \startcombination [2*1]
   {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
 1}}{Text: Test. Math: $Test$}
   {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
 2}}{Text: Test. Math: $Test$}
   \stopcombination
   
}
 \stoptext

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


-- 

-
  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] texfont error

2006-09-17 Thread Hans Hagen
Johan Sandblom wrote:
 Digging further reveals a working texfont.pl installed with debians
 texlive. The two texfonts claim to be the same version (in header) but
 are quite different. Both are included in the attached zip.

 R
hm, yuu can always run the latest with 

texmfstart texfont .

that will take the one from the tex tree 

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] ConTeXt problem on Mac mini

2006-09-17 Thread Hans Hagen
Mojca Miklavec wrote:
 A notice for Hans: can you please browse down for
 \externalfigure[\jobname-something.tmp]

   
 I always thought that only \externalfigure[\jobname-buffername.tmp]
 works properly. But then I figured out that in my MikTeX distribution
 \externalfigure[buffername.tmp] works and
 \externalfigure[\jobname-buffername.tmp] doesn't and in the standalone
 with latest beta it's exactly vice-versa. Seems like partially
 backward-compatibility problem in either case. Hans?

   

ok: extra check added and reuse disabled:

\def\checkfortexfigurefiles 
  {\doifinset\wantedfiguretype{\c!tex,\c!tmp}
 {\let\wantedfiguretypespec\wantedfiguretype}%
   \doifinset\wantedfiguretypespec{\c!tex,\c!tmp,\v!buffer}
 {\doshowfigurestate{type check : forcing tex (\wantedfiguretypespec)}%
  \let\wantedfiguretypelist\wantedfiguretypespec
  \let\wantedfiguretypespec\wantedfiguretypespec
  \let\@@efobject\v!no
  \doifnothing\wantedfiguretype{\let\wantedfiguretype\c!tmp}%
  % there can be a non buffer \jobname.tmp (made by texexec)
  \doifnotinstring{^\bufferprefix}{^\wantedfigurename}
{\edef\wantedfigurename{\bufferprefix\wantedfigurename


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

2006-09-17 Thread Hans Hagen
Hi,

I uploaded a beta release. If no further problems with the upgraded 
figure inclusion and adapted metapost conversion are reported, we will 
go current (otherwise a changelog will be impossible, even if most 
changes are not reportable anyway)


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] Captions in Combinations

2006-09-17 Thread nico
On Sun, 17 Sep 2006 14:35:36 -0500, Pepe Barbe [EMAIL PROTECTED] wrote:

 Did you find a solution for my problem? Because I couldn't find your
 answer in the email.

Look more carefully the mail, I guess that the problem was missing braces:

\placefigure [center] {Combination Caption}
{
  \startcombination [2*1]
  {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
  1}}{Text: Test. Math: $Test$}
  {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
  2}}{Text: Test. Math: $Test$}
  \stopcombination
}

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


Re: [NTG-context] Captions in Combinations

2006-09-17 Thread Pepe Barbe
On 9/17/06, nico [EMAIL PROTECTED] wrote:
 Look more carefully the mail, I guess that the problem was missing braces:

 \placefigure [center] {Combination Caption}
 {
   \startcombination [2*1]
   {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
   1}}{Text: Test. Math: $Test$}
   {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
   2}}{Text: Test. Math: $Test$}
   \stopcombination
 }

Thanks for the response, but that didn't make any difference.

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


[NTG-context] Bib module and sectionblocks

2006-09-17 Thread Peter Fisker Skjoldan
Using the t-bib module I can't get the numbered cite option to work  
with the sectionblocks \startfrontmatter and the like. When I put the  
publication list inside one of the blocks I get the number only  
inside that block. In the other blocks the result is [ ]. If I put  
the publication list outside of any blocks the number appears only in  
the bodymatter sectionblock.


Is this correct behaviour? And how can I fix the problem?

Thanks in advance,
Peter

Here is a sample file:
%-
\usemodule[bib]

\setuppublications[alternative=num,refcommand=num]

\setuppublicationlist[criterium=all]

\startpublication[k=rayl96,
   t=book,
   a={{Rayleigh}},
   y=1896,
   n=45,
   s=Ray96]
\author[]{Lord}[Lord]{}{Rayleigh}
\pubyear{1896}
\title{Theory of Sound}
\pubname{Macmillan}
\stoppublication

\starttext

\startfrontmatter
\subject{Front matter}
An early book on acoustics \cite[rayl96]. % no number
\stopfrontmatter

\startbodymatter
\subject{Body matter}
An early book on acoustics \cite[rayl96]. % number as expected
\stopbodymatter

\startappendices
\subject{Appendices}
An early book on acoustics \cite[rayl96]. % no number
\stopappendices

\subject{References}
\placepublications


\stoptext
%-

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


[NTG-context] LilyPond module

2006-09-17 Thread Henning Hraban Ramm

Hi there!

I'm trying to fix the LilyPond module for LilyPond 2.9.x (find my  
current version attached).
One of the problems is, that the EPS/PDF produced by LilyPond is  
always too big (doesn't obey the ordered dimensions, but is uniformly  
upscaled).
The code after line 250 should shift the notes to the left, if the  
line is wider than ordered - that worked in previous versions,  
because it was only wider, if there was text in front of the score.


So, if I calculate the scaling factor (ca. 1.5), how can I use it in  
the module? Sorry, I still can't code in TeX...


(At the same time I try to get answers on the LilyPond list how to  
avoid the scaling.)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

t-lilypond.tex
Description: Binary data


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


Re: [NTG-context] Help with mswincontext installation

2006-09-17 Thread Marcus Vinicius Mesquita de So
Hello gang!I discovered what caused the problem. The shell !I used 4nt instead of cmd, and with 4nt things don't work well.I tried again with cmd and I managed to compile all three exampleswithout problems.But then I tried to compile a book which MikTeX+ConTexT 2.4 (before the update) did very well and I received the followingmessage ( after successfully compiling 105 pages )! Font \*10ptrmtfrm*=GaramondPremrPro-RegularOsF at 10.03647pt not loaded: Notenough room left.to be read againany clues ?GreetingsMarcus Vinicius 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bib module and sectionblocks

2006-09-17 Thread Thomas A. Schmitz
This is the most bizarre coincidence I've ever seen - this problem  
has bugged me for several months. Yesterday, I was preparing a  
minimal test file to send to the list, and by sheer dumb luck found  
the solution/a workaround: if you put

\placepublications[criterium=all]

at the end, the numbers turn up again. Taco, this seems like a  
strange interaction, so I guess it's unwanted, right?

All best

Thomas

On Sep 17, 2006, at 11:54 PM, Peter Fisker Skjoldan wrote:

 Using the t-bib module I can't get the numbered cite option to work
 with the sectionblocks \startfrontmatter and the like. When I put the
 publication list inside one of the blocks I get the number only
 inside that block. In the other blocks the result is [ ]. If I put
 the publication list outside of any blocks the number appears only in
 the bodymatter sectionblock.


 Is this correct behaviour? And how can I fix the problem?

 Thanks in advance,
 Peter

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


Re: [NTG-context] Help with mswincontext installation

2006-09-17 Thread Thomas A. Schmitz

On Sep 18, 2006, at 12:43 AM, Marcus Vinicius Mesquita de So wrote:

 Hello gang!

 I discovered what caused the problem. The shell !
 I used 4nt instead of cmd, and with 4nt things don't work well.
 I tried again with cmd and I managed to compile all three examples
 without problems.

 But then I tried to compile a book which MikTeX+ConTexT 2.4
 (before the update) did very well and I received the following
 message ( after successfully compiling 105 pages )

 ! Font \*10ptrmtfrm*=GaramondPremrPro-RegularOsF at 10.03647pt not  
 loaded: Not
 enough room left.
 to be read again

 any clues ?

 Greetings

 Marcus Vinicius


Yes, I had the same problem on a gentoo install: there is a dimension  
for tfm words in your texmf.cnf (can't remember the name off the  
top off and my head and am not under linux right now, but it's easy  
to spot). Change it to a bigger value, regenerate the format, and  
you're back in business. I use Garamond Premier Pro too, and it has  
so many kerning information that the tfms are very big.

HTH

Thomas

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