Re: [NTG-context] Help with mswincontext installation

2006-09-19 Thread Hans Hagen
Marcus Vinicius Mesquita de So wrote:
 Hi!

 I increased the variable in the texmf.cnf, but with no success
 with the mswincontext package. Some fonts are loaded,
 but others not.

 With MikTeX 2.5 + ConTeXt, there are no problems to compile
 the book.


 */Thomas A. Schmitz [EMAIL PROTECTED]/* wrote:


  @Thomas
 
  I could not find a dimension for tfm words in my texmf.cnf file.
  Perhaps an entry only in the linux version ?
 
  It seems that you have a point, since if I use another font
  family, things run smoothly.
 
  When you're using linux again, could you see please
  what the entry looks like?
 
  Greetings
 
  Marcus,


 I rebooted into my linux system, and it is indeed a variable called
 font_mem_size. Here is the setting in my texmf.cnf:

 % Words of font info for TeX (total size of all TFM files,
 approximately).
 font_mem_size = 250

buf_size.context = 200 % needed for omega bug
extra_mem_bot.context= 200
extra_mem_top.context= 400
font_max.context =2000
font_mem_size.context= 100
hash_extra.context   =  10
main_memory.context  = 200
max_strings.context  =  30
nest_size.context= 500
obj_tab_size.context =  30 % 8388607
pdf_mem_size.context =  50 % 524288
dest_names_size.context  =  30 % 131072
param_size.context   =   1
pool_free.context=   47500
pool_size.context= 200
save_size.context=   5
stack_size.context   =   1
string_vacancies.context =  125000
trie_size.context=  25
hyph_size.context=8191 % prime



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

2006-09-19 Thread Hans Hagen
Bernd Militzer wrote:
 Peter M�nster schrieb:
   
 On Mon, 18 Sep 2006, Bernd Militzer wrote:

   
 
 {\startcombination[2]
 
   
 2 is not a matrix. Try \startcombination[1*2] or \startcombination[2*1].
 Cheers, Peter

   
 
 thanks Peter,
 it works again. With version 5.2.4 it worked also with 2 alone
   

there was a wrong assignment in the following: (core-mis)

\def\dostartcombination[#1][#2]%
  {\global\setsystemmode{combination}%
   \doifnothing{#1}\firstargumentfalse  
   \doifnothing{#2}\secondargumentfalse 
   \ifsecondargument
 \def\currentcombination{#1}%
 \edef\currentcombinationspec{#2*1*}%
   \else 
 \let\currentcombination\empty
 \doifinstringelse{*}{#1}
   {\edef\currentcombinationspec{#1*1*}}
   {\edef\currentcombinationspec{2*1*}}%
   \fi
   \forgetall
   \doifelse{\combinationparameter\c!height}\v!fit
 \vbox {\vbox to \combinationparameter\c!height}%
   \bgroup
   \expanded{\dodostartcombination[\currentcombinationspec]}}

\startcombination
{test} {x}
{test} {x}
\stopcombination

\startcombination[2*1]
{test} {x}
{test} {x}
\stopcombination

\startcombination[1*2]
{test} {x}
{test} {x}
\stopcombination

\startcombination[2]
{test} {x}
{test} {x}
\stopcombination


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

2006-09-19 Thread Bernd Militzer
Hi Hans,

please check the running table-heads

producing a table over several pages
1. the running tablehead is only on first page
2. the running tablefoot is only on the last page

that was not in version 5.2.4 

% -- TestFile
\starttext
%
\SetTableToWidth{\textwidth}
\setuptables[split=yes,bodyfont=9pt]
\starttablehead
\HL
%
\NC Datum\NC Text\NC\FR %  \AR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
%
\starttables[|l|l|]
%
\dorecurse{50}{
\NC 2006-08-18 \NC TestTest 1\NC\AR
\NC 1771-12-05 \NC TestTest 2\NC\AR
}
\NC\NC\NC\LR % Last Row \AR
%
\stoptables

\stoptext

thanks

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


Re: [NTG-context] beta

2006-09-19 Thread Hans Hagen
Bernd Militzer wrote:
 Hi Hans,

 producing a table over several pages

 1. the running tablehead is only on first page
 2. the running tablefoot is only on the last page

 that problem is also not fixed.

 Bernd


 %%%  TestFile
 %
 \starttext
 %
 \SetTableToWidth{\textwidth}
 \setuptables[split=yes,bodyfont=9pt]
   
ok, i'll fix this (starttables is kind of obsolete; all table commands accept 
split=auto|yes|repeat 

[auto means that they will split when needed] 

-
  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] shortsetup and environment (resent from dev-context)

2006-09-19 Thread Vit Zyka
Hi Hans and others,

I have tried to find the solution of the problem described by minimal 
example bellow without success.
(Parsing XML database cont-en.xml, every 'cd:command' with 
'type=environment' have to be defined with 'start' prefix. As far as I 
could check it is done OK. But \start commands are not known for 
\shortsetups.)

It is needed for Beginners' manual. Please can you have a look at it?

Thanks
Vit

 Original Message 
Subject: shortsetup and environment
Date: Mon, 18 Sep 2006 01:08:03 +0200
From: Vit Zyka [EMAIL PROTECTED]
To: dev-context@ntg.nl

Dear Hans,

it seems to me that \shortsetup ignores cd:command with
type=environment. Please see the next example:

-
\usemodule[set-11] \loadsetups

\starttext

page (OK): \shortsetup{page}

startframedtext (NOTHING): \shortsetup{startframedtext}

framedtext (NOTHING): \shortsetup{framedtext}

\stoptext
--

Vit


-- 
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

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


[NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-19 Thread Renaud AUBIN




Hi all,

Considering the following sample:

\starttext
\placelistoffigures[alternative=c,criterium=all,interaction=all,partnumber=no]
\useexternalfigure[testfig][cow][width=.5\textwidth]

\startbuffer
 \placefigure[here]{test 1}{\externalfigure[testfig]}
 \placefigure[here]{test 2}{\externalfigure[testfig]}
 \placefigure[here]{test 3}{\externalfigure[testfig]}
\stopbuffer

\dorecurse{3}{
 \chapter{A Chapter}
 \getbuffer
}

\stoptext

I want to obtain:

1.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

2.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

3.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Any idea ?


Renaud





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


Re: [NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-19 Thread Wolfgang Schuster
On Tue, 19 Sep 2006 14:41:24 +0200
Renaud AUBIN [EMAIL PROTECTED] wrote:

 Hi all,
 
 Considering the following sample:
 
 \starttext
 \placelistoffigures[alternative=c,criterium=all,interaction=all,partnumber=no]
 \useexternalfigure[testfig][cow][width=.5\textwidth]
 
 \startbuffer
   \placefigure[here]{test 1}{\externalfigure[testfig]}
   \placefigure[here]{test 2}{\externalfigure[testfig]}
   \placefigure[here]{test 3}{\externalfigure[testfig]}
 \stopbuffer
 
 \dorecurse{3}{
   \chapter{A Chapter}
   \getbuffer
 }
 
 \stoptext
 
 I want to obtain:
 
 1.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
 1.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
 1.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
 
 2.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
 2.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
 2.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
 
 3.1 test 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
 3.2 test 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
 3.3 test 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
 
 Any idea ?
 
 
 Renaud
 

Can you send a PDF of your file, I have no problems with your example
an get the result you wanted.

ConTeXt  ver: 2006.08.08 21:51  fmt: 2006.9.5  int: english  mes: english
ConTeXt  ver: 2006.09.07 17:50 MK II  fmt: 2006.9.8  int: english/english

Which ConTeXt version do you use.

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


Re: [NTG-context] How to make \placelistoffigures separate figures by chapter

2006-09-19 Thread Renaud AUBIN
Wolfgang Schuster a écrit :

Can you send a PDF of your file, I have no problems with your example
an get the result you wanted.

ConTeXt  ver: 2006.08.08 21:51  fmt: 2006.9.5  int: english  mes: english
ConTeXt  ver: 2006.09.07 17:50 MK II  fmt: 2006.9.8  int: english/english

Which ConTeXt version do you use.

Wolfgang
  


Hi Wolfgang,

See http://renojrl.lrv.uvsq.fr/lof.pdf

TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfeTeX Version 3.141592-1.30.6-2.2 (Web2C 7.5.5)
TeXExec | ConTeXt ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int:
english/english

Renaud

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


Re: [NTG-context] calculations

2006-09-19 Thread Hans Hagen
Henning Hraban Ramm wrote:
 Sorry, I skimmed the TeXbook for an hour but couldn't find how to do  
 simple calculations in TeX...

 This is a snippet from t-lilypond.tex:

 \def\LPscale{0.6315789} % downscale the image
 \ifvmode
\getfiguredimensions[\bufferprefix lilypond-\the\lily! 
 figures.pdf][]%
 %  \def\FigWidth{\LPscale\figurewidth}
\leavevmode
\ifdim\FigWidth\localhsize
  \!!dimena=\localhsize
  \advance\!!dimena by-\FigWidth
  \noindent\hskip\!!dimena
\fi
 \fi
 \externalfigure[\lily!img][scale=1000\LPscale]%
   
does 

sx=\LPscale

work? 
 
-
  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] calculations

2006-09-19 Thread nico
On Tue, 19 Sep 2006 22:53:18 +0200, Henning Hraban Ramm [EMAIL PROTECTED]  
wrote:

 I need to downscale every score to 63%, and the shown width check
 should use the corrected width.
 How can I do that? (FigWidth should be LPscale * figurewidth)

I don't know what you really want to do, but an example of computation  
could look like this:

\newdimen\myfigwidth
\newdimen\myfigurewidth
\def\myscale{.63}

\figurewidth=23pt
\myfigwidth=\dimexpr(\myscale\myfigurewidth)

\starttext
\the\myfigwidth
\stoptext

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


Re: [NTG-context] calculations

2006-09-19 Thread Henning Hraban Ramm
Am 2006-09-19 um 23:34 schrieb nico:

 I need to downscale every score to 63%, and the shown width check
 should use the corrected width.
 How can I do that? (FigWidth should be LPscale * figurewidth)

 I don't know what you really want to do, but an example of computation
 could look like this:

 \newdimen\myfigwidth
 \newdimen\myfigurewidth
 \def\myscale{.63}

 \figurewidth=23pt
 \myfigwidth=\dimexpr(\myscale\myfigurewidth)

 \starttext
 \the\myfigwidth
 \stoptext

Thank you, but now I always get:

! Illegal unit of measure (pt inserted).
to be read again
.
\figurewidth -545.
03625pt
\dodostartlilypond ...expr (\LPscale \figurewidth
   ) \ifdim \FigWidth  
 \localh...

from the code:

\def\LPscale{.6315789} % downscale the image
\ifvmode
   \getfiguredimensions[\bufferprefix lilypond-\the\lily! 
figures.pdf][]%
   \leavevmode%
   \newdimen\FigWidth
   \FigWidth=\dimexpr(\LPscale\figurewidth)
   \ifdim\FigWidth\localhsize
 \!!dimena=\localhsize
 \advance\!!dimena by-\FigWidth
 \noindent\hskip\!!dimena
   \fi
\fi
\externalfigure[\lily!img][scale=\dimexpr(1000\LPscale)]%
\egroup%

What's wrong with \dimexpr{\SomeDef\SomeDim} ?
Some expansion problem?

(Sorry, I only try to patch the code, I didn't write it.)

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

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


Re: [NTG-context] calculations

2006-09-19 Thread nico
On Wed, 20 Sep 2006 00:04:33 +0200, Henning Hraban Ramm [EMAIL PROTECTED]  
wrote:

 Thank you, but now I always get:

 ! Illegal unit of measure (pt inserted).
 to be read again
 .
 \figurewidth -545.
 03625pt
 \dodostartlilypond ...expr (\LPscale \figurewidth
) \ifdim \FigWidth
  \localh...

\figurewidth is not a dimension. I guess the following should work:

\def\LPscale{.6315789} % downscale the image
 \ifvmode
\getfiguredimensions[\bufferprefix  
lilypond-\the\lily!figures.pdf][]%
\leavevmode%
\newdimen\FigWidth
\newdimen\FigWidthReal=\figurewidth
\FigWidth=\dimexpr(\LPscale\FigWidthReal)
\ifdim\FigWidth\localhsize
  \!!dimena=\localhsize
  \advance\!!dimena by-\FigWidth
  \noindent\hskip\!!dimena
\fi
 \fi
 \externalfigure[\lily!img][scale=\dimexpr(1000\LPscale)]%

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


[NTG-context] displayed formula confuses parshape around figure

2006-09-19 Thread Sanjoy Mahajan
In the following small example, two squares are cut out of the long
paragraph.  The first is where the external figure belongs and goes, so
no problem with that.  But the second removed square is after the
displayed equation, and it shouldn't be removed.  If I comment out the
formula, then the paragraph shape is fine.

If I make add a \placeformula before the \startformula, then the
equation number goes where it should (below the right edge of the
figure), but the area below it is still whitespace.

Is it a bug or is there an option to make startformula not interfere
with the paragraph shape calculation?

I'm using context version: 2006.08.08 21:51, and I found the same
problem just now on the live ConTeXt.

\starttext
\placefigure[right,none]{}{\externalfigure[dummy]}

\input tufte
\startformula
A = a^\alpha b^\beta,
\stopformula
\input tufte
\input tufte

\stoptext

-Sanjoy

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