[NTG-context] wasy usage

2011-08-24 Thread Hans van der Meer
In mkii I was using the 'wasy' font for symbols with \usemodule[symb-wasy].
Is this still valid or has it changed? 
Is the font in the minimals distribution with the other fonts? 
Otherwise, how to?

Thanks in advance,
Hans van der Meer

___
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] wasy usage

2011-08-24 Thread Hans van der Meer

On 24 aug. 2011, at 11:38, Hans van der Meer wrote:

 In mkii I was using the 'wasy' font for symbols with \usemodule[symb-wasy].
 Is this still valid or has it changed? 
 Is the font in the minimals distribution with the other fonts? 
 Otherwise, how to?
 

I looked into the files and found that symb-mvs does exists in mkii but not in 
mkiv? Has it disappeared in mkiv? I might remark that in the recent book fonts 
in context by Hans Hagen and Taco Hoekwater the Martin Vogel font (symb-mvs) 
is just the one given as an example of how to use the symbol macros! (pages 
29-32). Following the example given:

  \usesymbols[mvs]
  \showsymbolset[martinvogel 2]

I do get a list of the symbols, but the symbols themselves are missing.
How further?

Hans van der Meer


___
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] menu changes in mkiv?

2011-08-24 Thread Hans van der Meer
What has been changed regarding menus?
Previous code stops working with the following error message:

! Missing { inserted.

to be read again 
   \par 
inserted text ...ect \everysetmenucommands \par 
  \par \par \par \definepale...
\scrn_menu_insert_indeed ...\everysetmenucommands 
  \csname \??am :\c!menu :\n...
\scrn_menu_insert_checked ...nu_insert_indeed {#1}
  \fi 
\scrn_menu_bottom ... \scrn_menu_insert \v!bottom 
  \kern \zeropoint \egroup \...
\dogettextboxes ...\relax \the \bottomtextcontent 
  \vskip \bottomheight \vfil…

Better than this I cannot trace back.
But probably just some macro definition changed???

Hans van der Meer


___
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] Side-by-Side tables

2011-08-24 Thread Troy Henderson
I am trying to place two tables side-by-side one another with equal spacing
between the margin and each table and between tables.  That is, I would like
the layout to be like

--- A --- B ---

where A and B are tables and --- represents an equal amount of spacing on
the left of table A, between tables A and B, and on the right of table B.

At this point, I've been able to place A and B immediately beside one
another using \startcombination[2*1] ... \stopcombination, but this doesn't
give me the horizontal spacing between the tables that I would like.

I would appreciate any help in getting the layout that I am looking for.

Thanks in advance,

Troy
___
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] wasy usage

2011-08-24 Thread Willi Egger
Hans,


\usesymbols[mvs]
\setupsymbolset[martinvogel 2]

should work (I used it last week). Be aware, that the Martin Vogel symbols are 
nowadays contained in a ttf font file (http://www.marvosym.de/).

Willi


On 24 Aug 2011, at 12:46, Hans van der Meer wrote:

 
 On 24 aug. 2011, at 11:38, Hans van der Meer wrote:
 
 In mkii I was using the 'wasy' font for symbols with \usemodule[symb-wasy].
 Is this still valid or has it changed? 
 Is the font in the minimals distribution with the other fonts? 
 Otherwise, how to?
 
 
 I looked into the files and found that symb-mvs does exists in mkii but not 
 in mkiv? Has it disappeared in mkiv? I might remark that in the recent book 
 fonts in context by Hans Hagen and Taco Hoekwater the Martin Vogel font 
 (symb-mvs) is just the one given as an example of how to use the symbol 
 macros! (pages 29-32). Following the example given:
 
  \usesymbols[mvs]
  \showsymbolset[martinvogel 2]
 
 I do get a list of the symbols, but the symbols themselves are missing.
 How further?
 
 Hans van der Meer
 
 
 ___
 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
 ___

___
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] Side-by-Side tables

2011-08-24 Thread Peter Rolf
Am 24.08.2011 13:56, schrieb Troy Henderson:
 I am trying to place two tables side-by-side one another with equal
 spacing between the margin and each table and between tables.  That is,
 I would like the layout to be like
 
 --- A --- B ---
 
 where A and B are tables and --- represents an equal amount of spacing
 on the left of table A, between tables A and B, and on the right of table B.
 
 At this point, I've been able to place A and B immediately beside one
 another using \startcombination[2*1] ... \stopcombination, but this
 doesn't give me the horizontal spacing between the tables that I would like.

have you tried the 'inbetween' or 'distance' parameter from
\setupcombinations?

http://wiki.contextgarden.net/Reference/en/setupcombinations

Best wishes, Peter

 I would appreciate any help in getting the layout that I am looking for.
 
 Thanks in advance,
 
 Troy
 
 
 ___
 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
 ___

___
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] wasy usage

2011-08-24 Thread Wolfgang Schuster

Am 24.08.2011 um 14:05 schrieb Willi Egger:

 Hans,
 
 
 \usesymbols[mvs]
 \setupsymbolset[martinvogel 2]
 
 should work (I used it last week). Be aware, that the Martin Vogel symbols 
 are nowadays contained in a ttf font file (http://www.marvosym.de/).

MkIV use marvosym.ttf!

symb-imp-mvs.mkiv: \definefontsynonym [MartinVogel] [marvosym.ttf]

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] Side-by-Side tables

2011-08-24 Thread Troy Henderson

 have you tried the 'inbetween' or 'distance' parameter from
 \setupcombinations?


Well what I would like would be for the following to work

\setupcombinations[before={\hfill},inbetween={\hfill},after={\hfill}]

but it doesn't do what I would like for it to do.

Troy
___
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] Side-by-Side tables

2011-08-24 Thread Peter Rolf
Am 24.08.2011 14:16, schrieb Troy Henderson:
 have you tried the 'inbetween' or 'distance' parameter from
 \setupcombinations?
 
 
 Well what I would like would be for the following to work
 
 \setupcombinations[before={\hfill},inbetween={\hfill},after={\hfill}]

I looked into the ConTeXt manual (p229[259]) and 'distance' is used for
the horizontal distance between objects.
You can try '\hss' for the vertical distance (imo less problematic than
\hfill). If it all fails, do it yourself. Measure the two table widths
with boxes and calculate the offset.

 but it doesn't do what I would like for it to do.
 
 Troy
 
 
 ___
 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
 ___

___
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] Side-by-Side tables

2011-08-24 Thread Troy Henderson
Thanks!
___
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] icc stream handling broken?

2011-08-24 Thread Peter Rolf
Am 23.08.2011 14:36, schrieb Peter Rolf:
 Hi Hans,
 
 can you check the attached example (the normal PDF/X-4p test file)?
 lpdf.flushstreamfileobject() breaks here when calling the local table
 'dict()'. Is this normally handled by metatables?

Obviously a stupid question (sure metatables) :-D

quick (and dirty?) fix

[lpdf-fmt.lua]

441: profile = pdfflushstreamfileobject(fullname, { N = channel },false)
-- uncompressed
441: profile = pdfflushstreamfileobject(fullname,pdfarray{
pdfconstant(N), channel },false) -- uncompressed


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

___
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] \setupfields needs linefeed

2011-08-24 Thread Peter Rolf
Hi,

I use '\setupfields[reset]%' in a tooltip macro and this single line
breaks compilation.

[..]
Runaway argument?
]\stoptext
! File ended while scanning use of \scrn_field_setup_fields.
inserted text
\par
* ./tooltip
  \stoptext
?
! Emergency stop.
inserted text
\par
* ./tooltip
  \stoptext
!  == Fatal error occurred, no output PDF file produced!



Complete example code, tested with the latest beta:
%
\nopdfcompression
\setupinteraction[state=start]
\setuppagenumber[state=stop]

\starttext
\setupfields[reset]%
\stoptext
%

Peter
___
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] Side-by-Side tables

2011-08-24 Thread Aditya Mahajan

On Wed, 24 Aug 2011, Troy Henderson wrote:



have you tried the 'inbetween' or 'distance' parameter from
\setupcombinations?



Well what I would like would be for the following to work

\setupcombinations[before={\hfill},inbetween={\hfill},after={\hfill}]

but it doesn't do what I would like for it to do.


before and after go on the top and the bottom of the combination block, 
inbetween goes between the figure/table and the caption.


One possibility to simplify measurement is to abuse figurecollections 
(Please wikify).


\startbuffer[table:1]
\startTABLE
  \NC A \NC B \NC C \NC D \NC \NR
  \NC A \NC B \NC C \NC D \NC \NR
  \NC A \NC B \NC C \NC D \NC \NR
  \NC A \NC B \NC C \NC D \NC \NR
\stopTABLE
\stopbuffer

\startbuffer[table:2]
\startTABLE
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
  \NC A \NC B \NC C \NC D \NC E \NC F \NC \NR
\stopTABLE
\stopbuffer

% Ideally, we should be able to place the figure definitions inside the 
% \startexternalfigurecollection, but that macro starts a group, so the 
% figure definitions inside are lost.


\useexternalfigure[one][table:1][method=buffer]
\useexternalfigure[two][table:2][method=buffer]

\startexternalfigurecollection[tables]
  \useexternalfigure[dummy][one]
  \useexternalfigure[dummy][two]
\stopexternalfigurecollection

\definemeasure
 [sidebyside]
  [\the\dimexpr\hsize/2
  - \externalfigurecollectionmaxwidth{tables}/2
  - \externalfigurecollectionminwidth{tables}/2]

\definecombination[sidebyside]
  [distance=\measure{sidebyside},
   location=middle]

\starttext
\showframe
\placetable
[here,nonumber]{Side by side tables}
\startcombination[sidebyside][2*1]
  {\externalfigure[one]}{(a)}
  {\externalfigure[two]}{(b)}
\stopcombination

\stoptext

@Hans: Can we also have totalheight and totalwidth as parameters of figure 
combinations (is relatively easy to implement)?


Aditya
___
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] wasy usage

2011-08-24 Thread Mojca Miklavec
On Wed, Aug 24, 2011 at 12:46, Hans van der Meer wrote:

 On 24 aug. 2011, at 11:38, Hans van der Meer wrote:

 In mkii I was using the 'wasy' font for symbols with \usemodule[symb-wasy].
 Is this still valid or has it changed?
 Is the font in the minimals distribution with the other fonts?
 Otherwise, how to?


 I looked into the files and found that symb-mvs does exists in mkii but not 
 in mkiv? Has it disappeared in mkiv? I might remark that in the recent book 
 fonts in context by Hans Hagen and Taco Hoekwater the Martin Vogel font 
 (symb-mvs) is just the one given as an example of how to use the symbol 
 macros! (pages 29-32). Following the example given:

  \usesymbols[mvs]
  \showsymbolset[martinvogel 2]

 I do get a list of the symbols, but the symbols themselves are missing.
 How further?

For me it failed to work with 2011.07.20 16:50 MKIV because of the missing font:

fontsdefining  forced type ttf of marvosym not found
fontsdefining  font with asked name 'marvosym' is not
found using lookup 'file'
fontsdefining  unknown font marvosym, loading aborted
fontsdefining  unable to define marvosym.ttf as
\**currentsymbolfont**

but it works now both in TeX Live 2011 and ConTeXt minimals.

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
___

[NTG-context] Problem about the mathe display

2011-08-24 Thread m00nlight

Hi everyone:
I find a display problem recently with context.  The context 
version of mine is:


mtx-context | main context file: 
/opt/context/tex/texmf-context/tex/context/base/context.mkiv

mtx-context | current version: 2011.08.23 13:04

when I use the context wiki problem I find the mathe formula show 
incorretly.

the minimual example likes below:


\starttext
\startformula
\int_0^\infty t^4 e^{-t}\.dt = 24
\stopformula

\stoptext

when I open the pdf file no matter using evince or adobe reader 9, I 
find the index

of the integral cover the integral symbol.

Is it a problem of mine or is it a bug of context? Thanks

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