Re: [NTG-context] Has anybody used asymptote without LaTeX?

2008-10-11 Thread Zhichu Chen
Hi all,

On Sat, Oct 11, 2008 at 1:25 PM, Michail Vidiassov [EMAIL PROTECTED] wrote:
 Dear All,

 On Fri, 10 Oct 2008, Zhichu Chen wrote:

 If I want to embed the .prc file into a pdf document, all I need to do
 is specify the correct /Subtype and mime type. That's very easy. I
 think creating 3D presentations without any commercial or mouse-
 clicking-GUI interface becomes realistic now.

 No, there is more - you have to set appearance (may be empty).
 And many nice things can be done via properties of the 3D object embedded
 into PDF. Consult latest PDF reference.

Oh, yea, I don't know that, no wonder my output doesn't look good.

 You may look at libharu U3D code (it handles PRC too) and my
 embedder (it needs libconfig from http://www.hyperrealm.com/libconfig/
 and libharu from libharu.org) from
 http://www.iaas.msu.ru/tmp/u3dembedder.tgz
Thanks, I'll study on that.

   Sincerely, Michail

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___




-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Extra space before itemize

2008-10-11 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,
 
 I am setting up a head which simply puts its contents in a layer, so that 
 I can control where to place the head. If the head is followed by an 
 itemize, I get spurious white space. See the following test file. Page 1 
 is head followed by text, which is OK. Page 2 is head followed by itemize, 
 which has extra space. page 3 is just itemize which is ok.
 
 \definelayer[test]
  [width=\paperwidth,
  height=\paperheight,
  x=5cm,y=1cm]
 
 \def\mylayer#1#2{\setlayer[test]{#1#2}}
 
 \definehead[testhead][subject]
 
 \setuphead[testhead]
 [before=,
 after=,
 alternative=text,
 command=\mylayer]
 
 \setupbackgrounds[page][background=test]
 
 \showframe
 \showboxes
 
 \starttext
 
 \testhead{First}
 
 \input knuth
 
 \page
 
 \testhead{Hello}
 
 \startitemize
\item A
\item B
 \stopitemize
 
 \page
 
 \startitemize
\item A
\item B
 \stopitemize
 
 
 \stoptext
 
 
 How do I get rid of the extra space?

hack

\def\mylayer#1#2{\startnointerference\setlayer[test]{#1#2}\stopnointerference}

\definehead[testhead][subject]

\setuphead[testhead]
 [page=,
  before=,
  after={\topskipcorrection\vskip-\topskip \blank[disable]},
  alternative=normal,
  command=\mylayer]


-
   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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Letter module béta

2008-10-11 Thread Olivier Guéry
Hello everybody, hello Wolfgang,

Since I've needed to typeset some letters I'd test the last béta letter module.
The result is realy great (the signature is a the right place).

I'd just need to use
\setuplabeltext[fr][letter:enclosure={P.J.\,:\kern\spaceamount},letter:subject=Objet\,:
]
in order to have the right traductions for « subject ».

Some small things :
— changing the interligne space dont change it in the « fromaddress »
— why can't I put all the \setupletter in the same section ? for exemple :
\setupletter
  [place=Paris]
  [place]
  [separator={, le }]

don't work, and I need to use :

\setupletter
  [place=Paris]

\setupletter
  [place]
  [separator={, le }]

Anyway, thank's a lot, it work's great !

Cheers,
Olivier.
-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Extra space before itemize

2008-10-11 Thread Aditya Mahajan
On Sat, 11 Oct 2008, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi,

 I am setting up a head which simply puts its contents in a layer, so that
 I can control where to place the head. If the head is followed by an
 itemize, I get spurious white space. See the following test file. Page 1
 is head followed by text, which is OK. Page 2 is head followed by itemize,
 which has extra space. page 3 is just itemize which is ok.

 \definelayer[test]
  [width=\paperwidth,
  height=\paperheight,
  x=5cm,y=1cm]

 \def\mylayer#1#2{\setlayer[test]{#1#2}}

 \definehead[testhead][subject]

 \setuphead[testhead]
 [before=,
 after=,
 alternative=text,
 command=\mylayer]

 \setupbackgrounds[page][background=test]

 \showframe
 \showboxes

 \starttext

 \testhead{First}

 \input knuth

 \page

 \testhead{Hello}

 \startitemize
\item A
\item B
 \stopitemize

 \page

 \startitemize
\item A
\item B
 \stopitemize


 \stoptext


 How do I get rid of the extra space?

 hack

 \def\mylayer#1#2{\startnointerference\setlayer[test]{#1#2}\stopnointerference}

 \definehead[testhead][subject]

 \setuphead[testhead]
 [page=,
  before=,
  after={\topskipcorrection\vskip-\topskip \blank[disable]},
  alternative=normal,
  command=\mylayer]

Thanks. I think that in this case it will be cleaner to not use heads in 
this case and implement color, style, align interface by hand. I will 
wikify your answer.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] XeTeX old style numerals

2008-10-11 Thread Mohamed Bana
So ... can someone provide a sample file of a document that uses old 
style by default?

Clearly the following doesn't work;

\definetypeface[myface][rm][Xserif][Minion Pro]
% i've also tried
%\definetypeface[myface][rm][Xserif][Warnock Pro]
\definetypeface[myface][ss][Xsans][Myriad Pro]
\definetypeface[myface][tt][Xmono][Consolas]
\setupbodyfont[myface, 11pt]

Thanks

Hans Hagen wrote:
 Mohamed Bana wrote:
 Mojca Miklavec wrote:
 On Fri, Sep 19, 2008 at 8:07 PM, Mohamed Bana wrote:
   
 Hi guys,

 Why doesn't this definition use the old style numerals that come with the 
 font?
  It seems to use the latin modern font when I try to use \os.  Small caps 
 are
 working fine.
 
 \os is kind of special because it's related to the fact that good old 
 tex and the cm fonts have oldstyles in some math font and therefore some 
   effort is needed to use it in text
 
 we might consider mapping \os to something
 
 \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}}
 
 which in mkiv will make
 
 1234567890 {\os 1234567890} 1234567890
 
 work
 

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___