Re: [NTG-context] python embedded in ConTeXt

2013-02-25 Thread Xan
Thank you very much, Henning and Aditya. It clear the actual programming 
in ConTeXt. Now I use mako templates for emulate this purpose, but it's 
an annoying thing having to do this outside ConTeXt documents


Thanks, both.

Xan.

   On Sat, 23 Feb 2013, Henning Hraban Ramm wrote:

   /  Am 2013-02-23 um 13:47 schrieb Xan:
   //
   //  I just want to know if there is a equal thing like python.sty [1],
   //  sympytex [2] or sagetex [3] for embed python, sympy and sage into
   //  ConTeXt documents as there exist for latex. Yeah, I know I could write
   //  a script and run python externally to ConTeXt but this were easier to
   //  use.
   //
   //  Have a look at Aditya's filter module, that can call arbitrary external 
commands.
   /
   Attached is a proof of concept implementation for sympy. All the three
   python packages that you mentioned include a corresponding python script
   that does a lot of book-keeping. So, getting the full functionality of all
   these packages will require adapting those python script to generate
   results in ConTeXt syntax rather than in LaTeX syntax.

   Aditya

   -- next part --
   A non-text attachment was scrubbed...
   Name: sympy.tex
   Type: application/x-tex
   Size: 916 bytes
   Desc:
   URL: 
http://www.ntg.nl/pipermail/ntg-context/attachments/20130223/f57ddc6c/attachment.tex

   

___
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] Importing frontmatter

2013-02-25 Thread john Culleton
What is the difference between \environment foo.tex
and \input foo.tex?
 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
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] Importing frontmatter

2013-02-25 Thread Wolfgang Schuster

Am 25.02.2013 um 19:35 schrieb john Culleton j...@wexfordpress.com:

 What is the difference between \environment foo.tex
 and \input foo.tex?

When you use \environment the file is only loaded once but \input load the file 
each time.

When you try to load a file which doesn’t exist \input produces a error message 
and asks
for a valid filename while \environment mentions an not existent file but 
doesn’t interrupt
the compile process.

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] python embedded in ConTeXt

2013-02-25 Thread Mica Semrick
Xan,

not sure if you're aware, but you can execute Lua code within a ConTeXt
document.

Best,
Mica

On Mon, Feb 25, 2013 at 10:04 AM, Xan dxpubl...@telefonica.net wrote:

  Thank you very much, Henning and Aditya. It clear the actual programming
 in ConTeXt. Now I use mako templates for emulate this purpose, but it's an
 annoying thing having to do this outside ConTeXt documents

 Thanks, both.

 Xan.

 On Sat, 23 Feb 2013, Henning Hraban Ramm wrote:

 * Am 2013-02-23 um 13:47 schrieb Xan:***
 * I just want to know if there is a equal thing like python.sty [1], ** 
 sympytex [2] or sagetex [3] for embed python, sympy and sage into ** 
 ConTeXt documents as there exist for latex. Yeah, I know I could write ** 
 a script and run python externally to ConTeXt but this were easier to ** 
 use.***
 * Have a look at Aditya's filter module, that can call arbitrary external 
 commands.*

 Attached is a proof of concept implementation for sympy. All the three
 python packages that you mentioned include a corresponding python script
 that does a lot of book-keeping. So, getting the full functionality of all
 these packages will require adapting those python script to generate
 results in ConTeXt syntax rather than in LaTeX syntax.

 Aditya

 -- next part --
 A non-text attachment was scrubbed...
 Name: sympy.tex
 Type: application/x-tex
 Size: 916 bytes
 Desc:
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20130223/f57ddc6c/attachment.tex

 --



 ___
 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] default parameter in \definefont

2013-02-25 Thread john Culleton
Some time back Wolfgang advised me to use statements like this:
\definefont [titlefont][MyriadPro-Bold*default at 70bp]

I cannot find what the *default parameter does. Can someone educate me?
-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
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] default parameter in \definefont

2013-02-25 Thread Wolfgang Schuster

Am 26.02.2013 um 00:00 schrieb john Culleton j...@wexfordpress.com:

 Some time back Wolfgang advised me to use statements like this:
 \definefont [titlefont][MyriadPro-Bold*default at 70bp]
 
 I cannot find what the *default parameter does. Can someone educate me?

When you use a font in MkIV you have to specify which features of the font
should be enabled/disabled, to do this you define first a list for them with
the \definefontfeature command, e.g.

  \definefontfeature[myfeatures][liga=yes,onum=yes,…]


For the main fonts in the document which are loaded with \setupbodyfont
these settings are applied in the typescripts, e.g.

  \defintfontsynonym[Serif][MyRegularFont][features=myfeatures]

but when you load a single font with \definefont you apply
the list as argument to the font name after the asterisk.


When you want only a bigger version of the serif or sans version of your
document you can say \definefont[SansBold at 70bp] without applying
the list of features because the are already set in the typescripts.

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
___