Re: [NTG-context] Updating modules with a ppa:reviczky/context-daily installation

2013-08-03 Thread Marco Patzer
On 2013–08–03 Michael Ash wrote:

> I would like to bump my question back into the queue.  Thank you for your
> consideration.
>
> I would also like to add:  where can I put files that I would like context
> to "see".  For example if I have a file "env_letter.tex" which I include
> with \environment env_letter that includes a bunch of boilerplate, what is
> a good directory to put it in?

I don't use the PPA and I have no idea of how it updates the ConTeXt
tree. It might be that it only updates when a new beta is released
and not every time a third party module is updated, but I don't know
for sure.

first-setup pulls the modules from

  rsync://contextgarden.net/minimals/current/modules/

But updating manually might confuse the package manager. A better
solution if you need to update a module manually is to place it in a
directory, e.g. $HOME/usr/share/texmf and point the environment
variable TEXMFHOME to this directory.

If you need to update a module without touching the installation,
just copy the module (keep the TeX tree intact) to $TEXMFHOME. Check
the log file to ensure that the correct files are being used.

Marco


signature.asc
Description: Digital 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] Updating modules with a ppa:reviczky/context-daily installation

2013-08-03 Thread Michael Ash
I would like to bump my question back into the queue.  Thank you for your
consideration.

I would also like to add:  where can I put files that I would like context
to "see".  For example if I have a file "env_letter.tex" which I include
with \environment env_letter that includes a bunch of boilerplate, what is
a good directory to put it in?

Thanks.

Michael


On Wed, Jul 31, 2013 at 9:57 AM, Michael Ash  wrote:

> I have a question about how to update context modules.
>
> In earlier correspondence
> Question:  I am still having a problem with...[the letter module]
> Answer:  This is now fixed...
>
> I use a context installation managed by ubuntu/apt-get from the Personal
> Package Archive *ppa:reviczky/context-daily* (
> https://launchpad.net/~reviczky/+archive/context-daily). The current
> version is:
> ConTeXt  ver: 2013.07.24 14:11 MKIV beta  fmt: 2013.7.31  int:
> english/english
>
> How is it possible to (1) tell which version of a module is installed? (2)
> update a module to the latest version?
>
> Because I use the PPA version, I have not used first-setup.sh.  I have
> only a limited understanding of where the context supporting material is
> maintained.
>
> Thank you very much for your guidance.
>
> Best,
> Michael
>
> PS Thank you very much for the guidance on the correspondence
> documentation and the reference line alternatives in the letter module
> > BTW are the values for the "alternative" key ("example", "e", "c", etc.)
> documented somewhere?
> You can look at the predefined arguments in the old manual which is
> available online: https://bitbucket.org/wolfs/correspondence/downloads.
>



-- 
Michael Ash, Chair, Department of Economics
Professor of Economics and Public Policy
University of Massachusetts Amherst
Amherst, MA 01003
Email m...@econs.umass.edu
Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash
___
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] bug in \externalfigure

2013-08-03 Thread Jannik Voges
The bug is fixed in the newest beta.


Thanks to everyone

Jannik



Am 02.08.2013 um 22:08 schrieb Jannik Voges :

> 'context --make' gives an error:
> 
> ! LuaTeX error 
> .../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: attempt to 
> index global 'nodepool' (a nil value)
> stack traceback:
>   .../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: in 
> function 'code'
>   .../context/tex/texmf-context/tex/context/base/util-lua.lua:84: in 
> function 'loadedluacode'
>   .../context/tex/texmf-context/tex/context/base/luat-env.lua:104: in 
> function 'luafilechunk'
>   .../context/tex/texmf-context/tex/context/base/luat-cod.lua:45: in 
> function 'registercode'
>   [string "\directlua "]:1: in main chunk.
> 
> system  > tex > error on line 35 in file 
> /usr/local/context/tex/texmf-context/tex/context/base/back-pdf.mkiv: LuaTeX 
> error  ...
> 
> 25 \registerctxluafile{lpdf-wid}{1.001}
> 26 \registerctxluafile{lpdf-fld}{1.001}
> 27 \registerctxluafile{lpdf-mov}{1.001}
> 28 \registerctxluafile{lpdf-u3d}{1.001}
> 29 \registerctxluafile{lpdf-swf}{1.001}
> 30 \registerctxluafile{lpdf-tag}{1.001}
> 31 \registerctxluafile{lpdf-fmt}{1.001}
> 32 \registerctxluafile{lpdf-epd}{1.001}
> 33 \registerctxluafile{lpdf-epa}{1.001}
> 34 
> 35 >>  \registerctxluafile{back-pdf}{1.001} % some code will move to lpdf-*
> 36 
> 37 \unprotect
> 38 
> 39 %D We will minimize the number of calls to \PDF\ specific primitives
> 40 %D and delegate all management and injection of code to the backend.
> 41 %D
> 42 %D Here we initialize some internal quantities. We also protect them.
> 43 
> 44 \pdfoutput  1 \let\pdfoutput \undefined \newcount\pdfoutput  
> \pdfoutput  1
> 45 \pdfhorigin 1 true in \let\pdfhorigin\undefined \newdimen\pdfhorigin 
> \pdfhorigin 1 true in
> 
> 
> \registerctxluafile ...ua.registercode("#1","#2")}
> 
> l.35 \registerctxluafile{back-pdf}{1.001}
>% some code will move to lpdf-*
> ? 
> 
> 
> Jannik
> 
> Am 02.08.2013 um 21:58 schrieb Hans Hagen :
> 
>> function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
>>   local t = copy_node(pdfsetmatrix)
>>   if type(rx) == "string" then
>>   t.data = rx
>>   else
>>   t.data = formatters["%s %s %s %s"](rx or 1,sx or 0,sy or 0,ry or 1) -- 
>> todo: tx ty
>>   end
>>   return t
>> 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
> ___

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