[NTG-context] 16-bit png

2008-02-14 Thread Alan BRASLAU
Hello,

I am having problems including 16-bit png files in ConTeXt. In the following 
example, red.png is a 800x600 image of red pixels. The resulting test.pdf 
shows a BLACK rectangle. (The same problem exists with real images.)

However, I can produce the desired result with my installation under 
pdflatex...

$ cat test.tex
\starttext
\externalfigure[red][width=\textwidth]
\stoptext
$ file red.png
red.png: PNG image data, 800 x 600, 16-bit/color RGB, non-interlaced
$ texexec test

$ cat test2.tex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=\textwidth]{red}
\end{document}
$ pdflatex test2

My distribution (debian + texlive) uses
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
in both cases.

Does this have something to do with \pdfimagehicolor?

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


Re: [NTG-context] 16-bit png

2008-02-15 Thread Alan BRASLAU
On Friday 15 February 2008 09:23:12 Taco Hoekwater wrote:
 Alan BRASLAU wrote:
  $ cat test.tex

\starttext
\pdfimagehicolor=1
\externalfigure[red][width=\textwidth]
\stoptext

 There, fixed that.

 That setting could go into the context core, though.

  Does this have something to do with \pdfimagehicolor?

 I am always surprised how many people ask a question,
 guess the correct answer themselves, but don't actually
 attempt to see if it works :-)

 Best wishes,
 Taco

Thanks for the very rapid answer.
However, no, neither of the proposed solutions work.
1. Of course, I tried \pdfimagehicolor=1 without results before posting the 
question. (I would NEVER think about asking for help without trying different 
possibilities myself...)
2. \setupcolors[state=start] was also in my original file, but did not seem 
to make a difference, so I posted a most simplified example.

What to do? I would think that there is something wrong with my configuration 
(debian/unstable), however pdflatex works just fine.

Alan

(P.S. Why would one need to specify \pdfimagehicolor in any case; From a 
user's point of view, shouldn't it just work transparently?) 
---BeginMessage---
Alan BRASLAU wrote:
 
 $ cat test.tex

   \starttext
   \pdfimagehicolor=1
   \externalfigure[red][width=\textwidth]
   \stoptext

There, fixed that.

That setting could go into the context core, though.

 Does this have something to do with \pdfimagehicolor?

I am always surprised how many people ask a question,
guess the correct answer themselves, but don't actually
attempt to see if it works :-)

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
---End Message---
---BeginMessage---
Hi

Does adding \setupcolors[state=start] at the top of the context file help?

Hans, how about enabling colors by default in mkiv?

Aditya

On Thu, 14 Feb 2008, Alan BRASLAU wrote:

 Hello,

 I am having problems including 16-bit png files in ConTeXt. In the following
 example, red.png is a 800x600 image of red pixels. The resulting test.pdf
 shows a BLACK rectangle. (The same problem exists with real images.)

 However, I can produce the desired result with my installation under
 pdflatex...

 $ cat test.tex
 \starttext
 \externalfigure[red][width=\textwidth]
 \stoptext
 $ file red.png
 red.png: PNG image data, 800 x 600, 16-bit/color RGB, non-interlaced
 $ texexec test

 $ cat test2.tex
 \documentclass{article}
 \usepackage{graphicx}
 \begin{document}
 \includegraphics[width=\textwidth]{red}
 \end{document}
 $ pdflatex test2

 My distribution (debian + texlive) uses
 This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 in both cases.

 Does this have something to do with \pdfimagehicolor?

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



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
---End Message---
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 16-bit png

2008-02-15 Thread Alan BRASLAU
On Friday 15 February 2008 10:36:02 Taco Hoekwater wrote:
 xpdf (and its derivatives) does not support 16-bit color.
 No warning, the pdf is just displayed incorrectly.

 It 'works' in pdflatex in xpdf because the file does not contain a
 16-bit image at all, it is automatically downgraded.

 If you want that same effect in context, set
\pdfminorversion=4 % or some other low number

 You document will be loosing functionality, and gaining portability.

 Best wishes,
 Taco

I am posting this to the mailing list to share the answer/solution.
\externalfigure[16-bit.png]
indeed works correctly. However, xpdf/kpdf/etc. do not handle 16-bit color, 
unlike acroread and ghostview. Note also that pdflatex automatically 
downgrades 16-bit color images to 8-bit.

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


Re: [NTG-context] colors in pgf within context

2008-02-19 Thread Alan BRASLAU
Hello,

Another problem with PGF+ConTeXt is the handling of cmyk colors:

\usemodule[tikz]
\setupcolors[state=start]
\definecolor[my_yellow][c=0,m=0.3,y=0.94,k=0]
\starttext
\startcolor[my_yellow]
Yellow text.
\stopcolor
\starttikzpicture
\fill[my_yellow] (0,0) circle(1);
\stoptikzpicture
\stoptext

CMYK colors work in ConTeXt but do not get passed correctly to PGF/TikZ.
A work-around is to transform to rgb :
\definecolor[my_yellow][r=0.98,g=0.698,b=0.09] % 250,178,23 #FAB217

This seems to be a documented bug; Perhaps it will be fixed someday...

Alan

On Tuesday 19 February 2008 04:47:35 Aditya Mahajan wrote:
 On Mon, 18 Feb 2008, Jesse Alama wrote:
  Hi Aditya,
 
  Thanks for the help -- I think I now see why there is such trouble with
  colors in pgf and context.  It looks like one can systematically
  transform LaTeX-like PGF examples of \color into ConTeXt examples.
 
  The reason why this came up is that I'm trying to go through Till
  Tantau's Example for Karl's Students tutorial in the PGF/TikZ manual.
  Has anyone managed to ConTeXt-ify that example?

 I did that some time back while testing tikz. I will send that file as a
 reply to this email, since I am not sure if it will go through the mailing
 list because of its size.

  The example features some \definecolor's which I just did away with
  (sadly) by simply substituting their defining values for their
  occurences.  (This is unfortunate, but perhaps necessary until some
  other mechanism is produced.)  The problem is that the text box to the
  right of the picture is supposed to be colored, and with rounded
  corners.  But the box is missing.  Look at p. 20 of

 The TikZ manual make a lot of uses of the xcolor syntax (e.g.
 \color{red!20}). There is no equivalent ConTeXt syntax. You need to define
 a color, say lightred, as follows

 \definecolor[lightred][r=0.2]

 For tikz key-value options, pgf works behind the scene to define
 appropriate colors, so xcolor syntax works for them. So
 \fill[fillcolor=red!20] will work as expected. However, when using \color
 inside any box, you need to follow ConTeXt syntax. So \color[red!20] will
 not work, you need to define a context color and then use that.

 Hope that this clarifies some things.

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

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




-- 
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:[EMAIL PROTECTED]

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


Re: [NTG-context] How could a typesetting system be today?

2008-05-30 Thread Alan BRASLAU
On Friday 30 May 2008 16:15:08 Steffen Wolfrum wrote:
 Am 30.05.2008 um 14:24 schrieb Yue Wang:
  On 5/30/08, Steffen Wolfrum [EMAIL PROTECTED] wrote:
  Am 30.05.2008 um 09:12 schrieb Yue Wang:
  advanced software, like InDesign
 
  well ... cough ...
 
  There is no denying that many advanced features in InDesign are
  missing in TeX(like) related software. What's more, the
  internationalization of InDesign is better.

 ;o)

 ... you can buy a czech version or a polish version, for working with
 hebrew you may buy a hebrew or a middle eastern version ... and wasn't
 there also an arabic version to buy?

 With TeX you only have one piece for all ... and you can't even buy it.


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


You are also free to purchase future new versions of InDesign, Illustrator, 
and the like, not to mention that of the operating system that it runs under!

-- 
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:[EMAIL PROTECTED]

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


Re: [NTG-context] Fwd: (scientific) poster

2008-06-13 Thread Alan BRASLAU
  I have to say that for poster stuff where you have to control
  visually the layout a GUI is not that bad.
  So now I'm using ConTeXt for text-based projects (documents, books)
  and Nodebox for visual related things (posters, presentations).

I am extremely happy using ConTeXt and TikZ/pgf
both for A0 posters as well as for video presentations.

-- 
Alan Braslau


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


[NTG-context] \bTABLE and \chemical

2008-09-08 Thread Alan BRASLAU
I have not understood how tables and \chemical interact.
The second case in the minimal example below
demonstrates unexpected/incorrect centering
when using \chemical and \bTABLE.
Am I missing something?

Thanks.

Alan

\starttext
\usemodule[chemic]
\setupchemical[size=small,scale=200,width=fit,frame=off]

\starttable[|c|]
\HL
\VL chemical formula \VL\AR
\HL
\VL
\startchemical
\chemical[SIX,B,C,R,RZ][R,R,R,R,R,R]
\stopchemical
\VL\LR
\HL
\stoptable
\blank[line]

\setupTABLE[c][1][align={middle,lohi}]
\bTABLE
\bTR
\bTD
chemical formula
\eTD
\eTR
\bTR
\bTD
\startchemical
\chemical[SIX,B,C,R,RZ][R,R,R,R,R,R]
\stopchemical
\eTD
\eTR
\eTABLE

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


Re: [NTG-context] \bTABLE and \chemical

2008-09-09 Thread Alan BRASLAU
On Tuesday 09 September 2008 08:33:19 Wolfgang Schuster wrote:
 \dontleavehmode\startchemical

Thank you. This works, of course.
I suppose that it is a subtlety why this is
necessary with \bTable but not with \starttable...

Should this perhaps be included in \startchemical
or would that wreak havoc elsewhere?

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


[NTG-context] span ROWS in \starttables?

2008-09-12 Thread Alan BRASLAU
Hello,

Is there any mechanism to span ROWS in (\start)tables
similar to column spanning through \use{3}{}?
The aim is to produce a multi-row column entry
as can be done via \bTD[nr=3] in \bTABLE.

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


Re: [NTG-context] span ROWS in \starttables?

2008-09-12 Thread Alan BRASLAU
On Friday 12 September 2008 08:34:15 Wolfgang Schuster wrote:
 On Fri, Sep 12, 2008 at 8:13 AM, Alan BRASLAU [EMAIL PROTECTED] wrote:
 
  Is there any mechanism to span ROWS in (\start)tables
  similar to column spanning through \use{3}{}?
  The aim is to produce a multi-row column entry
  as can be done via \bTD[nr=3] in \bTABLE.

 \NC \use{3} ... \NC ...

 or

 \NC \THREE ... \NC ...

 You can find more information on the wiki page:
 http://wiki.contextgarden.net/Table

 Wolfgang

This mechanism spans COLUMNS not rows.

I would like to produce
-
|| b |
||---|
| A | c |
||---|
|| d |
-
using \starttables,
as can be done with:
\setupTABLE[c][1][align=lohi]
\bTABLE
\bTR \bTC[nr=3]  A \eTC\bTC b \eTC \eTR
\bTR \bTC c \eTC \eTR
\bTR \bTC d \eTC \eTR
\eTABLE

Note that:
\starttables[|c|c|]
 \HL
 \VL \VL b \VL\AR
 \DC \DL \DR
 \VL A \VL c \VL\AR
 \DC \DL \DR
 \VL \VL d \VL\LR
 \HL
\stoptables
does not quite do the job,
since the aim is to put a tall object
A spanning the three rows.

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


Re: [NTG-context] span ROWS in \starttables?

2008-09-12 Thread Alan BRASLAU
On Friday 12 September 2008 10:51:58 Wolfgang Schuster wrote:
  \VL \smash{\vcenter{\hbox{\definedfont[Serif at 70pt]A}}} \VL c \VL\AR

Ah, TeX magic!
Indeed, I never learned about \smash. Thank you
(added a line to http://wiki.contextgarden.net/Table#Column_Spans)

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


Re: [NTG-context] Indexing macros

2008-09-15 Thread Alan BRASLAU
On Tuesday 3 December 2002 17:57:00 Hans Hagen wrote:
 Copied from the manual source: 
...
 \index {form::entry}

The following minimal example works as expected:
\setupregister[index][au][textstyle=\sc]
\def\Index#1{\index{#1}#1}
\def\Author#1{\index{au::#1}#1}
\starttext
The \index[TeX]{\TeX}\TeX \Index{typesetting} system (\Author{Knuth})
\page
\completeindex
\stoptext

Within a large project using the above definitions, author entries in the index 
are typeset normally, not in \sc.
However, if I use
\setupregister[index][au][textstyle=boldslanted]
I do get bold-slanted entries in my large project. Have I misunderstood the 
use of setupregister, or is this a bug?
Thank you, in advance.

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


Re: [NTG-context] Labelling figures

2008-09-16 Thread Alan BRASLAU
On Tuesday 16 September 2008 16:28:45 Hans Hagen wrote:
  what is the best method to add labels to a figure; I want them not only
  on the figure but their position should be relative to the figure size.

 how about just using a layer ...

You might also try pgf/tikz, according to your taste:

\usemodule[tikz]
\starttikzpicture[scale=]
\pgftext{\externalfigure[kuh][width=1cm]};
\draw (x,y) node {label};
\stoptikzpicture
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] lang-ita.tex (see=)

2008-09-18 Thread Alan BRASLAU
Missing from lang-ita.tex:
\setuplabeltext[\s!fr][\v!see=voir ]

(indeed, this label needs to be set for
all of the variants fr es ca it la pt ro)

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


Re: [NTG-context] Interaction and accented letters

2008-09-19 Thread Alan BRASLAU
On Friday 19 September 2008 19:00:42 Flavien Lambert wrote:
 Dear all, is there a way to put accented letters in the interaction command
 ? I tried
 \setupinteraction[state=start,
   author={Flavien Lambert},
   title={Optique géométrique},
   date={Septembre 2008}]

 and

 \setupinteraction[state=start,
   author={Flavien Lambert},
   title={Optique g\'eom\'etrique},
   date={Septembre 2008}]

 but both trials led to strange things in Acrobat Reader and Evince.

\enableregime[utf]
\mainlanguage[fr]
% before \placebookmarks :
\input spec-tst % to prevent turning accented characters
% into their unaccented counterparts
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteraction[state=start, % make hyperlinks active, etc.
option=bookmark,
title={Titre accentué},
subtitle={etc...},
author={moi-même},
keyword={français}]

Works with acroread and okular...

The \input spec-tst trick is somewhere in the documentation or wiki...


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


[NTG-context] ppchtex rotation

2008-09-22 Thread Alan BRASLAU
Hello,

I am having trouble drawing rotated molecules using ppchtex.
In the example below, I would like to draw the molecule shown in (a)
rotated as shown in (b).
I would appreciate any suggestions. Thanks.

Alan

\usemodule[chemic]
\setupchemical[width=fit]

\starttext
 \startcombination[2*1]
  {\startchemical
   \chemical[SIX,B,C,MOV2,B,C,R234,RZ234,MOV5,MOV6,B,C,R561,RZ561]
[R,R,R,R,R,R]
  \stopchemical}
  {(a)}
  {\startchemical
   
\chemical[SIX,ROT2,B,C,R234,RZ234,ADJ1,ADJ1,ADJ2,B,C,ADJ1,ADJ1,ADJ4,B,C,R156,RZ156]
[R,R,R,R,R,R]
  \stopchemical}
  {(b)}
 \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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] luatex run: edit (E) on syntax error

2008-09-24 Thread Alan BRASLAU
Hello,

(Learning to use mkIV under Debian)

Under luatex (texexec --lua)
it seems that choosing to edit (E)
the source file upon detection of a
syntax error echos
You want to edit file ./filename.tex at line 68
and then continues without launching
the editor.

Has anyone else seen this?
(of course, NOBODY other than
myself makes syntax errors!)

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


Re: [NTG-context] Has anybody used asymptote without LaTeX?

2008-09-28 Thread Alan BRASLAU
On 2008-09-28 04:35 Zhichu Chen wrote:
 It is said that Asymptote has supported PRC format 3D file: 
 http://asymptote.sourceforge.net/gallery/3D%20graphs/ 
 
 I really wanna give it a try, but once I was building from the svn 
 source, I was told that I don't have LaTeX in my $PATH. I haven't 
 really been using LaTeX for a long time, and I prefer I don't need 
 to install a bunch of LaTeX programs and packages just for a 
 drawing program which, IMHO, only use LaTeX to make nice 
 labels. 
 
 Is there any workarounds? And how to embed .prc files into 
 the .pdf document? 
  -- 
 Best Regards
 Chen

This doesn't really answer your question
but may be of some related interest to the mailing list.

I am quite fond of pfg/tikz as a drawing package
that works rather well with plain tex, latex and context.
Asymptote is a similar tool, but it seems to be less portable.
However, it appears on the other hand to be much more powerful for 3D.
Neverless, I am sharing with this context list an impressive tikz example





-- 
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:[EMAIL PROTECTED]

http://www-dna2006.cea.fr/

 .''`.
: :'  :
`. `'`
  `-
that I have adapted to context. (I have put the author on copy.)

Basically, the only changes to the latex source are
\usepackage{preview} - \startTEXpage \stopTEXpage
\begin{tikzpicture} - \starttikzpicture
and a few other minor syntax adaptations...)

Alan

% What is it
% ==
%
% Examples inspired by the thread at comp.text.tex about how to convert some 
hand 
% drawn pictures into programmatic 3D sketches:
% 
http://groups.google.com/group/comp.text.tex/browse_thread/thread/a03baf5d6fa64865/f7e7b903f1d87a6a
% The sketches present stereographic and cylindrical map projections and they 
% pose some interesting challenges for doing them with a 2D drawing package 
PGF/TikZ. 
%
% The main idea is to draw in selected 3D planes and then project onto the 
canvas 
% coordinate system with an appriopriate transformation. Some highlights:
% [*] usage of pgf math engine for calculation of projection transformations 
and 
% transitions points from visible (solid lines) to invisible (dashed 
lines) on 
% meridians and latitude circles
% [*] definition of 3D plane transformation with expanded styles so that they 
are robust 
% against redefinition of macros used in their construction
% [*] usage of named coordinates (nodes) for definition of characteristic 
points in 
% local coordinate systems so that they are accessible outside of their 
plane of 
% definition
% [*] calculation of intersections points with TikZ intersection coordinate 
system
% [*] usage of 'to' path operation instead of 'arc' for marking angles to 
allow for 
% easy positioning of text labels on the curve
% [*] 3D lighting effects with shading
%
%
% Who's done it
% =
%
% Tomasz M. Trzeciak
%
%
% Distribution and use
% 
%
% Use as you see fit. Consider giving a proper attribution to the author.
%
%
% Change log
% ==
%
% 2008/08/07  posted to latex-community.org
% 2008/08/08  fixed some typos, added note about 'to' path operation to the 
description,
% fixed positioning issue of nodes and 'to' path operation as 
suggested 
% by Kjell, removed some dead code from KART picture
% 2008/09/28  adapted as an example to ConTeXt

\usemodule[tikz] 
\usetikzlibrary[calc,fadings,decorations.pathreplacing]

%% helper macros

\def\pgfmathsinandcos#1#2#3{% 
  \pgfmathsetmacro#1{sin(#3)}% 
  \pgfmathsetmacro#2{cos(#3)}% 
} 
\def\LongitudePlane#1#2#3{%
  \pgfmathsinandcos\sinEl\cosEl{#2} % elevation
  \pgfmathsinandcos\sint\cost{#3} % azimuth
  \tikzset{#1/.estyle={cm={\cost,\sint*\sinEl,0,\cosEl,(0,0)}}}
}
\def\LatitudePlane#1#2#3{%
  \pgfmathsinandcos\sinEl\cosEl{#2} % elevation
  \pgfmathsinandcos\sint\cost{#3} % latitude
  \pgfmathsetmacro\yshift{\cosEl*\sint}
  \tikzset{#1/.estyle={cm={\cost,0,0,\cost*\sinEl,(0,\yshift)}}} % 
}
\def\DrawLongitudeCircle#1#2{
  \LongitudePlane{current plane}{\angEl}{#2}
  \tikzset{current plane/.prefix style={scale=#1}}
   % angle of visibility 
  \pgfmathsetmacro\angVis{atan(sin(#2)*cos(\angEl)/sin(\angEl))} %
  \draw[current plane] (\angVis:1) arc (\angVis:\angVis+180:1); 
  \draw[current plane,dashed] (\angVis-180:1) arc (\angVis-180:\angVis:1); 
}
\def\DrawLatitudeCircle#1#2{
  \LatitudePlane{current plane}{\angEl}{#2}
  \tikzset{current plane/.prefix style={scale=#1}}
  \pgfmathsetmacro\sinVis{sin(#2)/cos(#2)*sin(\angEl)/cos(\angEl)} 
  % angle of visibility
  \pgfmathsetmacro\angVis{asin(min(1,max(\sinVis,-1)))}  
  \draw[current plane] (\angVis:1) arc (\angVis:-\angVis-180:1); 
  \draw[current plane,dashed] (180-\angVis:1) arc (180-\angVis:\angVis:1);
}

%% document-wide tikz options and styles

\tikzset{%
  =latex, % option for nice arrows 
  inner sep=0pt,%
  outer sep=2pt,%
  mark coordinate

Re: [NTG-context] Texlive2008 and updating context

2008-09-29 Thread Alan BRASLAU
Yes, please, it is confusing.
On the Wiki different instructions appear
in several places (mkIV, minimals, TeXlive, debian...).
It would be quite nice if somebody who understands
this all could clean-up the instructions, in particular,
structure the information in a clearer fashion.
Thanks.

Alan


On Monday 29 September 2008 12:49:24 Mojca Miklavec wrote:
 I just forgot to add: the situation with updates is a bit confusing at
 the moment, but that's not your fault. Hopefully it will improve soon.

 Mojca

 On Mon, Sep 29, 2008 at 12:47 PM, Mojca Miklavec

 [EMAIL PROTECTED] wrote:
  On Mon, Sep 29, 2008 at 9:38 AM, Mehdi Omidali wrote:
  Hi everyone,
  I have followed any thread about updating context (on Texlive2008 on
  ubuntu) and no success yet. After running
  sudo ctxtools --updatecontext
 
  This command doesn't necessary do what you always desire: it puts
  ConTeXt to texmf-local. This means that any further updates that you
  might try to make with tlmgr (TeX Live manager) will be shielded by
  your local copy. That's OK, but you need to be aware that you then
  have two copies of ConTeXt on your computer, and the one in
  texmf-local will be used.
 
  And there is something that might bite you with this as well. TeX Live
  is currently configured so that luatools  mtxrun binaries are taken
  from texmf-dist/scripts. If the rest of files comes from texmf-local,
  you might end in troubles/incompatibilities between the two versions.
  You probably need to fix symlinks of luatools and mtxrun manually.
 
  and
  luatools --generate
  everything went smooth. But after
 
  texexec --make --luatex en
 
  I got the following
 
  Should I create the cache path /home/mehdi? [yes|no] [no]
 
  and after pressing Enter I got
 
  fatal error: there is no valid (writable) cache path defined
 
  You need to update LuaTeX binary as well. See
  http://wiki.contextgarden.net/Running_Mark_IV. But there are still
  some issues. Namely, you need to fix symlinks of luatools and mtxrun
  to point to the proper file. And you might need to remove files in
  texmf-local that belong to ConTeXt as a result of ctxtools
  --updatecontext (it's up to you which tree you want to use; I
  overwrite files in texmf-dist with some care).
 
  Mojca

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

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



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

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


Re: [NTG-context] TOC : Chapter title under its number (separate lines)

2011-05-26 Thread Alan Braslau
On Tue, May 24, 2011 at 01:42:41PM +0200, Wolfgang Schuster wrote:
 
 Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:
 
 
 Hi,
 
 Is there a simple way to obtain the following result in the table of
 content :
 
 Contents
 CHAPTER 1
 Title of chapter2
 1.1Title of section2
 
 (the chapter title underneath its number and left aligned, just like
 everything else)
 
 The following code used to do the job with MkII but it doesn't anymore 
 with
 MkIV :
 
 \setuplabeltext[chapter=CHAPTER~]
 \setuplist[chapter][label=yes, style={\blank[0cm]}]
 \starttext
 
 \startfrontmatter
 \completecontent
 \stopfrontmatter
 
 \startbodymatter
 \chapter{Title of chapter}
 \section{Title of section}
 \stopbodymatter
 
 \stoptext 
 
 Instead, I get something like this (I hope it turns out readable through
 the email) :
 
 Contents
 CHAPTER 1
   Title of chapter2
 1.1Title of section2
 
 where the 2 lines of the chapter, together with their alignment with the
 frame, get tossed to the right...
 
 
 I do get with MkIV the first example like you expect but “style={\blank[0cm]}”
 is the wrong way. Such a layout can be easily done with your own list-command
 for chapter but the labeltext is tricky:
 
 \setuplabeltext[chapter=CHAPTER~]
 
 % \define[3]\ChapterList % no label!
 %   {#1\crlf#2\wordright{#3}}
 
 % \define[3]\ChapterList % fixed label, wrong for appendices!
 %   {\labeltext{chapter}#1\crlf#2\wordright{#3}}
 
 \define[3]\ChapterList
   {\currentlistsymbol\crlf#2\wordright{#3}}
 
 \setuplist[chapter][label=yes,alternative=command,command=\ChapterList]
 
 \starttext
 
 \startfrontmatter
 \completecontent
 \stopfrontmatter
 
 \startbodymatter
 \chapter{Title of chapter}
 \section{Title of section}
 \stopbodymatter
 
 \stoptext
 
 Wolfgang
 

Wolfgang,

This solution: [alternative=command,command=\ChapterList]
breaks interaction; How can one get [interaction=all] to 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] TOC : Chapter title under its number (separate lines)

2011-05-26 Thread Alan Braslau
On Thu, May 26, 2011 at 05:30:55PM +0200, Wolfgang Schuster wrote:
 
 Am 26.05.2011 um 17:13 schrieb Alan Braslau:
 
  This solution: [alternative=command,command=\ChapterList]
  breaks interaction; How can one get [interaction=all] to work?
 
 Something like this:
 
 \setupinteraction[state=start]
 
 \define[3]\ChapterList
   {\vbox{#1\crlf#2\hfill#3}}
   
 \setuplist
   [chapter]
   [alternative=vertical,
command=\ChapterList,
interaction=all]
 
 \starttext
 
 \completecontent
 
 \chapter{One}
 \chapter{Two}
 
 \stoptext
 
 I guess i should take a closer look at “horizontal” and “vertical”
 because the label key has no effect for them.
 
 Wolfgang
 

\define[3]\ChapterList
  {\vbox{\par\noindent\currentlistsymbol#1\crlf#2\enspace\listdots\enspace#3}}

\setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all]

Almost works. Almost in that all lines get indented by one level,
and then the page number (and the title if it is long and multi-line)
stick(s) out by this much on the right.

The manual is a bit cryptic concerning horizontal and vertical:
As an alternative for none, we can use horizontal and vertical.
Both commands have their spacing tuned for typesetting lists in
for instance menus.

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] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Alan Braslau
On Thu, May 26, 2011 at 08:16:21PM +0200, Wolfgang Schuster wrote:
 
 Am 26.05.2011 um 18:48 schrieb Alan Braslau:
 
  \setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all]
  
  Almost works. Almost in that all lines get indented by one level,
  and then the page number (and the title if it is long and multi-line)
  stick(s) out by this much on the right.
  
  The manual is a bit cryptic concerning horizontal and vertical:
  As an alternative for none, we can use horizontal and vertical.
  Both commands have their spacing tuned for typesetting lists in
  for instance menus.
 
 I don’t read the manual very often, so i missed this.

Before asking for help, I always
1) experiment
2) look in the manual(s)
3) search the mailing list
4) consult the wiki
5) try to understand the sources
I'm sure that you start with the last step.

 
 There are two ways to have a interactive list:
 
 1. Patch the command alternative
 
 2. Introduce a new alternative which has interactive support
plus a few more missing features (e.g. label support)
 
 Wolfgang

In fact,
\setuplist [chapter] [label=yes]
should work out of the box.

Currently, one must set:
\setuplabeltext [chapter=Chapter ] % with trailing space; blank by default
\setuplabeltext [appendix=Appendix ]  % with trailing space; blank by default
(This *should* be included in the language files, not redefined by the user. 
Indeed, \setuphead [chapter] [label=no] could be the default, not blanking 
out the labeltext.)
Secondly, the spacing of the TOC is all wrong. This should not need patching to 
yield an acceptable result.

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] TOC : Chapter title under its number (separate lines)

2011-05-27 Thread Alan Braslau
interaction=sectionnumber
rather than
interaction=all
doesn't seem to help here...

Alan

On Fri, May 27, 2011 at 09:33:53AM -0400, Mathieu DUPONT wrote:
 
 As for the interaction patching, in the following example I can't figure out
 how to have, for the chapter lines, only CHAPTER 1 being the interaction and
 not the title + the dots line + the page number, as it is the case with
 this code.
 The example is minimal, but I left everything I am afraid could be dropped by 
 a
 solution.
 
 Thanks for help !
 
 
 \setupinteraction[state=start]
 
 \setuplabeltext[chapter=CHAPITRE~]
 
 \setupcombinedlist[content][
 level=3,
 alternative=c,
 ]
 \unprotect
 \define[3]\ChapterList{\vbox{
 \setuplocalinterlinespace[line=2.8ex]
 \listparameter\c!before
 \leftskip\listparameter\c!margin
 \noindent\currentlistsymbol\crlf#2\enspace\listdots\enspace#3
 \par
 \listparameter\c!after
 \setuplocalinterlinespace[line=4.2ex]
 }}
 \protect
 
 \setuplist[chapter][
 label=yes,
 alternative=vertical,
 command=\ChapterList,
 interaction=all,
 ]
 \starttext
 
 \startfrontmatter
 \placecontent
 \stopfrontmatter
 
 \startbodymatter
 \chapter{CHAPTER}
 \section{SECTION}
 \subsection{SUBSECTION}
 \stopbodymatter
 
 \stoptext 
 
 Mathieu
___
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] Fifth ConTeXt meeting, September 2011, France

2011-07-05 Thread Alan Braslau
On Mon, Jul 04, 2011 at 10:05:14PM +0200, Martin Schröder wrote:
 2010/10/3 Arthur Reutenauer arthur.reutena...@normalesup.org:
   I hereby announce the next ConTeXt meeting, that will take place on
  the island of Porquerolles off the coast of the French Riviera,
  from Monday, September 19th, 2011, to Saturday, September 24th.  The
  conference venue has been pre-booked for these dates, so this is firm.
  Of course, there is yet nothing like a set program at this moment, so
  we're expecting your proposals (there will be a formal call for papers
  later).
 
   Watch this page:
 
         http://meeting.contextgarden.net/2011/
 
 Only 76 days left.
 
 When will we have updates on the web page for
 - travel information
 - schedule
 - payment information
 - program
 
 Best
Martin

Yes, we all need to arrange travel,
and those of us who are not self employed have travel requests to submit.

As to travel,
http://www.porquerolles-france.com/ferries.php

La Tour Fondue, 83400 Hyères, France
(near the Toulon-Hyères airport)

Departure Giens-La TOUR FONDUE  Return from PORQUEROLLES
7:30 (1)12:00   7:00 (1)14:00
9:0012:30   8:3015:00
9:3013:30   9:3016:30
10:00   14:30   10:30   17:30
10:30   15:30   11:30   18:30
11:00   17:00
11:30   18:00

note :
(1). Does not run on Sundays and holidays

ATTENTION :
- The ships are wheelchair accessible
- Bicycles can be brought on board for a fee.
adult bicycle : 13.00 €
child's bicycle : 10.00 €

Fees 2011   ADULTS  CHILDRENGROUPS
(To / From) 4 to 10 years
TOUR FONDUE PORQUEROLLES17,30 € 15,30 € 15,00 €

(I do not understand if the fare is round-trip or each way, it is ambiguous...)


There is also a Taxi boat, that could be interesting if we travel as a group.
-Arthur?

There are fast trains from Paris to Hyeres 4:20 travel time
(some requiring a change at Toulon, 4:56 in this case)
Can be as cheap as 45 € if we buy our tickets soon.
 7:46 Paris Gare de Lyon - 12:42 Hyeres
10:15 Paris Gare de Lyon - 14:35 Hyeres
11:46 Paris Gare de Lyon - 17:43 Hyeres
...

11km from the train station to the ferry. Is there a bus?
And from the airport?

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] modules in minimals (important)

2011-07-06 Thread Alan Braslau
On Wed, Jul 06, 2011 at 08:52:23PM +0200, Mojca Miklavec wrote:
 On Wed, Jul 6, 2011 at 15:40, Peter Münster wrote:
  On Wed, Jun 29 2011, Mojca Miklavec wrote:
 
  Hans has changed the command line parameter for modules (--modules=vim
  should work now). The problem is that he now stores the chosen modules
  to a variable modules as opposed to extras. So if you want to keep
  your modules, please edit status-of-update.lua and replace [extras]
  with [modules]. Or simply install the modules again.
 
  There is also a switch --fonts= which installs some additional fonts from
      http://minimals.contextgarden.net/current/fonts/extra/
 
  Are theses parameters for first-setup.sh?
  I've tried first-setup.sh --modules=all, --extras=all,
  --fonts=all, but nothing works for me (no modules and no extra fonts).
 
 Hans,
 
 it seems that modules.all in
 if modules.all or modules[s] then
 doesn't work as expected.
 

Is there a work around? What 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 install extra module in the latest context?

2011-07-07 Thread Alan Braslau
On Thu, Jul 07, 2011 at 11:36:32AM +0200, Mojca Miklavec wrote:
 
 You don't need to be sorry. It was fixed 20 minutes ago.
 

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted

Oops! luatex now dumps core.
No minimal test file (yet).
(must be triggered by some metapost code - looking into locating it.)

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] core dump (was: How to install extra module in the latest context?)

2011-07-08 Thread Alan Braslau
On Thu, Jul 07, 2011 at 05:39:05PM +0200, luigi scarso wrote:
 On Thu, Jul 7, 2011 at 5:30 PM, Alan Braslau alan.bras...@cea.fr wrote:
  On Thu, Jul 07, 2011 at 11:36:32AM +0200, Mojca Miklavec wrote:
 
  You don't need to be sorry. It was fixed 20 minutes ago.
 
 
  mtx-context     | fatal error: no return code, message: luatex: execution 
  interrupted
 
  Oops! luatex now dumps core.
  No minimal test file (yet).
  (must be triggered by some metapost code - looking into locating it.)
 
  Alan
 Latest minimals with Linux 32 bit is ok with
 
 \starttext
 
 \input knuth
 
 \stoptext
 
 
 -- 
 luigi


The luatex core dump (both on freebsd-amd64 and linux-amd64)
is due to a metapost bug (without any diagnostic messages).
I do not believe that it is related to the recent updates
but rather to a (recent) error in my coding.

Taco may want to chase this, but I will need to provide him
with a reproducible minimal test file...
Just as an indication, I found two big errors in my metapost code:
1) a typo resulting in assignment to an array element of an undeclared array;
2) reference to a loop variable outside of a loop
(which, of course, does not work).
I believe that the core dump was due to the first mistake,
but I cannot reproduce it simply.

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] Important 5th ConTeXt meeting

2011-07-14 Thread Alan Braslau
Hello everyone. Happy Bastille Day!

Last year, I participated in my first ConTeXt meeting
at Brejlov in the Czech Republic. It was a very interesting
experience and very useful. I had wanted to attend in 2009,
but just did not manage to arrange for this.  If you are tempted
to participate this year, I am sure that you will not be disappointed.
What more can I say?

I am hoping to see many of you this September in Belgium.

Alan

On Mon, Jul 11, 2011 at 04:08:45PM +0200, Taco Hoekwater wrote:
 Hi again,
 
 Some more important news follows. Please read carefully, especially
 the section about the early bird registration change.
 
 == Location change (again) ==
 
 After further inquiries, it turned out that the proposed venue at
 Charneux did not have any internet access at all. Predicting that this
 would be somewhat of an inconvenience, I decided to move the location
 yet again.
 
 This location change is not very important except to people coming in
 by car: we will still be in the same part of Belgium, but now a little
 bit to the north of Liège, instead of to the east. The new location is
 a small romantic château in Bassenge-Boirs:
 
http://www.sjetootje.nl/
 
 The meeting website is updated as well, of course.
 
 == Early bird registration change ==
 
 Mojca pointed out by email that it was now impossible to register
 as early bird for people that could not / would not attend Southern
 France, but would be interested in coming to Belgium. This would be
 a little unfair, so we came up with a new early bird solution:
 
 Anyone will be eligible for early bird reduction that manages to
 have the appropriate amount transfered to my bank account on
 
July 31, 2011.
 
 Anyone paying after that day has to pay the full amount. As we are
 talking about reception date here and international transfers can take
 a few days, this means that international transfers should be started
 no later than
 
July 25, 2011.
 
 *Please note* that this now also works the other way around: unless you
 manage the payment in time, you will not be eligible for the early bird
 discount. Not even if you registered at BachoTeX already!  That is
 perhaps a little unfair, but it is the consistent thing to do (and it
 helps to make the new budget balance out).
 
 ==
 
 Best wishes,
 Taco
___
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] metapost question (bug?)

2011-07-21 Thread Alan Braslau
Hello,

I have a question for metapost specialists:

I am looking for some sort of effect, built upon a zig-zag line.
The first graphic in the minimal example below is as I would expect.
The second graphic seems to be drawn without the point at (0,0).
(Ignore the asymmetry at the end of the path in the 2nd, this
is to be expected in this minimal example.)

Is the result correct or is this a bug?

Alan



\starttext

\startTEXpage
\startMPcode
u := 1mm ;

path p[] ;
p0 := ((0,0)--(1,0)) rotated 45 scaled 20u ;
pickup pensquare scaled 10u rotated 45 ;
draw p0 withcolor blue ;
pickup pensquare yscaled 2u xscaled 5u rotated 45 ;
draw p0 withcolor yellow ;
pickup pencircle scaled .1u ;
draw p0 ;
\stopMPcode
\stopTEXpage

\startTEXpage
\startMPcode
p1 := ((0,0)--(sqrt(2),0)) rotated -30 scaled 20u
shifted point infinity of p0 ;
p2 := p0--p1 ;

pickup pensquare scaled 10u rotated 45 ;
draw p2 withcolor blue ;
pickup pensquare yscaled 2u xscaled 5u rotated 45 ;
draw p2 withcolor yellow ;
pickup pencircle scaled .1u ;
draw p2 ;
\stopMPcode
\stopTEXpage

\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] metapost question (bug?)

2011-07-21 Thread Alan Braslau
On Thu, Jul 21, 2011 at 05:39:48PM +0200, Peter Rolf wrote:
 use
 
 p2 := p0  p1;
 
 the reason for the 'unexpected' output is, that point 1 and 2 of the
 path p2 are equal. keep in mind that drawing with an asymmetrical pen
 has its own (complex) rules.

Thank you -- I forgot about the path operator 

(Funny thing, though, that the problem shows up with point 0. I would also 
think that having two consecutive identical points, although poor style, should 
not cause problems as it does.)

And yes, the use of an asymmetrical pen is indeed the whole point of this 
figure -- I am using metapost to achieve very easily an effect, conceptually 
very simple, that a colleague has not been able to produce using Adobe 
Illustrator.

Thank you again for helping out.

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] problem \vec and gentium font

2011-08-30 Thread Alan Braslau
There seems to be problems with horizontal spacing in math mode
using the gentium font. For example:

\setupbodyfont[gentium]
\starttext
$\vec{r}$
\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 signs in itemize

2011-09-25 Thread Alan Braslau
On Sat, Sep 24, 2011 at 11:29:32AM +0200, R. Ermers wrote:
 Dear all,
 After my update a few days ago I have run into the problem earlier described 
 under the subject new beta (Marco Pessotto). The file processed nicely 
 until then. I use gentium as the main font.
 
 \definefont[gentium][Xserif][name:Gentium at 12pt]

Gentium currently does not have good support for math fonts.
Xits gives the best results for math, it appears at the moment.

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 signs in itemize

2011-09-26 Thread Alan Braslau
On Mon, Sep 26, 2011 at 09:34:45AM +0200, Wolfgang Schuster wrote:
  Any suggestions?
  
  Use text mode fractions! \frac{1}{40}.
 
 This is still typeset in math mode. A alternative is to write the fraction as 
 “1/40”.

¼÷10, 0.025.

How about:
\definetypeface [xits] [mm] [math] [xits] [default]

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] new look for wiki

2011-09-27 Thread Alan Braslau
*WOW*

Alan

On Tue, Sep 27, 2011 at 06:22:59PM +0200, Wolfgang Schuster wrote:
 
 Am 27.09.2011 um 18:05 schrieb luigi scarso:
 
  http://wiki.contextgarden.net
  This is not the official announcement --- but I wasn't able to resist...
  
  Nice work, thank you very much Siep.
 
 Especially when you can see the template with colors :)
 
 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] slides proceedings from ConTeXt Meeting

2011-09-28 Thread Alan Braslau
On Wed, Sep 28, 2011 at 08:29:56AM +0200, Philipp Gesang wrote:
 On 2011-09-28 00:53, Mojca Miklavec wrote:
  and most of talks will also be available as articles in printed
  proceedings that will be sent to all new members of the ConTeXt Group
  (group.contextgarden.net).
 
 For those of us who aren’t -- will the proceedings be made
 available on h2o books as well?
 

Why not use this occasion to become a member of the new ConTeXt group?

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] new look for wiki

2011-09-28 Thread Alan Braslau
On Tue, Sep 27, 2011 at 06:05:59PM +0200, luigi scarso wrote:
 http://wiki.contextgarden.net
 This is not the official announcement --- but I wasn't able to resist...
 
 Nice work, thank you very much Siep.

Again, very nice. But, unfortunately, I loose the style when I log in :(

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] new look for wiki

2011-09-29 Thread Alan Braslau
On Thu, Sep 29, 2011 at 01:06:06AM +0200, Philipp A. wrote:
 2011/9/28 Alan Braslau alan.bras...@cea.fr
 
 Again, very nice. But, unfortunately, I loose the style when I log in :(
 
 go here: http://wiki.contextgarden.net/Special:Preferences#mw-htmlform-skin

Thanks
(But this should be the default - maybe it is now for new 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] Finding Minion and Myriad

2011-09-29 Thread Alan Braslau
On Thu, Sep 29, 2011 at 05:19:27PM +0200, Wolfgang Schuster wrote:
 
 To use the fonts which are shipped with Adobe Reader you can use two 
 different methods.
 
 Method 1:
 
 \usemodule[simplefonts]
 
 \setmainfont[Minion Pro][protrusion=quality]
 
 \setupalign[hanging]
 
 \starttext\showframe
 \input tufte
 \stoptext
 
 Method 2:
 
 \usetypescriptfile[type-adobe]
 
 \definefontfeature[default][default][protrusion=quality]
 
 \setupbodyfont[minion]
 
 \setupalign[hanging]
 
 \starttext\showframe
 \input tufte
 \stoptext
 
 Wolfgang

Please note that the path to the Adobe fonts must be included
in the environment. On my system, this works if I have:

export 
OSFONTDIR=$HOME/.fonts;/usr/local/share/fonts;/usr/local/Adobe/Reader9/ENU/Adobe/Reader9/Resource/Font/

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] Any (other) ConTeXt users in Finland?

2011-10-03 Thread Alan Braslau
CM7 - 2013?

On Mon, Oct 03, 2011 at 03:12:54PM +0300, Mari Voipio wrote:
 Hello All!
 
 
 Inspired by the recent ConTeXt meeting where I again enjoyed meeting
 other users as well as the developers, I'm wondering if there are any
 other ConTeXt users in Finland? And if so, would you be interested in
 a mini-meeting for an afternoon or evening, possibly at my work in
 Vantaa?
 
 If nothing else, we could tell each other what we do with ConTeXt and
 get ideas and with luck even be able to sort out some problems. I'm
 far from the nerdiest person in the world, but I could probably manage
 a short introduction to ConTeXt, if you are interested but haven't
 gotten started or if you know people who'd like to try but don't want
 to do it by themselves.
 
 
 BTW, if any ConTeXt users (Finnish or others) pass by Helsinki airport
 or the Greater Helsinki area, you are welcome to informally pop into
 our office and I'll give you coffee/tea and cookies (if we have any)
 and any ConTeXt help I can give. Just check on this in advance as I'm
 not always there, but often can arrange things if notified a few days
 earlier.
 
 
 
 Terveisin/Best Regards,
 
 Mari Voipio
 K-Patents Oy (in Vantaanportti, just 5 minutes from the airport)
___
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] nocolor in MetaPost

2011-10-05 Thread Alan Braslau
On Wed, Oct 05, 2011 at 08:46:22PM +0200, Hans Hagen wrote:
 On 5-10-2011 19:56, Hans van der Meer wrote:
  Is there a value that can be given to a color variable in MetaPost that 
  might function as some sort of no color. Thus something like NULL in the 
  programming language C.
 
 not that I know of

What exactly do you want to do?
Can
if known mycolor : fi
be of any help?
___
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] Any (other) ConTeXt users in Finland?

2011-10-10 Thread Alan Braslau
On Mon, Oct 10, 2011 at 03:42:36PM +0300, Mari Voipio wrote:
 (Alan is in France and Martin, AFAIK, in Germany, so they don't count
 even though they replied to this thread.)

My reply was just as a suggestion for the 7th International ConTeXt Users' 
Meeting in 2013. :)

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] Plotting a graph of a function f, like f(x) = e^x, with MetaPost

2011-10-11 Thread Alan Braslau
Paul,

Metapost can now perform calculations in double precision floating point.
At this time, it is in the svn version and does not work yet as
such integrated in ConTeXt (through mplib). Taco promises this for soon...

The graph package is pretty clever, and I am working on proposals on
how to extend/rewrite this taking advantage of the new metapost
handling of large and small numbers.

To plot a function, you can create a path, as in
path p ; p := 
for i=0 upto 1000:
hide (x := i/1000 ;) 
if (i0) -- fi (x,exp(x))
endfor ;
gplot p ;

One proposal will be to make this even easier with new macros.

Alan

On Wed, Oct 12, 2011 at 12:45:12AM +0200, Paul Menzel wrote:
 Dear ConTeXt folks,
 
 
 I finally chose MetaPost/MetaFun [1] because of the native integration
 with ConTeXt and hopefully easy font handling. I want to use that
 throughout my document.
 
 Of course I hit the first problem. Wanting to draw a “simple” function f
 like f(x) = e^x, seems hard to accomplish. I guess I should stress that
 MetaPost does not have a high accuracy so it might not be the best
 solution [5].
 
 There seem to be quite a lot of solutions (mostly macros) on the Web for
 this problem so I am wondering if one of them is integrated in MetaFun.
 
 Here are some of my findings.
 
 1. Reading about the graph package by John D. Hobby [2] and which is
 also included in ConTeXt [3]. Especially I liked the automatic
 coordinate systems. The package seems to only be able to plot graphs
 with data points saved in files. So one solution would be to manually
 create data files with data points of the relevant function.
 
 2. There is an example in the Drexel Physics Wiki [4].
 
 3. Anthony Phan has also created some macros in his `mps` [5 (currently
 not accessible)].
 
 4. André Heck uses the macro packages `courbes` and `grille` from
 Jean-Michel Sarlat to show some nice examples in his tutorial »Learning
 Metapost by Doing« [6].
 
 
 So what do you suggest?
 
 
 Thanks,
 
 Paul
 
 
 [1] http://www.ntg.nl/pipermail/ntg-context/2011/058527.html
 [2] http://tug.org/docs/metapost/mpgraph.pdf
 [3] http://wiki.contextgarden.net/Metapost
 [4] http://einstein.drexel.edu/liki/index.php/Metapost#Graphing_Functions
 [5] http://www-math.univ-poitiers.fr/~phan/downloads/metapost/statsman.pdf
 [6] http://staff.science.uva.nl/~heck/Courses/mptut.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
 ___


-- 
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] Plotting a graph of a function f, like f(x) = e^x, with MetaPost

2011-10-13 Thread Alan Braslau
On Thu, Oct 13, 2011 at 02:30:07AM +0200, Mojca Miklavec wrote:
 
 MetaPost doesn't know erf and other obscure functions

Metapost could possibly be extended to provide all of the functions
in the standard math library. In fact, it would be nice if there be
some hook to `link' to additional functions, written in C or in Fortran,
for example. (I regularly use the complex error function.)
Maybe this could be possible in luatex, made available to metapost
through some communication pipe?

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] `\usemodule[graph]` causes error `! Unable to make mpx file.` with ConTeXt ver: 2011.10.14 22:47 MKIV

2011-10-18 Thread Alan Braslau
Confirmed here.

OK ConTeXt  ver: 2011.09.27 20:05 MKIV  fmt: 2011.9.30
not OK ConTeXt  ver: 2011.10.17 10:36 MKIV  fmt: 2011.10.18

Alan


On Tue, Oct 18, 2011 at 02:41:45PM +0200, Paul Menzel wrote:
 Dear ConTeXt folks,
 
 
 using the following minimal example
 
 \usemodule[graph]
 
 \starttext
 \startMPcode
 draw unitsquare scaled 1cm;
 \stopMPcode
 \stoptext
 
 causes the following error.
 
 $ context graph
 
 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english
 
 […]
 
 metapost initializing instance 'metafun' using format
 'metafun'
 metapost loading
 'metafun': 
 /context/tex/texmf-context/metapost/context/base/metafun.mpiv
 ! terminal:
 (/context/tex/texmf-context/metapost/context/base/mp-spec.mpii)
 (/context/tex/texmf/metapost/base/graph.mp
 (/context/tex/texmf/metapost/base/marith.mp
 (/context/tex/texmf/metapost/base/string.mp))
 (/context/tex/texmf/metapost/base/format.mp
 (/context/tex/texmf/metapost/base/string.mp)
 (/context/tex/texmf/metapost/base/troffnum.mp
  troffnum.mp
  troffnum.mpx
 ! Unable to make mpx file.
 l.7 init_numbers(btex
  $-$etex, btex$1$etex, btex$ times 10$etex,
 […]
 
 Removing `\usemodule[graph]` make the example work. The used terminal(?)
 and use of `mp-spec.mpii` looks suspicious.
 
 Using the ConTeXt version in Debian Sid/unstable the example works.
 
 $ context graph
 
 […]
 
 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.24  int: 
 english/english
 
 […]
 
 structuresectioning  section @ level 3 : 0.0.1 - Test
 metapost initializing instance 'metafun' using format 
 'metafun'
 metapost loading 'metafun.mp' (experimental metapost version 
 two)
 backend  xmp  using file 
 '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
 
 
 Thanks,
 
 Paul

 \usemodule[graph]
 
 \starttext
 \startMPcode
 draw unitsquare scaled 1cm;
 \stopMPcode
 \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] `\usemodule[graph]` causes error `! Unable to make mpx file.` with ConTeXt ver: 2011.10.14 22:47 MKIV

2011-10-27 Thread Alan Braslau
Hans,

The use of the graph module is indeed currently broken,
both in mkiv and in mkii.

Alan


On Tue, Oct 18, 2011 at 03:00:33PM +0200, Alan Braslau wrote:
 Confirmed here.
 
 OK ConTeXt  ver: 2011.09.27 20:05 MKIV  fmt: 2011.9.30
 not OK ConTeXt  ver: 2011.10.17 10:36 MKIV  fmt: 2011.10.18
 
 Alan
 
 
 On Tue, Oct 18, 2011 at 02:41:45PM +0200, Paul Menzel wrote:
  Dear ConTeXt folks,
  
  
  using the following minimal example
  
  \usemodule[graph]
  
  \starttext
  \startMPcode
  draw unitsquare scaled 1cm;
  \stopMPcode
  \stoptext
  
  causes the following error.
  
  $ context graph
  
  ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
  english/english
  
  […]
  
  metapost initializing instance 'metafun' using format
  'metafun'
  metapost loading
  'metafun': 
  /context/tex/texmf-context/metapost/context/base/metafun.mpiv
  ! terminal:
  (/context/tex/texmf-context/metapost/context/base/mp-spec.mpii)
  (/context/tex/texmf/metapost/base/graph.mp
  (/context/tex/texmf/metapost/base/marith.mp
  (/context/tex/texmf/metapost/base/string.mp))
  (/context/tex/texmf/metapost/base/format.mp
  (/context/tex/texmf/metapost/base/string.mp)
  (/context/tex/texmf/metapost/base/troffnum.mp
   troffnum.mp
   troffnum.mpx
  ! Unable to make mpx file.
  l.7 init_numbers(btex
   $-$etex, btex$1$etex, btex$ times 10$etex,
  […]
  
  Removing `\usemodule[graph]` make the example work. The used terminal(?)
  and use of `mp-spec.mpii` looks suspicious.
  
  Using the ConTeXt version in Debian Sid/unstable the example works.
  
  $ context graph
  
  […]
  
  ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.24  int: 
  english/english
  
  […]
  
  structuresectioning  section @ level 3 : 0.0.1 - Test
  metapost initializing instance 'metafun' using format 
  'metafun'
  metapost loading 'metafun.mp' (experimental metapost 
  version two)
  backend  xmp  using file 
  '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
  
  
  Thanks,
  
  Paul
 
  \usemodule[graph]
  
  \starttext
  \startMPcode
  draw unitsquare scaled 1cm;
  \stopMPcode
  \stoptext
 

-- 
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] wiki.contexgarden.net/Main_Page

2011-11-03 Thread Alan Braslau
Dear context garden administrators (and users):

It would be a good idea to have a wiki.contextgarden.net/News
page containing an archive of past and present news.
Clicking on the News label on the Main_Page could go there.

Examples of items to include could be:

July 2011: TeX Live 2011 released, including current ConTeXt

September 2011: First general assembly of the ConTeXt user's group
(in Bassenge, Belgium during the 5th International ConTeXt User Meeting)

November 2011: Deadline for contributions to the proceedings of the
5th International ConTeXt User Meeting, to appear in the first issue
of the ConTeXt User Journal.

November 2011: Migration of contextgarden.net to new servers.

etc.

Should this new page be generally editable, or should it be administered?

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.contexgarden.net/Main_Page

2011-11-03 Thread Alan Braslau
On Thu, Nov 03, 2011 at 03:00:27PM +0100, Mojca Miklavec wrote:
 
  Should this new page be generally editable, or should it be administered?
 
 Generally editable. It is already editable now, only the main page is
 locked because of spammers, but you are free to change contents.
 

OK - I see that Template:News is a frame on the main page
that we can edit. We should use this, but must not abuse it either!

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] Hello world title not flush left - beginner question?

2011-11-03 Thread Alan Braslau
On Thu, Nov 03, 2011 at 03:33:48PM +0100, Wolfgang Schuster wrote:
 
 How is a framedtext more logical than a dictum or epigraph environment,
 with my solution you can also change the definition of the code to place
 the epigraph format without any change in the text while your framed text
 is always a framedtext (I know you can avoid this with a named framedtext)
 and changes to the layout require more work.
 

Thanks for the explanation.

It is not too logical, however, to define a dictum or epigraph *before* the 
start of a new section or chapter. An author does not really think this way. Of 
course, it is logical to define a dictum or epigraph environment that can be 
used as in:

\startchapter [title=Chapter title]

\startepigraph
\input ward
\stopepigraph

\stopchapter


It is indeed overkill to use a buffer as in your example. However, there may be 
a very good reason to more closely tie the epigraph to the typesetting of the 
chapter title. I could then see something like:

\startchapter [title={Chapter title},epigraph={\input ward}]

although I'm sure that the above (untested) syntax would cause problems
with \input... (and probably a \par would be needed somewhere).

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] gangs (was: annotation MODULE BUG)

2011-11-04 Thread Alan Braslau
On Fri, Nov 04, 2011 at 08:43:42AM +0100, Henning Hraban Ramm wrote:
 
 Am 2011-11-03 um 23:44 schrieb Idris Samawi Hamid ادريس سماوي  
 حامد:
 
  Dear gang, especially Wolf-gang ;-)
 
 AFAIK a wolf gang is called a pack or pride ;-)
 

One says a pack of wolves, a pride of lions,
a pod of whales, a flock of sheep, a school of fish,
a herd of cows, a swarm of bees, ...
and a gang of thugs :)

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] mp-chem.mpiv bug

2011-11-07 Thread Alan Braslau
There is a (new) problem typesetting text in chemical structures.

Alan

Minimal example:

\starttext
\startchemical
\chemical [ONE,Z0] [O]
\stopchemical
\stoptext





! terminal: 
(/usr/local/context/beta/tex/texmf-context/metapost/context/base/mp-chem.mpiv)



 labtype-10
! Unknown relation will be considered false.
to be read again 
   )
chem_text-...XPR3));p:=p.if(labtype(SUFFIX2)=10)
  :shifted(0,ypart.center.p)...

chem_z_zero-...(SUFFIX2)((TEXT3),chem_do(origin))
  ;endgroup
* chem_z_zero(\dochemicaltext{O})
 ;



.

system   tex  error on line 4 in file foo.tex: terminal: 
(/usr/local/context/beta/tex/texmf-context/metapost/context/base/mp-chem.mpiv)



 labtype-10
! Unknown relation will be considered false.
to be read again 
   )
chem_text-...XPR3));p:=p.if(labtype(SUFFIX2)=10)
  :shifted(0,ypart.center.p)...

chem_z_zero-...(SUFFIX2)((TEXT3),chem_do(origin))
  ;endgroup
* chem_z_zero(\dochemicaltext{O})
 ;



 ...

1 \starttext
2 \startchemical
3 \chemical [ONE,Z0] [O]
4   \stopchemical
5 \stoptext
6 


\stopchemical ...erence \ctxlua {chemicals.stop()}
  \egroup \chemicalwidth \wd...
l.4 \stopchemical


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

2011-11-07 Thread Alan Braslau
On Thu, Jul 22, 2010 at 08:34:19PM +0200, Andreas Harder wrote:
 
 Am 22.07.2010 um 16:37 schrieb Hans Hagen:
 
  On 22-7-2010 3:50, Andreas Harder wrote:
  \definetextbackground
[test]
[location=paragraph,
 % frame=off,  % -  no round corners anymore
 corner=round, % -  corner=1|2|3… would be nice
 leftoffset=.5\bodyfontsize,
 rightoffset=.5\bodyfontsize,
 topoffset=.5\bodyfontsize,
 bottomoffset=.5\bodyfontsize]
  
  \setuphead
[subject]
[after=,
 command=\MyHead]
  
  \def\MyHead#1#2%
{\framed
  [background=color,
   backgroundcolor=gray,
   frame=off,
   offset=.5\bodyfontsize,
   corner=3]{#1#2}}
  
  \starttext
  \subject{Test}
  \starttest
\input tufte
  \stoptest
  \stoptext
  
  \setuphead
   [subject]
   [after=\nointerlineskip,
command=\MyHead]
 
 Thank you Hans, that killed the space.
 
 Greeting,
   Andreas

Something is now broken with textbackgrounds :

metapost loading 'metafun': 
/usr/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv
! terminal: ! Enormous number has been reduced.
* ...6.0pt ;  ;   ; prepare_multi_pars(1,4661756
  ,37662495,0,683329,265737,...

...

 1   \definetextbackground
 2   [test]
 3   [location=paragraph,
 4frame=off,
 5leftoffset=.5\bodyfontsize,
 6rightoffset=.5\bodyfontsize,
 7topoffset=.5\bodyfontsize,
 8bottomoffset=.5\bodyfontsize]
 9 
10 \starttext
11 

inserted text ...ainTextArea; ]===], false)}
  
\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
  \egroup \placeMPgraphic \d...
\useMPpositiongraphic ...tartMPcode #3\stopMPcode 
  \egroup 
\doMPpositiongraphic ...riables \getvalue {MPG:#1}
  }
\doMPpositiongraphic ...fined {MPG:#1}\donothing }
  \removelastspace }\smashbo...
\dohandleMPpositiongraphicrange ...raphic {#3}{#4}
  \fi \fi 
...
l.17 \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] defineselector

2011-11-07 Thread Alan Braslau
Hi,

One can select between short and long figure captions
(for an index of figures and the figure display itself, respectively)
using a selector. The syntax is:


\defineselector [caption] [max=2,n=2] % alternate {short}{long} captions

\starttext

\placefigure [here] [fig:reference]
{\select{caption}
{short caption}
{long caption: bla, bla, bla.}
}
{\externalfigure [myfigure]}

...


\startchapter [title={Figure index}]
 \setupselector [caption] [n=1]
 \placelistoffigures [criterium=all]
\stopchapter

\stoptext




I find \select{caption} to be awkward
as the label caption is not typeset
(the convention of text between {}).

Should not the syntax be rather \select[caption]{short}{long}
or else \selectcaption{short}{long}?

What do the experts 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] Textbackgrounds

2011-11-15 Thread Alan Braslau
On Mon, Nov 07, 2011 at 04:58:10PM +0100, Hans Hagen wrote:
 On 7-11-2011 14:59, Alan Braslau wrote:
 
  Something is now broken with textbackgrounds :
 
 fixed in next beta (low level we're now scaled points so a conversion is 
 missing)
 

textbackground has been rewritten.
Perhaps I have missed something, but how can I highlight/grey-out
running paragraphs? The following minimal example worked before...

Alan


\definetextbackground [ongray]
[location=paragraph,background=color,backgroundcolor=middlegray]

\starttext

\input ward

\startongray \input tufte \stopongray

\input knuth

\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] context instal

2011-12-21 Thread Alan Braslau
On Wed, Dec 21, 2011 at 11:50:18AM +0100, Henning Hraban Ramm wrote:
 
 For reference see also 
 http://www.strangehorizons.com/2004/20040405/badger.shtml
 

Mojca,

Due to some particularities, I am having some problems running ConTeXt mkiv
on my machine (VüDü Linux). The standard linux binaries dump core. Furthermore,
my system is not recognized by the Standalone installation script. Would it be 
possible
for Taco to add this architecture to luatex development - quickly - that is 
before Christmas,
as I have a major, life-depending project that has to be finished before next 
week?
Currently, I am stuck.

Luigi has volunteered to maintain the binaries (he has already developed
a general emacs script)

Alan

Minimal example:

./first-setup.sh
Error: your system VüDü Linux - dead_badger is not supported yet.
___
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] [very OT] VüDü Linux now sold in three-packs

2011-12-24 Thread Alan Braslau
On Sat, Dec 24, 2011 at 03:47:27PM +0100, Mojca Miklavec wrote:
 
 
 http://medicalxpress.com/news/2011-12-new-age-prosthetic-technique-enables-mice.html
 

See how they run!

(Did you ever see such a sight in your life?)
___
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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Alan Braslau
On Wed, Jan 11, 2012 at 04:23:28PM +0100, Hans Hagen wrote:
 
 indeed, and it's a bonus that ~ == nobreakspace (although I can imagine 
 that we'd get rid of it) but defining other macros in terms of active 
 characters is a bad idea
 
 (in fact one can use the unicode nbsp character)
 

I have always liked this TeX active character (~).

As information for users of X11:
setxkbmap -option nbsp:level2
(and the equivalent in xorg.conf or etc/hal/fdi/policy/x11-init.fdi)
gives nbsp as shift+space.

On the subject of unicode characters,
I just discovered the :dig command (diagraphs)
under my favorite editor vim!

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] Surprising changes in vers. 2012.01.11

2012-01-11 Thread Alan Braslau
On Wed, Jan 11, 2012 at 05:24:51PM +0100, Alan Braslau wrote:
 On Wed, Jan 11, 2012 at 04:23:28PM +0100, Hans Hagen wrote:
  
  indeed, and it's a bonus that ~ == nobreakspace (although I can imagine 
  that we'd get rid of it) but defining other macros in terms of active 
  characters is a bad idea
  
  (in fact one can use the unicode nbsp character)
  
 
 I have always liked this TeX active character (~).
 
 As information for users of X11:
 setxkbmap -option nbsp:level2
 (and the equivalent in xorg.conf or etc/hal/fdi/policy/x11-init.fdi)
 gives nbsp as shift+space.
 
 On the subject of unicode characters,
 I just discovered the :dig command (diagraphs)
 under my favorite editor vim!

Follow-up:

:se list lcs=nbsp:~

makes me feel right at home with my traditional TeX usage...

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] What’s your favorite command?

2012-01-31 Thread Alan Braslau
On Mon, Jan 30, 2012 at 07:55:51PM +0100, Wolfgang Schuster wrote:
 Hi all,
 
 to bring some traffic to the list I have a question where I hope even non 
 regulars send a answer. The ConTeXt package is huge and provides dozen of 
 commands but I guess many have *one* favorite command (maybe also 
 functionality).
 
 As I started this thread I’ll present my favorite command which is 
 \donothing, it is a internal command and only a synonym for \empty but it’s 
 one reason why I prefer ConTeXt’s coding style (especially with the recent 
 changes in MkIV) over the unreadable LaTeX code.
 
 Wolfgang

Not quite the same as \null:
\def\null {\hbox{}}

My (LaTeX) code used to always be riddled with \mbox{}
(somehow, I got into the habit of using this rather than \hbox{})

But this is not my favorite.

Believe it or not, I quite often make the error of typing '\startext'.
(Hans, don't think about adding this as a synonym - each time that I make this 
mistake I am quite happy to get an error message... This is what I get for 
typing and reading too fast!)


I do like unicode support.

However, what I like best about ConTeXt commands is consistency, where the 
choice of syntax is constantly moving towards standardization. Often, when I 
want to do something new, I just try what seems logical, using the very same 
keywords as used elsewhere (when appropriate), and usually this just works!

Alan

P.S. I regret that ConTeXt and Mojca's \simplethesis command was not available 
when I needed 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] Scribus vs ConTeXt

2012-02-29 Thread Alan Braslau
On Wed, 29 Feb 2012 11:29:30 -0500
William Adams will.ad...@frycomm.com wrote:

 So,

I can just picture Hans beating the drum and Taco wielding the whip!

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] \placeinitial and indenting

2012-03-16 Thread Alan Braslau
\placeinitial does not play well with indenting.

% Minimal example:
\setupindenting [big,yes]
\starttext
\placeinitial
%\noindent
\input tufte

\input ward
\stoptext
%



Of course, uncommenting the \noindent is an aesthetic solution.
1. Should \noindent be included by default in \placeinitial
2. or, should \placeinitial be fixed to correctly handle indenting?

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] footnotes (\autoinsertnextspace)

2012-03-16 Thread Alan Braslau
Hello,

I know that footnotes have been rewritten.
Now, \autoinsertnextspace is ignored.

Alan

Minimal example:

\setupfootnotes [next=\autoinsertnextspace]
%\setupnote [footnote] [next=\autoinsertnextspace] % same as above...

\starttext
\input tufte
\startfootnote
This is a footnote.
\stopfootnote
\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
___


[NTG-context] more indenting

2012-03-16 Thread Alan Braslau
I'm sure that someone is going to tell me that indenting is ugly, bad
typesetting practice.

But if I do want to use indenting, there are times when it should be
suppressed, perhaps automatically (like when immediately following a
heading, as is the current practice).

The minimal example below is another such situation:
\startquotation\stopquotation
\setupquotation [before=\noindent,after=\noindent]
would be one solution, but it does not work - maybe the syntax is
wrong; maybe I'm missing a critical \par. I haven't managed to figure
this out myself, looking at the source code. Any suggestions? Thanks!

Alan


% Minimal example:
\setupindenting [big,yes]
\setupquotation [before=\noindent] % no effect

\starttext
\input tufte
\startquotation
\input tufte
\stopquotation
\noindent
\input tufte
\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] footnotes setup

2012-03-18 Thread Alan Braslau
On Sun, 18 Mar 2012 07:56:30 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 17.03.2012 um 20:38 schrieb Honza Hejzl:
 
  Hi,
  
  I have installed the last standalone version from contextgarden and
  oops, my (few days) old file does not work properly. My old setup
  of footnotes was like:
  
  \setupfootnotedefinition[loaction=page...]
  \setupfootnotes[bodyfontsize=8pt, style=\ss...]
  
  Now the context does not understand to that. So I am trying to set
  up footnotes with \setupnote[footnote] but it seems nothing works.
  I am not able to use location=serried, location=page, style and so
  on... Is it connected with some general update? :o(
 
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).
 
 Wolfgang


Looking at strc-not.mkvi and from your explanations above
it is still not clear to me how to use the new footnote definitions.
We have \setupnotedefinition
(with \setupfootnotedefinition=\setupnotedefinition[footnote]),
\setupnote (with \setupfootnotes=\setupnote[footnote]),
also \setupnotes (=\setupnote ?)
Is there any difference between the singular and the plural forms?
Also, what parameters are accepted? (I see % not all make sense here
in strc-not.mkvi)

http://wiki.contextgarden.net/Footnotes seems confused (ToDo).

In particular, I am still trying to get
next=\autoinsertnextspace
to make \startfootnote\stopfootnote work correctly...

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 setup

2012-03-18 Thread Alan Braslau
On Sun, 18 Mar 2012 21:59:17 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 2. Many of the \define… and \setup… commands are now auto generated
from \installcommandhandler which generates only one setup-command
which can be used for global (i.e. \setup…[..,..=..,..]) and local
(i.e. \setup…[…][..,..=..,..]) settings.

Thank you Wolfgang for this explanation.

Do you mean: global (i.e. \define…[..,..=..,..] and local
(i.e. \setup…[…][..,..=..,..]) settings?

 For backward
 compatibility you can find things like this: \let\setupnotes\setupnote

OK, but is this a good idea?
I thought that mkii is kept around for backward compatibility
and that mkiv takes the liberty to rationalize the syntax,
sometimes sacrificing backwards compatibility in order not to be
encumbered with inconsistent syntax, whenever possible.

Indeed, this sometimes generates much discussion on the mailing list
when we discover that our favorite command has been removed
or renamed - a good way of testing to see if we are active and alert. :)

Alan

-- 
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] \placeinitial or texbackground bug (interference)

2012-03-18 Thread Alan Braslau
It took me quite a while to hunt this down...

The use of a text background breaks \placeinitial.

I do not have a patch, but at least can provide a minimal example:

\definetextbackground [SetOff] [location=paragraph]
\starttext
\placeinitial
\input tufte
\startSetOff
\input ward
\stopSetOff
\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] \setuphead and \startchapter request

2012-03-19 Thread Alan BRASLAU
I would like to use, for example,

\setuphead [chapter] [after={\placecontent\blank}]

But sometimes, I would like to use something like

\startchapter [number=no,incrementnumber=no,after=,
title={Conclusions of the first part}]

\stopchapter


1. I request to have after=, (and other setup head keywords)
taken into account, or some other mechanism, so as here
not to \placecontent for a specific instance of \startchapter.

2. If I have:
\setuplabeltext [chapter=Chapter ] % with trailing space; blank by default
would there be some way to specify chapter=, (or another mechanism)
to have the Chapter label blank for a specific instance of \startchapter?

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] \setuphead and \startchapter request

2012-03-19 Thread Alan BRASLAU
Wolfgang,

Thank you for the suggestions.
However, I have tried many such, things...



On Mon, 19 Mar 2012 12:50:14 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 19.03.2012 um 12:45 schrieb Alan BRASLAU:
 
  I would like to use, for example,
  
  \setuphead [chapter] [after={\placecontent\blank}]
  
  But sometimes, I would like to use something like
  
  \startchapter [number=no,incrementnumber=no,after=,
  title={Conclusions of the first part}]
  
  \stopchapter
 
 You know \starttitle, it’s the unnumbered version of \startchapter.

Yes, of course, but \starttitle does not, by design, add an entry
to the TOC, nor a bookmark. And

\starttitle [title={Conclusions}]
\writetolist[chapter]{}{Conclusions}% works
\bookmark{Conclusions}% Does not work!

is less elegant than

\startchapter [number=no,incrementnumber=no,title={Conclusions}]

(but does have the advantage of suppressing the Chapter label.)


 We have the following key for \setuphead:
 
 - beforesection (called before \startchapter),
 - insidesection (called after \startchapter) and
 - aftersection (called after \stopchapter)

You suggest that I use insidesection={\placecontent\blank}
rather than after={\placecontent\blank}. OK, this works.

However, in both cases, the contents get placed after the above
\starttitle (or \startchapter) commands, something that one really does
not want. Alternately, adding \placecontent\blank everywhere else is
sloppy.


  2. If I have:
  \setuplabeltext [chapter=Chapter ] % with trailing space; blank by
  default would there be some way to specify chapter=, (or another
  mechanism) to have the Chapter label blank for a specific instance
  of \startchapter?
 
 The easiest way is to create a new heading for this purpose.

I do not really want to create new headings for this purpose,
if I can avoid it, and should be unnecessary.
The suggestion would be for specific instances of \startchapter etc.
to be able to take \setuphead keywords as local definitions.

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] Lettrine misbehaving in beta

2012-03-22 Thread Alan Braslau
On Thu, 22 Mar 2012 22:47:13 +0100
Hans Hagen pra...@wxs.nl wrote:

 
 (dropping caps is something that can interfere with anything else
 that synchronizes at the start of a paragraph)
 

Like \definetextbackground [Highlight] [location=paragraph] ?

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] Formatting Indexed Words Within the Text

2012-03-23 Thread Alan BRASLAU
On Fri, 23 Mar 2012 21:57:04 +1100
Malte Stien ma...@stien.de wrote:

 Hi all,
 
 Is it possible to format indexed words in a particular style within
 the text more or less automatically. For example, if I write
 
   There are some \index[ducks] in the zoo.
 
 ...I would like the term ducks to appear in small-capitals to
 indicate the that term can be found in the index. Ideally, I'd like
 to do that without explicit manual formatting. Is that possible?
 
 Thank you,
 Malte.

Your example above would not print the word ducks at all.


I commonly use:
\def\Index#1{\index{#1}#1}

There are some \Index{ducks} in the zoo.


In ConTeXt, text to be typeset typically appears within {}.
Of course, you can then modify the definition to format the text as you
wish:
\def\Index#1{\index{#1}\sc #1}

I'm sure that there is a more clever way.

Note that the \index{} command appears *before* the word, not after.
Otherwise, the word might get placed at the end of a page and the index
point to the following page. I believe that the \index{} command takes
care to avoid the opposite case.

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] Formatting Indexed Words Within the Text

2012-03-24 Thread Alan Braslau
On Fri, 23 Mar 2012 19:42:38 +0100
Hans Hagen pra...@wxs.nl wrote:

 in the test suite: registers/processors-001.tex
 
 \defineprocessor[bf][style=bold]
 \defineprocessor[it][style=italic]
 
 \starttext
 
  \index{it-italic}\index{normal}
  This is a \index[bf-bold]{test with bold number}test.
  This is a less important \index{test}test.
 
  \placeindex
 
 \stoptext
 
 so the magic word is 'processors'

Magic indeed!

So processors can be used *wherever* text is to be typeset,
as a prefix: name-text

\defineprocessor[name][...,...=...,...]
with keys: style=, color=, left=, right=, command=

I'm not sure that I understand, but once I do,
I'll have to add a wiki page...

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] Removing the quotes from the results of the reference links

2012-03-29 Thread Alan BRASLAU
On Thu, 29 Mar 2012 08:50:06 +0200
Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello all,
 I can not find a way to remove the quotes from the results of the 
 reference link
 Can someone help?

On a similar line, concerning syntax (but not references),
the braces grouping keywords get passed on to the pdf properties:

\setupinteraction [keyword={syntax, braces, commas}]

Is this a bug or else the incorrect use of braces?

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] Removing the quotes from the results of the reference links

2012-03-29 Thread Alan BRASLAU
I have:

\setvariables [Book]
[
title={My title},
subtitle={My subtitle},
author={First Author, Second Author and Third Author},
]
\setupinteraction
[
title=\getvariable{Book}{title},
subtitle=\getvariable{Book}{subtitle},
author=\getvariable{Book}{author},
keyword={keyword1, keyword2, keyword3},
]


and this yields (in acroread 9):

Title: My title
Author: First Author, Second Author and Third Author
Subject: My subtitle
Keywords: keyword1 keyword2 keyword3


So, quotation marks ( ) get put around the author;
The subtitle becomes the subject;
and adding the trailing comma after keyword={},
indeed removes the {} but also removes the explicit commas.

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] Removing the quotes from the results of the reference links

2012-03-29 Thread Alan BRASLAU
On Thu, 29 Mar 2012 16:03:11 +0200
Hans Hagen pra...@wxs.nl wrote:

   author={\getvariable{Book}{author}},
 
 the expansion introduces the ,
 

just to play it safe, putting {} around all \getvariable{}{} as in
author={\getvariable{Book}{author}},
does not change anything.

Acroread still displays quotes around the authors.
Curiously, they do not appear under okular, so this is probably an
Acroread quirk.

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] [***NOSPAM***] placefigure adds break

2012-04-05 Thread Alan BRASLAU
On Thu, 5 Apr 2012 13:39:42 +0200
Steffen Wolfrum cont...@st.estfiles.de wrote:

 
 Am 05.04.2012 um 13:25 schrieb luigi scarso:
 
  On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan adit...@umich.edu
  wrote:
  (Untested)
  
  \startpostponing[+1]
  \placefigure[top]{}{...}
  \stoppostponing
  
  Rest of the text
  
  
  Aditya
  \starttext
  
  \switchtobodyfont[rm,10pt]
  
  \input tufte \input ward \input zapf \input tufte \input ward \input
  zapf \input tufte \input ward %
  \input zapf \input tufte \input ward %
  \input zapf HERE%
  \startpostponing[+1]
  \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]}
  \stoppostponing%
  AND HERE \input tufte \input ward %
  \input zapf \input tufte \input ward \input zapf \input tufte \input
  ward \input zapf \input tufte %
  \input ward \input zapf \input tufte \input ward \input zapf
  
  \stoptext
  
  seems ok
 
 
 
 indeed, a great result.
 (searching for this command now, I saw that it's a quite old
 command ... only I never knew it)
 
 thanks a lot Aditya and Luigi!


I have been looking for a trick to place figures near their reference
in the text, without imposing a paragraph break.
This trick works (so thanks again to Aditya and Luigi):

\starttext

Some text is described \in{figure}[fig:reference].
\startpostponing[+0]
\startplacefigure[location=here,reference=fig:reference,
title={This figure gets placed somewhere near its reference.}]
\externalfigure[cow][width=\textwidth]
\stopplacefigure
\stoppostponing
The text continues here without a paragraph break.

\stoptext

A few comments:

1. The \startpostponing...\stoppostponing is necessary,
although some other wrapper around the placefigure might also work.

2. The % at the end of the lines in the above examples is not necessary
unless one seeks to kill the spacing between {HERE}{AND HERE}.

3. One should preferably be using \startplacefigure\stopplacefigure
(rather than \placefigure). Besides being cleaner, as a bonus
one gets to use title={},list={} for the figure caption and
list of figure entry.

Should placefigure be fixed somehow so as to hide its paragraph
break itself?

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[columns] in a figure caption

2012-04-11 Thread Alan Braslau
Hello,

\startitemize [columns]
does not work in a figure caption (for example).

[I can already hear Hans saying of course it doesn't.]

Alan


minimal example:


\starttext

\startitemize [a,columns] % columns work here...
\startitem first  \stopitem
\startitem second \stopitem
\startitem third  \stopitem
\startitem fourth \stopitem
\stopitemize

\startplacefigure [
title={My figure
\startitemize [a,columns] % ...but not here!
\startitem first  \stopitem
\startitem second \stopitem
\startitem third  \stopitem
\startitem fourth \stopitem
\stopitemize
}
]
\externalfigure [cow]
\stopplacefigure

\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] \startitemize[columns] in a figure caption

2012-04-12 Thread Alan BRASLAU
On Thu, 12 Apr 2012 01:27:33 -0400
Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 12 Apr 2012, Wolfgang Schuster wrote:
 
 
  Am 11.04.2012 um 22:29 schrieb Alan Braslau:
 
  Hello,
 
  \startitemize [columns]
  does not work in a figure caption (for example).
 
  [I can already hear Hans saying of course it doesn't.]
 
  \startsimplecolumns
  \startitemize
  …
  \stopitemize
  \stopsimplecolumns
 
  For explanations search the list archive.
 
 and add it to the wiki :)
 
 Aditya

I've read on the mailing list how columns is a mess
and that we have different mechanisms available to us.

The point here is that in using item lists, one should
NOT have to think or know about this at all:
either item list options work or not - in that case
it is a bug.

My suggestion is the following:
1 - either 

I've read on the mailing list how columns is a mess
and that we have several different mechanisms available to us.

The point here is that in using item lists,
one should NOT have to think or know about this AT ALL:
either item list options work or they do not -
that they do not always work is a bug.

My suggestion is the following:
\startitemize[n]
\startitem either item columns be fixed (such as by
using the simple column mechanism); \stopitem
\startitem or the column option be removed entirely.
To get the desired result, one can then explicitly include
the start/stop itemized within a start/stop simplecolumns,
this becoming the standard operating procedure; \stopitem
\stopitemize

Adding a caveat to the wiki is a sort of band-aid, not a solution.
Describing the correct usage, once the desired behavior be
determined, does have its place on the wiki.

Alan

(I thank Wolfgang, as always, for the suggestion -
I will, in my usage, for now and maybe forever
unless itemized columns gets fixed, forget about
the column option and systematically use start/stop
simplecolumns.)
___
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 adds break

2012-04-12 Thread Alan BRASLAU
Hello,

A follow-up on the solution
\startpostponing [+0]
\startplacefigure
…
\stopplacefigure
\stoppostponing

As a side effect, one then needs to be careful to surround
ALL placefigures with \startpostponing[+0]\stoppostponing,
even those that occur after a paragraph end
(where one is not concerned about adding a paragraph break),
else the floating figures may get placed out of order,
e.g. figure 4 before figure 3.

As this makes for somewhat sloppy tex files,
should not placefigure/table/other get FIXED
so as not to introduce a paragraph break?

Alan


On Thu Apr 5 15:38:05 CEST 2012 Alan BRASLAU wrote:

 On Thu, 5 Apr 2012 13:39:42 +0200
 Steffen Wolfrum context at st.estfiles.de wrote:
 
  
  Am 05.04.2012 um 13:25 schrieb luigi scarso:
  
   On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan adityam at umich.edu
   wrote:
   (Untested)
   
   \startpostponing[+1]
   \placefigure[top]{}{...}
   \stoppostponing
   
   Rest of the text
   
   
   Aditya
   \starttext
   
   \switchtobodyfont[rm,10pt]
   
   \input tufte \input ward \input zapf \input tufte \input ward \input
   zapf \input tufte \input ward %
   \input zapf \input tufte \input ward %
   \input zapf HERE%
   \startpostponing[+1]
   \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]}
   \stoppostponing%
   AND HERE \input tufte \input ward %
   \input zapf \input tufte \input ward \input zapf \input tufte \input
   ward \input zapf \input tufte %
   \input ward \input zapf \input tufte \input ward \input zapf
   
   \stoptext
   
   seems ok
  
  
  
  indeed, a great result.
  (searching for this command now, I saw that it's a quite old
  command ... only I never knew it)
  
  thanks a lot Aditya and Luigi!
 
 
 I have been looking for a trick to place figures near their reference
 in the text, without imposing a paragraph break.
 This trick works (so thanks again to Aditya and Luigi):
 
 \starttext
 
 Some text is described \in{figure}[fig:reference].
 \startpostponing[+0]
 \startplacefigure[location=here,reference=fig:reference,
   title={This figure gets placed somewhere near its reference.}]
   \externalfigure[cow][width=\textwidth]
 \stopplacefigure
 \stoppostponing
 The text continues here without a paragraph break.
 
 \stoptext
 
 A few comments:
 
 1. The \startpostponing...\stoppostponing is necessary,
 although some other wrapper around the placefigure might also work.
 
 2. The % at the end of the lines in the above examples is not necessary
 unless one seeks to kill the spacing between {HERE}{AND HERE}.
 
 3. One should preferably be using \startplacefigure\stopplacefigure
 (rather than \placefigure). Besides being cleaner, as a bonus
 one gets to use title={},list={} for the figure caption and
 list of figure entry.
 
 Should placefigure be fixed somehow so as to hide its paragraph
 break itself?
___
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] typescripts and font loading (was: Project structure, (simple)font woes)

2012-04-16 Thread Alan BRASLAU
On Mon, 16 Apr 2012 13:27:56 +0200
luigi scarso luigi.sca...@gmail.com wrote:

 On Mon, Apr 16, 2012 at 1:19 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
 
  BTW: I can give a talk about typescripts and font loading at the
  next conference when there is interest in this.
 +1
 make a separate thread for this

++

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

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


Re: [NTG-context] Project structure, (simple)font woes

2012-04-16 Thread Alan BRASLAU
On Mon, 16 Apr 2012 14:03:23 +0300
Mari Voipio mari.voi...@iki.fi wrote:

 If I look at proj-test.log (the whole thing attached), I think the
 problem is here:
 
 loading  ConTeXt User Module / Simplefonts
 +
 C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua)
 (C:/context/tex/texmf-context/tex/context/base/type-imp-cambria.mkiv)
 (C:/context/tex/texmf-context/tex/context/base/type-imp-cleartype.mkiv)
 fontsdefining  font with asked name
 'LMMathRoman-Regular' is not found using lookup 'file'
 fontsdefining  unknown font LMMathRoman-Regular,
 loading aborted fontsdefining  unable to define
 LMMathRoman-Regular as [Manuals-10pt-mm-mr--3] fonts   
 defining  font with asked name 'LMMathRoman-Regular' is not found
 using lookup 'file' fontsdefining  unknown font
 LMMathRoman-Regular, loading aborted fontsdefining 
 unable to define LMMathRoman-Regular as [Manuals-10pt-mm-mr--2]
 fontsdefining  font with asked name
 'LMMathRoman-Regular' is not found using lookup 'file'
 fontsdefining  unknown font LMMathRoman-Regular,
 loading aborted fontsdefining  unable to define
 LMMathRoman-Regular as [Manuals-10pt-mm-mr--1]

In one of my projects, I do not believe that I am doing anything special,
yet I also get something similar:

fontsbodyfont 24pt is defined (can better be done global)
fontsbodyfont 28.8pt is defined (can better be done global)
fontsbodyfont 19.2pt is defined (can better be done global)
fontsdefining  font with asked name 'LMRoman-CapsRegular' is not 
found using lookup 'file'
fontsdefining  unknown font LMRoman-CapsRegular, loading aborted
fontsdefining  unable to define LMRoman-CapsRegular as 
[xits-12pt-rm-sc-0--0]
fontsdefining  font with asked name 'LMRoman-CapsRegular' is not 
found using lookup 'file'
fontsdefining  unknown font LMRoman-CapsRegular, loading aborted
fontsdefining  unable to define LMRoman-CapsRegular as 
[xits-12pt-rm-sc-0--0]
fontsdefining  font with asked name 'LMRoman-CapsRegular' is not 
found using lookup 'file'
fontsdefining  unknown font LMRoman-CapsRegular, loading aborted
fontsdefining  unable to define LMRoman-CapsRegular as 
[xits-12pt-rm-sc-0--0]



OK, I have
\environment my_own_special_environment
and my_own_special_environment.tex with
\setupbodyfont[xits,10pt]
but nothing else that is explicitly font related.

Is this in any ways related?

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] Rendering differences between PDF viewers

2012-04-17 Thread Alan BRASLAU
On Tue, 17 Apr 2012 08:54:03 +0200
Hans Hagen pra...@wxs.nl wrote:

 (AR might have flaws but so do all other viewers I've seen.)

With one MAJOR difference: for Acrobat reader, one is dependent on the whims 
and desires of Adobe (and its paying market); the other pdf viewers are open 
source.

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] footnotes

2012-04-24 Thread Alan BRASLAU
Hello,

Footnotes are (still?) undergoing development in mkiv.
I have several issues:

1. way=bypage does not seem to work

\setupnote[footnote][way=bypage,numberconversion=set 2]
\starttext
\input{tufte}\footnote{Note.}
\page
\input{dawkins}\footnote{Another note.}
\stoptext

(I do not find numberconversion in strc-not.mkvi;
nevertheless, numbered footnotes do not get reset
on each page.)


2. next=\autoinsertnextspace still does not work

\setupnote[footnote][next=\autoinsertnextspace]
\starttext
Subject%
\startfootnote
Note.
\stopfootnote
verb.
\stoptext

(Note, however, that

\starttext
Subject\footnote{Note.}
verb.
\stoptext

does not exhibit this problem, as the space does not get eaten!)


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

2012-04-24 Thread Alan BRASLAU
On Tue, 24 Apr 2012 14:21:36 +0200
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 24.04.2012 um 10:56 schrieb Alan BRASLAU:
 
  1. way=bypage does not seem to work
  
  \setupnote[footnote][way=bypage,numberconversion=set 2]
  \starttext
  \input{tufte}\footnote{Note.}
  \page
  \input{dawkins}\footnote{Another note.}
  \stoptext
 
 Counter settings are applied with the \setupnotation command.

So, this is a treasure hunt!

I tried
\setupnotation[footnote][way=bypage,numberconversion=set 2]
and this works, (I just corrected the wiki)

sort-of:
If one manages to get a footnote reference at the bottom of a page,
where there is no room to place the footnote, and there is at least one
footnote reference on the following page, this results in two successive
footnotes having the same reference number (or symbol)!
This is a bug.


What about \startfootnote \stopfootnote and \autoinsertnextspace ?

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] Commands with arguments with MetaPost

2012-04-25 Thread Alan BRASLAU
On Wed, 25 Apr 2012 11:15:10 -0500
Troy Henderson thend...@gmail.com wrote:

 I would like to be able to do something like this
 
 \def\foo#1{
 \startMPcode
 fill (0,0)--(598,0)--(598,50)--(0,50)--cycle withcolor green;
 label.rt(btex #1 etex),(50,25);
   \stopMPcode
 }
 
 and then use this in my ConTeXt document by
 
 \foo{Some text}
 
 However, my syntax seems to be incorrect, and I would appreciate any
 help in fixing it.
 

\framed [frame=off,background=color,backgroundcolor=green,width=598,height=50]
{Some text}

(Of course, you need to put correct dimensions for the width and height
and also set an offset.)

Untested, so the syntax may be not quite correct.

You might want to use
\setupframedtext
and
\startframedtext
\stopframedtext
if you will be doing this often.
There is probably also a way to define a named framed text.

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] Registers with distinguishable entries.

2012-04-26 Thread Alan BRASLAU
On Thu, 26 Apr 2012 19:18:55 +0900
S Barmeier severinbarme...@googlemail.com wrote:

 \defineregister[Music][Musics]

Musics?

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] Background on the 1st page only, page numbering from the 2nd page

2012-05-02 Thread Alan BRASLAU
On Wed, 2 May 2012 14:24:24 +0200
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 02.05.2012 um 09:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
 
  how to specify the page background for the first page only and how
  to start page numbering from the second page?
 
 \defineoverlay[Bkg][\doif{\pagenumber}{1}{\externalfigure[cow]}]
 
 \setupbackgrounds[paper][background=Bkg]
 
 \starttext \noheaderandfooterlines
 \dorecurse{5}{\input knuth\par}
 \stoptext

If you want to create a title page (which may not be your intention),
why not simply

\definemakeup[titlepage][align=middle]
\defineoverlay[COW][\externalfigure[cow]]

\starttext
\setupbackgrounds[page][background=COW]
\starttitlepagemakeup
A title
\stoptitlepagemakeup
\setupbackgrounds[page][background=]
\setuppagenumbering[alternative=doublesided,way=bytext]
\dorecurse{5}{\input knuth\par}
\stoptext


Question (for Wolfgang):
Why did you use paper rather than page (what is the difference)?

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] drawarrow and transparency

2012-05-02 Thread Alan BRASLAU
I have a MetaPost question concerning drawarrow withtransparency
(or any other compound object).

Is there some clever way to achieve uniform transparency
for a compound object? For example, in the minimal example
below, how can one obtain a transparent arrow without getting
an X-ray vision of the arrowhead?

\starttext
\startMPpage
drawarrow origin--(1cm,0) withtransparency(1,.5) ;
drawarrow origin--(0,1cm) withtransparency(1,.5) ;
\stopMPpage
\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] drawarrow and transparency

2012-05-03 Thread Alan BRASLAU
On Wed, 2 May 2012 21:42:24 +0200
Marco net...@lavabit.com wrote:

 On 2012-05-02 Alan BRASLAU alan.bras...@cea.fr wrote:
 
  For  example, in  the minimal  example below,  how can  one obtain
  a  transparent  arrow  without  getting an  X-ray  vision  of  the
  arrowhead?
 
 Maybe I'm  reinventing the  wheel here,  but you  can write  a small
 macro that only draws the lines you want. Here is an idea:
 
 \starttext
 \startMPpage
 
   linecap  := squared;
   penscale := .5bp;
   pickup pencircle scaled penscale;
 
   def drawmyarrow expr p = _apth:=p; _myfinarr enddef;
   def _myfinarr text t =
   draw _apth cutafter point (-ahlength+.1penscale) on
 _apth t; fill arrowhead _apth  t
   enddef;
 
   drawarrow   origin-- (1cm,0) withtransparency(1,.5) ;
   drawarrow   origin-- (0,1cm) withtransparency(1,.5) ;
   drawmyarrow (1.5cm,0) -- (2.5cm,0)   withtransparency(1,.5) ;
   drawmyarrow (1.5cm,0) -- (1.5cm,1cm) withtransparency(1,.5) ;
 
 \stopMPpage
 \stoptext
 
 The (-ahlength+.1penscale)  are of  course empiric. You  should find
 the correct  formula to always have  a nice match of  line and arrow
 whatever ahlength and ahangle values are in use.
 
 Marco

Yes, this is somewhat reinventing the wheel.

I believe that this is somewhat a bug with transparency under MetaFun.
For I tried the following:

\startMPcode
picture pic ; pic := image(drawarrow origin--(1cm,0)) ;

draw pic withtransparency(1,.5) ;
draw pic rotated 90 withtransparency(1,.5) ;
\stopMPcode

Here, the arrowhead is totally opaque and only the stem
has transparency. Something is fishy.

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] References to floats

2012-05-09 Thread Alan BRASLAU
 On Mon, May 7, 2012 at 15:03, Robert Blackstone wrote:
 
 Thank you, Hans, for your quick reply. Unfortunately it does not help
 me. The result is basically the same as when I write on
 \at{page}[ref], except that, instead of on page 20, I get at page
 20, (with the float sitting on page 20).
 Frankly, I'm rather surprised that this wish of mine seems not to have
 come up before.
 

Indeed, something clean and automatic should be easy -
after all the color of the reference is different (contrastcolor)
when it is to be found on the same page or on a different page.

\at{page}[ref] could be smart enough...

What should the behavior be?
on \at{page}[ref] could return on ,
but this would not be right.
\at{on page}[ref] could return ,
but otherwise on page would be a (colored) active link.
I might try
\in{figure}[ref] \at{(page }{)}[ref]
and hope/expect (page xx) to be replaced by 
when referring to the current page.
Maybe Wolfgang is right in suggesting writing a custom macro.

I haven't looked at the code, though.

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] switching to a different math font (with alternatives) in the middle of document

2012-05-10 Thread Alan BRASLAU
On Thu, 10 May 2012 10:05:49 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 10-5-2012 02:29, Mojca Miklavec wrote:
 
  PS: I forgot to send a minimal example. Here it is :)
   
  http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/math-test-alphabet.tex
   
  http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/math-test-alphabet.pdf
 
 my editor cannot open minimal examples with more than 10 lines
 
 Hans

You must not be using the same editor (and TeX) as Mojca :)

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] transluency/transparency

2012-06-04 Thread Alan BRASLAU
On Mon, 4 Jun 2012 10:33:14 +0200
Jan Pohanka xhpoha...@gmail.com wrote:

 Hello,
 
 is it possible to somehow set transluency or transparency of several  
 objects?
 The example should clarify, what I need: I have a template for
 company documents, which has some text, lines and graphics (external
 pdf or png) in its footer. Now I want to make the header be less
 visible than the rest of the page. Surely I can set a color of the
 text to gray and edit the image, but is there some other way?
 
 best regards
 Jan
 

See page 204, section 8.5 of the metafun book

loadfigure gracht.mp number 1 scaled .5 ;
addto currentpicture also
(currentpicture softened .8)
shifted (bbwidth(currentpicture)+.5cm,0) ;

(this example draws the picture alongside its softened copy.)

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] Centering a figure vertically on a page

2012-07-03 Thread Alan BRASLAU
On Tue, 3 Jul 2012 13:30:22 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 \centerbox{\externalfigure[cow]}

Wow! \centerbox{}

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] Centering a figure vertically on a page

2012-07-03 Thread Alan BRASLAU
On Tue, 3 Jul 2012 15:48:43 +0200
Hans Hagen pra...@wxs.nl wrote:

 It's a rather (old) low level boxing macro ...
 
 \start
  \showboxes
  \centerbox width 10cm height 3cm {Alan is surprised}
 \stop

My TeX culture remains, alas, always limited (even if I have the
TeXbook on my office bookshelf, indeed \centerbox does not appear in
plain TeX). Nothing in the ConTeXt manual, either. Of course, a
leisurely browsing of the source code would reveal many such treasures!

On the garden:

Context 2005.05.25
...
\centerbox now accepts \par in it;s argument
...


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] Broken Nightly (2012.07.10)

2012-07-13 Thread Alan BRASLAU
The subject of this ongoing string is not very informative
and indeed slightly unpleasant considering the efforts that
many contributors make towards the development of ConTeXt.

The present message is not intended to start any sort of debate;
it only represents a reaction to a latent feeling that I have
for some time now...

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] Et tu, Taco?

2012-08-06 Thread Alan BRASLAU
 On 06/08/2012 14:54 Bill Meahan wrote:

 On 08/05/2012 05:00 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: 
  Dear Knights of the ConTeXt Table, 
  
  I am sad to report that our beloved Taco has gone over to the dark
  side: 
  
  http://tacosw.com/latexian/ 
  
  Is there a Merlin among us to bring back our holy grail? Wolfgang?
  Luigi? 
  
  :D 
  
  Best wishes 
  Idris 
 
 Poor Taco. Other than the tabs he has managed to duplicate the 
 features Emacs has had for some time now albeit at the expense of 
 installing a couple of optional packages. Then there's Lyx,
 Texworks... 
 
 Perhaps we need our own deprogrammers to help rescue our community 
 members from the Cult of Mac. :) 
 
 -- 
 Bill Meahan, Westland, Michigan USA
 
 
 “Writing is a combination of intangible 
 creative fantasy and appallingly 
 hard work.” 
 
 —Anthony Powell 

Oh, you mean TECO...

Alan

-- 
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] A series of articles about text-editors for the MAPS

2012-08-08 Thread Alan BRASLAU
On Tue, 7 Aug 2012 20:22:48 -0400
john Culleton j...@wexfordpress.com wrote:

 On Tue, 7 Aug 2012 11:34:28 +0200 Willi Egger cont...@boede.nl
 wrote:
 
  Dear TeX users and TeX friends,
  
  At one of the last NTG-meetings we discussed possibilities to
  write a series of articles presenting the different text
  editors used in modern TeX-environments. 
  
  Such an article could have ingredients like availability,
  general use, highlights, issues related to TeX coding and
  whether it is suitable for Plain-tex, Latex, Context,
  configurability etc.
  
  The idea is to produce a MAPS-issue in color, so that also
  screenshots can be included. 
  
  We have already a couple of volunteers to write on certain
  editors, however it is for sure not a bad idea to include even
  two articles on the same editor. What we definitely are looking
  for is someone who would be prepared to write an article over
  WinEdt.
  
  I am looking forward hearing from you, kind regards
  
  Willi Egger Secretary NTG ntg-secret...@ntg.nl
 
 I use Gvim for all editing, including all forms of TeX, columns
 submitted to my newspaper editors, programs (Tcl etc.) and emails.
 The virtue is I do not have to learn and relearn a new editor for
 each. And my custmizations such as F2 to justify each paragraph
 ragged right, are common for all. I even assign F keys for
 running pdftex or context on a file named book.tex (every book I
 work on is in a separate directory so all of them are called
 book.tex.) I have an  F key for acroread book.pdf
 
 Just FYI. I doubt if I am the only one. 

cat  book.tex ; context book ; zathura book.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] Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex

2012-09-18 Thread Alan BRASLAU
On Tue, 18 Sep 2012 13:41:56 +0200
Schmitz Thomas A. thomas.schm...@uni-bonn.de wrote:

 
 On Sep 18, 2012, at 12:28 PM, Marco Patzer home...@lavabit.com
 wrote:
 
  5) (side question)
  What is BibTeX used for in ConTeXt? As far as I can see, it reads
  the .bib database and generates a .bbl file which then is read in by
  ConTeXt. Why do we need an external tool for this? Why does ConTeXt
  not read in the .bib database and directly save it as a Lua table?
 
 Because nobody has coded that part yet? This may not be as easy as
 you make it sound because quite a few heuristics go into parsing
 bibtex files (e.g., look at the way in which bibtex divides names
 into first name, last name, von-part, jr-part). Over the years, I
 have read and heard many complaints about bibtex and many
 announcements that something infinitely better is just around the
 corner, to be delivered in all its glory real soon now. For the
 time being, I don't see any real replacement, but I may be wrong.


Do not forget that there are many databases and tools that more or less
know how to deal with bibtex files. And many web sites can output
bibtex data, more or less correctly.

Of course, one could also consider using other standards, such as
EndNote... but we would not want to do that, would we?

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] verbatim text: \type, \tex and co.

2012-09-27 Thread Alan Braslau
Hello,

Can someone indicate how to typeset
$L_{α+β}$
as verbatim text?
(\arg{} doesn't help here...)

Furthermore, I suppose that typesetting Greek characters verbatim
depends also upon which \tt font is being used.

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] verbatim text: \type, \tex and co.

2012-09-28 Thread Alan BRASLAU
On Fri, 28 Sep 2012 10:43:48 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 27-9-2012 22:49, Alan Braslau wrote:
  Hello,
 
  Can someone indicate how to typeset
  $L_{α+β}$
  as verbatim text?
  (\arg{} doesn't help here...)
 
  Furthermore, I suppose that typesetting Greek characters verbatim
  depends also upon which \tt font is being used.  
 
 \setupbodyfont[dejavu]
 
 \starttext
 
 \starttyping
 $L_{α+β}$
 \stoptyping
 
 \stoptext

Also, \type{$L_{α+β}$}

I thought that I saw that somewhere before! :)

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] wikiadmin

2012-10-01 Thread Alan BRASLAU
On Mon, 1 Oct 2012 11:58:50 +0200
Peter Schorsch trala...@freenet.de wrote:

 Hi,
 
 whom to contact for user issue with the contextgarden-wiki?
 
 Thanks
 P.


http://wiki.contextgarden.net/ConTeXt_wiki: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] blank lines above accentuated capital letter

2012-10-02 Thread Alan BRASLAU
On Tue, 2 Oct 2012 09:18:48 +0200
Wolfgang Schuster wolfgang.schus...@gmail.com wrote:

 
 Am 01.10.2012 um 14:34 schrieb Stéphanie Vilayphiou
 stephanie.vilayph...@gmail.com:
 
  Hello,
  
  I'm typesetting a French brochure with a typeface created for this
  project But everytime I have an É (or any diacritic on a capital
  letter), it creates a blank line above)
  
  here's a screenshot of what it produces:
 
  https://www.dropbox.com/s/l7xuiuesba5lb9e/Capture%20d%E2%80%99%C3%A9cran%202012-09-26%20%C3%A0%2018.42.01.png
  
  I run version 2012.03.13 21:26 on arch linux
 The diacritic if over the 1000 truetype height, is this the
  problem? Stéphanie
 
 You can try to change the height/depth ratio for the strut, i.e.
 \setupinterlinespace[height=0.8,depth=0.2]
 
 Wolfgang

This seems to be a font problem, or some other special setting,
as the above text typesets correctly by default, or using
\setupbodyfont[dejavu]
for example.

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
___

  1   2   3   4   5   6   7   8   9   10   >