[NTG-context] MKIV math: arrow symbols undefined

2012-12-08 Thread Andreas Mang
Dear all,

I've noticed that \leadsto, \rightsquigarrow and \leftrightsquigarrow are 
not defined in MKIV (ConTeXt  ver: 2012.12.06 18:39 MKIV). However, they appear 
in MKII (ConTeXt ver: 2012.12.06 18:39 MKII). 

I've tested the entire set at http://www.access2science.com/latex/Arrows.html

Cheers,
Andreas


%%% MINIMAL EXAMPLE %%%
\starttext

leadsto: $\leadsto$

squidarrow: $\leftrightsquigarrow$

squidarrow: $\rightsquigarrow$

\stoptext
%%% MINIMAL EXAMPLE %%%
___
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] margin location in headertext

2012-12-08 Thread reviczky

Hi,

Is it possible, without having to use layers, to specify the location  
of a frame inside the margin of the header relative to the headertext?


Here's an example:
---
\setupheadertexts[\setups{frames}][][][]
\setupheadertexts[margin][\setups{marginframe}][][][]
\setuppagenumbering[location=]

\startsetups[frames]
\framed[height=15mm,location=top]{frame at the top}
\framed[location=top]{frame at the top}
\stopsetups

\startsetups[marginframe]
%%% how to align this at the top?
\framed[location=top]{frame not at the top?}
%%%
\stopsetups

\showframe
\starttext
\input knuth
\stoptext
---

The workaround I'm currently using is to enlarge the height of the  
margin-frame to the highest one inside the header.

---
\framed[location=top,height=15mm,align=top]{frame not at the top?}
---

Adam

___
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] Save/Redraw labels as pictures

2012-12-08 Thread Troy Henderson
The following code produces the letter J on the first page, but does not
draw that same picture on the second page.  I would appreciate some advice
on how to save and redraw this label in subsequence figures.

Thanks,

Troy Henderson

\starttext
\startMPinclusions[+]
picture J;
\stopMPinclusions
\startMPpage
J:=thelabel(btex J etex scaled 2,origin);
draw J;
\stopMPpage
\startMPpage
draw J;
\stopMPpage
\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
___

[NTG-context] [luatex-plain] call to undefined function in font-def.lua

2012-12-08 Thread Philipp Gesang
Hi Hans,

the plain format from context calls a non-existing function
fonts.goodies.filenames.resolve(). It appears that the format was
not updated to include the expected code from fonts-gds.lua. [1]
Terminal output below.

Regard
Philipp

[1] The code was introduced to font-def.lua on November 16:

http://repo.or.cz/w/context.git/commitdiff/4f08d2072378de7bac2c7992876b8f7012f7be78



$ luatex -fmt luatex-plain.fmt 
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) 
  \write18 enabled.
**\relax
(./luatex-basics.tex) (./luatex-fonts.tex push namespace ./luatex-fonts-merg
ed.lua(using cache: /home/laokoon/context/tex/texmf-cache/luatex-cache/generic
)
! LuaTeX error ./luatex-fonts-merged.lua:12701: attempt to index local 'fontgoo
dies' (a nil value)
stack traceback:
./luatex-fonts-merged.lua:12701: in main chunk
[C]: in function 'dofile'
./luatex-fonts.lua:107: in function 'loadmodule'
./luatex-fonts.lua:111: in main chunk
[C]: in function 'dofile'
\directlua :1: in main chunk.
l.136 }

? 
! Emergency stop.
l.136 }

!  == Fatal error occurred, no output PDF file produced!
Transcript written on luatex-basics.log.



pgpTIWeNZp0E9.pgp
Description: PGP signature
___
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] drops module (draft)

2012-12-08 Thread Peter Rolf
Hi Otared,

thanks for the report. No problems here with my old Acrobat Pro 9.52
(syntax checks shows no errors) or PDF-XChange Viewer 2.5 on Windows7
Ultimate 64-bit.

You can try to compile it on your machine (full source is included), if
you have a recent IM version installed. Sorry, I can't check it with a
newer Adobe version (parallel installation messes up the system and a
installation in a VM does not work).

I guess it's more a problem of the actual viewer (11), than a problem
with the PDF. Still annoying.


Best wishes,  Peter


Am 07.12.2012 19:02, schrieb Otared Kavian:
 Hi Peter,
 
 Thank you for your very nice module.
 For your information, I wanted just to report an issue I noticed with Adobe 
 Reader (Version: 11.0.0 (11.0.0)) on Mac OS X 10.8: when I try to open the 
 file « pile.pdf » (which is in your « examples » directory) Adobe Reader 
 crashes and there is no way to open that file with it. However th eother 
 file, « rotate.pdf » opens without any problem…

 Best regards: OK
 
 On 6 déc. 2012, at 18:08, Peter Rolf indi...@gmx.net wrote:
 
 Hi all,

 a first version of the 'drops'-module (MkIV only) is available at

 https://www.wuala.com/indiego/public/ConTeXt/drops/?key=caiCGLasLFmJ


 Taken from the included documentation..
 [..]
 'drops' is a small extension for ConTeXt, that allows you to add drop
 shadows to rectangular regions (so called boxshadows). A working
 installation of ImageMagick (IM) is required to create the shadow
 graphics. The supported color spaces are CMYK, RGB and Gray, the file
 formats are limited to PNG and JPG.
 [..]
 Read the manual for detailed information.

 The attached example is just a small test file for the 'rotation'
 parameter (a compensation for the object rotation, so that the shadow
 stays at the given direction). You will find other examples in the
 documentation and there is also a 'pile' example with the complete
 source. The 'presets' pdf contains the predefined setups for different
 shadow (or frame) types and it's source is a good starting point for
 your own experiments.

 This is a first draft, but most things work quite stable. If you want to
 help, test as much as possible. :-)

 *You need a recent version of ImageMagick for this module.*

 6.7.8-2 to 6.8.0-7 (wrong version info 6.8.0-6): used here, should work
 6.7.6-0 or lower: will fail due to incompatibilities
 7.0.0.0 alpha: untested ('magick' is used instead of 'convert')

 Tested on Windows7 64bit and Debian 6.0.5-i386 (IM compiled from source)


 Happy TeXing!


 Peter
 rotate.pdf___
 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
 ___
 

___
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] Wrong float numbering with default=top

2012-12-08 Thread Marco Patzer
On 2012–12–06 Hans Hagen wrote:

 New defined floats are still wrongly enumerated. Is there a workaround for
 this?
 
 
 adapted

Thanks. It does not break anything in the final document and all
numbers are correct.


Marco

___
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] Save/Redraw labels as pictures

2012-12-08 Thread Alan BRASLAU
Hans has be playing with MetaPost instances which got broken.

\startMPpage\stopMPpage got the wrong instance
whereas \startTEXpage\startMPcode\stopMPcode\stopMPpage correctly got
the default instance.

Normally, this was fixed, but your minimal example still does not
work for me either. Something else is at cause...

The reasons Hans has modified MP instances are:
1. we wanted to isolate the chemistry drawing macros from other MP use,
but not from the user, and
2. we uncovered an error with mlib when using a very great number of
MP pictures.

Alan 




On Sat, 8 Dec 2012 05:42:43 -0600
Troy Henderson thend...@gmail.com wrote:

 The following code produces the letter J on the first page, but
 does not draw that same picture on the second page.  I would
 appreciate some advice on how to save and redraw this label in
 subsequence figures.
 
 Thanks,
 
 Troy Henderson
 
 \starttext
 \startMPinclusions[+]
 picture J;
 \stopMPinclusions
 \startMPpage
 J:=thelabel(btex J etex scaled 2,origin);
 draw J;
 \stopMPpage
 \startMPpage
 draw J;
 \stopMPpage
 \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] Save/Redraw labels as pictures

2012-12-08 Thread Troy Henderson

 Hans has be playing with MetaPost instances which got broken.


Well I am running MKIV included in TeX Live 2012.

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] MKIV math: arrow symbols undefined

2012-12-08 Thread Kip Warner
On Sat, 2012-12-08 at 11:03 +0100, Andreas Mang wrote:
 Dear all,
 
 I've noticed that \leadsto, \rightsquigarrow and \leftrightsquigarrow 
 are not defined in MKIV (ConTeXt  ver: 2012.12.06 18:39 MKIV). However, they 
 appear in MKII (ConTeXt ver: 2012.12.06 18:39 MKII). 
 
 I've tested the entire set at http://www.access2science.com/latex/Arrows.html
 
 Cheers,
 Andreas
 
 
 %%% MINIMAL EXAMPLE %%%
 \starttext
 
 leadsto: $\leadsto$
 
 squidarrow: $\leftrightsquigarrow$
 
 squidarrow: $\rightsquigarrow$
 
 \stoptext
 %%% MINIMAL EXAMPLE %%%

I concur.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Wrong float numbering with default=top

2012-12-08 Thread Hans Hagen

On 12/8/2012 3:34 PM, Marco Patzer wrote:

On 2012–12–06 Hans Hagen wrote:


New defined floats are still wrongly enumerated. Is there a workaround for
this?



adapted


Thanks. It does not break anything in the final document and all
numbers are correct.


ok, if it keeps working, remind me in a few months to make an option 
key/value at the tex end


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Save/Redraw labels as pictures

2012-12-08 Thread Hans Hagen

On 12/8/2012 12:42 PM, Troy Henderson wrote:

The following code produces the letter J on the first page, but does
not draw that same picture on the second page.  I would appreciate some
advice on how to save and redraw this label in subsequence figures.

Thanks,

Troy Henderson

\starttext
 \startMPinclusions[+]
 picture J;
 \stopMPinclusions
 \startMPpage
 J:=thelabel(btex J etex scaled 2,origin);
 draw J;
 \stopMPpage
 \startMPpage
 draw J;
 \stopMPpage
\stoptext


\starttext
\startMPinclusions[+]
vardef J = thelabel(textext(J) scaled 2,origin) enddef ;
\stopMPinclusions
\startMPpage
draw J;
\stopMPpage
\startMPpage
draw J;
\stopMPpage
\stoptext

as text in handled at the tex end it is lost after graphic is done; 
imlemeno it ting selective persistence is possible but messy; maybe some 
day i'll do it


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] setuphead command changes?

2012-12-08 Thread reviczky

Hi,

The following minimal example works on live.contextgarden.net but with  
the latest beta the command parameter doesn't seem work (the TEST  
does not appear in the margin).


\showframe
\starttext
\define[2]\cmd{\inmargin{TEST}}
\startsubject[title=Title,command=\cmd]
\input knuth
\stopsubject
\stoptext

Can someone confirm this?

Adam


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