[NTG-context] Indentation

2009-11-28 Thread commb07



\startnarrower[left]
\stopnarrower 



that was quick, thank you!
just what i was looking for but couldn´t find.


tobias

___
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] are typescripts really working in mkiv?

2009-11-28 Thread Hans Hagen

Bernhard Rosensteiner wrote:

Hello all,

after writing a typescript i get never the results in my document as 
expected. Please have a look in the attachment. 
When i do \showbodyfont[12pt] there is my rm typeface (MinionPro) in the 
row \tt visible (column \tfx), in \showbodyfont[13pt] this is not the 
case. Strangely enough, the rm typeface is apart from that never visible 
in my document but should be. Instead there is the ss typeface. I´ve no 
clue whats going on here. Please help.


hard to check .. i don't have those fonts (myriad and minion)

can you test with ..

\tracetypescriptstrue

this looks a bit suspicious:

\definetypeface ..  [normal,environment]

what if you leave out the environment key?

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
-
___
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] are typescripts really working in mkiv?

2009-11-28 Thread Taco Hoekwater

Bernhard Rosensteiner wrote:


Strangely 
enough, the rm typeface is apart from that never visible in my document but 
should be. Instead there is the ss typeface. I´ve no clue whats going on here. 



That's easy, swap these two lines:

\definetypeface [minionmyriad] [rm] [serif] [minion-pro] 
[opticals,environment]

\definetypeface [minionmyriad] [ss] [sans] [myriad-pro]
[normal,environment]

(the last defined typeface becomes the default in \setupbodyfont)

Best wishes,
Taco
___
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] are typescripts really working in mkiv?

2009-11-28 Thread Wolfgang Schuster

Am 28.11.2009 um 11:51 schrieb Taco Hoekwater:

 Bernhard Rosensteiner wrote:
 
 Strangely enough, the rm typeface is apart from that never visible in my 
 document but should be. Instead there is the ss typeface. I´ve no clue whats 
 going on here. 
 
 That's easy, swap these two lines:
 
 \definetypeface [minionmyriad] [rm] [serif] [minion-pro] 
 [opticals,environment]
 \definetypeface [minionmyriad] [ss] [sans]  [myriad-pro] [normal,environment]
 
 (the last defined typeface becomes the default in \setupbodyfont)

that's wrong, the first typeface is always the default (see type-ini)

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] are typescripts really working in mkiv?

2009-11-28 Thread Taco Hoekwater

Wolfgang Schuster wrote:

Am 28.11.2009 um 11:51 schrieb Taco Hoekwater:


Bernhard Rosensteiner wrote:

Strangely enough, the rm typeface is apart from that never visible in my document but should be. Instead there is the ss typeface. I´ve no clue whats going on here. 

That's easy, swap these two lines:

\definetypeface [minionmyriad] [rm] [serif] [minion-pro] [opticals,environment]
\definetypeface [minionmyriad] [ss] [sans]  [myriad-pro] [normal,environment]

(the last defined typeface becomes the default in \setupbodyfont)


that's wrong, the first typeface is always the default (see type-ini)


oops, sorry.

___
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] New current context: 2009.11.26

2009-11-28 Thread Bowen Alan C.

On Nov 27, 2009, at 17;29,08 , Mojca Miklavec wrote:

 On Fri, Nov 27, 2009 at 18:40, Bowen Alan C. wrote:
 On Nov 27, 2009, at 10;17,36 , Mojca Miklavec wrote:
 Bowen Alan C. wrote:
 I have successfully installed and run this latest ConTeXt (in the 
 minimals).
 
 What has happened to context --version and luatex --version?
 
 Both now get “command not found”.
 
 IIRC, mojca changed setuptex so that it only adjusts the PATH in the
 current subshell. Can that be the problem?
 
 Hard to believe (though anything is possible).
 
 My crystal ball says that Alan uses Mac OS X Snow Leopard with 32-bit 
 kernel.
 
 Alan, please:
 - fetch the latest first-setup.sh or set platform=osx-64 manually
 before calling mtxrun
 - you might need to remove --make from mtxrun and run mktexlsr/texexec
 --make manually until further notice (I need to fix some minor bug,
 sorry)
 
 Mojca
 
 Hi, Mojca—
 
 You have a great crystal ball! I have set my platform to 64-bit kernel 
 startup mode, re-started, and re-installed the latest from the minimals 
 using ./firstsetup.sh
 
 Still no recognition of context --version and luatex --version.
 As for your other suggestions, I get “command not found” for mtxrun, 
 texmfstart, texexec, mtexlsr.
 
 As you can probably also see in your crystal ball, I am at the limits of my 
 knowledge of unix  and how ConTeXt, luatex are installed. So while I am 
 happy to test what you say and provide feedback, please don’t get trapped 
 into dealing with me about a problem that will eventually go away anyway. 
 (My installation does still work, after all-- well, except for some 
 unresolved problems with multi-page tables, but that is another thread.)
 
 1. Check if you have either executed source setuptex (. setuptex) or
 set the path explicitely
 2. Please check the contents of /path/to/your/context/tex by typing
ls /path/to/your/context/tex
ls /path/to/your/context/tex/texmf-osx-64/bin
 3. What does
echo $PATH
 say (after making sure that . setuptex is executed)?
 
 Mojca

Mojca—

1. When I open Terminal, I always see the line
Setting /Applications/ConTeXtMinimals/tex as ConTeXt root.
so I take it that .setuptex has been executed

2.   ls /Applications/ConTeXtMinimals/tex gets:
mysetuptex  setuptex.batsetuptex.tmftexmf-cache texmf-local 
texmf-project
setuptexsetuptex.cshtexmf   texmf-context   texmf-osx-intel

3. echo $PATH gets:
/Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Alan





___
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] New current context: 2009.11.26

2009-11-28 Thread Mojca Miklavec
On Sat, Nov 28, 2009 at 15:35, Bowen Alan C. wrote:

 Mojca—

 1. When I open Terminal, I always see the line
 Setting /Applications/ConTeXtMinimals/tex as ConTeXt root.
 so I take it that .setuptex has been executed

 2.   ls /Applications/ConTeXtMinimals/tex gets:
 mysetuptex      setuptex.bat    setuptex.tmf    texmf-cache     texmf-local   
   texmf-project
 setuptex        setuptex.csh    texmf           texmf-context   
 texmf-osx-intel

 3. echo $PATH gets:
 /Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

This indicates that you didn't update first-setup.sh itself. You need
to fetch a newer version of first-setup.sh and check that ls
/Applications/ConTeXtMinimals/tex will contain the folder
texmf-osx-64.

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
___


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Chen Shen
Hi all,

I wonder whether this issue with text in \definereferenceformat is a bug, or
if I missed something. Thanks a lot.

shenchen

On Wed, Nov 25, 2009 at 9:50 AM, Chen Shen hashh...@gmail.com wrote:

 I have the same problem with the latest mkiv beta (2009.11.25).
 left/right works fine, but text does not.

 regards,
 shenchen


 On Thu, Nov 12, 2009 at 1:26 AM, Bernhard Rosensteiner 
 brosenstei...@gmail.com wrote:

 Hello,

 \definereferenceformat[fig][left=(, right=), label=reffigure,
 text={figure}]

 produces no output of text (in this case figure) when i do
 \fig[something]. Is this a bug in mkiv? I use luatex 0.44

 best regards
 Bernhard

 ___
 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] Metapost label - Truncating digits after decimal point

2009-11-28 Thread Curiouslearn
Hi,

Is it possible to truncate the digits after decimal point in Metapost
when using textext()? Please see the minimal example below which
produces 1.84375. Can I just keep the first digit and have it produce
1.8 ?

Thanks.

\setuppapersize[letter][letter]

\setupcolors[state=start]


\starttext

\startuseMPgraphic{Figure}
u := 1cm;
pickup pencircle scaled 2pt; % default pen thickness
%TheFunction
vardef f(expr x) =
(10/x)-x*((0.5)**x)
enddef;
%Labels 
label.lft(textext(decimal f(5)),(0,f(5)) scaled u); 
\stopuseMPgraphic
\useMPgraphic{Figure}

\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] Verbatim problem in mkiv

2009-11-28 Thread Chen Shen
Hi,

I'm having problem with verbatim typing with linenumber under mkiv.
The following code works fine without location=text turned off, but fails
when it's turned on.
The text 0279699410 appears at the beginning of every alternate line.
Thanks a lot.

regards,
shenchen

= start ===

\setuplinenumbering[location=text]

\starttext

\starttyping[numbering=line]
a
a
a
\stoptyping

\stoptext

=  end  ===
___
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] new beta

2009-11-28 Thread Andreas Schneider
Hans Hagen wrote:

 Mojca Miklavec wrote:
 
 I just came back. I guess that I should start fixing the (already
 broken?) windows installation :)
 
 no need for fixing, it's just stubs .. just make sure that you copy the
 dll and exe files from the stub paths (and get rid of cmd/bat files when
 an exe is there)

Doesn't work all too well here. I always get Unsupported 16-Bit 
Application - The program or feature [..]\luatools.exe cannot start or run 
due to incompatibility with 64-bit versions of Windows. Please contact 
[...] and so on.

Best regards,
Andreas.

___
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] New current context: 2009.11.26

2009-11-28 Thread Bowen Alan C.
Mocja—

You are right. So to get the latest first-sstup.sh I ran 
$ curl -o first-setup.sh http://minimals.contextgarden.net/setup/first-setup.sh
and when I run 
$ ./first-setup.sh --context-=stable
I am now am denied permission 

Playing with the permissions -a or -u and using sudo does not seem to help.

I am assuming that when I eventually run the new first-setup.sh I will find a 
new folder:
/Applications/ConTeXtMinimals/tex/texmf-osx-64/


Alan

On Nov 28, 2009, at 09;45,35 , Mojca Miklavec wrote:

 On Sat, Nov 28, 2009 at 15:35, Bowen Alan C. wrote:
 
 Mojca—
 
 1. When I open Terminal, I always see the line
 Setting /Applications/ConTeXtMinimals/tex as ConTeXt root.
 so I take it that .setuptex has been executed
 
 2.   ls /Applications/ConTeXtMinimals/tex gets:
 mysetuptex  setuptex.batsetuptex.tmftexmf-cache texmf-local  
texmf-project
 setuptexsetuptex.cshtexmf   texmf-context   
 texmf-osx-intel
 
 3. echo $PATH gets:
 /Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
 
 This indicates that you didn't update first-setup.sh itself. You need
 to fetch a newer version of first-setup.sh and check that ls
 /Applications/ConTeXtMinimals/tex will contain the folder
 texmf-osx-64.
 
 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
 ___

___
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] definereferenceformat problem...

2009-11-28 Thread Peter Münster
On Wed, Nov 11 2009, Bernhard Rosensteiner wrote:
 
 \definereferenceformat[fig][left=(, right=), label=reffigure, text={figure}]
 
 produces no output of text (in this case figure) when i do
 \fig[something]. Is this a bug in mkiv? I use luatex 0.44

A workaround:

\definereferenceformat[fig][left=(, right=), label=reffigure]
\setuplabeltext[en][reffigure=figure]
\starttext
\placefigure[][something]{bla}{bla}
\fig[something]
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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] New current context: 2009.11.26

2009-11-28 Thread Mojca Miklavec
On Sat, Nov 28, 2009 at 17:24, Bowen Alan C. acbo...@princeton.edu wrote:
 Mocja—

 You are right. So to get the latest first-sstup.sh I ran
 $ curl -o first-setup.sh 
 http://minimals.contextgarden.net/setup/first-setup.sh
 and when I run
 $ ./first-setup.sh --context-=stable
 I am now am denied permission

Does
chmod +x first-setup.sh
help?

(I usually copy-paste the command from http://minimals.contextgarden.net/setup/:
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh
)

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
___


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Chen Shen
Thanks a lot Peter

shenchen

On Sun, Nov 29, 2009 at 12:36 AM, Peter Münster pmli...@free.fr wrote:

 On Wed, Nov 11 2009, Bernhard Rosensteiner wrote:
 
  \definereferenceformat[fig][left=(, right=), label=reffigure,
 text={figure}]
 
  produces no output of text (in this case figure) when i do
  \fig[something]. Is this a bug in mkiv? I use luatex 0.44

 A workaround:

 \definereferenceformat[fig][left=(, right=), label=reffigure]
 \setuplabeltext[en][reffigure=figure]
 \starttext
 \placefigure[][something]{bla}{bla}
 \fig[something]
 \stoptext

 Cheers, Peter

 --
 Contact information: http://pmrb.free.fr/contact/


 ___
 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] Metapost and mkiv

2009-11-28 Thread Alan BRASLAU
On Friday 27 November 2009 14:54:53 Willi Egger wrote:
 Hi Alan,
 
 I run in this myself. A possible solution is:
 
 \startuniqueMPgraphic{test}
   for i = 0 upto 10 :
   draw thelabel(textext(\color[red]  decimal i ), (i, -1)
 scaled 1cm);
   endfor ;
 \stopuniqueMPgraphic
 
 \setupcolors[state=start]
 
 \starttext
   \uniqueMPgraphic{test}
 \stoptext
 
 KR
 Willi

Yes, Thanks.
I thought of this as a work-around, but the first is clearly a bug.
What actually works is:

\setupcolors [state=start]

\starttext

\startuniqueMPgraphic{test}
for i = 0 upto 10 :
%draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ;
draw thelabel(textext(\red decimal i ),
(i, 0) scaled 1cm) ;
endfor ;
\stopuniqueMPgraphic

\uniqueMPgraphic{test}

\stoptext


Now it is up to the experts to fix the bug in mkiv.

Alan
___
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] New current context: 2009.11.26

2009-11-28 Thread Bowen Alan C.
That does indeed help. I have now run first-setup.sh successfully and all is 
well: there is a new “texmf-osx-64” folder right where it should be and context 
--version now works too.

Many thanks, Mocja!

Alan
On Nov 28, 2009, at 11;38,27 , Mojca Miklavec wrote:

 On Sat, Nov 28, 2009 at 17:24, Bowen Alan C. acbo...@princeton.edu wrote:
 Mocja—
 
 You are right. So to get the latest first-sstup.sh I ran
 $ curl -o first-setup.sh 
 http://minimals.contextgarden.net/setup/first-setup.sh
 and when I run
 $ ./first-setup.sh --context-=stable
 I am now am denied permission
 
 Does
chmod +x first-setup.sh
 help?
 
 (I usually copy-paste the command from 
 http://minimals.contextgarden.net/setup/:
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh
 )
 
 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
 ___

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