Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-25 Thread Alan BRASLAU
On Fri, 25 Oct 2013 07:23:43 +0900
Hans Hagen pra...@wxs.nl wrote:

 it looks like a font issue to me .. i could hack a solution but prefer 
 not to do that (the less exceptions we have the better)
 
 Hans

So, who can fix the font issue?
(tex/texmf/fonts/opentype/public/xits/xits-math.otf)

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] dejavu: inline math fraction spacing too tight?

2013-10-25 Thread Alan BRASLAU
On Fri, 25 Oct 2013 10:14:45 +0200
Wolfgang Schuster wolfgang.schus...@gmail.com wrote:

  So, who can fix the font issue?
  (tex/texmf/fonts/opentype/public/xits/xits-math.otf)
 
 https://github.com/khaledhosny/xits-math/issues

OK, reported to Khaled.
Thanks

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] MacOsX Mavericks and Luatex

2013-10-24 Thread Alan BRASLAU
On Thu, 24 Oct 2013 23:17:13 +0900
Hans Hagen pra...@wxs.nl wrote:

 Hm. The problem is that we get some oscillation (with a few year cycle) 
 between the 'demand' for os fonts support vs tree only (as far as 
 remember os font support was mostly requested by osx users). Anyhow, we 
 can make it an option, but then the question is: what is the default 
 (and who is going to defend that choice to distributers and users).

Users can set OSFONTDIR in their environment if they wish, and this can be 
specified in the wiki. Also, the standalone script can include a (harmless) 
message informing the user of this possibility.

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
___


[NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-23 Thread Alan BRASLAU
Hello,

Using the dejavu font, inline math fractions (e.g. $a/b$) look to me to
be spaced too tightly. Below are some minimal examples:

\setupbodyfont [dejavu,12pt]
\starttext
$a/b$

$1/2$

$π/3$
\stoptext

Is this indeed the desired spacing? What do others think?

Thanks.

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] Math in current beta

2013-10-09 Thread Alan BRASLAU
On Tue, 8 Oct 2013 22:49:34 +0200
Alan BRASLAU alan.bras...@cea.fr wrote:

 Math seems terribly broken in current beta.
 
 Minimal example: anything... :)
 
 Alan

Hmm. I cleared-out my installation of the standalone
and re-installed from scratch. The problem is solved,
so something must have gone haywire that rebuilding
the format alone did not suffice:
mtxrun --selfupdate
mtxrun --generate
luatools --generate
context --make
I do not understand, so I am sorry for the noise.

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
___


[NTG-context] startitemize [intext]

2013-10-09 Thread Alan BRASLAU
Can someone explain how the intext keyword should be used in an item list?
I would expect the following minimal example to produce
a. first b. second c. third

\starttext
\startitemize [a,intext]
  \startitem first \stopitem
  \startitem second \stopitem
  \startitem third \stopitem
\stopitemize
\stoptext

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
___


[NTG-context] Mathematics (\lim, \int, ...)

2013-10-08 Thread Alan BRASLAU
Is something gone funny with mathematics?

\starttext
$\lim_1^2$

$\int_1^2$
\stoptext


Undefined control sequence ...
1 \starttext
2   $\lim_1^2$
3 
4 $\int_1^2$
5 \stoptext
6 

recently read \lim_ 
  
l.2 $\lim_
1^2$
? 
! Undefined control sequence.


1 \starttext
2 $\lim_1^2$
3 
4   $\int_1^2$
5 \stoptext
6 

recently read \int_ 
  
l.4 $\int_
1^2$
? 


\lim, \int and others are undefined.

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] Math in current beta

2013-10-08 Thread Alan BRASLAU
Math seems terribly broken in current beta.

Minimal example: anything... :)

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] Mathdesign GD with simplefonts

2013-10-07 Thread Alan BRASLAU
On Mon, 7 Oct 2013 09:06:37 +0200
Magnus J mjo.li...@gmail.com wrote:

 2. I would like to use the \followtokens macro from within metapost. How
 can this be achieved? Specifically, I trying to draw a rainbow-like figure
 with text between the colors.

I am not sure what you mean by a rainbow-like figure. However, for rainbow-like 
colors, I use the following MP code, based on the standard resistance color 
code scheme. The function rainbow(f) returns a rainbow spectrum color based on 
the fraction f running from 0 to 1.

% standard resistance color code: rainbow sequence
color resistance_color[] ;  string resistance_name[] ;
resistance_color0 = (0,0,0) ;   resistance_name0 = black ;
resistance_color1 = (165/255,42/255,42/255) ;   resistance_name1 = brown ;
resistance_color2 = (1,0,0) ;   resistance_name2 = red ;
resistance_color3 = (1,165/255,0) ; resistance_name3 = orange ;
resistance_color4 = (1,1,0) ;   resistance_name4 = yellow ;
resistance_color5 = (0,1,0) ;   resistance_name5 = green ;
resistance_color6 = (0,0,1) ;   resistance_name6 = blue ;
resistance_color7 = (148/255,0,211/255) ;   resistance_name7 = darkviolet 
;
resistance_color8 = (190/255,190/255,190/255) ; resistance_name8 = gray ;
resistance_color9 = (1,1,1) ;   resistance_name9 = white ;

def rainbow(expr f) =
hide(numeric n_ ; n_ = (abs(5f) mod 5) + 2 ;)
(n_-floor(n_))[resistance_color[floor n_],resistance_color[ceiling n_]]
enddef ;


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] [***SPAM***] OT: Putting a context to the 2013 ConTeXt Meeting location

2013-09-19 Thread Alan BRASLAU
On Thu, 19 Sep 2013 21:47:13 +0200
luigi scarso luigi.sca...@gmail.com wrote:

  Do you mean something like  
 http://asymptote.sourceforge.net/gallery/cyclohexane.pdf
  ?

For this, I would prefer povray.

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] EPUB XHTML Format

2013-09-12 Thread Alan BRASLAU
On Thu, 5 Sep 2013 19:22:42
Aditya Mahajan adit...@umich.edu wrote:

 How easy is it to create a new export format. IIRC, context keeps track of 
 the entire document tree, and flushes the XML output only at the end. Is 
 it possible to make this pluggable so that users can write their own 
 transformers (in lua) on how the document tree can be written. This will 
 enable more output formats (opendocument and (shudder) latex).

Or, (gasp!) MSword .docx

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] [***SPAM***] \part without adding partnumber to other headers

2013-09-10 Thread Alan BRASLAU
To all:

The (strange) default handling of part is a continual source of
confusion to users...

Alan


On Tue, 10 Sep 2013 11:21:39 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 10.09.2013 um 11:10 schrieb H. Özoguz h.oezo...@mmnetz.de:
 
  I want to use \part without the number of the part as a piece of
  the headnumbers (of chapter, section, subsection ).
  
  E.g.:
  
  \part{One}
  \chapter{Chapter}
  \section{Section}
  \part{Two}
  \chapter{Chapter}
  \section{Section}
  
  gives this compile:
  
  1.1 Chapter
  1.1.1 Section
  2.1 Chapter
  2.1.1 Section
  
  But I only want:
  
  1 Chapter
  1.1 Section
  1 Chapter
  1.1 Section
  
  (because the number of the current part is already written in the
  header). So actually, I want to use \part as a resetter of the
  headnumbers. Is that possible?
 
 \setuphead[sectionsegments=2:*]
 \setuphead[part][placehead=hidden]
 
 \starttext
 
 \part{One}
 \chapter{Chapter}
 \section{Section}
 \part{Two}
 \chapter{Chapter}
 \section{Section}
 
 \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] new mp trickery / next challenge for alan and mari

2013-09-10 Thread Alan BRASLAU
Indeed a challenge!

Alan

On Tue, 10 Sep 2013 18:11:13 +0200
Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 There's now a convenient way to pass data back from an mprun to the
 tex instance:
 
 \starttext
 
 \startMPcode
  passvariable(version,1.0) ;
  passvariable(number,123) ;
  passvariable(string,whatever) ;
  passvariable(point,(1,2)) ;
  passvariable(triplet,(1,2,3)) ;
  passvariable(quad,(1,2,3,4)) ;
  passvariable(boolean,false) ;
  passvariable(path,fullcircle scaled 1cm) ;
 
  draw fullcircle scaled 20pt ;
 \stopMPcode
 
 \ctxlua{inspect(metapost.variables)}
 
 \ctxcommand{mprunvar(number)}
 \ctxcommand{mprunvar(string)}
 
 \stoptext
 
 the inspect shows:
 
 table={
   [boolean]=false,
   [number]=123,
   [path]={
{ 10.02177, 10.02177, 12.67969, 7.36386, 7.36386, 12.67969 },
{ 0, 14.17323, 3.75914, 14.17323, -3.75914, 14.17323 },
{ -10.02177, 10.02177, -7.36386, 12.67969, -12.67969, 7.36386 },
{ -14.17323, 0, -14.17323, 3.75914, -14.17323, -3.75914 },
{ -10.02177, -10.02177, -12.67969, -7.36386, -7.36386, -12.67969 },
{ 0, -14.17323, -3.75914, -14.17323, 3.75914, -14.17323 },
{ 10.02177, -10.02177, 7.36386, -12.67969, 12.67969, -7.36386 },
{ 14.17323, 0, 14.17323, -3.75914, 14.17323, 3.75914 },
   },
   [point]={ 1, 2 },
   [quad]={ 1, 2, 3, 4 },
   [string]=whatever,
   [triplet]={ 1, 2, 3 },
   [version]=1.0,
 }
 
 the mprunvar pips a value or concatination to tex

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt in the cloud

2013-08-30 Thread Alan BRASLAU
What about the NSA?

Alan

On Sat, 31 Aug 2013 00:26:56 +0200
Material Defender materialdefender2...@gmail.com wrote:

 Well, I've my one-ConTeXt-document-so-far in my ownCloud and its
 feeling quite cozy there :-)
 
 
 On 30 August 2013 22:59, Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu wrote:
 
  Dear gang,
 
  Since I work with context at both my home and my work machines, I'm
  thinking of moving my context tree to dropbox and just keeping that
  one tree updated. Have any of you tried something like this, and
  are there any unforeseen issues that could arise?
 
  Or are there any other thoughts about running ConTeXt as a personal
  cloud application?
 
  Best wishes
  Idris
___
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] part titles not showing up

2013-08-27 Thread Alan BRASLAU
On Mon, 19 Aug 2013 13:51:51 +0600
Henning Hraban Ramm te...@fiee.net wrote:

 But why should parts not get displayed by default?

Because Hans (and others?) have decided that the default for part should be no 
titles.

This may be convenient but seems to me to be incoherent. Indeed, I would prefer 
placehead=yes to be the default (one can always specify placehead=no) as well 
as bodypartlabel=part (which also seems to need to be defined explicitly).

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] Metapost labels

2013-08-07 Thread Alan BRASLAU
On Wed, 7 Aug 2013 06:50:54 +0200
Lutz Haseloff lutz.hasel...@gmail.com wrote:

 Hi all,
 
 with
 LuaTeX, Version beta-0.77.0-2013073017 (rev 4639)
 and
 ConTeXt  ver: 2013.08.06 15:50 MKIV beta  fmt: 2013.8.7  int:
 english/english
 Context seems not to be able to typeset Labels anymore.
 Yesterday, before an Update, all worked as expected.
 
 Minimal not working example:
 
 \starttext
 \startMPpage
 draw fullcircle scaled 5cm withcolor red;
 label(textext(\CONTEXT),origin);
 \stopMPpage
 \stoptext
 
 Or am I missing something happened in the last four weeks?

Something seems wrong with the current beta.
It does not find files (cont-yes.mkiv, etc.),
does not find fonts, etc. 
metapost loading 'metafun' fails, format not found

Following the mailing list, Hans tried `fixing' something with file loading...

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] \externalfigure doesn't find mps file in subdirectory

2013-08-06 Thread Alan BRASLAU
On Mon, 5 Aug 2013 23:18:41 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:

 For MetaPost, write `method=mps`; I don’t know why
 the MetaPost code is not `mp`. (Perhaps that could be made a synonym?)

I suppose because `mp' is MetaPost code
and `mps' is MetaPost produced PostScript.

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
___

[NTG-context] setupnarrower and startnarrower

2013-08-06 Thread Alan BRASLAU
Hello,

Could (should) startnarrower be modified to accept setup assignments?
As in:

\startnarrower [before=\blank,after=\blank]

or

\startnarrower [left=3cm] [left]

etc.

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] setupnarrower and startnarrower

2013-08-06 Thread Alan BRASLAU
Thank you Wolfgang, but I was wondering about the standard \startnarrower.

Many (some) commands allow setup assignments, the use of which overides but 
does not change the default. This is a very useful feature of ConTeXt that 
suggest could be generalized. \startnarrower is but one example.

Alan 


On Tue, 6 Aug 2013 15:27:16 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 06.08.2013 um 15:11 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
  Hello,
  
  Could (should) startnarrower be modified to accept setup assignments?
  As in:
  
  \startnarrower [before=\blank,after=\blank]
  
  or
  
  \startnarrower [left=3cm] [left]
  
  etc.
 
 
 \usemodule[annotation]
 
 \defineannotation[NARROW][alternative=narrow]
 
 \starttext
 
 \input ward
 
 \startNARROW[leftmargin=3cm]
 \input ward
 \stopNARROW
 
 \input ward
 
 \startNARROW[rightmargin=2cm]
 \input ward
 \stopNARROW
 
 \input ward
 
 \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
___


Re: [NTG-context] bug in \externalfigure

2013-08-01 Thread Alan BRASLAU
On Thu, 1 Aug 2013 16:01:27 +0200
luigi scarso luigi.sca...@gmail.com wrote:

 On Thu, Aug 1, 2013 at 3:56 PM, Aditya Mahajan adit...@umich.edu
 wrote:
 
 
  I think that the advice of omitting the file extension given in
  most LaTeX introductions is more trouble than it is worth in
  ConTeXt. Omitting file extensions is important if you are
  generating both dvi and pdf outputs. In ConTeXt, one never uses the
  DVI output, so I think that one should ALWAYS specify the file
  extension. That removes a lot of headaches with the wrong file
  being sourced.
 
  +1. 

-1

One might have png, jpeg, pdf, eps and other figure files. The choice
of which will be used depends eventually on where the file is to be
found... (and setupexternalfigures). This is a *feature*. It has
nothing to do with LaTeX.

Of course, one can always specify an extension explicitly if one so
wishes...

Furthermore, the file extension is simply a convenient label which
makes no difference whatsoever on any serious system. (but not so on
more primitive operating systems. ;)

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] footnotes on wrong page

2013-07-24 Thread Alan BRASLAU
On Tue, 23 Jul 2013 22:24:50 +0200
Hans Hagen pra...@wxs.nl wrote:

 you use the wrong command and there is also the scope parameter
 
 \setupnotes[footnote][split=verystrict,scope=page]

Can you clarify this? The syntax is confusing, probably because it has
evolved.

Currently, I use:
\setupnotation [footnote] [way=bypage,numberconversion=set 2]
for example, but maybe this is no longer the recommended syntax?

Also, in order to restore gobbled space following,%
\startfootnote
\stopfootnote
I use the following setup:
\setupnote [footnote] [next={ }]
So \setupnotation, \setupnote, \setupnotes is confusing.

Of course, there is
strc-not.mkvi:\let\setupnotes\setupnote
so \setupnotes is just a synonym for \setupnote.
And then there is also:
strc-not.mkvi:\let\setupnotations\setupnotation

From what I understand, footnotes can be handled using different
mechanisms, and this is why it gets confusing for users.

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] bar graphs, m-graph, sarith

2013-07-07 Thread Alan BRASLAU
Metapost now has double precision arithmetic, so one no longer needs to
use the string arithmetic macros. However, it may be necessary to use
scantokens as in

clearxy;
z = (scantokens v1, scantokens v2);
augment.p(x,0);
augment.p(x,y);
x := x + 0.4 ;
augment.p(x,y);
augment.p(x,0);


Alan


On Sat, 6 Jul 2013 22:01:06 -0400
John Kitzmiller k...@inradius.net wrote:

 When trying to make a bar graph with m-graph.mkiv and sarith, the
 command Ssub (string subtract) seems to augment.p(v1 Sadd
 0.4,v2);Sadd instead. An mwe of a bar graph:
 
  (data1 is a separate file containing
   01 02
   02 03)
 
 \usemodule[m-graph]
 \startMPpage[instance=graph]
 input sarith;
 draw begingraph(5cm,5cm);
  gdata(data1, v,
   path p;
   augment.p(v1,0);
   augment.p(v1,v2)
   augment.p(v1 Sadd 0.4,v2);
   augment.p(v1 Sadd 0.4,0);
   gfill p--cycle withcolor .8white;
   gdraw p--cycle;
   );
 endgraph;
 \stopMPpage
 
 ...which gives bars of width 0.4 starting at abscissa 1 and 2 as
 expected. To increase the width of the bars to 0.8 and have them
 centered over 1 and 2, I expect to Ssub from the first two augments:
 
 \usemodule[m-graph]
 \startMPpage[instance=graph]
 input sarith;
 draw begingraph(5cm,5cm);
  gdata(data1, v,
   path p;
   augment.p(v1 Ssub 0.4,0);
   augment.p(v1 Ssub 0.4,v2);
   augment.p(v1 Sadd 0.4,v2);
   augment.p(v1 Sadd 0.4,0);
   gfill p--cycle withcolor .8white;
   gdraw p--cycle;
   );
 endgraph;
 \stopMPpage
 
 However, the Ssub adds instead and gives a line at 1.4 and 2.4.
 
 Compiling the above with mpost or mptopdf gives the desired
 result(s), but I am curious if this can be resolved so such bar
 graphs could be made within ConTeXT/METAFUN.
 
 Thanks! John
___
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] Context group and faith

2013-06-18 Thread Alan BRASLAU
On Tue, 18 Jun 2013 10:56:15 +0200
Jörg Hagmann joerg.hagm...@unibas.ch wrote:

 It's true, I believe in ConTEXt, but still...

A link to the bible:
http://pmrb.free.fr/contextref.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] Context group and faith

2013-06-18 Thread Alan BRASLAU
On Tue, 18 Jun 2013 11:06:28 +0200
Hans Hagen pra...@wxs.nl wrote:

 well, google for 'context conference' and one can easily end up in a 
 quite different spot than brejlov (also much more expensive) 

Brejlov comes in 5th place...
Maybe google orders by cost; indeed, they *certainly* weight by potential gain!

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] Output from Context standalone (actual version) has wrong utf-8 encoding

2013-06-17 Thread Alan BRASLAU
On Mon, 17 Jun 2013 19:34:51 +0200
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 Just some anecdote: I was working on a presentation style last week
 and was getting really weird results, with background elements
 shifting on the page randomly. I suspected that some update had
 brought changes in Metapost and tried on my laptop with a slightly
 older version, and everything was OK. Then I installed the latest
 version on the laptop and tried again - still OK. After two hours of
 fuzzing around, I finally understood that it was a problem with
 evince, not with the pdf - if I opened the same file with okular or
 Adobe Reader, everything was fine. So I wouldn't trust evince; looks
 like the clowns in charge of gnome have managed to break their pdf
 viewer as well.

Hmmm

Remind me: PDF stands for Portable Document Format, or something else?

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] character spacing for guillemets in English

2013-06-03 Thread Alan BRASLAU
On Sun, 2 Jun 2013 16:16:04 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 02.06.2013 um 14:32 schrieb Alan Bowen bowenala...@gmail.com:
 
  Is there a global way to insert a very thin (ca 1pt) unbreakable space 
  before a right guillemet and after a left guillemet when the main language 
  and character spacing are English, so that “«” and “»”  in my source file 
  are processed properly? 
  
  The font that I am using puts them too close to the enclosed characters 
  (typically, Greek). Basically, I need to borrow the French spacing for 
  these two characters but have not been able to figure out how to do this 
  from the ConTeXt source files.
 
 \definecharacterspacing [alan]
 
 \setupcharacterspacing [alan] [00AB] [right=.1,alternative=1]
 \setupcharacterspacing [alan] [00BB] [left=.1,alternative=1]
 
 \starttext
 
 text «text» text
 
 \setcharacterspacing[alan]
 
 text «text» text
 
 \stoptext
 
 Wolfgang

Or {\fr\quotation{text}}...

___
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] MAC (preview, finder) and ConTeXt pdf

2013-05-31 Thread Alan BRASLAU
On Fri, 31 May 2013 06:17:49 +0200
Otared Kavian ota...@gmail.com wrote:

 On 30 mai 2013, at 22:40, Alan BRASLAU alan.bras...@cea.fr wrote:
 
  […] It is not too surprising that the Mac is buggy, but this is somewhat 
  worrisome.  
 
 I don't think the Mac, or the Mac OS X, is buggy… until it is proved that the 
 problem is a real one on all Macs.
 The documents produced by mkiv or mkii, the ones I produce and the ones 
 produced by Hans and others are searchable, and text can be copied and pasted 
 elsewhere.

OK, the situation with the Mac is very strange.
Today (an odd day), we can search for *some* text, but not all words are found.
It does not have to do with special characters or formatting. Simple words.
And the result in the finder does not always correspond to that of preview.

No problem copying and then pasting text.

Investigating the question of fonts, I produced alternate versions using 
different fonts.
All of these new files are indexed correctly, including a reprocessed version 
using dejavu.
They were all produced using the same context standalone macros and binaries 
(as previously)
and without any changes to the source files. My conclusion is that it is 
somehow a problem
with some sort of cache on the Mac (that is how searching is quick), indeed a 
*bug* somehow
corrupting this cache. So the problem must be real but highly irreproducible,
being highly contingent. The new files were, of course, not indexed and cached.

Conclusion, there is some sort of problem on Macs, but it is *not* with 
ConTeXt. Good!

Alan

P.S. Hans must be thinking that I have a problem with *odd* days... ;) 
___
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] MAC (preview, finder) and ConTeXt pdf

2013-05-31 Thread Alan BRASLAU
On Fri, 31 May 2013 14:53:31 +0200
Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 On Fri, May 31, 2013 at 2:37 PM, Alan BRASLAU wrote:
 
  OK, the situation with the Mac is very strange.
  Today (an odd day), we can search for *some* text, but not all words are 
  found.
  It does not have to do with special characters or formatting. Simple words.
  And the result in the finder does not always correspond to that of 
  preview.  
 
 What exactly do you mean with search in finder? Searching for all
 documents on your computer containing a specific word?

I am not a Mac user so I do not know all of the proper App jargon.

I mean exactly opening the finder (file manager for normal people)
and searching for all documents containing a specific word.
(The word was scarce and scarcity, not too frequent in his files... Ha, Ha!)
 
 Do you also have problems searching for specific words in preview or
 not (you said that results are different)?

Yes, and it depends on the specific word and only in certain files (on certain 
days).
I thus suspect a corrupted MacOS cache file...
 
 I just remembered that sometimes (long ago) I had some kind of
 problems due to some tiny kerning/boxes inserted into PDF between
 characters to compensate for whatever (microtypography or just
 random corrections to fix the second/third decimal of precision in
 positioning). That sometimes confused readers which considered the
 text to be two or three words when it was in fact one. But I don't
 know if that is related. One can sometimes see that in google search
 showing html version of a pdf document with seemingly randomly
 distributed spaces.

No, there is no problem using non-MacOS applications such as Adobe Reader.

Indeed, it does not appear to be a PDF problem but a MacOS problem.
As I am not interested in debugging the Mac, and I have now convinced myself
that there is no problem with the ConTeXt produced PDF, I have told my colleague
to be careful and *not* to rely on his search tool. Maybe it is just his Mac
that is corrupt. (Could also be an underlying file system problem.)

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
___


[NTG-context] MAC (preview, finder) and ConTeXt pdf

2013-05-30 Thread Alan BRASLAU
Hello,

A colleague who uses a very recent MacBook with the latest MacOS
has a problem with PDF files that I provide produced with ConTeXt/luatex.

It appears that he cannot search for words (text) in the document,
neither with preview nor in the finder (they must be based on the same code).
However, I had him install Adobe Reader, and using this he can search for text
in the ConTeXt produced document, so I do not believe that the PDF has a 
problem,
rather this is a bug with the Apple PDF tools.

Does anyone else using MacOS have any experience with this?
Or can you all search for text (words) within ConTeXt produced PDF documents
using preview and the finder?

Thank you

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] MAC (preview, finder) and ConTeXt pdf

2013-05-30 Thread Alan BRASLAU
On Thu, 30 May 2013 18:35:19 +
Rogers, Michael K mrog...@emory.edu wrote:

 I do not have this problem with the documents I produce on my Mac.  I
 have had it with some (but not all) documents on ConTeXt sites, such
 as Hans' ConTeXt Lua Documents.  Also I can select text but
 copy/paste does not work.  Perhaps it has to do with fonts.

The problem seems strange: there is no difficulty in viewing or
printing, but searches for words fail. I did not try copying.

Thank you all for the feedback. My document uses dejavu - I will
investigate this suggestion about fonts. It is not too surprising that
the Mac is buggy, but this is somewhat worrisome.

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] Missing °C symbol in math mode with dejavu font

2013-05-20 Thread Alan BRASLAU
On Mon, 20 May 2013 22:29:22 +0200
Romain Diss romain.d...@yahoo.fr wrote:

 The °C symbol is missing in math mode with the dejavu font. I thought
 that this should be handled by using the '°' + 'C' symbols instead
 but it is not the case.
 Is that a bug?
 What can I do to get the °C symbol with this font?

With dejavu, A, B, and D all work, but C is missing a symbol. 

A 100℃

B 100°C

C $100℃$

D $100°C$


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] [***SPAM***] Wrong °C symbol with \unit and dejavu font

2013-05-17 Thread Alan BRASLAU
On Fri, 17 May 2013 09:53:48 +0200
Hans Hagen pra...@wxs.nl wrote:

  mupdf uses SIGHUP under linux -- does windows offer a similar way ?  
 
 we only want to close a file, not the whole session

Sending a SIGHUP signal to the mupdf process will also cause the viewed
file to be reloaded automatically, for use in e.g. build scripts.

Alan

(Also, zathura is another lightweight PDF viewer.)
___
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] New font (rival to Taco's cowfont?)

2013-05-17 Thread Alan BRASLAU
http://nekofont.upat.jp/

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] Footnote disappear in placeongrid

2013-05-02 Thread Alan BRASLAU
On Thu, 2 May 2013 08:20:54 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Add the \atomigrateinserts command to your document, it is necessary when you 
 have
 footnotes in a box, e.g. \framed or \placeongrid.

Added to
http://wiki.contextgarden.net/Footnotes
although further explanation would eventually be useful.

I have noticed this bug before (using local footnotes within 
\startframedtext\stopframedtext).

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
___


[NTG-context] TEXpage filename

2013-05-01 Thread Alan BRASLAU
Hello,

In the production of (scientific) articles for journal submissions,
one is often expected to supply the figures as separate files.

One workflow can be through the use of \startTEXpage\stopTEXpage
followed by an external extraction of single pdf pages to separate
files.

However, is it possible or would it be possible to directly output to a
named file, as in:
\startTEXpage{figure1.pdf}
\stopTEXpage
or perhaps
\startTEXpage [file=figure1.pdf]
\stopTEXpage
? (I could not find an answer looking at the source.)

One could then (optionally) reinclude the figure in a review copy of
the full text through the use of \externalfigure [figure1]

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] TEXpage filename

2013-05-01 Thread Alan BRASLAU
On Wed, 1 May 2013 16:16:07 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:

 Alan wrote:
  In the production of (scientific) articles for
  journal submissions, one is often expected to
  supply the figures as separate files.
 
  One workflow can be through the use of \startTEXpage\stopTEXpage
  followed by an external extraction of single pdf pages to separate
  files.  
 
 It might be easier to place the figure code in a separate file

This is one workflow that I classically use: as separate product in a
project. However, I was exploring how to include the figure (or table,
etc.) code in the standard product file with separate TEXpage output
streams.

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] [wiki] fake account spam

2013-04-26 Thread Alan BRASLAU
On Fri, 26 Apr 2013 08:55:52 +0200
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 Well, in that case, I'd actually prefer Greek - write line 222 of book 
 2 of the Odyssey in its original Greek, or something like that... 

That's too easy:

σῆμά τέ οἱ χεύω καὶ ἐπὶ κτέρεα κτερεΐξω

:)
___
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] [wiki] fake account spam

2013-04-26 Thread Alan BRASLAU
On Thu, 25 Apr 2013 23:52:56 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:

 Or we could go old-school copy protection style: What is the fifth
 word on page 120 of the TeXbook? :-P

\TEX

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] [wiki] fake account spam

2013-04-25 Thread Alan BRASLAU
On Thu, 25 Apr 2013 20:19:41 +0200
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 I think we 
 should demand that all questions be answered in Dutch. Every serious 
 ConTeXter has to know some Dutch, and nothing better than asking
 What is the ConTeXt keyword for a two-sided layout and expecting 
 dubbelzijdig as an answer. If that doesn't help, we make them 
 pronounce it...

++

(One can always look in mult-def.lua in order to cheat, but this won't
help me with the pronounciation)

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
___


[NTG-context] localfootnotes and bodyfontsize in a placetable

2013-04-23 Thread Alan BRASLAU
The following attached minimal example using local footnotes
and a small body font size exhibits two problems:

1. The \placelocalfootnotes are incoherently in the normal size, as
   I would expect them to be proportionally reduced.

2. The width of the first column gets incorrectly set
   (there is a break between a and cell).

Probably there is a better way of achieving this correctly.

Alan\setupbodyfont[10pt]

\starttext
10pt
\startplacetable [title=A title]
\switchtobodyfont [6pt]
\startlocalfootnotes
\bTABLE
 \bTR
 \bTD a cell\startfootnote A footnote\stopfootnote\eTD
 \bTD another cell\eTD
 \eTR
\eTABLE
\placelocalfootnotes
\stoplocalfootnotes
\stopplacetable
\stoptext



\setupbodyfont[10pt]

\starttext
10pt
\startplacetable [title=A title]
\switchtobodyfont [6pt]
\startlocalfootnotes
\bTABLE
 \bTR
 \bTD a cell\startfootnote A footnote\stopfootnote\eTD
 \bTD another cell\eTD
 \eTR
\eTABLE
\placelocalfootnotes
\stoplocalfootnotes
\stopplacetable
\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] rotated placetable

2013-04-20 Thread Alan BRASLAU
Hello,

On October 1, 2010 Mojca asked about inserting a rotated page content
(landscape) in an otherwise portrait document, keeping the headers and
footers upright. The suggested solution was essentially
\rotate [rotation=90] {\startTEXpage
[width=\textheight,height=\textwidth]
...
\stopTEXpage}

I would like to place a wide table rotated as above, keeping the page
headers and footers upright. In other words, I would like to do
something like
\startplacetable [location=page,orientation=90,title=Table
caption]
...
\stopplacetable
That is, rotate the table contents *and its caption*, but not the page
header and footer.

Note that the following will indeed rotate the contents but not the
caption.
\startplacetable [title=Table caption]
\rotate [rotation=90] {\startTEXpage
...
\stopTEXpage}
\stopplacetable

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] rotated placetable

2013-04-20 Thread Alan BRASLAU
On Sat, 20 Apr 2013 14:24:25 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 \startplacetable[location={page,90},title=Table caption]
 …
 \stopplacetable

Thank you Wolfgang!

I find it necessary to do the following:

\startplacetable [location={page,90},title=Table caption]
\startTEXpage [width=\textheight]
…
\stopTEXpage
\stopplacetable

The \startTEXpage [width=\textheight] … \stopTEXpage
is necessary in order to get the content (table macros: \bTABLE
\eTABLE) to work correctly.

I had thought that it would have made sense to use width=\textheight
with \startplacetable, but this did not work.

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] rotated placetable

2013-04-20 Thread Alan BRASLAU
On Sat, 20 Apr 2013 17:09:45 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 This is nonsense because \startTEXpage … \stopTEXpage is supposed to
 create a standalone page on your document where you can control the
 width/height of the page.

It seemed to me to be a strange use of TEXpage, but I was just following
your own suggestion of Fri, 01 Oct 2010 09:13:39, see,
http://www.mail-archive.com/ntg-context@ntg.nl/msg49606.html
so nonsense indeed! :)
 
 It’s hard to tell why you need this without a example but you can try
 to force the table width with \bTABLE[textwidth=\textheight].

Indeed, this is the proper solution (and gives a better result). I had
tried width=\textheight but this set the width of *all* columns to
\textheight!

Thanks again!

Ala
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Alan BRASLAU
Hello,

I naively tried using
\bTD\numexpr\currentTABLErow\minusone\relax\dTD
in a TABLE.

As I do not master even simple calculations under TeX, I do not see
what I am missing in order to label TABLE rows, starting from 0?


(Row 1 is a heading, set off by \bTABLEhead\eTABLEhead, which is why I
am looking to subtract 1 from \currentTABLErow, but this does not
matter of course.

But perhaps the addressing of TABLE rows, including within \setupTABLE,
should or could handle this situation? This is a secondary question to
think about...)

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] \frac broken in current beta

2013-04-16 Thread Alan BRASLAU
On Tue, 16 Apr 2013 09:52:08 +0200
Marco Patzer home...@lavabit.com wrote:

 Hi,
 
 \starttext
   \math{\frac12}
 \stoptext
 
 gives
 
 ! LuaTeX error [string \directlua ]:1: attempt to call field
 'math_frac' (a n il value)
 stack traceback:
 [string \directlua ]:1: in main chunk.
 
 
 Marco

Confirmed here!

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] the difference between \def and \define

2013-04-16 Thread Alan BRASLAU
Since the question has been raised about understanding \define, etc.
indeed some use remains a bit unclear (to me).

On Tue, 16 Apr 2013 12:34:48 +0200
Hans Hagen pra...@wxs.nl wrote:

 there is a commented blob that implements thinsg like this
 
 \starttext
  \define[2]\whatevera{#1+#2}
  \whatevera{A}{B}
  \define[me][too][2]\whateverb{#1+#2+#3+#4}
  \whateverb[A]{B}{C}
  \whateverb[A][B]{C}{D}
  \define[alpha][beta][gamma][delta]\whateverc{#1+#2+#3+#4}
  \whateverc[P][Q]
 \stoptext
 
 but it's just an old idea.

I am perhaps a bit bewildered today... but I do not understand the
above. It gets too tricky for me!

In fact, I do not understand well the handling of arguments,
especially optional variants.
For example,
\define[1]\Index{\index{#1}#1}
can be handy. But let's say that I want to be able to use a variant:
\Index[alpha]{$\alpha$}
(\index[alpha]{$\alpha$}$\alpha$)

Or, maybe, I might like to handle authors:
\define[2]\Author{\index{#2, #1}#1 #2}
\Author{Thomas A.}{Schmitz}
But what if I were to type \Author{Aristotle}?

Alan

P.S. I indeed like the idea of the suggestion:

\define[one,two,three]\whatever{first: #one second: #two third: #three}

On 4/16/2013 11:10 AM, Thomas A. Schmitz wrote:
 It certainly isn't an urgent need, but having

 \define[one,two,three]

 wouldn't be absurd, now would it?
___
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] Two Bibliography questions

2013-04-16 Thread Alan BRASLAU
On Tue, 16 Apr 2013 12:38:30 -0400
john Culleton j...@wexfordpress.com wrote:

 For my bibliography I want to use the harvard style and the
 author-date form of the \cite command. I am using the sample.bib
 file for testing. I have progressed to the point where the bibiography
 shows the contents of sample.bib properly formatted. But I still have
 a problem with the printing of the actual citation. My \cite command
 looks like:
 \cite{Eijkhout1991}
 
 but all that prints out is: 
 
 [1]
 
 Ideally I would see:
  
 (Eijkhout, 1991) 
 
  What other adjustments do I need to make to correct this
 printout of the citation in the text? 
 
 I already have the following in my preamble:
 
 \usemodule[bib]
 \setupbibtex[database={sample},sort=author]
 \setuppublications[alternative=harvard]
 \setupcite
[authoryear]
[pubsep={, },
 lastpubsep={ and },
 compress=yes,
 inbetween={ },
 left={(},
 right={)}]
 
 Second question: If I wish to restrict the printed bibilography to
 only those publications actually cited in the text with the \cite
 command or the \nocite command what do I need to change?

setuppublications [refcommand=authoryears,criterium=cite]
___
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] float combinations

2013-04-14 Thread Alan BRASLAU
Hans, you forgot to define a \testitem...

\starttext

\definelabel[test][text=,numberconversion=character,stopper=!]

 \define[1]\testitem{{#1} {\test}}

\resetcounter[test]

\startcombination[2*2]
\testitem{first}
\testitem{second}
\testitem{third}
\testitem{fourth}
\stopcombination

\stoptext

Now, adding
\setupcombinations [before={\resetcounter[test]}]
would be incorrect as the counter would get reset for each row...

Alan




On Sun, 14 Apr 2013 01:04:33 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 4/13/2013 1:13 PM, Alan BRASLAU wrote:
 
  (However, I am sure that Wolfgang can suggest an obvious solution
  that is already available, that I overlook... :)
 
 \useMPlibrary[dum]
 
 \starttext
 
 \definelabel[test][text=,numberconversion=character,stopper=!]
 
 \resetcounter[test]
 
 \startcombination[2*2]
  {first} {\test}
  {first} {\test}
 \stopcombination
 
 \startcombination[2*2]
  {first} {\test}
  {first} {\test}
 \stopcombination
 
 \resetcounter[test]
 
 \startcombination[2*2]
  {first} {\test}
  {first} {\test}
 \stopcombination
 
 \resetcounter[test]
 
 \startcombination[2*2]
  {first} {\test}
  {first} {\test}
 \stopcombination
 
 \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
___


Re: [NTG-context] float combinations

2013-04-14 Thread Alan BRASLAU
On Sun, 14 Apr 2013 10:55:41 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 4/14/2013 8:30 AM, Alan BRASLAU wrote:
  Hans, you forgot to define a \testitem...
 
  \starttext
 
  \definelabel[test][text=,numberconversion=character,stopper=!]
 
\define[1]\testitem{{#1} {\test}}
 
  \resetcounter[test]
 
  \startcombination[2*2]
   \testitem{first}
   \testitem{second}
   \testitem{third}
   \testitem{fourth}
  \stopcombination
 
  \stoptext
 
  Now, adding
  \setupcombinations [before={\resetcounter[test]}]
  would be incorrect as the counter would get reset for each row...
 
 sure, but then it's nice to have it as option of the combination
 command
 
 anyway, there's also (we've always needed such things in projects):
 
 \starttext
 
 \startplacefigure[location={here,none}]
  \startfloatcombination[2*2]
  \placefigure{alpha}{\externalfigure[cow.pdf][width=1cm]}
  \placefigure{beta} {\externalfigure[cow.pdf][width=2cm]}
  \placefigure{gamma}{\externalfigure[cow.pdf][width=3cm]}
  \placefigure{delta}{\externalfigure[cow.pdf][width=4cm]}
  \stopfloatcombination
 \stopplacefigure
 
 \stoptext
 
 as that started out as experiment and was used in specific styles it
 was never documented (example from source)
 
 (mayb i'll add \startplacefigurecombination some day)
 
 Hans
 

Ah, more undocumented features... :)

\definefloat  [figureitem] [figureitems] [figure]
\setupcaption [figureitem] [numberconversion=character]
\startplacefigure [title=Cows]
 \startfloatcombination[2*2]
 \startplacefigureitem [title=alpha] \externalfigure [cow] [width=1cm] 
\stopplacefigureitem
 \startplacefigureitem [title=beta]  \externalfigure [cow] [width=2cm] 
\stopplacefigureitem
 \startplacefigureitem [title=gamma] \externalfigure [cow] [width=3cm] 
\stopplacefigureitem
 \startplacefigureitem [title=delta] \externalfigure [cow] [width=4cm] 
\stopplacefigureitem
\stopfloatcombination
\stopplacefigure

Two problems, though:
1. I tried label= in \setupcaption to suppress Figure . This does not work,
   and looking at the source I do not see how to do this...
2. Missing is some way to reset the figureitem counter automatically with each 
\startfloatcombination.
   It looks as if it could be a nice feature to add new keywords like before= 
and after=.
   Maybe beforeall= and afterall=, beforefirst= and afterlast=, ... 

I suppose that the above brings little advantage over the \definelabel solution 
previously suggested.

Ala
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] float combinations

2013-04-14 Thread Alan BRASLAU
On Sun, 14 Apr 2013 13:54:48 +0200
Marco Patzer home...@lavabit.com wrote:

 On 2013–04–14 Alan BRASLAU wrote:
 
  Two problems, though:
  1. I tried label= in \setupcaption to suppress Figure . This
  does not work, and looking at the source I do not see how to do
  this...
 
 \setuplabeltext [figureitem=]

Of course, thank you!

However, there is another problem with this second solution as it
shares the same counter with figure, rather than its own. This can be
corrected by *not* inheriting from [figure], as in
\definefloat [figureitem] [figureitems]
Still, there needs to be some mechanism to automatically reset the
counter, for example via a way= keyword,...

Hans will surely be dreaming up a combinationitem scheme...

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] float combinations

2013-04-13 Thread Alan BRASLAU
This is probably not exactly what you want, however, one can use list=
in \startplacefigure\stopplacefigure to differentiate between the
figure caption and its listing in the list of figures.



\startplacefigure [title={Dutch scenery.
\startitemize [n]
\startitem A cow. \stopitem
\startitem A mill. \stopitem
\stopitemize},
list=Figure title,
reference=fig:scenery]

\startcombination [2]
{\externalfigure [cow]  [width=.5\textwidth]} {a}
{\externalfigure [mill] [width=.45\textwidth} {b}
\stopcombination
\stopplacefigure

A cow is shown in \in{figure} [fig:scenery]a.




The above example raises the following (low priority) feature
suggestion: How about some way of automatically numbering/labeling
combinations just like item lists? Sort-of a hybrid between
combination and itemize. Say,
\startcombination [r*c] [item=a]
\startitem \externalfigure [cow] \stopitem
\startitem \externalfigure [mill] \stopitem
\stopcombination

Hmm. A challenge for Hans (as if he is not busy enough).

(However, I am sure that Wolfgang can suggest an obvious solution that
is already available, that I overlook... :)

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] Bug in the latest beta (\stopalignment)

2013-04-10 Thread Alan BRASLAU
On Tue, 9 Apr 2013 18:07:19 +0200
Jannik Voges jannik.vo...@icloud.com wrote:

 \stopalignment

Yes, I noticed a bug with \stopalignment.

In fact \startalignment\stopalignment now gives errors in certain situations,
for example, within a \startfootnote \stopfootnote pair.

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] hyperlink bug in \cite

2013-04-10 Thread Alan BRASLAU
On Wed, 10 Apr 2013 11:47:21 +0200
Hans Hagen pra...@wxs.nl wrote:

 can probably be solved (by rewriting some low level bin code ... but
 as there is no sample attached ...)

Minimal example attached.

Alan\setupinteraction  [state=start]
\setupbibtex   [database=biblio,sort=author]
\setuppublications [refcommand=authoryear,sorttype=bbl,criterium=cite] % author (year)
\starttext

Cybernetics. \cite [Ashby1954] \cite[Wiener1961]

Cybernetics. \cite [Ashby1954,Wiener1961]

\starttitle [title=Bibliography]
  \placepublications [criterium=all]
\stoptitle

\stoptext
@BOOK{ Ashby1954,
	author = {Ashby, W. Ross},
	title = {Design for a Brain},
	year = {1954},
	publisher = {John Wiley {\} Sons Inc.},
	address = {New York}
}

@BOOK{ Wiener1961,
	author = {Wiener, N.},
	title = {Cybernetics or Control and Communication in the Animal and in the Machine},
	year = {1961},
	publisher = {M.I.T. Press and John Wiley {\} Sons},
	address = {New York}
}
___
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] hyperlink bug in \cite

2013-04-09 Thread Alan BRASLAU
Hello,

\cite[A] can yield a hyperlink to the bibliography. However,
\cite[A,B] does not (and should).

I suppose that this could be a bit complicated when using numbered references 
(rather than Author, year), in the particular case where one collapses the list 
of numbers, in which case the hyperlink could naturally point to the first 
numbered reference of the list.

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
___


[NTG-context] Unnumbered chapters (title), numbered appendices

2013-04-09 Thread Alan BRASLAU
Hello,

I am having difficulties with the use of unnumbered chapters (\title)
as well as the use of appendices.

http://wiki.contextgarden.net/Titles#Unnumbered_titles_in_table_of_contents
gives a few recipes for the use of unnumbered titles and their inclusion in
the table of contents. Unfortunately, they do not work!

\definehead [intro] [chapter] \setuphead [intro] [number=no]
will increment the chapter number, as does 
\setuphead [title] [incrementnumber=yes,number=no]

trying coupling=no gives missing number errors (in the toc).

Furthermore, placing chapters into \frontmatter and \backmatter might not 
always be a solution.



In a document structured in *parts*, one might want to have an introduction
(and other front matter) as well as conclusions (and other back matter).
One needs a means of switching section blocks, for example, without resetting 
everything.
Maybe this can become an option in
\startfrontmatter [reset=no]
\startappendices [reset=no]
\startbackmatter [reset=no]
for example, or else:
\setupsectionblock [appendix] [resetnumber=no] % number=yes|no


Another route could be through the use of the *mysterious* structureresetset
\definestructureresetset [default] [0,0] [1] % do not reset parts and chapters
\setuphead [part,chapter] [sectionresetset=default]
coupled somehow to the section blocks.

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] Unnumbered chapters (title), numbered appendices

2013-04-09 Thread Alan BRASLAU
On Tue, 9 Apr 2013 13:17:06 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Am 09.04.2013 um 12:53 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
  Hello,
  
  I am having difficulties with the use of unnumbered chapters (\title)
  as well as the use of appendices.
  
  http://wiki.contextgarden.net/Titles#Unnumbered_titles_in_table_of_contents
  gives a few recipes for the use of unnumbered titles and their inclusion in
  the table of contents. Unfortunately, they do not work!
  
  \definehead [intro] [chapter] \setuphead [intro] [number=no]
  will increment the chapter number, as does 
  \setuphead [title] [incrementnumber=yes,number=no]
  
  trying coupling=no gives missing number errors (in the toc).  
 
 Use
 
   \placelist[chapter,intro,section,…]
 
 to flush a list with your intro heading or extend \completecontent with 
 \intro:
 
   \definecombinedlist[content][chapter,intro,section,…]


This is *not* the problem.

The use of such unnumbered sections will increment the *chapter* numbers,
even if they do not display numbers themselves (number=no).
Otherwise, they will not create a list and cannot be included in a toc.

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] prezi presentations

2013-04-09 Thread Alan BRASLAU
On Tue, 9 Apr 2013 14:04:44 +0200
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 Hi all,
 
 this is a very far shot, but just maybe... I have been looking at prezi 
 (http://prezi.com/). There's lots of aspects there that don't appeal to 
 me, but I find the general idea very nice: a presentation is sort of a 
 big poster, with some background graphics. You define areas on this 
 poster into which your content goes (so these would be the slides in a 
 conventional presentation). When you show your presentation, your viewer 
 will zoom in on these areas and present them full screen, and it will 
 move along a predefined path, thus showing the areas (slides) in a 
 certain order. The nice thing is that you can, at any moment, zoom out 
 and show the entire poster, thus giving an overview of your presentation 
 in which only the bigger elements (headlines etc.) will be readable. Now 
 I was wondering if the same couldn't be done with ConTeXt, pdf and 
 javascript: producing a big pdf with a background image would be fairly 
 easy (metapost's vector graphics would look good at any zoom level). 
 Placing slides with content there could be done via layers. Zooming in 
 and showing certain areas is doable (but obviously would depend on the 
 pdf viewer, especially for the full screen mode). I have no idea if we 
 have support for rotating areas in a pdf viewer. Would javascript be 
 capable of automating this, i.e. defining areas in a pdf, displaying 
 them at a certain zoom level, and move from one area to the next? I 
 think this would be a nice alternative to traditional slide shows.
 
 Thomas

Very fashionable, phluffy, breaks the ice at parties...

I sat through a prezi presentation recently. The speaker took us on a
long trip. It was cool! But in the end, there was not much to retain,
and I thought: where's the beef?.

As to the constant zooming in and out, I kept wondering what the little
specks represented (that I knew we would soon be visiting). Sort of like
the old transparency technique of hiding parts with paper flaps. Lots of
suspense! :)

Remember, viewed from afar, all organisms look just like flies.

For further discussion, I suggest:
http://www.edwardtufte.com/tufte/books_pp

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] math: size of sqrt to small for fractions

2013-04-09 Thread Alan BRASLAU
On Tue, 9 Apr 2013 21:25:16 +0200
Xenia yor...@googlemail.com wrote:

 Oh, I didn't know that. For my feelings, all variables should have the
 same size here (a,b and c).

In this case you should probably use:

a = \sqrt{b/c}

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] [wiki] fake account spam

2013-04-05 Thread Alan BRASLAU
On Fri, 5 Apr 2013 15:59:47 +0200
Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 some context-specific question (honestly: if
 users don't know how to answer some slightly more tricky question,
 they shouldn't be able to get the account). We could use questions
 like Last name of president of ConTeXt User Group.

Uh... ?

Why not some *really* tricky question like: what keyword is to be used to 
right-justify? :)

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
___


[NTG-context] \setupheadertexts [section]

2013-03-26 Thread Alan BRASLAU
Hello,

\setupheadertexts [chapter]

will center the current chapter title (or abbreviated version using
marking=) in the running page headers.

However, how can one also put unnumbered chapter-level titles
(\starttitle\stoptitle) in the running headers?

\setupheadertexts [chapter,title]
seems natural but does not work.


Also, what seems to be a bug, the running text does *not* get reset to
empty upon leaving the chapter. Below is a minimal illustration
(nonworking as it is incomplete, only a snippet)

\setupheadertexts [chapter]

\starttext

\startpart % lets have some structure...

Some introductory text...

\startchapter [title=Getting started]

Some text...

\stopchapter

\page [yes]

Some trailing remarks...
% the header here still contains Getting started

\stoppart

\stoptext


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] \setupheadertexts [section]

2013-03-26 Thread Alan BRASLAU
On Tue, 26 Mar 2013 12:00:49 +0100
Otared Kavian ota...@gmail.com wrote:

 I think the reason is that ConTeXt expects any text to be part of a
 certain structure as in Chapter  Section  Subsection
 and therefore what you add after your chapter, that is
 
  \page [yes]
  
  Some trailing remarks…  
 
 should be part of a new chapter (or maybe an unnumbered chapter).
 
 Best regards: OK

It is part of a certain structure: part...
No logic should require chapter or lower structure. After all, what is
the point of \stopchapter in that case?
The same can occur within a chapter, when one leaves a section.
One should just go back up one level, as is the case for the
introductory remarks.


Also, I tried putting a unnumbered chapter
(\starttitle\stoptitle). Indeed, this corresponds to the first part of
my question concering \setupheadertexts [chapter,title].

I supposed that one can try to cheat:
\startchapter [title=,placehead=no,incrementnumber=no,...]
but this is not very elegant.

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] \setuphead [bodypartlabel=]

2013-03-26 Thread Alan BRASLAU
\setuplabeltext [chapter=Chapter ]

enables a label in chapter headings.

Sometimes, one wants to have an unnumbered chapter-level structure that
otherwise appears in the table of contents, bookmarks, marking, etc.
without having to make many special definitions.

One suggests:
\definehead [NOchapter] [chapter]
\setuphead [NOchapter] [incrementnumber=no,number=no,bodypartlabel=]

\starttext
\startNOchapter [title=Introduction]
\stopNOchapter
\startchapter [title=First chapter]
\stopchapter
\stoptext

And then adding NOchapter to the contents combined list, to the
bookmarks, and so on, not to speak about marking. Ugh!

Much easier would be the occasional use of
\startchapter [title=Introduction,incrementnumber=no,number=no,bodypartlabel=]
\stopchapter
but this does not work! One gets: Chapter Introduction.
That this does not work I suppose might be somewhat of a bug...

Even better, more coherent, more logical, would be
\startchapter [title=Introduction,incrementnumber=no,number=no,label=no]
\stopchapter
(Note that label=no is used for lists).

This would also have the advantage of allowing the chapter labeltext to be 
defined
for each language, rather than be empty, so that it could then be simply turned 
on or off.
In fact, label=no would be the default setup.

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] \setuphead [bodypartlabel=]

2013-03-26 Thread Alan BRASLAU
On Tue, 26 Mar 2013 19:25:27 +0100
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 26.03.2013 um 19:15 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
  \setuplabeltext [chapter=Chapter ]
  
  enables a label in chapter headings.
  
  Sometimes, one wants to have an unnumbered chapter-level structure
  that otherwise appears in the table of contents, bookmarks,
  marking, etc. without having to make many special definitions.
  
  One suggests:
  \definehead [NOchapter] [chapter]
  \setuphead [NOchapter] [incrementnumber=no,number=no,bodypartlabel=]
  
  \starttext
  \startNOchapter [title=Introduction]
  \stopNOchapter
  \startchapter [title=First chapter]
  \stopchapter
  \stoptext
 
 \startnamedsection[NOchapter][title=…]
 …
 \stopnamedsection
 \startnamedsection[chapter][title=…]
 …
 \stopnamedsection
 
  And then adding NOchapter to the contents combined list, to the
  bookmarks, and so on, not to speak about marking. Ugh!
  
  Much easier would be the occasional use of
  \startchapter
  [title=Introduction,incrementnumber=no,number=no,bodypartlabel=]
  \stopchapter but this does not work! One gets: Chapter
  Introduction. That this does not work I suppose might be somewhat
  of a bug...
  
  Even better, more coherent, more logical, would be
  \startchapter
  [title=Introduction,incrementnumber=no,number=no,label=no]
  \stopchapter (Note that label=no is used for lists).
  
  This would also have the advantage of allowing the chapter
  labeltext to be defined for each language, rather than be empty, so
  that it could then be simply turned on or off.
 
 \setuplabeltext[en][chapter=…]
 \setuplabeltext[nl][chapter=…]
 
  In fact, label=no would be the default setup.
 
 \setuplist[chapter][label=yes|no|none|NAME]
 
 Wolfgang

All of this does not take care of handling NOchapter in marking,
bookmarks, contents, etc. Consider:
\setupheadertexts [chapter]
\placebookmarks [chapter,section] [chapter]
\definecombinedlist [content] [chapter,section,subsection]

Nor the fact that labeltext chapter is empty by default,
rather than simply disabled or turned-off.

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
___

[NTG-context] structure: project, product, structureresetset, ...

2013-03-25 Thread Alan BRASLAU
Hello,

I have a *project* that consists of a book in 3 volumes.
Each volume is a *part*.
Each volume or part has a (recto-verso) title page.
Each volume or part also has front and back matter: table of contents, 
bibliography, index, ...
Each volume or part also has *appendices*

Thus, I have 3 *products* corresponding to the three volumes.
Each product has *components*: chapters, appendices, ...

Now, I would like the second volume to know that it is Part II and the third 
volume to know that it is Part III.
I would also like to continue the chapter numbering in succession in each 
volume:
i.e. 1, 2, 3 in Part I; 4, 5, 6 in Part II; 7, 8, 9 in Part III.
Furthermore, I would like the appendices to do likewise:
i.e. A, B in Part I; C, D, and E in Part II; F in Part III.

Of course, I need to specify in my *environment* 

\definestructureresetset [default] [0,0] [1]
\setuphead [part] [sectionresetset=default,conversion=Romannumerals]

But... how do I propagate the numbering from product to product, that is part 
to part?
Everything was just fine when all of the parts were collected into a single 
product
having a unique front and back matter and all of the appendices at the end...

It should be simple, but sometimes I fail to see the obvious! :)

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
___


[NTG-context] setupquotation and setupquote

2013-03-24 Thread Alan BRASLAU
Hello,

quotation is linked to quote. Indeed, we have in typo-del.mkiv

\definedelimitedtext
  [\v!quote][\v!quotation]


However, when the user then changes options using \setupquotation,
\startquote\stopquote also gets modified. In the minimal example below,
it is necessary to uncomment \setupquote in order to restore normal
quote text. I believe that this to be a bug (and not a feature).


\setupquotation [style=slanted]
%\setupquote [style=normal]

\starttext

Tufte:
\startquotation
\input tufte
\stopquotation

Ward:
\startquote
\input ward
\stopquote

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


Re: [NTG-context] bibliography (interaction)

2013-03-23 Thread Alan BRASLAU
On Thu, 21 Mar 2013 22:32:25 +0100
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 On 03/21/2013 10:14 PM, Alan BRASLAU wrote:
  Hello,
 
  1. Is there some way to enable interaction with bibliographies?
  (i.e. hyperlinks from the citations to the list.)
 
  2. Can one create an index of author names, for example, listing the
  pages of citations?
 
  Alan
 
 Hi Alan,
 
 1. should work by default when you have
 \setupinteraction[state=start] in your document preamble.

So, playing with a minimal example reveals that interaction does not
work when refcommand is set to authoryear, for example.
(removing the setuppublications below gives working hyperlinks).
Is this a bug?

Alan

-

\setupinteraction  [state=start]
\setupbibtex   [database=test]
\setuppublications [refcommand=authoryear] % author (year)

\starttext

\startquotation
The mind cannot possibly grasp the full meaning of the term of a hundred 
million years.
\stopquotation
\rightaligned{\cite [Darwin1859]}

\completepublications [criterium=all]

\stoptext

-

@BOOK{ Darwin1859,
author = {Darwin, C.},
year = {1859},
title = {On the Origin of Species by Means of Natural Selection, or The 
Preservation of Favoured Races in the Struggle for Life.},
publisher = {John Murray},
address = {London}
}
___
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] bibliography (interaction)

2013-03-23 Thread Alan BRASLAU
On Sat, 23 Mar 2013 10:15:41 +0100
Hans Hagen pra...@wxs.nl wrote:

  So, playing with a minimal example reveals that interaction does not
  work when refcommand is set to authoryear, for example.
  (removing the setuppublications below gives working hyperlinks).
  Is this a bug?  
 
 probably a mkii left-over (prevent breaking big hyperlinks) .. can
 you try with
 
 \unexpanded\def\bibmaybeinteractive#1#2%
{\doifbibinteractionelse{\gotobiblink{#2}[#1]}{#2}}

Replacing bibmaybeinteractive in bibl-tra.mkiv with the above indeed
fixes the hyperlink. Thank you!



I have two further questions concerning bibliographies:

1. I would like to produce a list of authors, an index of names.
I am playing with list[pubs], but have not understood this yet. 
And I would like to add other names to this list, authors that are
named but not necessarily cited. I am sure that this is do-able and I
will try to figure it out, but would welcome any further hints. :)


2. Using \placepublications [criterium=chapter]
in order to put a list of references at the end of each chapter
has a side effect, probably a feature, that a citation in a later
chapter to a cited reference from an earlier chapter will *not* repeat
the reference in the later chapter's list of references. This seems
somewhat confusing to the reader but indeed is most likely a feature.

I see two solutions:

A. Better organization of the text so that this confusing situation
does not arise, either rewriting or else having the list of references
come at the end of all of the chapters involved, perhaps grouped in a
common structure such as a part.

B. Allowing a repeat of the publication in all the pertinent lists,
perhaps as an optional setting.

What do the bibliographical specialists think?

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] upto current

2013-03-21 Thread Alan BRASLAU
On Thu, 21 Mar 2013 11:19:24 +0100
Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 Marcin wasn't talking about organizing the wiki page, but about
 writing up-to-date and complete manuals (in PDF) which is nearly
 impossible with the speed that Hans keeps developing ConTeXt ;).

Unless we find funding somewhere to assign someone sufficiently
competent to work full-time for Hans just to write and maintain
documentation.

This is not a bad idea if only we could get it sponsored...

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
___


[NTG-context] bibliography (interaction)

2013-03-21 Thread Alan BRASLAU
Hello,

1. Is there some way to enable interaction with bibliographies? (i.e.
hyperlinks from the citations to the list.)

2. Can one create an index of author names, for example, listing the
pages of citations?

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] bibliography (interaction)

2013-03-21 Thread Alan BRASLAU
On Thu, 21 Mar 2013 22:32:25 +0100
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 On 03/21/2013 10:14 PM, Alan BRASLAU wrote:
  Hello,
 
  1. Is there some way to enable interaction with bibliographies?
  (i.e. hyperlinks from the citations to the list.)
 
  2. Can one create an index of author names, for example, listing the
  pages of citations?
 
  Alan
 
 Hi Alan,
 
 1. should work by default when you have
 \setupinteraction[state=start] in your document preamble. 2. is not
 possible, AFAIK.

Hmmm. I do (\setupinteraction [state=start]), and it doesn't (work).
Other interactions work, of course.

I'll have to play around with it, starting with a *minimal example*
before I ask any further questions. :)

And I'll play around as well with Hans' suggestion regarding the index.

Thanks

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] next beta (tabulate)

2013-03-20 Thread Alan BRASLAU
On Tue, 19 Mar 2013 23:46:35 +0100
Sietse Brouwer sbbrou...@gmail.com wrote:

 [1] http://wiki.contextgarden.net/Tabulate

There is \starttabulate and \starttable.
I understand that they use different mechanisms, even though their
syntax are parallel. The wiki page [1] warns against the use of macros
in tabulate, but this seems a bit obscure. Also, Tables_Overview
recommends tabulate for simple tables and flags both table and tables as
depreciated. I hesitate to add this information at the top of the wiki
pages: Tabulate, Table and Tables as I am not clear about the status
of these three mechanisms...

One question: is it possible to span columns using tabulate as in
table: \Use{n}[format]{data}?

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] \recurselevel inside \bTABLE\eTABLE

2013-03-17 Thread Alan BRASLAU
On Sun, 17 Mar 2013 13:00:22 +0100
Willi Egger cont...@boede.nl wrote:

 Dear all,
 
 I should prepare a form with a table. The table rows should be
 numbered. 
 
 How can I get get this done by using \recurselevel.
 In the attached minimal example all rows are numbered with 0.
 
 \starttext
 \subject{bTABLE--eTABLE: recurse creates rows}
 \bTABLE
   \dorecurse{3}
   {\bTR
   \bTD \recurselevel \eTD
   \eTR}
 \eTABLE
 
 
 What do i do wrongly here? 

\starttext
\subject{bTABLE--eTABLE: recurse creates rows}
\bTABLE
\dorecurse{3}
{\bTR
\bTD #1 \eTD
\eTR}
\eTABLE
\stoptext

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] How to disable hyphenation?

2013-03-07 Thread Alan BRASLAU
On Thu, 7 Mar 2013 23:47:27 +0100
Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

 Hi,
 
 I'd like to typeset some text flush left and *completely* without
 hyphenation.  What do I do?  (For now, I wrote \hyphenpenalty=1,
 but this is obviously not very ConTeXt-way.)
 
 Best,
 

\setupalign [nothyphenated]

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] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Alan BRASLAU
I am glad to see that I am not alone being confused...

We have:

\defineMPinstance
  [name]
  [\s!format=metafun,
   \s!extensions=\v!yes,
   \s!initializations=\v!yes,
   \c!method=\s!default,
   \c!textstyle=,
   \c!textcolor=]

also, \setupMPinstance

So that extensions=yes|no and initializations=yes|no controls the use
of MPextensions and MPinitializations. It seems that extensions is
intended for all instances (when enabled).

From what I can see, extensions are read once, initializations each,
and inclusions are intended for the user. It appears that
initializations is used to pass dynamic things from ConTeXt to MP.

I still have not figured out how to specify MPinclusions for a
particular instance.

It would be nice for someone who understands this all to explain it.

Alan 

 

On Thu, 14 Feb 2013 14:01:44 +0100
Marco Patzer home...@lavabit.com wrote:

 On 2013–02–14 Marco Patzer wrote:
 
  Now I can use “n” in all MP instances (unless switched off for the
  particular instance). I'd like to define some variables only visible
  in instance “foo”. Something like
  
\startMPinitializations [foo]
  numeric n; n=4cm;
\stopMPinitializations
 
 What I was looking for was (it's even mentioned in the manual):
 
   \startMPdefinitions{foo}
 …
   \stopMPdefinitions
 
 That means we have:
 
 - MPdefinitions (for instance-local definitions)
 - MPinclusions  (global definitions)
 - MPinitializations (global definitions, can be disabled for an MP
 instance)
 - MPextensions  (???, seems to be the same as MPinitializations)
 
 And all four include code for use within MP graphics. That really is
 confusing!
 
  Maybe I'm missing the obvious here.
 
 Yes, I did :)

___
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] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Alan BRASLAU
On Thu, 14 Feb 2013 19:14:46 +0100
Marco Patzer home...@lavabit.com wrote:

  I still have not figured out how to specify MPinclusions for a
  particular instance.  
 
 Try \startMPdefinitions{myinstance}

This is *not* the same as MPinclusions!

We may have an instance with its own MPdefinitions, already,
to which the user may wish to add his own MPinclusions (eventually
several times using the [+] argument).

\startMPinclusions{myinstance} does not work.

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] Alignment problem with labels and textext

2013-02-13 Thread Alan BRASLAU
On Wed, 13 Feb 2013 06:54:18 +0100
Lutz Haseloff lutz.hasel...@gmail.com wrote:

 Hi Hans, hi all,
 
 with the most recent ConTeXt
 (This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576)
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.11  int: english/english)
 there is an alignment problem with labels using textext.
 Labels without textext work ok.
 
 Small example showing the problem:
 
 -
 \starttext
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (textext(right) , point 0 of p) ;
 label.top (textext(top) , point 2 of p) ;
 label.lft (textext(left) , point 4 of p) ;
 label.bot (textext(bottom) , point 6 of p) ;
 \stopMPpage
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (right , point 0 of p) ;
 label.top (top , point 2 of p) ;
 label.lft (left , point 4 of p) ;
 label.bot (bottom , point 6 of p) ;
 \stopMPpage
 \stoptext
 -
 
 Greetings
 
 Lutz

Looks OK with
ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.12  int: english/english

___
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] Alignment problem with labels and textext

2013-02-13 Thread Alan BRASLAU
On Wed, 13 Feb 2013 11:11:23 +0100
Lutz Haseloff lutz.hasel...@gmail.com wrote:

 Hi Keith,
 
 following testfile perhaps describes my problem better:
 
 \starttext
 \startMPpage
 drawdot (origin);
 label.rt (textext(right) , origin) ;
 label.top (textext(top) , origin) ;
 label.lft (textext(left) , origin) ;
 label.bot (textext(bottom) , origin) ;
 \stopMPpage
 \stoptext
 
 If i run it by texexec(mkii), all is ok, with context(mkiv) the labels
 overlap.

I do not know what you expect exactly.
Each textext() label has a bounding box.
This bounding box is then aligned in the case of rt, top, lft, bot
with its appropriate edge centered at the origin.
The lft and rt text thus will not have their baselines aligned, unless you add 
a \strut.

(This is an issue with the chemical macros.)

Try label.rt (texttext(\strut right), origin) ;

By the way, you can use:
draw textext.rt (\strut right) ;
draw textext.top(\strut top) ;
draw textext.lft(\strut left) ;
draw textext.bot(\strut bottom) ;
which gives a tighter fit than label().



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] \startplacefigure breaking paragraph flow

2013-02-10 Thread Alan BRASLAU
On Sat, 9 Feb 2013 04:15:34 +0100
Marcin Borkowski mb...@amu.edu.pl wrote:

 when I issue a \startplacefigure, it breaks the flow of the paragraph.

I systematically use

\startpostponing [+0]
\startplacefigure
...
\stopplacefigure
\stoppostponing

to prevent the paragraph break of \startplacefigure

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] Placefigure without numbering

2013-02-01 Thread Alan BRASLAU
On Fri, 1 Feb 2013 22:42:10 +0100
H. Özoguz h.oezo...@mmnetz.de wrote:

 Am 01.02.2013 21:58, schrieb ntg-context-requ...@ntg.nl:
  \startplacefigure [title=My description, reference=fig:demo,
  number=no] ?
  \stopplacefigure
 Thanks Marco, and how to align the title at the center under the 
 picture? (Now it is flushright)
 

Untested:
\setupcaption [figure] [align=middle]

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] Typesetting LibreOffice (ODT) documents with ConTeXt

2013-01-31 Thread Alan BRASLAU
On Wed, 30 Jan 2013 18:54:49 -0500
Bill Meahan subscribed_li...@meahan.net wrote:

 Plus, most of my writer friends work in word processors 
 which means that it is far easier to exchange manuscripts for proofing  
 feedback is via the (ugh) .doc file.

I have been able to teach some of my collaborators to exchange plain text. They 
mostly use MSWord as their editor. After one or two round trips in plain text 
format (.txt for them), they eventually learn to focus on content and forget 
about format. This is pretty easy with utf8 and ConTeXt as it is mostly 
readable text.

One constraint, though, is to keep paragraphs to one very long line with no \n 
or \r. This is not a problem for me as I simply configure my editor to wrap its 
view (not the file).

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] Some questions

2013-01-25 Thread Alan BRASLAU
On Fri, 25 Jan 2013 15:47:56 +0100
Marco Patzer home...@lavabit.com wrote:

  - The chemical formulae give an error (pages 37-38), but I'll come
  back to that later on, but what is the manual about it?  
 
 Hans and Alan are in the process of completely re-writing the
 chemical macros. I don't know the current state.

I have written a new manual that will be made available (soon),
once I manage to find some time with Hans to finish a few points...

I see that in the example from the ConTeXt Excursion manual, PB:...PE currently 
gives some errors.
I will look into this this weekend (I prefer to use SAVE...RESTORE, but I see 
that it is indeed
important to keep PB:...PE working to insure some backwards compatibility).

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] Some questions

2013-01-25 Thread Alan BRASLAU
On Fri, 25 Jan 2013 20:17:38 +0100
Alain Delmotte espera...@swing.be wrote:

 Waiting the book announced by Alan

A manual *only* describing the chemical macros...
perhaps to be considered as a chapter of the official documentation...

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] Misbehaving \starthanging\stophanging

2013-01-21 Thread Alan BRASLAU
On Mon, 21 Jan 2013 19:48:09 +0100
Hans Hagen pra...@wxs.nl wrote:

 On 1/19/2013 12:06 PM, Alan BRASLAU wrote:
  Hello,
 
  \starthanging\stophanging is a very appreciated feature.
 
  However, hanging text wrapped around a figure fails if a new
  paragraph intervenes.
 
  Minimal example:
 
  \starttext
  \starthanging [location=right] {\externalfigure [cow]
  [width=.3\textwidth]} This is a first paragraph.
 
  \input tufte
  \stophanging
  \stoptext
 
 currently somewhat limited as it's not like the regular place left 
 figure macro using the otr .. so the hang is forgotten after a par
 which means that you need to use \break or \crlf or something nor
 \par:
 
 \starttext
 \starthanging [location=right] {\externalfigure [cow]
 [width=.3\textwidth]} This is a first paragraph.\crlf \input tufte
 \stophanging
 \stoptext
 
 
 (some day i'll make a nice one)

Of course, I can use \crlf or \break.

By the way, I have encountered situations where the regular place
figure macro misbehaves as well.

Mimimal example:

\starttext
\startplacefigure [location=right,number=no]
\externalfigure [cow] [width=.3\textwidth]
\stopplacefigure
This is a first paragraph.
\startquotation
\input tufte
\stopquotation
\stoptext

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
___


[NTG-context] Misbehaving \starthanging\stophanging

2013-01-19 Thread Alan BRASLAU
Hello,

\starthanging\stophanging is a very appreciated feature.

However, hanging text wrapped around a figure fails if a new paragraph 
intervenes.

Minimal example:

\starttext
\starthanging [location=right] {\externalfigure [cow] [width=.3\textwidth]}
This is a first paragraph.

\input tufte
\stophanging
\stoptext

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
___


[NTG-context] buffers (append)

2013-01-14 Thread Alan BRASLAU
Hello,

In addition to \startbuffer \stopbuffer
it would be nice to have \startappendbuffer \stopappendbuffer.

I see that the lua function buffer.append() exists but I have not
worked-out how to add this functionality cleanly as conTeXt macros.
I imagine that this might be quite trivial for our TeX programming
experts... (for once, a [useful?] suggestion that in the end will not
entail many hours of work? :)

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] buffers (append)

2013-01-14 Thread Alan BRASLAU
On Mon, 14 Jan 2013 09:34:08 +0100
Wolfgang Schuster wolfgang.schus...@gmail.com wrote:

 
 Am 14.01.2013 um 09:00 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
  Hello,
  
  In addition to \startbuffer \stopbuffer
  it would be nice to have \startappendbuffer \stopappendbuffer.
  
  I see that the lua function buffer.append() exists but I have not
  worked-out how to add this functionality cleanly as conTeXt macros.
  I imagine that this might be quite trivial for our TeX programming
  experts... (for once, a [useful?] suggestion that in the end will
  not entail many hours of work? :)
 
 
 \startbuffer[a]
 Line 1
 \stopbuffer
 
 \startbuffer[b]
 Line 2
 \stopbuffer
 
 \starttext
 
 \startlines
 \getbuffer[a,b]
 \stoplines
 
 \stoptext
 
 Wolfgang

Thank you Wolfgang, this is useful.

However, it would still be helpful to be able to generically add to a
buffer without having to rename a new one. Shouldn't be very difficult
but I did not find that anything like this already exists. I often
think this way when I teach, adding steps to an example while repeating
the previous steps.

\startbuffer[a]
Line 1
\stopbuffer

\getbuffer[a]

\startaddtobuffer[a]
Line 2
\stopaddtobuffer

\getbuffer[a]

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
___


[NTG-context] Metafun textext()

2013-01-10 Thread Alan BRASLAU
Metafun textext() has been changed in an attempt to be more efficient. However, 
this has a side effet that it now handles colors differently, among other 
things. The following example, intended to cause difficulties for the color 
blind, no longer works. Is this a bug or a feature?

\starttext
\startMPcode
picture T ;
T := thelabel(textext(I'm seeing double),origin) ;

draw T withcolor green ;
draw T shifted (-1mm,1mm) withcolor blue ;
\stopMPcode
\stoptext

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] Metafun textext()

2013-01-10 Thread Alan BRASLAU
On Thu, 10 Jan 2013 06:51:50 -0500
Aditya Mahajan adit...@umich.edu wrote:

 Since the beginning of MkIV, colors in metapost labels need to be set at 
 the ConTeXt end (Untested):
 
 T := thelabel(textext(\color[blue]{I'm seeing double}), origin);
 
 Aditya

I don't believe that this is true, but I am most likely wrong.
Indeed \blue text has worked, but 'draw T withcolor blue;' *should* work as 
well.
The processing of textext() has changed recently, it seems.

\startMPcode
label(textext(I'm seeing double),origin) withcolor green ;
label(textext(I'm seeing double),(-1mm,1mm)) withcolor blue ;
\stopMPcode

DOES work.

Of course, these are much simplified minimal examples of what I would like to 
do.

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] How to use module simpleslides' SideToc

2013-01-08 Thread Alan BRASLAU
I believe that simpleslides SideToc style is broken (has been for a
while). Adrien and Thomas who wrote the simpleslides module will need
to eventually look into this.

Alan




On Tue, 8 Jan 2013 17:35:07 +0800
土卜皿 pengcz.n...@gmail.com wrote:

 hi, all
   I want to use simplesides' SideToc wirte a presentation like sample
 SideToc.pdfhttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/styles/SideToc.pdf,
 there is some introduction in Simple
 Slideshttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf
 A Context presentation
 modulehttp://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf,
 but no talking about how to set  background color in every region.
   where can I get the tex source of SideToc.pdf, or tell me what
 should I do?
 
 Thanks a lot!
 
 BEST REGARDS
 PengCZ

___
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] How to use module simpleslides' SideToc

2013-01-08 Thread Alan BRASLAU
Yes,

Many simpleslides styles seem to be broken.
Thomas seems to be aware of this but has not gotten to looking into it.

(t-slidesvisualcounter.tex is part of the simpleslides module:
texmf-modules/tex/context/third/simpleslides)

Alan

On Tue, 8 Jan 2013 21:05:38 +0800
土卜皿 pengcz.n...@gmail.com wrote:

 hi, all
Also, simpleslides' Shaded,Boxed are not successful, when
 compiling I got the same error as follows:
 84   \definevisualcounter
 85   [simpleslides:shadedcounter]
 86   [markers]
 87   [counter=userpage,
 88 %   distance=0.5cm,
 89distance={(\the\dimexpr\visualcounterparameter{maxwidth})/m
 + width},
 90path=unitcircle,
 91maxwidth=\textwidth,
 92width=0.3cm]
 93
 94 \definepalet[visualcounter:markers]
 
 I thought the above error  was led by t-visualcounter, so I executed
 the command:
 sh first-setup.sh --modules=t-visualcounter
 but it did not find module visualcounter,
 what should I do?
 
 Thanks!
 BEST REGARDS
 
 
 2013/1/8 Alan BRASLAU alan.bras...@cea.fr
 
  I believe that simpleslides SideToc style is broken (has been for a
  while). Adrien and Thomas who wrote the simpleslides module will
  need to eventually look into this.
 
  Alan
 
 
 
 
  On Tue, 8 Jan 2013 17:35:07 +0800
  土卜皿 pengcz.n...@gmail.com wrote:
 
   hi, all
 I want to use simplesides' SideToc wirte a presentation like
   sample SideToc.pdf
  http://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/styles/SideToc.pdf
  ,
   there is some introduction in Simple
   Slides
  http://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf
  
   A Context presentation
   module
  http://modules.contextgarden.net/dl/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf
  ,
   but no talking about how to set  background color in every region.
 where can I get the tex source of SideToc.pdf, or tell me what
   should I do?
  
   Thanks a lot!
  
   BEST REGARDS
   PengCZ

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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 Animations

2013-01-07 Thread Alan BRASLAU
On Mon, 7 Jan 2013 10:22:41 -0600
Troy Henderson thend...@gmail.com wrote:

 I've added a few more animations since my last post.  They can be
 accessed at
 
 http://www.tlhiv.org/animations
 
 There is one in particular that, I think, is quite impressive.  It is
 an animation of a function f(x,y,t) where t is time.  It is available
 at the aforementioned link or directly at
 
 http://www.tlhiv.org/animations/nocgi/function_surface.html
 
 Troy

Do we get to see the MetaPost code?

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
___


[NTG-context] ConTeXt standalone broken (texlua)

2012-12-13 Thread Alan BRASLAU
The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd):

/usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale

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] ConTeXt standalone broken (texlua)

2012-12-13 Thread Alan BRASLAU
On Thu, 13 Dec 2012 11:20:49 +0100
Taco Hoekwater t...@elvenkind.com wrote:

 On 12/13/2012 10:55 AM, Alan BRASLAU wrote:
  The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd):
 
  /usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale
 
  From the internet, I can deduce that this means that the runtime libc
 does not match the compile time libc.
 
 In particular, this seems relevant:
 
http://comments.gmane.org/gmane.os.freebsd.devel.ports/105182
 
 Best wishes,
 Taco

Yes, I forced a recompile locally (I am running 9.0, Mojca must have compiled 
on 9.1)
and then modified first-setup.sh NOT to re-sync luatex from the standalone 
server
and the update then succeeded.

Strangely, the binary on the server worked yesterday. However, since then,
an update of the ports updated pcre, notably, and this requires a recompile
of many binaries. I suspect that this is the problem.

On TeXlive, many precautions are taken to produce universal binaries
(i.e. freebsd 7.2)

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] Spacing and font problem with \chemical inside display math

2012-12-13 Thread Alan BRASLAU
We are currently in the process of a complete re-write of the chemical macros. 
In fact, we are almost finished and Hans is including the new macros in the 
beta (as fast as he can keep up with my changes...).

In your example, I see the spacing problem in display math but do not see the 
font problem. Maybe Hans can fix this extra spacing problem.

Rather than display math (as was suggested with ppchTeX), we have now introduced
\startchemicalformula
\stopchemicalformula
in order to display a chemical formula.

Also, I'm not sure why you might want to put \chemical{} within a \text 
command; may I suggest either \type{\chemical{CO_2}} or {\tt typewriter 
\chemical{CO_2}}, depending upon what you want to achieve.

Alan


On Thu, 13 Dec 2012 15:41:56 +0100
Romain Diss romain.d...@yahoo.fr wrote:

 Hi all,
 
 I found what I suppose to be a bug with the \chemical command:
 - when one use \chemical inside display math, the spacing is wrong around the 
 \chemical stuff. The font change inside \chemical also persists outside the 
 command.
 - if one enclose the \chemical command into curly braces, the font problem do 
 not appear but the spaces are still wrong.
 - if one put the \chemical command inside a \text{} command, ConTeXt stops 
 with an error.
 These problems do not occur in inline math.
 
 Here is a minimal example:
 
 %% START
 \starttext
 
 Chemical within inline math: \m{M(\chemical{CO_2})} or
 \m{M(\text{\chemical{CO_2}})}. This works fine.
 
 Chemical in display math: \startformula M(\chemical{CO_2}) \stopformula gives
 some strange spacing and seems to modify the font outside \tex{chemical}.
 
 Chemical in display math: \startformula M({\chemical{CO_2}}) \stopformula
 corrects the font problem but still gives some strange spacing.
 
 %Chemical inside \text in display math: \startformula 
 %M(\text{\chemical{CO_2}}) \stopformula gives an error.
 
 \stoptext
 %% END
 
 Anyone has an idea to solve this?
 
 Thanks in advance.

___
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] beta (MP)

2012-12-11 Thread Alan BRASLAU
On Mon, 10 Dec 2012 23:28:17 +0100
Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 I uploaded a beta. There are some minor changes in the mp machinery
 (as preparation for 'double' support. As I upgraded some file related
 code recently there can be issues (easy to solve once known as it's
 hard to foresee all bordercases).
 
 Hans

(Already reported directly, but I forgot to put the list on copy.)

There is a problem with the new beta.

Minimal example:

\starttext
\startMPcode
draw fullcircle scaled 1cm ;
\stopMPcode
\stoptext




metapost initializing instance 'metafun' using format 'metafun'
metapost loading
'metafun': 
/home/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv,
using method: default
luatex: ../../../source/texk/web2c/mplibdir/mp.w:5353:
do_set_attr_head: Assertion `A-type==mp_structured' failed.

mtx-context | fatal error: no return code, message: luatex:
execution interrupted
___
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] Save/Redraw labels as pictures

2012-12-08 Thread Alan BRASLAU
Hans has be playing with MetaPost instances which got broken.

\startMPpage\stopMPpage got the wrong instance
whereas \startTEXpage\startMPcode\stopMPcode\stopMPpage correctly got
the default instance.

Normally, this was fixed, but your minimal example still does not
work for me either. Something else is at cause...

The reasons Hans has modified MP instances are:
1. we wanted to isolate the chemistry drawing macros from other MP use,
but not from the user, and
2. we uncovered an error with mlib when using a very great number of
MP pictures.

Alan 




On Sat, 8 Dec 2012 05:42:43 -0600
Troy Henderson thend...@gmail.com wrote:

 The following code produces the letter J on the first page, but
 does not draw that same picture on the second page.  I would
 appreciate some advice on how to save and redraw this label in
 subsequence figures.
 
 Thanks,
 
 Troy Henderson
 
 \starttext
 \startMPinclusions[+]
 picture J;
 \stopMPinclusions
 \startMPpage
 J:=thelabel(btex J etex scaled 2,origin);
 draw J;
 \stopMPpage
 \startMPpage
 draw J;
 \stopMPpage
 \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
___


Re: [NTG-context] Math not loaded?

2012-12-06 Thread Alan BRASLAU
On Thu, 6 Dec 2012 14:29:04 +0100
Hans Hagen pra...@wxs.nl wrote:

 On 12/6/2012 2:21 PM, Philipp Gesang wrote:
  ···date: 2012-12-06, Thursday···from: Rogers, Michael K···
 
  The following gives the error with the latest beta:
 
  ! Math error: parameter \Umathquad\displaystyle is not set.
 
  I can confirm this for version 2012.12.06 01:21. It’s OK with
  2012.11.23 17:35.
 
 are there messages on the console with respect to missing fonts?

Reversion of lm.lfg

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] ConTeXt: Page numbering in words for spanish

2012-11-23 Thread Alan BRASLAU
On Fri, 23 Nov 2012 23:46:44 +0100
Hans Hagen pra...@wxs.nl wrote:

 first we need working prototypes for several languages, then I can
 wrap it into some general mechanism. I think all languages are
 somewhat different so 'general' is 'sort of general'.

For example, in French, 1000 can be une brique, une patate or un bâton,
but I guess that this is not quite the same thing as the subject
of this thread... :)

___
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] Dash equivalent of $BASH_SOURCE (for setuptex)

2012-11-22 Thread Alan BRASLAU
On Thu, 22 Nov 2012 10:21:28 +0100
Taco Hoekwater t...@elvenkind.com wrote:

 On 11/22/2012 10:18 AM, Hans Hagen wrote:
  On 11/21/2012 8:28 PM, Peter Münster wrote:
  On Wed, Nov 21 2012, Mojca Miklavec wrote:
 
  But Peter's idea is also not that bad. The drawback is that the
  distribution cannot be moved to a different directory then, but one
  could also have combination of both approaches somehow.
 
  Is it worth the trouble to keep setuptex?
  Just saying Please add ... to your PATH should be enough IMO.
 
  I often use it.
 
 Me too, I have quite a bunch of scripts that are distributed to
 online servers that do not all have the same architecture.

Sourcing setuptex (. pathtocontext/setuptex)
will fail to find and thus modify the path under pure Borne shells and their 
equivalents.
It will work just fine under bash, ksh (but sourcing the script will fail 
totally under csh and tcsh).
Executing the script (pathtocontext/setuptex) should run correctly under all 
shells
but will in all cases fail to set the path.

My suggestion is simply to modify the message printed at the end:
In the case of an execution rather than a sourcing, or in the case of sourcing 
under a Borne shell,
the script could instruct the user to manually modify the path. In the other 
case, it could set the path.

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] Hiding columns in m-database TABLE

2012-11-22 Thread Alan BRASLAU
For example, easily such files are easily manipulated using awk.

awk {print $1,$2,$3,$5,$7} data.csv  interesting.csv

and this can be used in a pipeline...

Alan


On Thu, 22 Nov 2012 15:36:45 +0100
Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

 Dnia 2012-11-22, o godz. 13:26:52
 Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a):
 
  On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote:
   le) in order to
   typeset a (nice) TABLE. However, I have a few columns I'd like to
   omit.  I can (of course) hand-edit the csv file; but is there a way
   to do it automatically?  Something like
  
   \setupTABLE[column][3,4,5][kill]
  
   I did [empty=yes,width=0pt] in place of [kill], and it worked, but
   it seems like a hack (and I don't know whether it does actually
   process the cells I'm omitting - which in my case wouldn't bother
   me, but might be an additional layer of inelegance;)).  And better
   ideas?
  
  If you have up to 9 columns, you could use
  
  \def\ProcessingLine#1#2#3#4#5#6#7{%
  \bTR\bTD#1\eTD\bTD#2\eTD\bTD#6\eTD\bTD#7\eTD}
  
  and then [command=\ProcessingLine]
 
 Well, something like 20 columns (on A4 landscape). ;)
 
 It turns out that my method somehow doesn't work well without setting
 also height=0pt; then it's fine, but I'm still wondering about a
 cleaner way.
 
  Mojca
 
 Best,
 



-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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
___

<    3   4   5   6   7   8   9   10   11   12   >