Re: [NTG-context] Search path.

2012-09-10 Thread Hans Hagen

On 10-9-2012 04:45, Andre Caldas wrote:

Hello, list!

I am really new to ConTeXt. I am writing a book
http://topologia-geral.ourproject.org/
It is written in LaTeX and I intend to migrate it to ConTeXt.

I want to migrate and I want to be as far from HACKS as I can. So I
want to know the recommended way to do things. One of my first
difficulties comes from the search path used by texexec. It seems to
me that the path searched for components, products and environments
depends on the path were the script was called from. That is, it
depends on the current working directory.

My question (honestly) is:
- Why would I want this behavior?

When I write a project, product, component or environment file, why
would I want the references I made to be dependent on the directory
where the script was called? Shouldn't things be like the
#include relative_path.h
used in the C language, for example? That is, shouldn't those paths be
relative to the script that refers to them?

Am I missing something?


The way tex (and its path) are set up is that files are looked up on the 
current path (.) or relative to it, or in the (tds compliant) tex tree. 
Auxiliary files are created in the current directory.


One can hardcode a path in the tex source if needed. Another option is 
to move to the source path (something texmfstart --path ... texexec ... 
or mtxrun --path ... --script context ...) but what's best depends on 
the kind of project.


Do you really need to use context mkii? As it's a new project, using 
context mkiv might be a better idea.


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] No cmyk support in MKIV (TexLive 2012 version)?

2012-09-10 Thread Hans Hagen

On 10-9-2012 03:26, Bill Meahan wrote:

Trying to define some spot colors using the wiki examples. I get the
following error message every time I run MKIV:


colors   cmyk color space is not supported


harmless


Here's the relevant section of my environment file:

% Turn on colors.
\setupcolors[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes]
%\setupcolors[state=start]
% Define the colors we want to use and give a print shop Pantone
% equivalents to work with,
% set up the cmyk fallbacks
\definecolor
[PantoneTwoNineFour]
[c=1,m=.68,y=7,k=.28]


\definecolor
   [PantoneTwoNineFour]
   [c=1,m=.68,y=7,k=.28]


y=1 = y=.7


\definecolor
[PantoneThreeZeroZero]
[c=1,m=.42,y=0,k=0]

% Define tints of spot colors to be used in document for coloring text
\definespotcolor
[DarkBlue]
[PantoneTwoNineFour]
[p=1,e=PANTONE 294 PC]

\definespotcolor
[LightBlue]
[PantoneThreeZeroZero]
[p=1,e=PANTONE 300 PC]


I do get the DarkBlue in my pdf output but no sign of the LightBlue
anywhere.




--

-
  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] pre-stepwise / current

2012-09-10 Thread Daniel Schopper

dear all,
I’m trying to build a stepwise presentation, but the following minimal 
example (got it from the ML[1]) produces an error:


ConTeXt  ver: 2012.09.06 23:03 MKIV  fmt: 2012.9.9
…
!LuaTeX error: There should have been a lua node here, not an object 
with type string!


The example compiles with standalone 2012.06.13 while it is broken from 
2012.07.27 onwards.


Is the stepper-module no longer supported?
TIA,
Daniel


\usemodule[pre-stepwise]

\setupinteraction[state=start,click=off]

\setupbodyfont[palatino]

\starttext

\StartSteps

\starttabulate
\NC test \FlushStep \NC test \FlushStep \NC \NR
\NC test \FlushStep \NC test \FlushStep \NC \NR
\NC test \FlushStep \NC test \FlushStep \NC \NR
\stoptabulate

\StopSteps

\stoptext



[1] http://www.mail-archive.com/ntg-context@ntg.nl/msg55196.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
___

[NTG-context] Problem with *lettrine* module in Mk-iv

2012-09-10 Thread Francisco Gracia
I am making my first steps in ConTeXt. I am only interested in Mk-iv and

am using version 2012.09.06 23:03. I tried to explore the possibilities of
the

additional module *lettrine* following its documentation
(*lettrine-doc.pdf*)

and prepared the following example, which reproduces almost exactly the

first one found in that text:

\usemodule[lettrine]
\starttext
\lettrine {T}{he two} typeset arguments are the dropped capital

and the run-in text following it; the \TeX\ source of this paragraph
started

with \starttyping \usemodule[lettrine]
\starttext
\lettrine{T}{he two} … \stoptyping …
\stoptext

When I typeset it with ConTeXt, the result was not what the documentation

showed. The initial capital was fine and so was the rest of the first line,
but

the second line was blank and the regular text continued at the third and

following lines. This was with the default value of 2 lines as size for the

capital. If one indicates a greater number of lines, all of them but the
first

one are blank and the regular text continues after all that whitespace.

As I was not completely sure that my installation of ConTeXt was

unobjectable, I tried to typeset the example in *ConTeXt online*

(http://live.contextgarden.net/). There the option to use *LuaTex /
Mark-iv*

is not offered (!!??), so I selected the *pdfTex* alternative and then it

happened that everything behaved as expected (at least in the first part of

the example, as some of the following commands seem not to be

understood by *pdfTex*).

My conclusion is that *lettrine* does not work correctly with Mark-iv and

there is somewhere a bug that has to be corrected. But I could be

mistaken. Am I doing something wrongly?

Thanks for your interest
___
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] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Marco Patzer
On 2012-09-10 Ian Lawrence physics.roo...@gmail.com wrote:

Hi Ian,

 I'd like to pass variables into context on invocation, just as you can do 
 with setting modes
 
 So
 
 context --arguments=number=8, time=full-time --mode=trial test.tex

context --number=8 --time=full-time test.tex

 \starttext
 
 Hello world
 
 % This is \getvariables{arguments}{number} it. % this does not work - what do 
 I need here to write out the next line?
 
 This is 8.
 
 % This is \getvariables{arguments}{time} it. % Nor does this - what do I need 
 here to write out the next line?
 
 This is full-time.
 
 \stoptext

\starttext

This is \doifdocumentargument{number}{\getdocumentargument{number}} it.

This is \doifdocumentargument{time}{\getdocumentargument{time}} it.

\stoptext


Marco

___
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] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Peter Münster
On Mon, Sep 10 2012, Marco Patzer wrote:

 context --number=8 --time=full-time test.tex

Then you have to be sure, that --number and --time will never be special
parameters for context.

Alternatives:

--MarcoPatzerNumber=8 --MarcoPatzerTime=full-time

Or:

% context --arguments=number=8,time=full-time test.tex
\starttext
This is \env{number}.
This is \env{time}.
\stoptext

-- 
   Peter
___
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] Problem with *lettrine* module in Mk-iv

2012-09-10 Thread Sietse Brouwer
Hello Francisco,

Welcome to ConTeXt! You are sure to enjoy it here.

 My conclusion is that *lettrine* does not work correctly with Mark-iv and
 there is somewhere a bug that has to be corrected. But I could be
 mistaken. Am I doing something wrongly?

No, you are correct, there is a bug. It happens on my end, too; I have
attached the resulting output.

\usemodule[lettrine]
\starttext
\lettrine[Lines=3]{T}{he two} typeset arguments are the
dropped capital. \input knuth
\stoptext

I had a look at the module code, but it's too low-level for me, so I'm
CC-ing Taco Hoekwater who wrote the module. Depending on how trivial
the bug is, and how busy Taco is, he might be able to help.

Kind regards,
Sietse
Sietse Brouwer


lettrine-bug.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] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Marco Patzer
2012-09-10: Peter Münster pmli...@free.fr

 Then you have to be sure, that --number and --time will never be special
 parameters for context.

Indeed.

 Alternatives:
 
 --MarcoPatzerNumber=8 --MarcoPatzerTime=full-time
 
 Or:
 
 % context --arguments=number=8,time=full-time test.tex

This seems the better alternative, since that's what the option was
made for.


Marco

___
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] Search path.

2012-09-10 Thread Andre Caldas
 When I write a project, product, component or environment file, why
 would I want the references I made to be dependent on the directory
 where the script was called? Shouldn't things be like the
 #include relative_path.h
 used in the C language, for example? That is, shouldn't those paths be
 relative to the script that refers to them? [...]

 The way tex (and its path) are set up is that files are looked up on the
 current path (.) or relative to it, or in the (tds compliant) tex tree.
 Auxiliary files are created in the current directory.

I thought the reason was TeX itself. I just had some hope that ConTeXt
would fix this behavior some how. Since ConTeXt allows one to have
products and contents relatively independent from the project itself,
I thought that it would make sense to have the references to files
independent from the project structure as well.

Maybe I can just live with TEXINPUTS and BIBINPUTS... :-)

I guess the magic could be at some extent done with \usepath.
Leaving the probably already extensively discussed \usepath
precedence order for another discussion...


 One can hardcode a path in the tex source if needed. Another option is to
 move to the source path (something texmfstart --path ... texexec ... or
 mtxrun --path ... --script context ...) but what's best depends on the kind
 of project.

I definitely prefer not to hard code paths in the source. Actually, I
would like the components to not have to worry at all about where
they live...

I will study texmfstart. :-)


 Do you really need to use context mkii? As it's a new project, using context
 mkiv might be a better idea.

No, I don't. I want to use always the preferred solution. I want to
follow your guidelines and be enlightened... :-)
How did you know I was using one and not the other? I didn't know it myself!!!


Thank you very much for your help and for this great piece of software, Hans.


André Caldas.
___
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] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Sietse Brouwer
Documented at http://wiki.contextgarden.net/Command/getdocumentargument,
in the category Command/Internals.
--Sietse

On Mon, Sep 10, 2012 at 2:00 PM, Marco Patzer home...@lavabit.com wrote:
 2012-09-10: Peter Münster pmli...@free.fr

 Then you have to be sure, that --number and --time will never be special
 parameters for context.

 Indeed.

 Alternatives:

 --MarcoPatzerNumber=8 --MarcoPatzerTime=full-time

 Or:

 % context --arguments=number=8,time=full-time test.tex

 This seems the better alternative, since that's what the option was
 made for.


 Marco

 ___
 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] Search path.

2012-09-10 Thread Pontus Lurcock
On Mon 10 Sep 2012, Andre Caldas wrote:

  Do you really need to use context mkii? As it's a new project,
  using context mkiv might be a better idea.
 
 No, I don't. I want to use always the preferred solution. I want to
 follow your guidelines and be enlightened... :-)
 How did you know I was using one and not the other? I didn't know it
 myself!!!

Probably from the name of the binary -- ‘texexec’ runs mkii,
whereas ‘context’ gives you mkiv.

Pont
___
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] Problem with *lettrine* module in Mk-iv

2012-09-10 Thread Jörg Hagmann
I had to switch to \placeinitial, e.g.

Instead of:
% \usemodule[lettrine]
% \setuplettrine[Raise=0.1,FontHook=\darkgrey,TextFont=\tf]

I used:

\setupinitial[color=darkgrey,n=2,voffset=-1.5ex]
and then:
\placeinitial My text …

See also 
http://archive.contextgarden.net/message/20120322.214713.ca22f882.en.html

Cheers, Jörg

On Sep 10, 2012, at 1:43 PM, Sietse Brouwer wrote:

 Hello Francisco,
 
 Welcome to ConTeXt! You are sure to enjoy it here.
 
 My conclusion is that *lettrine* does not work correctly with Mark-iv and
 there is somewhere a bug that has to be corrected. But I could be
 mistaken. Am I doing something wrongly?
 
 No, you are correct, there is a bug. It happens on my end, too; I have
 attached the resulting output.
 
 \usemodule[lettrine]
 \starttext
 \lettrine[Lines=3]{T}{he two} typeset arguments are the
 dropped capital. \input knuth
 \stoptext
 
 I had a look at the module code, but it's too low-level for me, so I'm
 CC-ing Taco Hoekwater who wrote the module. Depending on how trivial
 the bug is, and how busy Taco is, he might be able to help.
 
 Kind regards,
 Sietse
 Sietse Brouwer
 lettrine-bug.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
 ___


___
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] No cmyk support in MKIV (TexLive 2012 version)?

2012-09-10 Thread Bill Meahan

On 09/10/2012 03:13 AM, Hans Hagen wrote:


harmless





\definecolor
   [PantoneTwoNineFour]
   [c=1,m=.68,y=7,k=.28]





Thanks as always. Spotted the 7 not .7 typo two minutes after I hit 
the send key. Sigh.


Everything is working fine now and even the error message has disappeared.

Thanks, as always.

If anyone wants to see what I'm using ConTeXt for, visit 
http://escherton.meahan.net (PDF output of ConTeXt is converted to jpeg 
for the web externally).


--
Bill Meahan
Westland, Michigan USA

___
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] Luatex crash with x86-64 Linux binary

2012-09-10 Thread Brian R. Landy
Hi, I am running the latest minimals on a 64bit Linux system and ran 
into a luatex crash with a specific file.  I reduced the file down to a 
simpler version that still triggers the crash, and thought it would be 
of some interest to post (the resulting pdf, if generated, will be ugly 
since I removed a lot of formatting, and some of the code in the file 
may appear extraneous).

I am running:

$ context --version
mtx-context | ConTeXt Process Management 0.60
mtx-context | current version: 2012.09.06 23:03

$ luatex --version
This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012)

What I think makes this interesting is the same file does not crash on 
three other setups I tested:
- 32bit OS X (beta-0.70.2-2012052310)
- 64bit OS X (beta-0.70.2-2012052309)
- the same Linux system, but I replaced the 64bit Linux luatex binary 
  with the 32bit Linux binary (beta-0.70.1-2012052416 (rev 4277), I see 
  this is an older version but I downloaded directly from the minimals 
  site today).  It rebuilt caches and processed the file successfully.

I updated minimals on both OS X systems today so all three systems 
should be otherwise identically configured.

Various alterations to the file can avoid the crash; a few I found 
are---adding a \strut before the word jumbo, removing the nested bTABLE 
(this appears to be unneeded in the attached example), removing the 
\definefontfeature statement at the top of the file.

Anyway I'd be interested to know if anyone else sees the same issue.  
I'm sure this is a real edge case error but hope it is helpful to track 
down the problem.  Please let me know if there is any other debugging 
info you would like to see from my end.

Thanks,
Brian\definefontfeature [default] [default] [kern=yes, liga=yes, 
texligatures=yes, texquotes=yes, protrusion=pure, expansion=quality, mode=node, 
script=latn]%
\setupbodyfont[modern,10pt]%
\starttext%
\start%
\bTABLE[offset=overlay,frame=off,align=middle,aligncharacter=no]%
\bTR%
\bTD[]{%
\start%
\setupTABLE[r][5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,4,3,2][loffset=0.020in]%
\setupTABLE[r][5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,4,3,2][roffset=0.020in]%
\setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][4][bottomframe=on]%
\setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][4,3,2][align={middle,low},aligncharacter=no]%
\setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][1,4,3,2][style={\switchtobodyfont[modern,rm]\bf}]%
\setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][5][topframe=on]%
\setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][20][align={flushleft,lohi},aligncharacter=no,style={\small}]%
\setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][1][align={middle,lohi},aligncharacter=no]%
\setupTABLE[r][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][frame=off]%
\setupTABLE[r][2][topframe=on]%
\setupTABLE[r][4][bottomframe=on]%
\setupTABLE[r][19][bottomframe=on]%
\setupTABLE[23][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][rightframe=on]%
\setupTABLE[1][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][leftframe=on]%
\setupTABLE[1][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][frame=off,leftframe=on,rightframe=on,aligncharacter=no]%
\setupTABLE[1][2][topframe=on]%
\setupTABLE[1][5,19][topframe=on,bottomframe=on]%
\setupTABLE[1][19][bottomframe=on]%
\setupTABLE[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][5][topframe=on]%
\setupTABLE[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][19,19][bottomframe=on]%
\setupTABLE[1][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][leftframe=on,rightframe=on]%
\setupTABLE[1][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][frame=off,leftframe=on,rightframe=on,aligncharacter=no]%
\setupTABLE[1][2][topframe=on]%
\setupTABLE[1][5,19][topframe=on,bottomframe=on]%
\setupTABLE[1][19][bottomframe=on]%
\setupTABLE[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][5][topframe=on]%
\setupTABLE[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][19,19][bottomframe=on]%
\setupTABLE[2][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][leftframe=on]%
\setupTABLE[2][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][frame=off,leftframe=on,rightframe=on,aligncharacter=no]%
\setupTABLE[2][2][topframe=on]%
\setupTABLE[2][5,19][topframe=on,bottomframe=on]%
\setupTABLE[2][19][bottomframe=on]%
\setupTABLE[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][5][topframe=on]%
\setupTABLE[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][19,19][bottomframe=on]%
\setupTABLE[2][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][leftframe=on,rightframe=on]%
\setupTABLE[2][4,3,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19][frame=off,leftframe=on,rightframe=on,aligncharacter=no]%
\setupTABLE[2][2][topframe=on]%
\setupTABLE[2][5,19][topframe=on,bottomframe=on]%
\setupTABLE[2][19][bottomframe=on]%

Re: [NTG-context] No cmyk support in MKIV (TexLive 2012 version)?

2012-09-10 Thread Aditya Mahajan
On 2012-09-10, at 10:42 AM, Bill Meahan subscribed_li...@meahan.net wrote:

 On 09/10/2012 03:13 AM, Hans Hagen wrote:
 
 harmless
 
 
 
 \definecolor
   [PantoneTwoNineFour]
   [c=1,m=.68,y=7,k=.28]
 
 
 
 
 Thanks as always. Spotted the 7 not .7 typo two minutes after I hit the 
 send key. Sigh.
 
 Everything is working fine now and even the error message has disappeared.
 
 Thanks, as always.
 
 If anyone wants to see what I'm using ConTeXt for, visit 
 http://escherton.meahan.net (PDF output of ConTeXt is converted to jpeg for 
 the web externally).

Just curious. Why don't you enable hanging punctuation?

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] No cmyk support in MKIV (TexLive 2012 version)?

2012-09-10 Thread Bill Meahan

On 09/10/2012 10:59 AM, Aditya Mahajan wrote:


Just curious. Why don't you enable hanging punctuation?

Aditya




I thought I did!  From my environment file:

\definefontfeature
  [default]
  [default]
  [protrusion=quality,expansion=quality]

\setupalign[hz,hanging]

--
Bill Meahan
Westland, Michigan USA

___
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] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Ian Lawrence
Thanks to all. After about 30 mins exploring, it all came together. 

I'll try to add something to the wikithe link below is fine if you know 
it's there, and that this is what you want. But the search function 
(arguments and variants thereof did not find it for me).

The best match for what I was sure would be there, is \env{}. I still have no 
idea how it's (semantically) related to --arguments...unless its all Dutch...

Kind regards

Ian

On 10 Sep 2012, at 14:02, Sietse Brouwer sbbrou...@gmail.com wrote:

 Documented at http://wiki.contextgarden.net/Command/getdocumentargument,
 in the category Command/Internals.
 --Sietse
 
 On Mon, Sep 10, 2012 at 2:00 PM, Marco Patzer home...@lavabit.com wrote:
 2012-09-10: Peter Münster pmli...@free.fr
 
 Then you have to be sure, that --number and --time will never be special
 parameters for context.
 
 Indeed.
 
 Alternatives:
 
 --MarcoPatzerNumber=8 --MarcoPatzerTime=full-time
 
 Or:
 
 % context --arguments=number=8,time=full-time test.tex
 
 This seems the better alternative, since that's what the option was
 made for.
 
 
 Marco
 
 ___
 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
 ___
___
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] Period at the end of a alignment block.

2012-09-10 Thread Andre Caldas
I have a macro to typeset function definitions:

  \define[5]\functionarray
  {
\startalign[n=4, align={left,right,center,left}]
  \NC #1: \NC #2 \NC \to \NC #3 \NR
  \NC \NC #4 \NC \mapsto \NC #5
\stopalign
  }


I use it like this: (notice the period at the end)
\startformula
  \functionarray{f}{X}{Y}{x}{f(x)}.
\stopformula

I get the following error:
Display math should end with \Ustopdisplaymath ...

If I remove the ., the error does not happen.

How should I implement my functionarray?

Thanks,
André Caldas.
___
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] Period at the end of a alignment block.

2012-09-10 Thread Aditya Mahajan

On Mon, 10 Sep 2012, Andre Caldas wrote:


I have a macro to typeset function definitions:

 \define[5]\functionarray
 {
   \startalign[n=4, align={left,right,center,left}]
 \NC #1: \NC #2 \NC \to \NC #3 \NR
 \NC \NC #4 \NC \mapsto \NC #5
   \stopalign
 }


I use it like this: (notice the period at the end)
   \startformula
 \functionarray{f}{X}{Y}{x}{f(x)}.
   \stopformula

I get the following error:
Display math should end with \Ustopdisplaymath ...

If I remove the ., the error does not happen.

How should I implement my functionarray?


Use mathmatrix.

\definemathmatrix[functionarray][n=4, align={left,right,middle,left}, 
distance=0.2em]

\define[5]\functionarray
  {\startfunctionarray
 \NC #1: \NC #2 \NC \to \NC #3 \NR
 \NC \NC #4 \NC \mapsto \NC #5 \NR
   \stopfunctionarray}

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] No cmyk support in MKIV (TexLive 2012 version)?

2012-09-10 Thread Aditya Mahajan

On Mon, 10 Sep 2012, Bill Meahan wrote:


On 09/10/2012 10:59 AM, Aditya Mahajan wrote:


Just curious. Why don't you enable hanging punctuation?


I thought I did!  From my environment file:

\definefontfeature
 [default]
 [default]
 [protrusion=quality,expansion=quality]

\setupalign[hz,hanging]


It did not look enabled at first glance. All the end quotes on 69 [1] look 
a bit short of the line length (but I don't recall whether hanging 
punctuation hangs the quotes or not).


However, now that I looked carefully, I see that hanging punctuation is 
indeed enabled (the hyphen in the 3rd last para of Page 69, and all those 
commas and period on page 1 [2]).


Aditya

[1]: http://escherton.meahan.net/?webcomic_post=chapter2-page41
[2]: http://escherton.meahan.net/?webcomic_post=chapter1-page1-1f4b0d6


___
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] No cmyk support in MKIV (TexLive 2012 version)?

2012-09-10 Thread Bill Meahan

On 09/10/2012 08:06 PM, Aditya Mahajan wrote:


It did not look enabled at first glance. All the end quotes on 69 [1] 
look a bit short of the line length (but I don't recall whether 
hanging punctuation hangs the quotes or not).


However, now that I looked carefully, I see that hanging punctuation 
is indeed enabled (the hyphen in the 3rd last para of Page 69, and all 
those commas and period on page 1 [2]).


Aditya



Hope you enjoy the story! :)

--
Bill Meahan
Westland, Michigan USA

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