Re: [NTG-context] [texhax] Choosing TeX um ... stuff

2010-11-18 Thread Philip Taylor (Webmaster, Ret'd)



Peter Davis wrote:


I've been on the periphery of TeX for years, as a casual user of LaTeX
and also as an implementer of publishing software.  However, I'm afraid
I haven't kept in as close touch as I'd like, and now I find myself
trying to absorb a lot in a short time.  I'm trying to choose what
software to use in building an XML-TeX workflow.

I'd appreciate any help with the following questions:

   1. True or False: TeX can be categorized along three orthogonal axes:
 1. by format (plain TeX, LaTeX, ConTeXt, others?)
 2. by implementation (web2c, pdfTeX/pdfLaTeX, LuaTeX, others?)
 3. by distribution (MikTeX, TeXLive, MacTeX, others?)


2) is false; whilst web2c is a methodology and
an basis for implementation, pdfTeX is a derivative,
pdfLaTeX is simply LaTeX layered on top of PdfTeX,
LuaTeX is a major fork, and so on.


   2. True or False: plain TeX and LaTeX(2e) are warhorses ... been
  around for decades, quirks well known, lots of documentation, etc.


Yes, except that while Plain TeX has more-or-less remained
static (modulo essential bug fixes by Don), LaTeX2e has
continued to evolve.  I have heard rumours that this particular
evolutionary branch may have come to an end, but I have
no definite knowledge of this.


   3. True or False: ConTeXt is newer, with a lot of built-in features,
  but still changing quite a bit from build to build.


Context is a L O T newer : it has many devotees, but is still
something of an outside to mainstream TeX usage.



Other comments welcome vis. picking which software to use.  One point is
that since the actual TeX input files will be generated
programmatically, readability or ease-of-coding is not a factor.  I was
going to use plain TeX, but it seems a lot of features like placing text
boxes and graphics anywhere, using system fonts, etc. are more available
for LaTeX and ConTeXt.

Thank you for any comments!


Talk to River Valley and/or Sebastian Rahtz; both have considerable
knowledge of the matters that interest you.

Philip Taylor
___
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] [texhax] Choosing TeX um ... stuff

2010-11-18 Thread Paul Isambert
Selon Philip Taylor (Webmaster, Ret'd) p.tay...@rhul.ac.uk:



 Peter Davis wrote:
 2. True or False: plain TeX and LaTeX(2e) are warhorses ... been
around for decades, quirks well known, lots of documentation, etc.

 Yes, except that while Plain TeX has more-or-less remained
 static (modulo essential bug fixes by Don), LaTeX2e has
 continued to evolve.  I have heard rumours that this particular
 evolutionary branch may have come to an end, but I have
 no definite knowledge of this.

And plain TeX doesn't have a lot of documentation. Anyway there isn't much to
document. Basically using plain TeX means you need a very good knowledge of the
engine, and you'll write tons of macros (in a way there are no plain TeX users,
only users of personal formats based on plain).

 3. True or False: ConTeXt is newer, with a lot of built-in features,
but still changing quite a bit from build to build.

 Context is a L O T newer : it has many devotees, but is still
 something of an outside to mainstream TeX usage.

Philip, plain TeX isn't exactly mainstream anymore, and ConTeXt probably beats
it on this point. And ConTeXt is already more than 15 years old, so it's not so
new, although it does keep moving.

Paul
___
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] [texhax] Choosing TeX um ... stuff

2010-11-18 Thread Hans Hagen

On 17-11-2010 11:06, Paul Isambert wrote:


Philip, plain TeX isn't exactly mainstream anymore, and ConTeXt probably beats
it on this point. And ConTeXt is already more than 15 years old, so it's not so
new, although it does keep moving.


fyi, there are two versions of context:

- mkii is a frozen snapshot of context that runs on top of pdftex and xetex
- mkiv is the mainstream version and runs on top of luatex; it is a 
rathere drastic rewrite + major upgrade and many internals are pretty 
new but is mostly downward compatible as well


Hans


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


Re: [NTG-context] \definenamespace (was: The visual counter module)

2010-11-18 Thread Philipp Gesang
On 2010-11-18 04:56:27, Wolfgang Schuster wrote:
 
 Am 18.11.2010 um 01:36 schrieb Philipp Gesang:
 
  Hi Wolfgang,
  
  of course you are always welcome to deliver this kind of
  thorough discussion! The wiki is grateful …
  
  Just two keys remain unexplained: “version” and “comment”. I
  guess they are not as critical but for sake of completeness and
  out of curiosity I wouldn’t mind having my guesses refuted or
  confirmed:
  
  comment -  string: non-functional information that will be
stored along with the namespace?? 
  version -  number: versioning information?? Functionality not
yet known.
 
 Both keys contain only information about the purpose of the module
 and version number of the file like you have a the top of the file
 in the „%D \module[...]“ block. They are used when you print
 the table of namespaces with the \listnamespaces command.

Yet another place to stuff away meta-info … alright, it’s been
wikified. Thanks! Philipp


 
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgphjhfZ8xvhF.pgp
Description: PGP 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] Ugly bug with TikZ in recent ConTeXt MKIV

2010-11-18 Thread Mojca Miklavec
On Thu, Nov 18, 2010 at 09:48, Hans Hagen wrote:
 On 18-11-2010 12:00, Mojca Miklavec wrote:

 Dear Hans,

 The following example worked perfectly fine with the version of
 ConTeXt MKIV I was using one hour ago (no idea which version, but
 something less than two weeks old). It still works OK with MKII and it
 works much worse in the real document that I'm using.

 In my document both images are completely screwed up. Here it's only
 the second one and if I comment out the first one, the second figure
 comes out fine, so I'm a bit clueless about what magic is going on
 inbetween.

 Nothing in TikZ has changed (I'm still using the frozen version from
 November 2009 from minimals), so it must have something to do with
 ConTeXt MKIV. It just messes up with some boxes on the page in some
 unpredictable way.

Hans,

thanks a lot for the really nice simple example.

 I have no clue ... maybe some magic tikz variable (or shared register) that
 does not get reset?

I have no clue either, but this has never been a problem before and it
still works perfectly in both pdfTeX and XeTeX. So something really
looks suspicious on the MKIV part.

I would love to help debugging, but I have zero clue what and where to look for.

 \usemodule[tikz]

 \starttext

 \startbuffer[1]
    \starttikzpicture
        \draw[-] (0,0)--(1cm,1cm);
    \stoptikzpicture
 \stopbuffer

 % \ruledhbox{\getbuffer[1]}

 \ruledhbox
  {\ruledhbox{\getbuffer[1]}
   \ruledhbox{\getbuffer[1]}}

 \ruledhbox
  {\ruledhbox{\getbuffer[1]}%
   \ruledhbox{\getbuffer[1]}}

 \ruledhbox{\getbuffer[1]}

 \stoptext

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


[NTG-context] Module Namespaces

2010-11-18 Thread luigi scarso
Nice
http://wiki.contextgarden.net/Module_Namespaces

Can I register lscarso[a-zA-Z]* ?
-- 
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
___


Re: [NTG-context] Module Namespaces

2010-11-18 Thread Philipp Gesang
On 2010-11-18 10:13:07, luigi scarso wrote:
 Nice
 http://wiki.contextgarden.net/Module_Namespaces
 
 Can I register lscarso[a-zA-Z]* ?
Maybe we should consider an auction; in the future this could get
as busy as trading domain names.

Philipp

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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpC1kHhx6ATu.pgp
Description: PGP 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] Ugly bug with TikZ in recent ConTeXt MKIV

2010-11-18 Thread Hans Hagen

On 18-11-2010 10:03, Mojca Miklavec wrote:

On Thu, Nov 18, 2010 at 09:48, Hans Hagen wrote:

On 18-11-2010 12:00, Mojca Miklavec wrote:


Dear Hans,

The following example worked perfectly fine with the version of
ConTeXt MKIV I was using one hour ago (no idea which version, but
something less than two weeks old). It still works OK with MKII and it
works much worse in the real document that I'm using.

In my document both images are completely screwed up. Here it's only
the second one and if I comment out the first one, the second figure
comes out fine, so I'm a bit clueless about what magic is going on
inbetween.

Nothing in TikZ has changed (I'm still using the frozen version from
November 2009 from minimals), so it must have something to do with
ConTeXt MKIV. It just messes up with some boxes on the page in some
unpredictable way.


Hans,

thanks a lot for the really nice simple example.


I have no clue ... maybe some magic tikz variable (or shared register) that
does not get reset?


I have no clue either, but this has never been a problem before and it
still works perfectly in both pdfTeX and XeTeX. So something really
looks suspicious on the MKIV part.


After some tracing and hard thinking Taco and I found interesting spaces 
showing up in the output that result from a kludge in tikz:


Normally one will use \ignorespaces to catch spurious spaces but tikz 
invokes \nullfont assuming that its fontdimen 2 is zero. But, in context 
it no longer is (prelude to delayed font loading).


You can put this in cont-new.mkiv as a temporary hack

\let\normalnullfont\nullfont

\def\nullfont
  {\fontdimen1\normalnullfont\zeropoint
   \fontdimen2\normalnullfont\zeropoint
   \fontdimen3\normalnullfont\zeropoint
   \fontdimen4\normalnullfont\zeropoint
   \fontdimen5\normalnullfont\zeropoint
   \fontdimen6\normalnullfont\zeropoint
   \fontdimen7\normalnullfont\zeropoint
   \normalnullfont}


-
  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] Scaling with \filterpages not working?

2010-11-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm trying similar code as described on 
http://wiki.contextgarden.net/Including_pages_from_PDF_document:

---
\starttext
  \filterpages[1.pdf][2][width=15cm]
  \page
  \filterpages[1.pdf][2][width=5cm]
\stoptext
---

But I'm still getting the same picture - scaled to (probably) \textwidth.

Bug? My mistake?

So how to scale to paper width (or any arbitrary value)?

- ConTeXt  ver: 2010.11.03 19:42 MKIV  fmt: 2010.11.12  int: english/english 
(latest), WinXP

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 244 062 238
Fax: +420 244 461 038

1.pdf
Description: Adobe PDF document


IncSc.mkiv
Description: Binary data


IncSc.pdf
Description: Adobe PDF document
___
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] ppchtex questions

2010-11-18 Thread Jörg Hagmann

Hi Alan,

Thanks for the explanations.


Try style=sans. We also have color= and rulecolor=.


syle=sans works, but not for aligned atoms, e.g. \SL{OH}; a bug? For the 
time being, I can use \SL{\ss OH}.



There are some problems still in mkiv, notably with CARBON, NEWMANSTAGGER,
NEWMANECLIPSE, and CHAIR. Hans (and I) intend to work on this but it is not
too high of a priority for the moment. Let me know if you have other problems
in using ppchtex.


I'm sure there will be more questions!

I'm using context version 2010.09.05 13.23, have there been any 
improvements since then?


Thanks, Jörg
___
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] ppchtex questions

2010-11-18 Thread Alan BRASLAU
On Thursday 18 November 2010 10:54:23 Jörg Hagmann wrote:
 
 syle=sans works, but not for aligned atoms, e.g. \SL{OH}; a bug? For the
 time being, I can use \SL{\ss OH}.
 

There are indeed bugs in the use of \SL{} under mkiv.  For example, one 
currently needs to use \SL{\small CH$_2$} rather than \SL{CH_2} as one would 
expect (use of both \small and explicit math mode). The same is true for any 
text macro, i.e. \rotate[rotation=+30]{\small N$|$NH}.

Hans is on copy as he can probably find the bug rapidly, that is once he can 
find the time to look into this.

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] Ugly bug with TikZ in recent ConTeXt MKIV

2010-11-18 Thread Hans Hagen

Mojca,

Can you test the beta on the ftp server and see if tikz works better?

(I hate this kind of patching as it is a work around assumptions that 
are somewhat wrong, in this case the fact that nullfont has zero 
parameters, and it makes the mkiv code messier.)


Hans



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


Re: [NTG-context] [texhax] Choosing TeX um ... stuff

2010-11-18 Thread Philip Taylor (Webmaster, Ret'd)



Paul Isambert wrote:

 And plain TeX doesn't have a lot of documentation. Anyway there isn't much to
 document. Basically using plain TeX means you need a very good knowledge of 
the
 engine, and you'll write tons of macros (in a way there are no plain TeX 
users,
 only users of personal formats based on plain).

All true, except for the first part, where there is plenty of
documentation available : The TeXbook, TeX by Topic, SvB's
mammoth \TeX} in Practice, plus many others listed at Nelson
Beebe's http://ftp.math.utah.edu/pub//tex/bib/texbook1.html

 Philip, plain TeX isn't exactly mainstream anymore, and ConTeXt probably beats
 it on this point. And ConTeXt is already more than 15 years old, so it's not 
so
 new, although it does keep moving.

I'll address these later : have to leave now.
** Phil.
___
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] Defining a command for enumeration+block

2010-11-18 Thread Glen Callaghan
Hello,

I'm having some problems using blocks and enumeration together.

I can get it to work using something like this (see complete minimal example 
further down):

\beginBlock 
\startEnum 
Some text A
\stopEnum 
\endBlock 

But it doesn't seem to work if I try to define a command (macro?) to keep my 
source file a bit tidier.

\define[1]\Revs{
\beginBlock 
\startEnum 
#1
\stopEnum
\endBlock
}

\Revs{Missing Text B}

I don't get any output from the call \Revs.  No doubt I'm doing something 
silly.. 

I've also noticed that it breaks if I put the \beginBlock \startEnum commands 
on the same line, as in:

\beginBlock \startEnum 
Some text A
\stopEnum \endBlock 


I've been trying this on TeX Live 2010.


thanks
Glen

 -

\defineblock[Block]
\defineenumeration[Enum][location=left,text=Test] 

\define[1]\Revs{
\beginBlock 
\startEnum 
#1
\stopEnum
\endBlock
}

\starttext

\section{Use}
\useblocks[Block]
\reset[Enum]


\section{Define}

\beginBlock 
\startEnum 
Some text A
\stopEnum 
\endBlock 

\Revs{Missing Text B}

\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] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread Andrew Starks
Hello,

Whenever I compile a document, it appears that mtxrun and simple fonts
must rebuild/remake/generate every time. mtxrun starts off with:


MTXrun | warning: source mismatch (luv:
144e2249a1a87cb1144311e3cfb4f0e1  bin:
40142b7d400e559a49cf2e9f12599280), forcing remake

It appears to not throw errors about saving the cache. Just one
example in hundreds:

MTXrun | resolvers: preparing 'files' for '/usr/local/texlive/2010/texmf-dist'
MTXrun | resolvers: category 'files', cachename
'/usr/local/texlive/2010/texmf-dist' saved in
'/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/trees/26993469c6208234eef0d0acf8456c4d.lua'

It appears that this command tails with:

MTXrun | format path:
/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/formats
MTXrun | resolvers: using given filetype 'tex'
MTXrun | using tex source file:
/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-en.tex
MTXrun | resolvers: using given filetype 'tex'
MTXrun | resolvers: remembering file 'cont-en.lus'
MTXrun | resolvers: qualified name
'/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-en.lus'

Then luatex --ini begins:

MTXrun | running command: luatex --ini
--lua=/usr/local/texlive/2010/texmf-dist/tex/context/base/luat-cod.lua
/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-en.tex
\dump
This is LuaTeX, Version beta-0.64.0-2010111215  (INITEX)
 \write18 enabled.

It loads a great number of macros without error and tails with:

Beginning to dump on file cont-en.fmt
 (format=cont-en 2010.11.18)
31667 strings using 410675 bytes
752503 memory locations dumped; current usage is 198375520
29129 multiletter control sequences
\font\nullfont=nullfont
0 preloaded fonts
0 words of pdf memory
7 indirect objects
mkiv lua stats : used config file  -
/usr/local/texlive/2010/texmfcnf.lua;/usr/local/texlive/2010/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path   -
/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a
mkiv lua stats : input load time   - 0.247 seconds
mkiv lua stats : stored bytecode data  - 229 modules, 54 tables, 283 chunks
mkiv lua stats : node list callback tasks  - 6 unique task lists, 2
instances (re)created, 6 calls
mkiv lua stats : cleaned up reserved nodes - 0 nodes, 9 lists of 410
mkiv lua stats : node memory usage - 16 glue_spec
mkiv lua stats : used backend  - pdf (backend for directly
generating pdf output)
mkiv lua stats : callbacks - direct: 534, indirect:
117518, total: 118052
mkiv lua stats : result saved in file  - cont-en.pdf
mkiv lua stats : luatex banner - this is luatex, version
beta-0.64.0-2010111215
mkiv lua stats : control sequences - 29129 of 65536
mkiv lua stats : current memory usage  - 40 MB (ctx: 41 MB)
mkiv lua stats : runtime   - 24.292 seconds

Then the document is processed and it goes quickly up until the end of
this block:

 luatex 
--fmt=/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/formats/cont-en
--lua=/Users/andrew/Library/texlive/2010/texmf-var/luatex-cache/context/210a81d6dcb1059dc80fab3f5470ab7a/formats/cont-en.lui
--backend=pdf /Users/andrew/Dropbox/Documentation/context/Excursion.texThis
is LuaTeX, Version beta-0.64.0-2010111215
 \write18 enabled.

sorters  setting language 'en'
(/Users/andrew/Dropbox/Documentation/context/Excursion.tex
jobcontrol   resuming randomizer with 0.74766131478719
publications: loading formatting style from bxml-apa
(/usr/local/texlive/2010/texmf-dist/tex/context/base/bxml-apa.mkiv)

ConTeXt  ver: 2010.07.30 11:35 MKIV  fmt: 2010.11.18  int: english/english

system  : cont-new loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/texlive/2010/texmf-dist/tex/context/user/cont-sys.rme
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-def.mkiv)
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-lua.mkiv)
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-siz.mkiv)
(/usr/local/texlive/2010/texmf-dist/tex/context/base/type-otf.mkiv))
system  : Excursion.top loaded
(Excursion.top)
fonts   : preloading latin modern fonts
{/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/local/texlive/2010/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texlive/2010/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
bodyfont: 12pt rm is loaded
language: language en is active
system  : module simplefonts loaded

Re: [NTG-context] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread luigi scarso
On Thu, Nov 18, 2010 at 12:22 PM, Andrew Starks andrew.sta...@trms.com wrote:
 Hello,

 Whenever I compile a document, it appears that mtxrun and simple fonts
 must rebuild/remake/generate every time. mtxrun starts off with:
Uh, this is the same problem that I have when I cross-compile luatex
under linux for windows32.
Strange enough that it happens with Mac too.

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


Re: [NTG-context] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread Taco Hoekwater

On 11/18/2010 12:30 PM, luigi scarso wrote:

On Thu, Nov 18, 2010 at 12:22 PM, Andrew Starksandrew.sta...@trms.com  wrote:

Hello,

Whenever I compile a document, it appears that mtxrun and simple fonts
must rebuild/remake/generate every time. mtxrun starts off with:

Uh, this is the same problem that I have when I cross-compile luatex
under linux for windows32.
Strange enough that it happens with Mac too.


both problems come from bad TEXMFCACHE settings. Please search back
through the mailing list archives, this problem has been discussed not
so long ago.

___
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] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread luigi scarso
On Thu, Nov 18, 2010 at 12:33 PM, Taco Hoekwater t...@elvenkind.com wrote:
 On 11/18/2010 12:30 PM, luigi scarso wrote:

 On Thu, Nov 18, 2010 at 12:22 PM, Andrew Starksandrew.sta...@trms.com
  wrote:

 Hello,

 Whenever I compile a document, it appears that mtxrun and simple fonts
 must rebuild/remake/generate every time. mtxrun starts off with:

 Uh, this is the same problem that I have when I cross-compile luatex
 under linux for windows32.
 Strange enough that it happens with Mac too.

 both problems come from bad TEXMFCACHE settings. Please search back
 through the mailing list archives, this problem has been discussed not
 so long ago.
My experience on windows32 mkiv is that changing the default luatex
with my cross-compiled exe (gnu gcc 4.1 if I remember correctly)
format is rebuilded at every run and when I come back to the canonical
luatex things go well again.
I don't touch TEXMFCACHE at all.
Anyway for me cross-compiling is still experimental.

-- 
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] Help Winedt 6.0 MikTeX 2.9 ConTeXt

2010-11-18 Thread barney schwartz
MikTeX 2.9 says ConTeXt is once more available. Winedt 6.0 provides a
drop-down menu However, ConTeXt fails to execute.

I having been waiting sin MikTeX dropped ConteXt support and was SO happy to
see it included once again.

Anyone got any ideas how to make ConTeXt functional using MikTeX 2.9 and
Winedt 6.0??
___
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] Scaling with \filterpages not working?

2010-11-18 Thread Peter Rolf
Am 18.11.2010 10:53, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
 Hello,
 
 I'm trying similar code as described on
 http://wiki.contextgarden.net/Including_pages_from_PDF_document:
 
 ---
 \starttext
   \filterpages[1.pdf][2][width=15cm]
   \page
   \filterpages[1.pdf][2][width=5cm]
 \stoptext
 ---
 
 But I'm still getting the same picture - scaled to (probably) \textwidth.
 
 Bug? My mistake?

Only the horizontal shift of \copypages looks fishy (as all other values
seem to fit).

 So how to scale to paper width (or any arbitrary value)?

maybe


\definelayout[fullpage]
  [height=\paperheight,
   width=\paperwidth,
   header=0mm,
   footer=0mm,
   margin=0mm,
   topspace=0mm,
   bottomspace=0mm,
   backspace=0mm,
  ]


\starttext
\showframe
  AAA\page
  \setuplayout[fullpage]
  \copypages[1.pdf]
  \setuplayout[reset]
  \page
  BBB
\stoptext



Best wishes,  Peter


 - ConTeXt  ver: 2010.11.03 19:42 MKIV  fmt: 2010.11.12  int:
 english/english (latest), WinXP
 
 Lukas
 
 
 
 
 ___
 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] Scaling with \filterpages not working?

2010-11-18 Thread Peter Münster
On Thu, Nov 18 2010, Peter Rolf wrote:

   \setuplayout[fullpage]

fullpage is not needed. There is already \setuplayout[page].
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] Scaling with \filterpages not working?

2010-11-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Thank you, this works nicely.

Lukas


On Thu, 18 Nov 2010 14:12:36 +0100, Peter Rolf indi...@gmx.net wrote:


Am 18.11.2010 10:53, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

Hello,

I'm trying similar code as described on
http://wiki.contextgarden.net/Including_pages_from_PDF_document:

---
\starttext
  \filterpages[1.pdf][2][width=15cm]
  \page
  \filterpages[1.pdf][2][width=5cm]
\stoptext
---

But I'm still getting the same picture - scaled to (probably) \textwidth.

Bug? My mistake?


Only the horizontal shift of \copypages looks fishy (as all other values
seem to fit).


So how to scale to paper width (or any arbitrary value)?


maybe


\definelayout[fullpage]
  [height=\paperheight,
   width=\paperwidth,
   header=0mm,
   footer=0mm,
   margin=0mm,
   topspace=0mm,
   bottomspace=0mm,
   backspace=0mm,
  ]


\starttext
\showframe
  AAA\page
  \setuplayout[fullpage]
  \copypages[1.pdf]
  \setuplayout[reset]
  \page
  BBB
\stoptext



Best wishes,  Peter



--
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 244 062 238
Fax: +420 244 461 038

___
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 version of the Gantt chart module

2010-11-18 Thread Florian Wobbe
On Nov 12, 2010, at 19:38 , Reviczky, Adam wrote:

 Hi,
 
 I've made a MetaPost version for creating Gantt charts.
 
 Florian: The label alignments are fixed in this module. Further, it should be 
 trivial to place the names into the ganttbars, for both versions.

Thanks! Yes you are right, changing the macros is easy. I have one question 
though: Why do you prefer MetaPost over TikZ although the hatching 
functionality is limited in the MetaPost version?

Florian

___
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] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread luigi scarso
On Thu, Nov 18, 2010 at 12:50 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Thu, Nov 18, 2010 at 12:48 PM, Hans Hagen pra...@wxs.nl wrote:
 On 18-11-2010 12:22, Andrew Starks wrote:

 Hello,

 Whenever I compile a document, it appears that mtxrun and simple fonts
 must rebuild/remake/generate every time. mtxrun starts off with:

 can you check if texlua and luatex are the same binaries?
 me stupid
OK, now I have the same binaries but
a engine mismatch:

MTXrun | warning: engine mismatch (luv: This is LuaTeX, Version
beta-0.64.0-2010111618 (rev 3961)  bin: This is LuaTe
, Version beta-0.64.0-2010111223 (Web2C 2010) (rev 3956)), forcing remake
MTXrun | resolvers: loading configuration file
'c:/luatex/minimals-beta/context/tex/texmf/web2c/texmfcnf.lua'

rev 3961 is mine , rev 3956 is the canonical one

I'm bit confused, it seems windows-only stuff
-- 
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
___


Re: [NTG-context] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread luigi scarso
On Thu, Nov 18, 2010 at 5:31 PM, Hans Hagen pra...@wxs.nl wrote:
 On 18-11-2010 5:13, luigi scarso wrote:

 OK, now I have the same binaries but
 a engine mismatch:

 MTXrun | warning: engine mismatch (luv: This is LuaTeX, Version
 beta-0.64.0-2010111618 (rev 3961)  bin: This is LuaTe
 , Version beta-0.64.0-2010111223 (Web2C 2010) (rev 3956)), forcing remake
 MTXrun | resolvers: loading configuration file
 'c:/luatex/minimals-beta/context/tex/texmf/web2c/texmfcnf.lua'

 looks like they're not the same

 how about making copies: copy luatex.exe to texlua.exe and texluac.exe
Already done

 Directory di c:\luatex\minimals-beta\context\tex\texmf-mswin\bin

16/11/2010  19:09 4.906.496 luatex.exe

 Directory di c:\luatex\minimals-beta\context\tex\texmf-mswin\bin

16/11/2010  19:09 4.906.496 texlua.exe

 Directory di c:\luatex\minimals-beta\context\tex\texmf-mswin\bin

16/11/2010  19:09 4.906.496 texluac.exe


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


Re: [NTG-context] Ugly bug with TikZ in recent ConTeXt MKIV

2010-11-18 Thread Vedran Miletić
2010/11/18 Hans Hagen pra...@wxs.nl

 After some tracing and hard thinking Taco and I found interesting spaces
 showing up in the output that result from a kludge in tikz:

 Normally one will use \ignorespaces to catch spurious spaces but tikz
 invokes \nullfont assuming that its fontdimen 2 is zero. But, in context it
 no longer is (prelude to delayed font loading).

 You can put this in cont-new.mkiv as a temporary hack

 \let\normalnullfont\nullfont

 \def\nullfont
  {\fontdimen1\normalnullfont\zeropoint
   \fontdimen2\normalnullfont\zeropoint
   \fontdimen3\normalnullfont\zeropoint
   \fontdimen4\normalnullfont\zeropoint
   \fontdimen5\normalnullfont\zeropoint
   \fontdimen6\normalnullfont\zeropoint
   \fontdimen7\normalnullfont\zeropoint
   \normalnullfont}


Perhaps this should be forwared to Christian Feuersaenger. He is very open
to bug reports and will probably be willing to fix it in some way in TikZ.

Regards,

-- 
Vedran Miletić
___
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] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread luigi scarso
On Thu, Nov 18, 2010 at 5:38 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Thu, Nov 18, 2010 at 5:31 PM, Hans Hagen pra...@wxs.nl wrote:
 On 18-11-2010 5:13, luigi scarso wrote:

 OK, now I have the same binaries but
 a engine mismatch:

 MTXrun | warning: engine mismatch (luv: This is LuaTeX, Version
 beta-0.64.0-2010111618 (rev 3961)  bin: This is LuaTe
 , Version beta-0.64.0-2010111223 (Web2C 2010) (rev 3956)), forcing remake
 MTXrun | resolvers: loading configuration file
 'c:/luatex/minimals-beta/context/tex/texmf/web2c/texmfcnf.lua'

 looks like they're not the same

 how about making copies: copy luatex.exe to texlua.exe and texluac.exe
 Already done

  Directory di c:\luatex\minimals-beta\context\tex\texmf-mswin\bin

 16/11/2010  19:09         4.906.496 luatex.exe

  Directory di c:\luatex\minimals-beta\context\tex\texmf-mswin\bin

 16/11/2010  19:09         4.906.496 texlua.exe

  Directory di c:\luatex\minimals-beta\context\tex\texmf-mswin\bin

 16/11/2010  19:09         4.906.496 texluac.exe
It seems that  I  need also to delete luatex.dll
Doing so all things go well


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


Re: [NTG-context] Ugly bug with TikZ in recent ConTeXt MKIV

2010-11-18 Thread Hans Hagen

On 18-11-2010 5:56, Vedran Miletić wrote:

2010/11/18 Hans Hagenpra...@wxs.nl


After some tracing and hard thinking Taco and I found interesting spaces
showing up in the output that result from a kludge in tikz:

Normally one will use \ignorespaces to catch spurious spaces but tikz
invokes \nullfont assuming that its fontdimen 2 is zero. But, in context it
no longer is (prelude to delayed font loading).

You can put this in cont-new.mkiv as a temporary hack

\let\normalnullfont\nullfont

\def\nullfont
  {\fontdimen1\normalnullfont\zeropoint
   \fontdimen2\normalnullfont\zeropoint
   \fontdimen3\normalnullfont\zeropoint
   \fontdimen4\normalnullfont\zeropoint
   \fontdimen5\normalnullfont\zeropoint
   \fontdimen6\normalnullfont\zeropoint
   \fontdimen7\normalnullfont\zeropoint
   \normalnullfont}



Perhaps this should be forwared to Christian Feuersaenger. He is very open
to bug reports and will probably be willing to fix it in some way in TikZ.


feel free to do so; probably something like this is needed:

\def\pushnullfont
  {\edef\popnullfont
 {\fontdimen2\nullfont\the\fontdimen2\nullfont
  \fontdimen3\nullfont\the\fontdimen3\nullfont
  \fontdimen4\nullfont\the\fontdimen4\nullfont}%
   \fontdimen2\nullfont 0pt\relax
   \fontdimen3\nullfont 0pt\relax
   \fontdimen4\nullfont 0pt\relax}

\pushnullfont

\popnullfont

as fontdimens are assigned global.

Hans

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


Re: [NTG-context] stack words for explanation

2010-11-18 Thread Wolfgang Schuster

Am 18.11.2010 um 02:20 schrieb Jonas Stein:

 Hi,
 
 i would like to write an FAQ for maritime distress radio.
 The spoken words and the variables should be highlighted in 
 a nice way. What would you suggest me to do in context?
 
 My first idea a bracket or stacked words like this example:
 
 MAYDAY MAYDAY MAYDAY
 THIS IS TITANIC TITANIC   TITANIC
 \--- ship name 3 times/
 
 Whats your idea?


There are different ways to highlight your text, colors, a different
style (e.g. italic) or a different (typewriter or sans) but you can
also use underline.

For annotations above a words you can use the ruby module, here is a example:

\usemodule[ruby]

\setupruby[align=center]

\starttext
THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
\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] Defining a command for enumeration+block

2010-11-18 Thread Wolfgang Schuster

Am 18.11.2010 um 12:15 schrieb Glen Callaghan:

 Hello,
 
 I'm having some problems using blocks and enumeration together.
 
 I can get it to work using something like this (see complete minimal example 
 further down):
 
   \beginBlock 
   \startEnum 
   Some text A
   \stopEnum 
   \endBlock 
 
 But it doesn't seem to work if I try to define a command (macro?) to keep my 
 source file a bit tidier.

You can’t use blocks within other commands but when you use only enumerations 
in your block you can simplify your code a little bit.

\defineblock[Block]
\defineenumeration[Enum][location=left,text=Test] 

\setupblock[Block][before=\startEnum,after=\stopEnum]

\starttext

\beginBlock
Some text A
\endBlock

\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] Module Namespaces

2010-11-18 Thread Wolfgang Schuster

Am 18.11.2010 um 10:13 schrieb luigi scarso:

 Nice
 http://wiki.contextgarden.net/Module_Namespaces
 
 Can I register lscarso[a-zA-Z]* ?

Why? The obvious method is to use the same name for the namespace as you use 
for your module name or the command names, e.g. the fancybreak module has the 
commands \definefancybreak, \setupfancybreak and the namespace „fancybreak“ and 
Adityas visualcounter module can use the namespace „visualcounter“ (there is no 
need to use capitals).

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] Gnuplot module: Patching of Gnuplot binary still needed?

2010-11-18 Thread Paul Menzel
Am Montag, den 15.11.2010, 12:29 +0100 schrieb Mojca Miklavec:
 On Sun, Nov 14, 2010 at 23:04, Paul Menzel wrote:

  I read about the Gnuplot module [1] and I am wondering whether patching
  the Gnuplot binary is still necessary.
 
 Yes.
 
 Can you please send the same message to the gnuplot mailing list?

I will.

 I have sent the patch upstream once in 2006,

Could you please tell me subject line or even better provide a link to
the archive. I could not find your post to the archive.

 but they had two arguments against including the patch:

[…]


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
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] Module Namespaces

2010-11-18 Thread luigi scarso
On Thu, Nov 18, 2010 at 7:08 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 18.11.2010 um 10:13 schrieb luigi scarso:

 Nice
 http://wiki.contextgarden.net/Module_Namespaces

 Can I register lscarso[a-zA-Z]* ?

 Why? The obvious method is to use the same name for the namespace as you use 
 for your module name or the command names, e.g. the fancybreak module has the 
 commands \definefancybreak, \setupfancybreak and the namespace „fancybreak“ 
 and Adityas visualcounter module can use the namespace „visualcounter“ (there 
 is no need to use capitals).

I just want to register my namespace(s) to be sure to avoid conflicts
not only for modules but also for lua code

Think for example to something like
document.lscarso = document.lscarso or {}
function document.lscarso.lua_pixGetPixel(pixs,x,y)
local scratch = 0
local res = ''
scratch = leptonica.uti_getref_l_uint32()
if (leptonica.pixGetPixel(pixs,x,y,scratch) == 0) then
   res =  leptonica.uti_valref_l_uint32(scratch)
else
 print(! Error on ,x,y)
 res = ''
end
return res
end

with a registered namespace (or, better, a suffix) I will be sure to
avoid conflicts forever

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


Re: [NTG-context] font, line spacing issues

2010-11-18 Thread Wolfgang Schuster

Am 18.11.2010 um 01:25 schrieb Peter Davis:

 As an experiment, I'm trying to duplicate a sample InDesign document with 
 ConTeXt.  I'm getting the overall layout (though my image positions need 
 tweaking), but I'm having some problems with the fonts.
 
 I'm following the examples in 
 http://www.pragma-ade.com/general/manuals/showfont.pdf , but I haven't seen 
 the \switchtotypeface operator documented anywhere else.  I'm on a Windows 7 
 machine, with minimals installed.  I'm trying to use some of the system fonts 
 (Minion, Impact, Myriad), but all I seem to get is CMR.

Use \switchtobodyfont to switch to a different font.

With your font settings context expects predefined lists with links to the font 
files (from symbolic names, e.g. \rm, \ss, \tf, \it etc. to the real files) but 
in my example below you can see a method (specserif and specsans) which does 
what you expect but i didn’t use it for Minion and Myriad because the system 
isn’t perfect yet and you get unwanted results.

 Also, the line spacing on the paragraph at the top of the second page seems 
 very weird.  It's an address, and the bottom line is much too high relative 
 to the spacing of the other lines.

See my example, i set the font switch with \starttextbox or to be true with 
\framed[foregroundstyle={...}].

\definepapersize[card][width=792pt,height=612pt]

\setuppapersize[card][card]

\definetypeface[impact][rm][specserif][Impact][default]
%\definetypeface[minion][rm][specserif][Minion Pro][default] % This does not 
produce the desired result,
%\definetypeface[myriad][ss][specsans] [Myriad Pro][default] % therefore i load 
the adobe typescripts

\usetypescriptfile[type-adobe]

\definetypeface[minion][rm][serif][minion][default]
\definetypeface[myriad][ss][sans] [myriad][default]

\definecolor[red][c=0,m=.87,y=.87,k=0]

\definelayer[textbox][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=textbox]

\def\starttextbox
  {\dosingleargument\dostarttextbox}

\def\dostarttextbox[#1]%
  
{\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}%
   \startbuffer[textbox][starttextbox][stoptextbox]}

\starttext

\starttextbox[x=195.3pt,y=115.2pt,width=560.7pt,foregroundstyle={\switchtobodyfont[impact,48pt]},align=middle]
Yo, First!
\stoptextbox

\page[empty]

\starttextbox[x=447.6pt,y=228pt,width=229.5pt,foregroundstyle={\switchtobodyfont[minion,14pt]}]
Title. First Last\\
Company\\
Street Address\\
City, State, ZIP
\stoptextbox

\starttextbox[x=85.2pt,y=228pt,width=229.5pt,foregroundstyle={\switchtobodyfont[minion,14pt]}]
Dear First,
\blank
Are you aware that now is the {\bf winter of our discontent}? It's been made 
{\it glori}{\red\it ous} {\red\bi sum}{\bi mer} by this son of York.
\blank
I say let's put it back the way it was. Are you with me, Last?
\blank
Good.
\blank
-pd
\stoptextbox

\starttextbox[x=249.6pt,y=62.4pt,width=298.8pt,foregroundstyle={\switchtobodyfont[myriad,20pt]}]
Peter Davis\\
Head Hoo-Ha\\
Hoo-Ha House, Inc.\\
123 Fourfivesix St.\\
Lake Placebo, NY 12345-6789
\stoptextbox

\page[empty]

\stoptext

PS. Please put blank lines in your file to make it easier to read the source.

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] Module Namespaces

2010-11-18 Thread Aditya Mahajan

On Thu, 18 Nov 2010, Wolfgang Schuster wrote:


(there is no need to use capitals).


Thanks. Old habits die hard.

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


[NTG-context] minimal update

2010-11-18 Thread Herbert Voss
When I update my minimal via the script first-setup.sh
new files in the directory /tex/texmf-context/tex/context/user
are deleted. If I understand the name correct, then the
script should keep files in this directory

Herbert
___
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] Module Namespaces

2010-11-18 Thread luigi scarso
On Thu, Nov 18, 2010 at 10:03 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Thu, 18 Nov 2010, Wolfgang Schuster wrote:

 (there is no need to use capitals).

 Thanks. Old habits die hard.
Camel case is not bad at all --- it's a matter of points of view

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


Re: [NTG-context] \definenamespace (was: The visual counter module)

2010-11-18 Thread Aditya Mahajan

On Wed, 17 Nov 2010, Wolfgang Schuster wrote:


I’m not Aditya but i hope you will also accept my explanation.


This is a much better explanation than I could have written. Just a few 
points:



I will start with the first argument and the „type“ key, e.g.

  \definenamespace
[fancybreak]
[type=module]

will produce the namespace „fancybreak“ with the short form
(the name itself has the same length but for TeX it’s only a single
tokens instead of many with the ... form) \fancybreak.

The is currently only one argument with the name „module“ but
another one like „core“ or „base“ can appear in the future but
this will be then reserved for Hans to replace the \definesystemvariable
command from the core to produce a namespace in the form „@@xx“.

When you define a namespace you should use three or more letters
because two letter namespaces are reserved for Hans itself,
e.g. is already used by the database module.


The second key you need is „name“ because it’s argument is used
when all the „\setup...“ and „\define...“ commands are created.


The key „style“ creates the command „\dosetNAMEattributes“ which
takes two arguments where the first is to change the style (font)
in your new created command and the second for the color.

The setup

  \definenamespace
[fancybreak]
[type=module,
 name=fancybreak,
 style=yes]

creates the command \dosetfancybreakattributes which can be used like
\dosetfancybreakattributes\c!style\c!color and will take the „style“
and „color“ argument from the \setupfancybreak command.


The setup key creates the command „\setupNAME“ where you can control
whether the commands accepts a list of environment in the two argument
form or only a single environment, e.g. „setup=yes“ let you write

  \setupfancybreak[one][..,..=..,..]

and

  \setupfancybreak[..,..=..,..]

while „setup=list“ let you use

  \setupfancybreak[one,two][..,..=..,..]

and

  \setupfancybreak[..,..=..,..]


The key “command“ creates a bunch of macros, besides the „\define...“
commands to create new environment and commands with your code it creates
the following macros to access the values from your setup commands:

  - \Nameparameter
  - \namedNAMEparameter
  - \detokenizedNAMEparameter


In order to use these commads, you must set a value for \currentname. 
For example, if you have


\definename[one][width=10cm]

In order to access the value of width of one, you must do:

\def\currentname{one}

\nameparameter{width}

(I do not remember the distinction between \nameparameter,
\namednameparamter, and \detokenizednameparameters).


The command key has like the setup key the two values yes and list,
with „command=yes“ you can write

  \defineNAME[one][..,..=..,..]

or (clone a setup like \definehead[mysection][section])

  \defineNAME[two][one]

while „command=list“ allows

   \defineNAME[one,two][..,..=..,..]

or

  \defineNAME[two,three][one]



I did not know that cloning was possible. The \defineenumeration commands 
allows for


\defineenumeration[new][old][..=..]

This clones a selected options from old to new (using copyparamters) and 
then sets the values of the third arguments.


Would it make sense to add support for

\definename[two,three][one][..=..]?



For parent it’s the best to give as argument always the same value
as you defined for the namespace, e.g. for the fancybreak module
one should write „parent=fancybreak“.


I thought that you have to write parent=\fancybreak.

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


[NTG-context] [OT] Adobe Reader X released

2010-11-18 Thread Vedran Miletić
Adobe silently released Reader X, for now only for Windows. It can be
downloaded from:

http://www.adobe.com/go/EN_US-H-GET-READER

Installer for offline installation can be downloaded from.

ftp://ftp.adobe.com/pub/adobe/reader/win/10.x/10.0.0/en_US/

It allows saving PDF after adding comments or highlighting text. AFAIR,
Reader 9 didn't offer that.

Regards,

-- 
Vedran Miletić
___
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] Module Namespaces

2010-11-18 Thread Hans Hagen

On 18-11-2010 10:19, luigi scarso wrote:

On Thu, Nov 18, 2010 at 10:03 PM, Aditya Mahajanadit...@umich.edu  wrote:

On Thu, 18 Nov 2010, Wolfgang Schuster wrote:


(there is no need to use capitals).


Thanks. Old habits die hard.

Camel case is not bad at all --- it's a matter of points of view


best use lowercase systematically

then users can use uppercase or a mix and not clash with built in names

Hans

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


Re: [NTG-context] minimal update

2010-11-18 Thread Hans Hagen

On 18-11-2010 10:14, Herbert Voss wrote:

When I update my minimal via the script first-setup.sh
new files in the directory /tex/texmf-context/tex/context/user
are deleted. If I understand the name correct, then the
script should keep files in this directory


don't use texmf or texmf-context for that; put user files in texmf-local 
or texmf-project


Hans


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


Re: [NTG-context] Module Namespaces

2010-11-18 Thread Aditya Mahajan

On Thu, 18 Nov 2010, Hans Hagen wrote:


On 18-11-2010 10:19, luigi scarso wrote:

On Thu, Nov 18, 2010 at 10:03 PM, Aditya Mahajanadit...@umich.edu  wrote:

On Thu, 18 Nov 2010, Wolfgang Schuster wrote:


(there is no need to use capitals).


Thanks. Old habits die hard.

Camel case is not bad at all --- it's a matter of points of view


best use lowercase systematically

then users can use uppercase or a mix and not clash with built in names


As a module writer, it is not always clear whether you should follow the 
conventions for a user (use upper or mixed case to avoid clash) or a 
developer (use lowercase systematically).


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


Re: [NTG-context] Module Namespaces

2010-11-18 Thread Hans Hagen

On 18-11-2010 10:48, Aditya Mahajan wrote:

On Thu, 18 Nov 2010, Hans Hagen wrote:


On 18-11-2010 10:19, luigi scarso wrote:

On Thu, Nov 18, 2010 at 10:03 PM, Aditya Mahajanadit...@umich.edu
wrote:

On Thu, 18 Nov 2010, Wolfgang Schuster wrote:


(there is no need to use capitals).


Thanks. Old habits die hard.

Camel case is not bad at all --- it's a matter of points of view


best use lowercase systematically

then users can use uppercase or a mix and not clash with built in names


As a module writer, it is not always clear whether you should follow the
conventions for a user (use upper or mixed case to avoid clash) or a
developer (use lowercase systematically).


sure, but then you can use prefixes:

\@@fancybreakhelper

and so

(there was a time that one would save on characters in order not to 
overflow string space but nowadays it's no problem)



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


Re: [NTG-context] Defining a command for enumeration+block

2010-11-18 Thread Wolfgang Schuster

Am 18.11.2010 um 22:44 schrieb Glen Callaghan:

 Interestingly though, the formatting is slightly different between defining 
 the blocks and using (recalling) the blocks.  When I recall the blocks, the 
 text appears a line below the enumeration labels (see example + attachment 
 below).

I can reproduce this but for mkiv (context file) the output in both cases is 
the same.

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] font, line spacing issues

2010-11-18 Thread Peter Davis
On Thu, Nov 18, 2010 at 3:04 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 18.11.2010 um 01:25 schrieb Peter Davis:

 As an experiment, I'm trying to duplicate a sample InDesign document with
 ConTeXt.  I'm getting the overall layout (though my image positions need
 tweaking), but I'm having some problems with the fonts.

 I'm following the examples in
 http://www.pragma-ade.com/general/manuals/showfont.pdf , but I haven't
 seen the \switchtotypeface operator documented anywhere else.  I'm on a
 Windows 7 machine, with minimals installed.  I'm trying to use some of the
 system fonts (Minion, Impact, Myriad), but all I seem to get is CMR.


 Use \switchtobodyfont to switch to a different font.


Thanks very much, Wolfgang!  I really appreciate the clear example.



 PS. Please put blank lines in your file to make it easier to read the
 source.


Sorry about that.  The .tex file has blank lines, but somehow they
disappeared in the process of copying and pasting into mail.

-pd
___
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] Metafont usage

2010-11-18 Thread Martin 'golodhrim' Scholz
Hi List, hi Hans,

   I want to use the open source MetaFont for suetterlin and
   schwellbacher in a document, is there somewhere a guide where to put
   them and how to load them in ConTeXt or could they be included into
   the ConTeXt tree. If I get a hint how I would also provide a .map
   file for them if needed.

   The link to the fonts is
   http://texcatalogue.sarovar.org/entries/sueterlin.html

   Greetings and thanks for the fast help I get here in gerneral...
-- 
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Germany
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 7990138
e-Mail: scholz@googlemail.com

++?++ Out of Cheese Error. Redo From Start.
(Interesting Times)

___
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] Gnuplot module: Patching of Gnuplot binary still needed?

2010-11-18 Thread Florian Wobbe
On Nov 17, 2010, at 11:47 , Mojca Miklavec wrote:

 [...]

 Here is a brief list of changes to the gnuplot CVS version:
 
 * support for ConTeXt and plain TeX
 
 Hurray! Thanks a lot.
 
 * removed dependencies for LaTeX packages other than TikZ
 * needs TikZ Version = 2.0
 * better support for saving terminal options with gnuplot 'save' command
 * fixed overflow on negative coordinates that are outside of the crop box
 * merged all recent patched from murphy-md and Ethan
 
 Unfortunately it is the Context output that does not compile with the most
 recent Context version I installed from TeXLive 2010 and the
 http://tlcontrib.metatex.org/2010/ repository. But I remember it working
 with an older version so I hope this can be fixed easily ...

Thanks, I just updated the CVS version of gnuplot with your files and gave it a 
try: It works with minimals!

 [...]
 
 Feedback and patches welcome!

No patches I'm afraid. But feedback goes here:

1) The label text of the following key element takes the color of the preceding 
key symbol. Minimal example:

 set terminal lua tikz fulldoc size 15cm,7cm context
 set output 'plot.tex'
 set xrange [ 0 : 13 ]
 f1(x)=sqrt(x)
 f2(x)=sqrt(x*0.8)-3
 plot f1(x) lc rgb 'blue', f2(x) 

2) Negative axis labels are set with hyphen instead of proper minus sign, which 
should be longer (see example above).

3) First I thought luatex hangs but then I noticed TikZ is awfully slow when 
drawing plots with large amounts of data points (the tikzpicture had about 3000 
lines). I can speed this up by reducing the size by invoking plot with:

 plot  gawk '(NR-1)%10 == 0 {print $0}' fileWithLotsOfData using [...]

I wonder if there is a smarter way to do this in gnuplot.

4) Is there a possibility to get rid of the vertical artifacts in filledcurves? 
Note: the artifacts are only visible when plotting from data files.

 set terminal lua tikz fulldoc size 15cm,7cm context 
 set output 'plot.tex'
 plot  gawk 'BEGIN {for (i = 1; i = 100; i++) {print i, 0.7*i, 0.8*i+50}}' 
using 1:2:3 with filledcurve lc rgb 'black' t 'filled curve'
 set xrange [ 0 : 13 ]
 plot abs(x) with filledcurve xy=2,5

Best wishes,
Florian

___
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] \definenamespace (was: The visual counter module)

2010-11-18 Thread Aditya Mahajan

On Thu, 18 Nov 2010, Wolfgang Schuster wrote:


\nameparameter use the value from \currentname while \namednameparameter
has two argument where the first argument is the name of a command or 
environment
created with \definename. \detokenized... is important when you pass values
from tex to lua and the value contains a tex command, e.g. \thinspace which
is normally expanded in this case.


Thanks.


The command key has like the setup key the two values yes and list,
with „command=yes“ you can write

 \defineNAME[two][one]


I did not know that cloning was possible. The \defineenumeration commands 
allows for

\defineenumeration[new][old][..=..]

This clones a selected options from old to new (using copyparamters) and then 
sets the values of the third arguments.


\copyparameters is only used for code which doesn’t use the new parameter 
command
with the parent handling but this method isn’t necessary in mkiv


I am not sure how this is supposed to work. Consider this example:

\definenamespace
  [one]
  [type=module,
   name=one,
   setup=yes,
   parent=]

\definenamespace
  [two]
  [type=module,
   name=two,
   command=yes,
   parent=one]

\setupone[whatever=one]

\definetwo[test1]
\definetwo[test2][something=two]
\definetwo[test3][test2]

\starttext
\startlines

\namedtwoparameter{test1}{whatever}
\namedtwoparameter{test2}{whatever}
\namedtwoparameter{test2}{something}
\namedtwoparameter{test3}{something}

\stoplines
\stoptext


This gives


one

two



Why is the value of whatever not set for test2?

Why is the value of something not set for test3?


Would it make sense to add support for

\definename[two,three][one][..=..]?


You can redefine \definename or leave it out from \definenamespace.


I meant that why not \definename as follows:

\def\definename%
  {\dotripleargument\dodefinename}

\def\dodefinenamename[#1][#2][#3]%
 {\doifassignmentelse{#2}
   {\getparameters[name#1][parent=name, #2]}
   {\getparameters[name#1][parent=name#2, #3]}}


What’s also is to write \definename[clone][parent=\parent].


For parent it’s the best to give as argument always the same value
as you defined for the namespace, e.g. for the fancybreak module
one should write „parent=fancybreak“.


I thought that you have to write parent=\fancybreak.


That happens in the backend hidden from the user/author.


Ah, I see. Thanks.

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


Re: [NTG-context] stack words for explanation

2010-11-18 Thread Jonas Stein

 \usemodule[ruby]

 \setupruby[align=center]

 \starttext
 THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
 \stoptext

The example does not work here. Will i have to install ruby manual on debian 
testing?

I could not find information about the ruby module 

-- 
Jonas Stein n...@jonasstein.de

___
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] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread Andrew Starks
On Thu, Nov 18, 2010 at 11:18 AM, luigi scarso luigi.sca...@gmail.com wrote:

 It seems that  I  need also to delete luatex.dll
 Doing so all things go well


 --
 luigi
 ___

Wish I had a luatex.dll to delete. :(

;)

-Andrew
___
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] stack words for explanation

2010-11-18 Thread Aditya Mahajan

On Fri, 19 Nov 2010, Jonas Stein wrote:




\usemodule[ruby]

\setupruby[align=center]

\starttext
THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
\stoptext


The example does not work here. Will i have to install ruby manual on debian 
testing?

I could not find information about the ruby module


http://modules.contextgarden.net/ruby
http://dl.contextgarden.net/modules/t-ruby/doc/context/third/ruby/README

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


Re: [NTG-context] stack words for explanation

2010-11-18 Thread Aditya Mahajan

On Thu, 18 Nov 2010, Aditya Mahajan wrote:


On Fri, 19 Nov 2010, Jonas Stein wrote:




\usemodule[ruby]

\setupruby[align=center]

\starttext
THIS IS \ruby{TITANIC}{MAYDAY MAYDAY MAYDAY} TITANIC TITANIC
\stoptext


The example does not work here. Will i have to install ruby manual on 
debian testing?


I could not find information about the ruby module


http://modules.contextgarden.net/ruby
http://dl.contextgarden.net/modules/t-ruby/doc/context/third/ruby/README


And of course,
http://www.w3.org/TR/ruby/

without which nothing makes sense.
___
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] Defining a command for enumeration+block

2010-11-18 Thread Glen Callaghan


Interestingly though, the formatting is slightly different between defining the 
blocks and using (recalling) the blocks. When I recall the blocks, the text 
appears a line below the enumeration labels (see example + attachment below).

I can reproduce this but for mkiv (context file) the output in both cases is 
the same.

Wolfgang

Weird... when I try it here on mkiv, there is no output where I define the 
blocks (see attachment).

I'm trying this on the current mimimals (downloaded today) on mac os x 
(10.6.5).
[LuaTeX beta-0.64.0-2010111215, ConTeXt  ver: 2010.07.30 11:35 MKIV  fmt: 
2010.11.19]

Could this be some sort of bug?  Is there anything you'd like me to try.

thanks
Glen


blockenum_iv.pdf
Description: blockenum_iv.pdf
___
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] MacTeX / ConTeXt: Very long compile times, cache rebuilds every time

2010-11-18 Thread luigi scarso
On Fri, Nov 19, 2010 at 3:11 AM, Andrew Starks andrew.sta...@trms.com wrote:
 On Thu, Nov 18, 2010 at 11:18 AM, luigi scarso luigi.sca...@gmail.com wrote:

 It seems that  I  need also to delete luatex.dll
 Doing so all things go well


 --
 luigi
 ___

 Wish I had a luatex.dll to delete. :(

 ;)
yours

MTXrun | warning: source mismatch (luv:
144e2249a1a87cb1144311e3cfb4f0e1  bin:
40142b7d400e559a49cf2e9f12599280), forcing remake

was almost the same of mine.
It says
I (mtxrun) have found that the luatex that built the format is
luv: 144e2249a1a87cb1144311e3cfb4f0e1
while currently I will use the luatex
bin:40142b7d400e559a49cf2e9f12599280
They are  different so I must rebuild the format.

luv comes from the cache --- perhaps  a wrong TEXMFCACHE ?
bin coms from executables  luatex files (under windows exe and
dll) --- are you sure that you have the same luatex in you system ?

I don't know the story under Mac, but if it's like Linux that  you
should have only programs.






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


Re: [NTG-context] Is the chart module broken?

2010-11-18 Thread Cecil Westerhof
Op woensdag 3 nov 2010 19:41 CET schreef Hans Hagen:

 In the past I have used the chart module for a little flow chart in a
 presentation. I wanted to make again flow charts. But I did not get it
 working. I just compiled my old version again, but this does not work
 also. The chart is drawn, but the boxes and lines are invisible. That
 is not very usefull. What could be the problem?

 When executing 'texexec --check' I get:
 MTXrun | kpse fallback with progname 'context' initialized in 0.03
seconds
 TeXExec | current distribution: web2c
 TeXExec | context source date: 2009.08.19 17:10
 TeXExec | format path: . /home/cecil/texmf//home/cecil/texmf/web2c
/etc/texmf//home/cecil/texmf/web2c /var/lib/texmf//home/cecil/texmf/web2c
/usr/lib/texmf//home/cecil/texmf/web2c
/usr/local/share/texmf//home/cecil/texmf/web2c
/usr/share/texmf//home/cecil/texmf/web2c /etc/texmf/web2c
/var/lib/texmf/web2c /home/cecil/texmf/web2c/unsetengine
/etc/texmf/web2c/unsetengine /var/lib/texmf/web2c/unsetengine
/usr/lib/texmf/web2c/unsetengine /usr/local/share/texmf/web2c/unsetengine
/usr/share/texmf/web2c/unsetengine /home/cecil/texmf/web2c /etc/texmf/web2c
/var/lib/texmf/web2c /usr/lib/texmf/web2c /usr/local/share/texmf/web2c
/usr/share/texmf/web2c
 TeXExec | start of analysis
 TeXExec | end of analysis
 TeXExec |
 TeXExec | TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD
 TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
 TeXExec | CtxTools | version 1.3.5 - 2004/2008 - PRAGMA ADE

 As a side note: is it possible to generate a JPG file instead of a PDF
 file?

 no clue as no test file ... is write 18 enabled on your system?

Below the stripped down version of the code.

Write 18 was not enabled. I enabled it, but still I do not see the
boxes and the lines.

\usemodule[chart]

%%
%%
% This is where the document starts.


\starttext

\setupFLOWcharts
[
dx=2\bodyfontsize,
dy=2\bodyfontsize,
height=2.1\lineheight,
maxwidth=\textwidth,
nx=3,
ny=5,
]
\setupFLOWshapes
[
background=color,
backgroundcolor=darkblue,
]
\startFLOWchart[SPICE]
\startFLOWcell
 \name{source}
 \location{2,1}
 \text{{\tfc S}ource}
 \connection[bt]{PICTURE}
\stopFLOWcell
\startFLOWcell
 \name{PICTURE}
 \location{2,2}
 \text{{\tfc P}icture}
 \connection[bt]{IMPLEMENTATION}
\stopFLOWcell
\startFLOWcell
 \name{IMPLEMENTATION}
 \location{2,3}
 \text{{\tfc I}mplementation}
 \connection[bt]{CONSEQUENCE}
\stopFLOWcell
\startFLOWcell
 \name{CONSEQUENCE}
 \location{2,4}
 \text{{\tfc C}onsequence}
 \connection[bt]{ENRICHEMENT}
\stopFLOWcell
\startFLOWcell
 \name{ENRICHEMENT}
 \location{2,5}
 \text{{\tfc E}nrichement}
 \connection[bt]{SOURCE}
 \connection[bt]{PICTURE}
 \connection[bt]{IMPLEMENTATION}
\stopFLOWcell
\stopFLOWchart

\FLOWchart[SPICE]

\stoptext

%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:

-- 
Cecil Westerhof
___
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] Is the chart module broken?

2010-11-18 Thread Cecil Westerhof
Op woensdag 3 nov 2010 19:41 CET schreef Hans Hagen:

 In the past I have used the chart module for a little flow chart in a
 presentation. I wanted to make again flow charts. But I did not get it
 working. I just compiled my old version again, but this does not work
 also. The chart is drawn, but the boxes and lines are invisible. That
 is not very usefull. What could be the problem?

[CUT]

 no clue as no test file ... is write 18 enabled on your system?

I took this code from the internet. So I suppose this should work.
\usemodule[chart]

\starttext

\startFLOWchart[cells]
 \startFLOWcell
 \name   {first}
 \location{1,1}
 \shape  {singledocument}
 \text   {not really a document}
 \stopFLOWcell

\stopFLOWchart

\FLOWchart[cells]

\stoptext

But it gives:
http://www.decebal.nl/ConTeXt/flowchart.pdf

The log file created is at:
http://www.decebal.nl/ConTeXt/flowchart.log

The only things I see that could mean something are:
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet!

But I do not know if that is a problem.

The pfd is made with:
texexec --automp flowchart

Without the --automp I get a message about mpost.

-- 
Cecil Westerhof
M cldwester...@gmail.com

O ascii ribbon campaign - stop html mail - www.asciiribbon.org

Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___
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
___