Re: [NTG-context] Interactive U3D in .pdf via ConTeXt?

2014-05-20 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks both for the solution.

Interactive 3D graphics works well with the latest Ctx Beta;
even the preview member is not necessary.

My last attempt with Laurana which gives the desired result can be downloaded 
here (30 days from now):

http://leteckaposta.cz/809373502

On Sun, 18 May 2014 09:12:55 +0200, Michail Vidiassov mas...@iaas.msu.ru 
wrote:


Dear luigi,

you wrote:
 I've to play a bit with width , height and the 3D controls of the
adobe reader to have a nice view,



It should also be possible to select the model or its part in Adobe
GUI (in the model tree, for example), select Zoom to part, ask Adobe
viewer for camera properties and use them for view parameters.
But I have to fix and improve my module to enable that functionality.

Michail


@Michail:

Yes, it would be great also to say to PDF or to AR to initialize the view zooming maximally to 
the whole object (which is special case of Zoom to part with part being the whole 
object).

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t-u3d.mkiv
Description: Binary data


t-u3d.log
Description: Binary data
___
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] Entering text into layers

2014-05-20 Thread Keith McKay

Thanks Hans,

This is just what I'm looking for.

One last quick question if I may.  I've noticed that \setlayerframed is 
not in the command reference on the wiki.  I guess that by looking at 
the source code for Context would be the best way of finding it's 
attributes but I don't have a clue which file it is likely to be in.  
Could you give me a few hints on how to do this please?


Thanks again for your help.

Best Wishes
Keith

On 19/05/2014 22:45, Hans Hagen wrote:

On 5/19/2014 5:43 PM, Keith McKay wrote:

Colleagues

I have been designing a simple document which comprises of 4 areas (3
for text, 1 for images) on an A4 page.  I thought that the best way to
do this would be using Layers and so far I come up with the code below
after scanning the wiki.  As you can see it is not very sophisticated,
but I'm not a regular user of Context.  The question I have is what
would be the best way to add text to the various layers?  Some would
have quite a lot of text and I was wondering if would be better to
define the text for the different layers in some way rather than enter
into the braces of \setlayerframed.  The code would look messy this
way.  Finally, can layers be positioned within layers or would it be
better to use overlays?  I'm thinking about adding three columns to the
Footer layer.

Thanks for your help

Best Wishes

Keith McKay

\setuplayout

[backspace=0cm,

cutspace=0cm,

width=fit,

topspace=0cm,

bottomspace=0cm,

header=0cm,

footer=0cm,

height=fit]

\setupexternalfigures[location={local,global}]


\definelayer[Logo]

\definelayer[Picture]

\definelayer[Text]

\definelayer[Footer]


\starttext

\strut


\setlayerframed[Logo][x=1cm,y=1cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Some text in here}

\setlayerframed[Picture][x=1cm,y=5cm]
[width=6cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{\externalfigure[picture.jpg][background={foreground,figure},maxwidth=6cm]} 



\setlayerframed[Text][x=8cm,y=5cm]
[width=12cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{Text 


goes here}

\setlayerframed[Footer][x=1cm,y=25.7cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Footer goes here}

\setupbackgrounds[text][background={Logo,Picture,Text,Footer}]


\stoptext


use buffers:

\startbuffer[some text]
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
\stopbuffer


\setlayerframed
  [somelayer]
  [preset=lefttop,
   x=1cm,
   y=4cm]
  [width=10cm,
   align=normal]
  {\getbuffer}

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



___
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] Entering text into layers

2014-05-20 Thread Keith McKay

Thanks Wolfgang

This is really useful and something I will give further study to.

Thanks again for your help.

Best Wishes
Keith

On 19/05/2014 22:54, Wolfgang Schuster wrote:


Am 19.05.2014 um 17:43 schrieb Keith McKay mckaymeis...@gmail.com 
mailto:mckaymeis...@gmail.com:



Colleagues

I have been designing a simple document which comprises of 4 areas (3 
for text, 1 for images) on an A4 page.  I thought that the best way 
to do this would be using Layers and so far I come up with the code 
below after scanning the wiki. As you can see it is not very 
sophisticated, but I'm not a regular user of Context.  The question I 
have is what would be the best way to add text to the various 
layers?  Some would have quite a lot of text and I was wondering if 
would be better to define the text for the different layers in some 
way rather than enter into the braces of \setlayerframed.  The code 
would look messy this way. Finally, can layers be positioned within 
layers or would it be better to use overlays?  I'm thinking about 
adding three columns to the Footer layer.


A short description about layers and overlays: 
http://www.ntg.nl/pipermail/ntg-context/2013/070935.html


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
___


___
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] Entering text into layers

2014-05-20 Thread Hans Hagen

On 5/20/2014 10:07 AM, Keith McKay wrote:

Thanks Hans,

This is just what I'm looking for.

One last quick question if I may.  I've noticed that \setlayerframed is
not in the command reference on the wiki.  I guess that by looking at
the source code for Context would be the best way of finding it's
attributes but I don't have a clue which file it is likely to be in.
Could you give me a few hints on how to do this please?


first [] like \setlayer, second [] like \framed


Thanks again for your help.

Best Wishes
Keith

On 19/05/2014 22:45, Hans Hagen wrote:

On 5/19/2014 5:43 PM, Keith McKay wrote:

Colleagues

I have been designing a simple document which comprises of 4 areas (3
for text, 1 for images) on an A4 page.  I thought that the best way to
do this would be using Layers and so far I come up with the code below
after scanning the wiki.  As you can see it is not very sophisticated,
but I'm not a regular user of Context.  The question I have is what
would be the best way to add text to the various layers?  Some would
have quite a lot of text and I was wondering if would be better to
define the text for the different layers in some way rather than enter
into the braces of \setlayerframed.  The code would look messy this
way.  Finally, can layers be positioned within layers or would it be
better to use overlays?  I'm thinking about adding three columns to the
Footer layer.

Thanks for your help

Best Wishes

Keith McKay

\setuplayout

[backspace=0cm,

cutspace=0cm,

width=fit,

topspace=0cm,

bottomspace=0cm,

header=0cm,

footer=0cm,

height=fit]

\setupexternalfigures[location={local,global}]


\definelayer[Logo]

\definelayer[Picture]

\definelayer[Text]

\definelayer[Footer]


\starttext

\strut


\setlayerframed[Logo][x=1cm,y=1cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Some text in here}

\setlayerframed[Picture][x=1cm,y=5cm]
[width=6cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{\externalfigure[picture.jpg][background={foreground,figure},maxwidth=6cm]}


\setlayerframed[Text][x=8cm,y=5cm]
[width=12cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{Text

goes here}

\setlayerframed[Footer][x=1cm,y=25.7cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Footer goes here}

\setupbackgrounds[text][background={Logo,Picture,Text,Footer}]


\stoptext


use buffers:

\startbuffer[some text]
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
\stopbuffer


\setlayerframed
  [somelayer]
  [preset=lefttop,
   x=1cm,
   y=4cm]
  [width=10cm,
   align=normal]
  {\getbuffer}

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



___

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
___




--

-
  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] Define a new command from the command \periods[n]

2014-05-20 Thread Fabrice Couvreur
Hi,
Is it possible to redefine the command \periods[n] to have a line that goes
from the end of the word to the edge of the page without having to play on
the number n ?
Regards,
Fabrice

\starttext
\startitemize[a][stopper=),style=bold]
\item $x\mapsto -x^2+x+1$ : \periods[66]
\item $x\mapsto 2x^3+4x-7$ : \periods[65]
\item $x\mapsto x^2-3$ : \periods[70]
\item $x\mapsto \frac{x^2+x}2$ : \periods[72]
\item $x\mapsto (x-2)^2$ : \periods[69]
\stopitemize
\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] Define a new command from the command \periods[n]

2014-05-20 Thread luigi scarso
On Tue, May 20, 2014 at 10:30 AM, Fabrice Couvreur 
fabrice1.couvr...@gmail.com wrote:

 Hi,
 Is it possible to redefine the command \periods[n] to have a line that
 goes from the end of the word to the edge of the page without having to
 play on the number n ?
 Regards,
 Fabrice

 \starttext
 \startitemize[a][stopper=),style=bold]
 \item $x\mapsto -x^2+x+1$ : \periods[66]
 \item $x\mapsto 2x^3+4x-7$ : \periods[65]
 \item $x\mapsto x^2-3$ : \periods[70]
 \item $x\mapsto \frac{x^2+x}2$ : \periods[72]
 \item $x\mapsto (x-2)^2$ : \periods[69]
 \stopitemize
 \stoptext




They are called leaders
http://tex.stackexchange.com/questions/38423/want-to-fill-line-with-repeating-string

\showframe
\starttext
\startitemize[a][stopper=),style=bold]
\item $x\mapsto -x^2+x+1$ : \leavevmode\xleaders\hbox{.}\hfill\kern0pt
%\periods[66]
\item $x\mapsto 2x^3+4x-7$ : \periods[65]
\item $x\mapsto x^2-3$ : \periods[70]
\item $x\mapsto \frac{x^2+x}2$ : \periods[72]
\item $x\mapsto (x-2)^2$ : \periods[69]
\stopitemize
\stoptext


-- 
luigi
___
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] larger dot for \dot ?

2014-05-20 Thread Sanjoy Mahajan
My students complain that the dot in, for example, $\dot M$ is too small
and that they easily miss it.  So I have been trying to make a bigger
one, but haven't found a solution that plays nicely with the surrounding
math.

For example,

  \def\mydot{\overset{\externalfigure[dot.pdf]}} %bigger than usual one
  \def\Vdot{\mydot V}
  \starttext
  $\rho\Vdot\omega$  % loose spacing

  $\rho V\omega$ % tighter spacing
  \stoptext

where dot.pdf is a circle of radius 0.8bp (attached).

But the \Vdot gets wrapped in an hbox (inside \overset), so the
surrounding space is too large.

I also tried a metafun approach

  \startuniqueMPgraphic{math:mydot}
fill unitcircle scaled 2 shifted 
(OverlayWidth/2-1,OverlayHeight+OverlayOffset);
path q;
q:= unitsquare xscaled OverlayWidth yscaled (OverlayHeight+OverlayOffset+1);
setbounds currentpicture to q;
  \stopuniqueMPgraphic

  \definemathornament [mathmydot] [mp=math:mydot]

  \starttext

  $\rho\mathmydot{V}\omega$

  $\rho V\omega$

  $\rho\mathmydot{V}_0^2\omega$

  $\rho\dot{V}_0^2\omega$

  \stoptext

The $\rho\mathmydot{V}\omega$ looks good.  But the subscripted _0 is not
tucked under the V, because the bounds of the character are now a
rectangle that doesn't know about its shape.  I think for a similar
reason the superscripted 2 is quite high.

Is there more math-friendly (and elegant) way to get a fatter dot?

-Sanjoy
___
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] Define a new command from the command \periods[n]

2014-05-20 Thread Wolfgang Schuster

Am 20.05.2014 um 10:47 schrieb luigi scarso luigi.sca...@gmail.com:

 
 
 
 On Tue, May 20, 2014 at 10:30 AM, Fabrice Couvreur 
 fabrice1.couvr...@gmail.com wrote:
 Hi, 
 Is it possible to redefine the command \periods[n] to have a line that goes 
 from the end of the word to the edge of the page without having to play on 
 the number n ? 
 Regards, 
 Fabrice
 
 \starttext
 \startitemize[a][stopper=),style=bold]
 \item $x\mapsto -x^2+x+1$ : \periods[66]
 \item $x\mapsto 2x^3+4x-7$ : \periods[65]
 \item $x\mapsto x^2-3$ : \periods[70]
 \item $x\mapsto \frac{x^2+x}2$ : \periods[72]
 \item $x\mapsto (x-2)^2$ : \periods[69]
 \stopitemize
 \stoptext
 
 
 
 They are called leaders
 http://tex.stackexchange.com/questions/38423/want-to-fill-line-with-repeating-string
 
 \showframe
 \starttext
 \startitemize[a][stopper=),style=bold]
 \item $x\mapsto -x^2+x+1$ : \leavevmode\xleaders\hbox{.}\hfill\kern0pt 
 %\periods[66]
 \item $x\mapsto 2x^3+4x-7$ : \periods[65]
 \item $x\mapsto x^2-3$ : \periods[70]
 \item $x\mapsto \frac{x^2+x}2$ : \periods[72]
 \item $x\mapsto (x-2)^2$ : \periods[69]
 \stopitemize
 \stoptext

ConTeXt has a user level interface for leaders which is called \filler.

\definefiller[dots][right=\hskip\zeropoint]

\starttext
text \filler[dots]
\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] Define a new command from the command \periods[n]

2014-05-20 Thread Fabrice

Hello,
@ Luigi @Wolfgang Thanks for your suggestions.

Since I want to continue my learning ConTeXt, I will use the command 
\filler[dots].

Can we do the same thing if there is no text in the beginning ?
Fabrice
___
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] Define a new command from the command \periods[n]

2014-05-20 Thread Wolfgang Schuster

Am 20.05.2014 um 19:50 schrieb Fabrice couvreur.fabr...@wanadoo.fr:

 Hello,
 @ Luigi @Wolfgang Thanks for your suggestions.
 
 Since I want to continue my learning ConTeXt, I will use the command 
 \filler[dots].
 Can we do the same thing if there is no text in the beginning ?

You can add “left=\dontleavehmode” to the filler definition:

\definefiller[dots][left=\dontleavehmode,right=\hskip\zeropoint]

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] Define a new command from the command \periods[n]

2014-05-20 Thread Fabrice

Perfect !
thank you,
Fabrice
___
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] SimpleFonts

2014-05-20 Thread hwitloc


I just installed the standalone context and tried to typeset a document which 
uses simplefonts but the resolver indicates that simplefonts is not found.  
This isn't surprising, but I need to learn how to install simplefonts to use 
with the standalone.

Use adding  --modules all  as an option to  first-setup.sh do this?


Any advice is appreciated.
___
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] SimpleFonts

2014-05-20 Thread Mikael P. Sundqvist
On Wed, May 21, 2014 at 5:32 AM,  hwit...@gmail.com wrote:
 I just installed the standalone context and tried to typeset a document 
 which uses simplefonts but the resolver indicates that simplefonts is not 
 found.  This isn't surprising, but I need to learn how to install simplefonts 
 to use with the standalone.

 Use adding  --modules all  as an option to  first-setup.sh do this?


 Any advice is appreciated.


I think that functionality is now included in the core, see the top of the page

http://wiki.contextgarden.net/simplefonts

to get a hint of the new syntax.

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