Re: [NTG-context] Float within a frame challenge

2008-09-02 Thread Wolfgang Schuster
On Mon, Sep 1, 2008 at 10:18 PM, B. Tommy Jensen [EMAIL PROTECTED] wrote:
 Hi,
 I am trying to accomplish the following layout with ConTeXt:

  - An icon and a descriptive text should be contained together in a
 separate frame
  - The frame should be centered and have a special background color
  - Within the frame, the icon should be placed to the upper left.
  - A descriptive text should flow around the icon within the frame,
first part to the right and then below the icon.

 I have tried the following construct:

 %--

 \startframedtext
 \placefigure[left]{none}{\externalfigure[danger]}

 The textual description of the icon comes here. It should ideally flow to
 the right of
 the figure within the frame, but the figure actually becomes behind the
 text.
 \stopframedtext

 %--

 The problem here is that the icon and text is placed on top of each other.

 When removing the frame (\startframedtext command), the placement of the
 figure and the text works OK, but I don't get a frame then of course.

 I have studied the It's in the details document which explains a great
 deal about float's, but I haven't found anything covering the frame issue.

 Is the startframedtext the wrong command to use? All hints or suggestions
 (like references to other tutorials) are very welcome.

http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html

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


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-02 Thread Mojca Miklavec
On Tue, Sep 2, 2008 at 12:50 AM, Alan Bowen wrote:

 With this change in all the engines---thanks to Aditya
 too---ConTeXt-pdftex.engine and ConTeXt-XeTeX.engine now work as they should
 (which is great!)
 But running ConTeXt-luatex.engine gets
 MtxRun | skipping configuration for
 /Applications/ConTeXtMinimals/tex/texmf-local/web2c from
 /Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/trees/3beab8509a03fa29e95f93134a943a7f
 MtxRun | loading configuration for
 /Applications/ConTeXtMinimals/tex/texmf/web2c from
 /Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/trees/d9ef00871d7b11751a275cffd8a85753
 MtxRun | error, no format found with name: cont-en
 MtxRun | total runtime: 0.010

Try if this helps:

export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context --make

I have no idea why the formats haven't been built previously though
(or maybe they were flying to some other location).

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
___


Re: [NTG-context] Missing background color with \definetextbackground

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 9:46 AM, B. Tommy Jensen [EMAIL PROTECTED] wrote:
 On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec
 [EMAIL PROTECTED] wrote:

 %
 \setupcolors[state=start]
 \definetextbackground[highlight][backgroundcolor=yellow,
 frame=on,

 %add
 background=color,

 location=text,
 color=blue]
 \starttext
 \starttextbackground[highlight]
 This text should have yellow background but it is white.
 The text is however blue.
 \stoptextbackground
 \stoptext
 %-

 Thanks for the prompt reply!

 I have tried to add background=color as an option, but the result is
 exactly the same;
 only the text gets colored; no frame and no background color appear.

 Do you have other ideas?

Is metapost or MPtoPDF called, take a in your terminal, dou you have
the metafun format and do you use MkII (texexec ...) or MkIV (context ...).

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


[NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Johan Sandblom
What would be the drawback of allowing

backgroundcolor=n imply background=color

and

backgroundscreen=x imply background=screen

in the setup to \framed. Background compatibility should not be an
issue and I am failing to imagine cases where it would not be
desirable.

Regards, Johan

-- 
Johan Sandblom, MD PhD
m +46735521477 Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] footnote and its reference

2008-09-02 Thread Steffen Wolfrum
Hi,

is there an option (penalty maybe) to adjust how hard TeX / ConTeXt  
should try keeping a footnote-mark and the first two line of its  
footnote on the same page?

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


[NTG-context] dimensions

2008-09-02 Thread Alan Stone
Hi,

Is there a font dependant dimension, similar to 1em = width of an M, but in
height ?

Best,
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] bug with numeral conversion function

2008-09-02 Thread Khaled Hosny
On Mon, Sep 01, 2008 at 07:26:43PM +0200, Khaled Hosny wrote:
 Now, I think I discovered another bug (or feature?), the function will
 ignore any zeros at the left which isn't what one expects.

This happen to be some thing in Lua itself:
s = 000123 print(s)
will give 123, so it have to be a string to keep the to the left zeros.

I rewrote the converters.alphabetic() and converters.Alphabetic() so
that it will not expect a number and will just iterate through the given
string, and now \arabicnumerals and its brothers will pass strings to
it.

Also I found that \abjadnumerals were referring to
converters.arabicnumerals witch doesn't exist, I changed it to 
converters.abjadnumerals but there is no converters.abjadnaivenumerals
and I've no idea what it is supposed to do.

See the attached patch and tell me what you think.


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
diff -Naur cont-tmf/tex/context/base/core-con.lua cont-tmf.local/tex/context/base/core-con.lua
--- cont-tmf/tex/context/base/core-con.lua	2008-06-24 23:02:50.0 +0300
+++ cont-tmf.local/tex/context/base/core-con.lua	2008-09-02 12:01:17.0 +0200
@@ -102,22 +102,22 @@
 texsprint(utfchar(n+m))
 end
 
-local function do_alphabetic(n,max,chr)
-if n  max then
-do_alphabetic(floor((n-1)/max),max,chr)
-n = (n-1)%max+1
-end
-characters.flush(chr(n))
-end
-
 function converters.alphabetic(n,code)
 local code = counters[code] or counters['**']
-do_alphabetic(n,#code,function(n) return code[n] or fallback end)
+for c in string.characters(n) do
+local c = c + 1
+	local chr = function(n) return code[n] or fallback end
+	characters.flush(chr(c))
+end
 end
 
 function converters.Alphabetic(n,code)
 local code = counters[code] or counters['**']
-do_alphabetic(n,#code,function(n) return characters.uccode(code[n] or fallback) end)
+for c in string.characters(n) do
+local c = c + 1
+	local chr = function(n) return characters.uccode(code[n] or fallback) end
+	characters.flush(chr(c))
+end
 end
 
 function converters.character(n)  converters.chr (n,96) end
diff -Naur cont-tmf/tex/context/base/core-con.mkiv cont-tmf.local/tex/context/base/core-con.mkiv
--- cont-tmf/tex/context/base/core-con.mkiv	2008-06-24 22:55:44.0 +0300
+++ cont-tmf.local/tex/context/base/core-con.mkiv	2008-09-02 12:17:49.0 +0200
@@ -17,8 +17,8 @@
 
 \def\romannumerals   #1{\ctxlua{converters.romannumerals(\number#1)}}
 \def\Romannumerals   #1{\ctxlua{converters.Romannumerals(\number#1)}}
-\def\abjadnumerals  #1{\ctxlua{converters.arabicnumerals(\number#1)}}
-\def\abjadnodotnumerals #1{\ctxlua{converters.arabicnodotnumerals(\number#1)}}
+\def\abjadnumerals  #1{\ctxlua{converters.abjadnumerals(\number#1)}}
+\def\abjadnodotnumerals #1{\ctxlua{converters.abjadnodotnumerals(\number#1)}}
 \def\abjadnaivenumerals #1{\ctxlua{converters.arabicnaivenumerals(\number#1)}}
 
 \defineconversion [romannumerals]  [\romannumerals]
@@ -32,8 +32,8 @@
 \def\characters#1{\ctxlua{converters.characters(\number#1)}}
 \def\Characters#1{\ctxlua{converters.Characters(\number#1)}}
 
-\def\languagecharacters#1{\ctxlua{converters.alphabetic(\number#1,\currentlanguage)}} % new
-\def\languageCharacters#1{\ctxlua{converters.Alphabetic(\number#1,\currentlanguage)}} % new
+\def\languagecharacters#1{\ctxlua{converters.alphabetic(#1,\currentlanguage)}} % new
+\def\languageCharacters#1{\ctxlua{converters.Alphabetic(#1,\currentlanguage)}} % new
 
 \def\getdayoftheweek#1#2#3{\normalweekday\ctxlua{converters.weekday(\number#1,\number#2,\number#3)}}
 \def\dayoftheweek   #1#2#3{\doconvertday{\ctxlua{converters.weekday(\number#1,\number#2,\number#3)}}}
@@ -73,19 +73,19 @@
 
 % we could use an auxiliary macro to save some bytes in the format
 %
-% \def\dolanguagecharacters#1#2{\ctxlua{converters.alphabetic(\number#2,#1)}}
+% \def\dolanguagecharacters#1#2{\ctxlua{converters.alphabetic(#2,#1)}}
 
 % this does not belong here, but in a lang-module
 
-\def\thainumerals  #1{\ctxlua{converters.alphabetic(\number#1,thai)}}
-\def\devanagarinumerals#1{\ctxlua{converters.alphabetic(\number#1,devanagari)}}
-\def\gurmurkhinumerals #1{\ctxlua{converters.alphabetic(\number#1,gurmurkhi)}}
-\def\gujaratinumerals  #1{\ctxlua{converters.alphabetic(\number#1,gujarati)}}
-\def\tibetannumerals   #1{\ctxlua{converters.alphabetic(\number#1,tibetan)}}
-\def\greeknumerals #1{\ctxlua{converters.alphabetic(\number#1,greek)}}
-\def\Greeknumerals #1{\ctxlua{converters.Alphabetic(\number#1,greek)}}
-\def\arabicnumerals#1{\ctxlua{converters.alphabetic(\number#1,arabic)}}
-\def\persiannumerals   #1{\ctxlua{converters.alphabetic(\number#1,persian)}}
+\def\thainumerals  #1{\ctxlua{converters.alphabetic(#1,thai)}}
+\def\devanagarinumerals#1{\ctxlua{converters.alphabetic(#1,devanagari)}}
+\def\gurmurkhinumerals #1{\ctxlua{converters.alphabetic(#1,gurmurkhi)}}
+\def\gujaratinumerals  

Re: [NTG-context] dimensions

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 12:15 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 Hi,

 Is there a font dependant dimension, similar to 1em = width of an M, but in
 height ?

ex

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


Re: [NTG-context] dimensions

2008-09-02 Thread Mojca Miklavec
On Tue, Sep 2, 2008 at 12:15 PM, Alan Stone wrote:
 Hi,

 Is there a font dependant dimension, similar to 1em = width of an M, but in
 height ?

1ex (= height of x).

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
___


Re: [NTG-context] dimensions

2008-09-02 Thread Thomas A. Schmitz

On Sep 2, 2008, at 12:15 PM, Alan Stone wrote:

 Hi,

 Is there a font dependant dimension, similar to 1em = width of an M,  
 but in height ?

 Best,
 Alan

Please spend some of your precious time on a reference. 
http://eijkhout.net/texbytopic/texbytopic.html

You want chapter 4.

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

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] no stretch for footnotes!

2008-09-02 Thread Steffen Wolfrum
Hi,

I just noticed that in my MkII footnote definition ...

  \def\setnotebodyfont
{\let\setnotebodyfont\relax
 \restoreglobalbodyfont\switchtobodyfont[rm,9pt] 
\setupinterlinespace[stretch=0.05,line=9.8pt,height=.79,depth=. 
21]\setupalign[block,hanging,hz]\parskip2pt}

... all works fine, only stretch=... does never ever have any effect.


Is there an other way to assign numeric stretching to footnotes?


Thanks,

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
___


Re: [NTG-context] dimensions

2008-09-02 Thread Alan Stone
Thanks all.

Was looking for the equivalent in height of a capital. Didn't find it there,
neither elsewhere, so...

Best,
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] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 11:27 AM, Johan Sandblom [EMAIL PROTECTED] wrote:
 What would be the drawback of allowing

 backgroundcolor=n imply background=color

 and

 backgroundscreen=x imply background=screen

 in the setup to \framed. Background compatibility should not be an
 issue and I am failing to imagine cases where it would not be
 desirable.

 Regards, Johan

backgroundscreen has a default value and with your description
the background will be always gray.

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


Re: [NTG-context] Missing background color with \definetextbackground

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 12:55 PM, B. Tommy Jensen [EMAIL PROTECTED] wrote:
 On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Do you have other ideas?

 Is metapost or MPtoPDF called, take a in your terminal, dou you have
 the metafun format and do you use MkII (texexec ...) or MkIV (context
 ...).

 Wolfgang

 Thanks a lot for pointing me in the right direction!

 I was using the texexec utility. When I tried the same with the context
 version, it rebuilt some formats and it now works exactly as expected.

 Sorry for being a novice here; is it so that the texexec utility should
 be consiered as obsolete?

But MkII should work too. Try texexec --make metafun --alone and now
texexec myfile.

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


Re: [NTG-context] no stretch for footnotes!

2008-09-02 Thread Hans Hagen
Steffen Wolfrum wrote:
 Hi,
 
 I just noticed that in my MkII footnote definition ...
 
  \def\setnotebodyfont
{\let\setnotebodyfont\relax
 
 \restoreglobalbodyfont\switchtobodyfont[rm,9pt]\setupinterlinespace[stretch=0.05,line=9.8pt,height=.79,depth=.21]\setupalign[block,hanging,hz]\parskip2pt}
  
 
 
  all works fine, only stretch=... does never ever have any effect.
 
 
 Is there an other way to assign numeric stretching to footnotes?

never looked intot it, it's vboxed stuff so that will not get much 
stretch anyway

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Missing background color with \definetextbackground

2008-09-02 Thread B. Tommy Jensen
On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec  
[EMAIL PROTECTED] wrote:

 %
 \setupcolors[state=start]
 \definetextbackground[highlight][backgroundcolor=yellow,
 frame=on,

 %add
 background=color,

 location=text,
 color=blue]
 \starttext
 \starttextbackground[highlight]
 This text should have yellow background but it is white.
 The text is however blue.
 \stoptextbackground
 \stoptext
 %-

Thanks for the prompt reply!

I have tried to add background=color as an option, but the result is  
exactly the same;
only the text gets colored; no frame and no background color appear.

Do you have other ideas?

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

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] Missing background color with \definetextbackground

2008-09-02 Thread B. Tommy Jensen
On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster  
[EMAIL PROTECTED] wrote:

 Do you have other ideas?

 Is metapost or MPtoPDF called, take a in your terminal, dou you have
 the metafun format and do you use MkII (texexec ...) or MkIV (context  
 ...).

 Wolfgang

Thanks a lot for pointing me in the right direction!

I was using the texexec utility. When I tried the same with the context
version, it rebuilt some formats and it now works exactly as expected.

Sorry for being a novice here; is it so that the texexec utility should
be consiered as obsolete?

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

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 does MPinclusions work in mkiv?

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 1:13 PM, Mojca Miklavec
[EMAIL PROTECTED] wrote:
 Hello (Hans),

 this minimal example worked OK in mkiv back in May (most of settings
 in the code below are just unimportant cosmetics, but otherwise it's
 difficult to explain the idea behind); now it still works in mkii, but
 not in mkiv.

 \def\mynextmpgraphic{\startMPinclusions erase_picture := 1; \stopMPinclusions}

 \startusableMPgraphic{bubble}
 if erase_picture = 0:
draw last_picture;
 else:
% draw a new picture; in mkiv this code is only reached once,
% \mynextgraphic does not reset erase_picture
 fi;
 \stopusableMPgraphic

 The code is ugly anyway, I know, but how should I reset variables to
 redraw the picture once more?

 Thanks a lot,
Mojca

 ---

 \setupcolors[state=start]
 \definecolor[color 1][r=.7,g=.0,b=.0]
 \definecolor[color 2][r=.7,g=.35,b=.0]
 \definecolor[color 3][r=.67,g=.7,b=.0]
 \definecolor[color 4][r=.3,g=.7,b=.0]
 \definecolor[color 5][r=.0,g=.7,b=.0]
 \definecolor[color 6][r=.0,g=.7,b=.4]
 \definecolor[color 7][r=.0,g=.6,b=.7]
 \definecolor[color 8][r=.0,g=.3,b=.7]
 \definecolor[color 9][r=.1,g=.0,b=.7]
 \definecolor[color 10][r=.4,g=.0,b=.7]
 \definecolor[pagecolor][color 1]

 \setuphead
  [section]
  [number=no,
   page=yes,
   style=\bfd,
   color=pagecolor]
 \setuppapersize
  [S6][S6]
 \setuppagenumbering
  [location=]

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

?

 \setupbackgrounds
  [page]
  [background=bubble]
 \defineoverlay
  [bubble]
  [\useMPgraphic{bubble}]

 \startMPinclusions
 picture last_picture;
 last_picture := nullpicture;
 erase_picture := 1;
 \stopMPinclusions

 \startusableMPgraphic{bubble}
 if erase_picture = 0:
  draw last_picture;
 else:
  for i=1 upto 20:
path p; p := fullcircle
  scaled (2cm+uniformdeviate(3cm))
  shifted (uniformdeviate(\overlaywidth),uniformdeviate(\overlayheight));
fill p withcolor .2[white,\MPcolor{pagecolor}];
draw p withcolor .5[white,\MPcolor{pagecolor}];
  endfor;

  setbounds currentpicture to unitsquare xyscaled
 (\overlaywidth,\overlayheight);

  last_picture := currentpicture;
  erase_picture := 0;
 fi;
 \stopusableMPgraphic

 \def\mynextmpgraphic{\startMPinclusions erase_picture := 1; \stopMPinclusions}

 \starttext

 \section{abc first time}
 \section{abc second time}
 \section{abc third time}

 \page\definecolor[pagecolor][color 2]\mynextmpgraphic\page

 \section{def first time}
 \section{def second time}
 \section{def third time}

 \page\definecolor[pagecolor][color 3]\mynextmpgraphic\page

 \section{ghi first time}
 \section{ghi second time}

 \page\definecolor[pagecolor][color 4]\mynextmpgraphic\page

 \section{jkl first time}
 \section{jkl second time}
 \section{jkl third time}
 \section{jkl fourth time}

 \stoptext

Write the test in TeX, the information will not be lost in this way.

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


Re: [NTG-context] Missing background color with \definetextbackground

2008-09-02 Thread B. Tommy Jensen
On Tue, 02 Sep 2008 13:08:56 +0200, Wolfgang Schuster  
[EMAIL PROTECTED] wrote:


 Sorry for being a novice here; is it so that the texexec utility  
 should
 be consiered as obsolete?

 But MkII should work too. Try texexec --make metafun --alone and now
 texexec myfile.

 Wolfgang

Thanks - this also now works! The context utility built the format
automatically while I had to run the command manually with texexec
(So context seems to be smarter than texexec).

My installation is the complete windows environment of context. I ran
the fist_setup.bat batch file after installation; this built many  
formats.
I don't know why the metafun format wasn't built - perhaps something
is missing from the setup file?

In any case - thanks a lot for the good advice.

Best regards,
Tommy Jensen


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

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] How does MPinclusions work in mkiv?

2008-09-02 Thread Mojca Miklavec
Hello (Hans),

this minimal example worked OK in mkiv back in May (most of settings
in the code below are just unimportant cosmetics, but otherwise it's
difficult to explain the idea behind); now it still works in mkii, but
not in mkiv.

\def\mynextmpgraphic{\startMPinclusions erase_picture := 1; \stopMPinclusions}

\startusableMPgraphic{bubble}
if erase_picture = 0:
draw last_picture;
else:
% draw a new picture; in mkiv this code is only reached once,
% \mynextgraphic does not reset erase_picture
fi;
\stopusableMPgraphic

The code is ugly anyway, I know, but how should I reset variables to
redraw the picture once more?

Thanks a lot,
Mojca

---

\setupcolors[state=start]
\definecolor[color 1][r=.7,g=.0,b=.0]
\definecolor[color 2][r=.7,g=.35,b=.0]
\definecolor[color 3][r=.67,g=.7,b=.0]
\definecolor[color 4][r=.3,g=.7,b=.0]
\definecolor[color 5][r=.0,g=.7,b=.0]
\definecolor[color 6][r=.0,g=.7,b=.4]
\definecolor[color 7][r=.0,g=.6,b=.7]
\definecolor[color 8][r=.0,g=.3,b=.7]
\definecolor[color 9][r=.1,g=.0,b=.7]
\definecolor[color 10][r=.4,g=.0,b=.7]
\definecolor[pagecolor][color 1]

\setuphead
  [section]
  [number=no,
   page=yes,
   style=\bfd,
   color=pagecolor]
\setuppapersize
  [S6][S6]
\setuppagenumbering
  [location=]
\definelayer
  [page]
  [width=\paperwidth,
   height=\paperheight]
\setupbackgrounds
  [page]
  [background=bubble]
\defineoverlay
  [bubble]
  [\useMPgraphic{bubble}]

\startMPinclusions
picture last_picture;
last_picture := nullpicture;
erase_picture := 1;
\stopMPinclusions

\startusableMPgraphic{bubble}
if erase_picture = 0:
  draw last_picture;
else:
  for i=1 upto 20:
path p; p := fullcircle
  scaled (2cm+uniformdeviate(3cm))
  shifted (uniformdeviate(\overlaywidth),uniformdeviate(\overlayheight));
fill p withcolor .2[white,\MPcolor{pagecolor}];
draw p withcolor .5[white,\MPcolor{pagecolor}];
  endfor;

  setbounds currentpicture to unitsquare xyscaled
(\overlaywidth,\overlayheight);

  last_picture := currentpicture;
  erase_picture := 0;
fi;
\stopusableMPgraphic

\def\mynextmpgraphic{\startMPinclusions erase_picture := 1; \stopMPinclusions}

\starttext

\section{abc first time}
\section{abc second time}
\section{abc third time}

\page\definecolor[pagecolor][color 2]\mynextmpgraphic\page

\section{def first time}
\section{def second time}
\section{def third time}

\page\definecolor[pagecolor][color 3]\mynextmpgraphic\page

\section{ghi first time}
\section{ghi second time}

\page\definecolor[pagecolor][color 4]\mynextmpgraphic\page

\section{jkl first time}
\section{jkl second time}
\section{jkl third time}
\section{jkl fourth time}

\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] dimensions

2008-09-02 Thread Mojca Miklavec
On Tue, Sep 2, 2008 at 12:58 PM, Alan Stone wrote:
 Thanks all.

 Was looking for the equivalent in height of a capital. Didn't find it there,
 neither elsewhere, so...

One thing that you can always do:
\box0=\hbox{012}
and then you can access \ht0, \wd0, \dp0 (height, width and depth) of
whatever text you desire.

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
___


Re: [NTG-context] dimensions

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 12:58 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 Thanks all.

 Was looking for the equivalent in height of a capital. Didn't find it there,
 neither elsewhere, so...

\strutht

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


Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-02 Thread Martin Scholz
On 01.09.2008 18:26:03, Martin Scholz wrote:
 Hi
 What is the result from kpsewhich cont-de.fmt and where did ConTeXt save
 the new format (you can see this in one of the last line when you generate
 the format).
 
 The generation saves the files to
 C:/texlive/2008/texmf-var/web2c/pdftex/*.fmt
 and kpsewhich cont-de.fmt gives no output in some directorys
 and ./cont-de.fmt in an folder where i have files to compile.
 
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 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
 ___
 
 

One error I found was that the german language was outcommented in the
fmtutil.cnf Just change line 59 from

#! cont-de  pdftex cont-usr.tex-8bit *cont-de.ini

to

cont-de pdftex cont-usr.tex-8bit *cont-de.ini

and add directly after line 59 a new line 60 with the following content:

cont-de xetex  cont-usr.tex-8bit *cont-de.in

this is a way texexec works. but for mkiv and context there is still no way
how to get it working but I keep on trying.

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

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] Color in math in MkIV

2008-09-02 Thread Aditya Mahajan
Hi,

The color commands do not work inside math mode in MKIV. For example

$f(\color[blue]{A}) = b$

$f({\blue A}) = b$

come out black and

$f(\blue{A}) = b$

colors everything blue. I have an easy work around for the moment:

\unprotected\def\mathcolor[#1]#2%
   {\preparebinrel{#2}
[EMAIL PROTECTED] #2$}}}


and then use \mathcolor.

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
___


Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 1:23 PM, Martin Scholz [EMAIL PROTECTED] wrote:
 On 01.09.2008 18:26:03, Martin Scholz wrote:
 Hi
 What is the result from kpsewhich cont-de.fmt and where did ConTeXt save
 the new format (you can see this in one of the last line when you generate
 the format).

 The generation saves the files to
 C:/texlive/2008/texmf-var/web2c/pdftex/*.fmt
 and kpsewhich cont-de.fmt gives no output in some directorys
 and ./cont-de.fmt in an folder where i have files to compile.

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

 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
 ___



 One error I found was that the german language was outcommented in the
 fmtutil.cnf Just change line 59 from

 #! cont-de  pdftex cont-usr.tex-8bit *cont-de.ini

 to

 cont-de pdftex cont-usr.tex-8bit *cont-de.ini

 and add directly after line 59 a new line 60 with the following content:

 cont-de xetex  cont-usr.tex-8bit *cont-de.in

 this is a way texexec works. but for mkiv and context there is still no way
 how to get it working but I keep on trying.

Try luatools --make --compile cont-de work. You could also try to load
the german format with luatools --run cont-de myfile (after you generated
the format).

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


[NTG-context] dot space (english article in german publication)

2008-09-02 Thread Steffen Wolfrum
Hi,

an english article set with \mainlanguage[en] gets this additional  
space after the dot closing a sentence.
That's probably right for english, only if all other articles in that  
publication are german it looks like a mistake.

How to keep the english language but turn this english typesetting off?


Thanks

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
___


[NTG-context] cont-de help for context with MK IV

2008-09-02 Thread Martin Scholz
Hi for all of you who want to compile documents with context under MK IV

you can use

luatools --make --compile cont-xx

to compile your language, hereby you must replace xx by the country-code of
your desired language

and with 

luatools --run cont-xx myfile

you can compile your document.
If you are using the chemic-modul you should add the following to your
preamble to let it compile correctly:

\unprotect
\def\MPdivten[#1]%
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]

\def\doMPdivten[#1]%
{\ifnum#1  \dodoMPdivtenB#1\else
\ifnum#1 999 \dodoMPdivtenC#1\else
\ifnum#1 99 \dodoMPdivtenD#1\else
\ifnum#1 9 \dodoMPdivtenE#1\else
\ifnum#1 0 \dodoMPdivtenF#1\else
\ifnum#1- \dodoMPdivtenA#1\else
\ifnum#1 -999 \dodoMPdivtenB#1\else
\ifnum#1 -99 \dodoMPdivtenC#1\else
\ifnum#1 -9 \dodoMPdivtenD#1\else
\ifnum#1 0 \dodoMPdivtenE#1\else
0 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}

\def\dodoMPdivtenA#1#2#3#4#5#6{#1#2#3#4#5.#6}
\def\dodoMPdivtenB #1#2#3#4#5{#1#2#3#4.#5}
\def\dodoMPdivtenC #1#2#3#4{#1#2#3.#4}
\def\dodoMPdivtenD #1#2#3{#1#2.#3}
\def\dodoMPdivtenE #1#2{#1.#2}
\def\dodoMPdivtenF #1{.#1}
\protect 

Thanks here to Wolfgang Schuster you just helped to figure out this howto.

The question is now how could one give the language-option over to context by
the context command or by edit the sourcefile with a command so that the
command has the following input:

context myfile

with the language-option in a context-command in the source-file or like

context --lang=de myfile

where the --lang option refers to the above luatools option so that default
luatools --run cont-en myfile is invoken and if --lang=xx is set the command
is invoken in the following way luatools --run cont-xx myfile.

Would be nice if one of the programmers could just implement the following
option in MK IV.

Greetings 
Martin

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

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] Color in math in MkIV

2008-09-02 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,
 
 The color commands do not work inside math mode in MKIV. For example
 
 $f(\color[blue]{A}) = b$
 
 $f({\blue A}) = b$
 
 come out black and
 
 $f(\blue{A}) = b$
 
 colors everything blue. I have an easy work around for the moment:
 
 \unprotected\def\mathcolor[#1]#2%
{\preparebinrel{#2}
 [EMAIL PROTECTED] #2$}}}
 
 
 and then use \mathcolor.

math is on the agenda for later this year ... no attributes there yet

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] dot space (english article in german publication)

2008-09-02 Thread Wolfgang Schuster
On Tue, Sep 2, 2008 at 3:01 PM, Steffen Wolfrum [EMAIL PROTECTED] wrote:
 Hi,

 an english article set with \mainlanguage[en] gets this additional
 space after the dot closing a sentence.
 That's probably right for english, only if all other articles in that
 publication are german it looks like a mistake.

 How to keep the english language but turn this english typesetting off?

\setuplanguage[en][spacing=packed]

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


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-02 Thread Alan Bowen


On Sep 2, 2008, at 04;04,31 , Mojca Miklavec wrote:


On Tue, Sep 2, 2008 at 12:50 AM, Alan Bowen wrote:


With this change in all the engines---thanks to Aditya
too---ConTeXt-pdftex.engine and ConTeXt-XeTeX.engine now work as  
they should

(which is great!)
But running ConTeXt-luatex.engine gets
MtxRun | skipping configuration for
/Applications/ConTeXtMinimals/tex/texmf-local/web2c from
/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/ 
3fc847143b06f084e10e73c8fbdf4ae2/trees/ 
3beab8509a03fa29e95f93134a943a7f

MtxRun | loading configuration for
/Applications/ConTeXtMinimals/tex/texmf/web2c from
/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/ 
3fc847143b06f084e10e73c8fbdf4ae2/trees/ 
d9ef00871d7b11751a275cffd8a85753

MtxRun | error, no format found with name: cont-en
MtxRun | total runtime: 0.010


Try if this helps:

export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context --make

I have no idea why the formats haven't been built previously though
(or maybe they were flying to some other location).

Mojca


My ConTeXt-luatex.engine now has
!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context $1

and in Terminal I have run
context --make

When I try to typeset “Hello world!”, absolutely nothing happens—the  
TeXShop console window opens and stays blank.


Have I misunderstood you?

Alan

PS  export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin: 
$PATH

makes no difference.
The other engines work well. A.





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

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] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Peter Rolf
Johan Sandblom schrieb:
 What would be the drawback of allowing
 
 backgroundcolor=n imply background=color
 
 and
 
 backgroundscreen=x imply background=screen
 
 in the setup to \framed. Background compatibility should not be an
 issue and I am failing to imagine cases where it would not be
 desirable.

The background parameter is not fixed to 'color' or 'screen'. You can
use any type of overlay background (which itself can use the parameter
backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply
'screen=color'. At least not in my macros.. :)


Best Wishes, Peter

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

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


[NTG-context] Installing ConTeXt Minimals on a Mac ... and using bibtex

2008-09-02 Thread Michael Green
I have the minimals installed in ~/Applications/context/

Context works great. However, I'm having trouble with bibtex.

[1] I export the following variables before using context.

. ~/Applications/context/tex/setuptex ~/Applications/context/tex
export TEXMFHOME='$HOME/Library/texmf'
export TEXMF='{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!! 
$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}';

(I added export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/ 
bin:$PATH but that didn't seem to make a difference in a couple of  
quick trials)

[2] The problem is that the minimal's bibtex can't find the bib file  
that I have stored in ~/Library/texmf/bibtex/bib/

It reports: I couldn't open database file bib-name.bib and I found  
no database files---while reading file file-name.aux

[3] which bibtex yields the path to the bibtex installed with the  
minimals:

/path-to-my-user-account/Applications/context/tex/texmf-osx-intel/bin/ 
bibtex

[4] When I open a new shell session, which bibtex points to /usr/ 
texbin/bibtex. In this new shell, bibtex finds the bib file.

It's a small thing, but if there's some other setting to make bibtex  
work in the same shell session that context does, that would be nice.

Thanks!

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

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] cont-de help for context with MK IV

2008-09-02 Thread Hans Hagen
Martin Scholz wrote:

...

 \unprotect
 \def\MPdivten[#1]%
 [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]
 
 \def\doMPdivten[#1]%
 {\ifnum#1  \dodoMPdivtenB#1\else
 \ifnum#1 999 \dodoMPdivtenC#1\else
 \ifnum#1 99 \dodoMPdivtenD#1\else
 \ifnum#1 9 \dodoMPdivtenE#1\else
 \ifnum#1 0 \dodoMPdivtenF#1\else
 \ifnum#1- \dodoMPdivtenA#1\else
 \ifnum#1 -999 \dodoMPdivtenB#1\else
 \ifnum#1 -99 \dodoMPdivtenC#1\else
 \ifnum#1 -9 \dodoMPdivtenD#1\else
 \ifnum#1 0 \dodoMPdivtenE#1\else
 0 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}
 
 \def\dodoMPdivtenA#1#2#3#4#5#6{#1#2#3#4#5.#6}
 \def\dodoMPdivtenB #1#2#3#4#5{#1#2#3#4.#5}
 \def\dodoMPdivtenC #1#2#3#4{#1#2#3.#4}
 \def\dodoMPdivtenD #1#2#3{#1#2.#3}
 \def\dodoMPdivtenE #1#2{#1.#2}
 \def\dodoMPdivtenF #1{.#1}
 \protect 
 
 Thanks here to Wolfgang Schuster you just helped to figure out this howto.

some real old (expandable) macro, this one, from before the etex time ...

this is a cleaner variant

\def\MPdivten[#1]{\withoutpt\the\dimexpr#1pt/10\relax}

i added it to the core (mkii and mkiv)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Hans Hagen
Peter Rolf wrote:
 Johan Sandblom schrieb:
 What would be the drawback of allowing

 backgroundcolor=n imply background=color

 and

 backgroundscreen=x imply background=screen

 in the setup to \framed. Background compatibility should not be an
 issue and I am failing to imagine cases where it would not be
 desirable.

 The background parameter is not fixed to 'color' or 'screen'. You can
 use any type of overlay background (which itself can use the parameter
 backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply
 'screen=color'. At least not in my macros.. :)

is anyone using screen? deep down it's already mapped onto color anyway 
(the color mechanism will reduce colors anyway) .. if not, we might as 
well remove it from mkiv

Hans

ps. it dates from the time where not all printers could print gray areas 
and fallbacks were needed (fakes, real old code often)

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] How does MPinclusions work in mkiv?

2008-09-02 Thread Hans Hagen
Mojca Miklavec wrote:
 Hello (Hans),
 
 this minimal example worked OK in mkiv back in May (most of settings
 in the code below are just unimportant cosmetics, but otherwise it's
 difficult to explain the idea behind); now it still works in mkii, but
 not in mkiv.
 
 \def\mynextmpgraphic{\startMPinclusions erase_picture := 1; \stopMPinclusions}
 
 \startusableMPgraphic{bubble}
 if erase_picture = 0:
   draw last_picture;
 else:
   % draw a new picture; in mkiv this code is only reached once,
   % \mynextgraphic does not reset erase_picture
 fi;
 \stopusableMPgraphic
 
 The code is ugly anyway, I know, but how should I reset variables to
 redraw the picture once more?

actually in mkii this will also happen ...

texexec --automp verypink.tex

but the real solution for your problem is

\def\mynextmpgraphic{\startMPinitializations erase_picture := 1; 
\stopMPinitializations}

the inclusions happen once per (whole) run, and the initializations 
happen per graphic

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Installing ConTeXt Minimals on a Mac ... and using bibtex

2008-09-02 Thread Aditya Mahajan
On Tue, 2 Sep 2008, Michael Green wrote:

 I have the minimals installed in ~/Applications/context/

 Context works great. However, I'm having trouble with bibtex.

 [1] I export the following variables before using context.

 . ~/Applications/context/tex/setuptex ~/Applications/context/tex
 export TEXMFHOME='$HOME/Library/texmf'
 export TEXMF='{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!
 $TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}';

 (I added export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/
 bin:$PATH but that didn't seem to make a difference in a couple of
 quick trials)

 [2] The problem is that the minimal's bibtex can't find the bib file
 that I have stored in ~/Library/texmf/bibtex/bib/

 It reports: I couldn't open database file bib-name.bib and I found
 no database files---while reading file file-name.aux

You need to add ~/Library/texmf/bibtex/bib to the variable BIBINPUTS, 
either in texmf.cnf or in your .bashrc/calling script.

 [3] which bibtex yields the path to the bibtex installed with the
 minimals:

 /path-to-my-user-account/Applications/context/tex/texmf-osx-intel/bin/
 bibtex

 [4] When I open a new shell session, which bibtex points to /usr/
 texbin/bibtex. In this new shell, bibtex finds the bib file.

 It's a small thing, but if there's some other setting to make bibtex
 work in the same shell session that context does, that would be nice.

You have two different installations of tex on your computer. By default 
the old distribution is used. When you run setuptex (with appropriate 
arguments) the new distribution is used first.

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
___


[NTG-context] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Khaled Hosny
Figures are shifted to the right (the left edge is where right edge
should) when I set \pagedir TRT\bodydir TRT.

See the attached example.

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
\pagedir TRT\bodydir TRT

\useexternalfigure
  [Mill]
  [mill]

\starttext
\placefigure
  [here,force]
  [fig:Mill]
  {Test.}
  {\externalfigure[Mill]}

\stoptext


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Strange font issue with LuaTeX on Linux

2008-09-02 Thread Hans Hagen
[EMAIL PROTECTED] wrote:

Font \*adobe12ptrmtfrm*:=name:Envy Code R*default at 12pt not loadable: 

just ...

name:envycoder

just use chars and digits

also, do you use the latest mtxrun, mtx-fonts and context? the first 
entry in the list should show the stripped name

internally we strip names anyway but spaces are always kind of special 
in tex;

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-02 Thread Alan Bowen


On Sep 1, 2008, at 17;38,50 , Mojca Miklavec wrote:

On Mon, Sep 1, 2008 at 10:43 PM, Alan Bowen [EMAIL PROTECTED]  
wrote:


On Sep 1, 2008, at 13;43,19 , Mojca Miklavec wrote:


On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:

For setting HOMETEXMF you can help yourself, though it would be  
nice

if we provided a solution that worked out of the box. But I would
like
to get a confirmation from Hans that it's OK to do that.

I have modified the texmf.cnf in
./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
export HOMETEXMF=~/Library/texmf
export
TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!
$TEXMFEXTRA,!!$TEXMFMAIN}'
but ConTeXt still does not find my personal texmf folder


I probably told you wrong, but:
1.) you have HOMETEXMF first and then TEXMFHOME: these need to be
equal
2.) unless you are following (3), don't modify the file in texmf/,
but create
/Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
instead, else the file will be overwritten at first update
3.) even then I'm not completely sure, but I guess that  
environmental

variables override settings in texmf.cnf, so you either need to
a) modify setuptex (rename it and run the renamed file instead of
setuptex)
b) only export PATH and not run setuptex at all; in that case values
from texmf.cnf will be used
- maybe you need to run mktexlsr or luatools --generate




OK. One quick reply just to see if I am on track.

I have created /Applications/ConTeXtMinimals/tex/texmf-local/web2c/
texmf.cnf
where texmf.cnf now has
export HOMETEXMF=~/Library/texmf
export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!


(hopefully the line continues ...)

The lines you have written here belong to setuptex, not to
texmf.cnf. The syntax for setuptex is slightly different.

HOMETEXMF = ~/Library/texmf
# single line
TEXMF = {$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!! 
$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}


But try putting™
  export HOMETEXMF=~/Library/texmf
# single line
  export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
$TEXMFEXTRA,!!$TEXMFMAIN}'


into setuptex (replace the old variables). The problem is that if you
adapt texmf.cnf only, you still override those settings with setuptex.


I hope I have understood this properly.  I now have
HOMETEXMF = ~/Library/texmf
TEXMF = {$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!
in my /ConteXtMinimals/tex/texmf-local/texmf.cnf.

I have also inserted the lines
export HOMETEXMF=~/Library/texmf
and
export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
$TEXMFEXTRA,!!$TEXMFMAIN}'


into a file formed by copying the content of setuptex.

But before I can test this, assuming that so far is so good, I need to  
turn my setuptex (which is natively a .tex file) into unix executable.  
How do I do this?


Alan


There is one thing that you could try (I never use TeXShop, but
there's a change that it works):


~/Library/TeXShop/Engines/ConTeXt-pdfTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
texexec $1

~/Library/TeXShop/Engines/ConTeXt-luaTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context $1

~/Library/TeXShop/Engines/ConTeXt-XeTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
texexec --xtx $1

(sorry for two different proposals - I should probably only send you a
single one)

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] Float within a frame challenge

2008-09-02 Thread Henning Hraban Ramm
Am 2008-09-02 um 08:26 schrieb Wolfgang Schuster:
 http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html

Never knew that myself.
Wikified it:
http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

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] bug with numeral conversion function

2008-09-02 Thread Hans Hagen
Khaled Hosny wrote:
 On Sat, Aug 23, 2008 at 12:46:47AM +0300, Khaled Hosny wrote:
 It seems that there is a bug in converters.alphabetic function,
 converters.alphabetic(0,arabic) returns the western 0 (no matter what
 is the selected language) while converters.alphabetic(1,arabic) gives
 the Arabic 0 not 1 and so one i.e. it looks like as if it starts
 counting from zero.
 
 I finally got myself to understand some lua code.
 
 I think the problem is that lua tables start counting from 1 not 0,
 getting the value of key 0 from code table will give nil while 1 will
 give the value of 0 (first key), so the solution would be incrementing n
 by 1 in:
 
 local function do_alphabetic(n,max,chr)
 n = n + 1 -- to get the correct key
 if n  max then
 do_alphabetic(floor((n-1)/max),max,chr)
 n = (n-1)%max+1
 end
 characters.flush(chr(n))
 end
 
 This does work for the case of Arabic, but I don't know about others
 (especially greek and slovenian which look different)

we cannot change that function without breaking other things

there are several ways to convert, one is using the languages.counters 
table and i don't know if the arabic entries in it are right (i just 
found out that the greek vector is uppercase while it should be 
lowercase but i'll make a fix for that)


 rgrep arabicn *.tex

core-con.tex 671: \defineconversion [arabicnumerals]   [\arabicnumerals]
core-con.tex 672: \defineconversion [persiannumerals]  [\arabicnumerals]
 rgrep arabicn *.mkiv

core-con.mkiv 20: \def\abjadnumerals 
#1{\ctxlua{converters.arabicnumerals(\number#1)}}
core-con.mkiv 21: \def\abjadnodotnumerals 
#1{\ctxlua{converters.arabicnodotnumerals(\number#1)}}
core-con.mkiv 22: \def\abjadnaivenumerals 
#1{\ctxlua{converters.arabicnaivenumerals(\number#1)}}
core-con.mkiv 87: \def\arabicnumerals 
#1{\ctxlua{converters.alphabetic(\number#1,arabic)}}
core-con.mkiv 99: \defineconversion [arabicnumerals] [\arabicnumerals]
 

the abjad number converters are definied differently (based on specs by 
idris)

so, if the 0/1 offset is a problem then we need to fix the tables, not 
the function (unless arabic follows a different logic, as chinese does)

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-02 Thread Mojca Miklavec
On Tue, Sep 2, 2008 at 8:42 PM, Alan Bowen wrote:

 I have also inserted the lines
 export HOMETEXMF=~/Library/texmf
 and
 export
 TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}'
 into a file formed by copying the content of setuptex.
 But before I can test this, assuming that so far is so good, I need to turn
 my setuptex (which is natively a .tex file) into unix executable. How do I
 do this?

A TeX file???

setuptex should already be executable and no TeX file (the best way to
do the change would be to use cp setuptex mysetuptex and then modify
the latter), but if you want to make sure ... do
chmod a+x mysetuptex (or however your file is called)
ls -l should show you the status of file (you should be able to see
if the file is executable).

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
___


Re: [NTG-context] Float within a frame challenge

2008-09-02 Thread B. Tommy Jensen
On Tue, 02 Sep 2008 20:46:28 +0200, Henning Hraban Ramm [EMAIL PROTECTED]  
wrote:

 Am 2008-09-02 um 08:26 schrieb Wolfgang Schuster:
 http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html

 Never knew that myself.
 Wikified it:
 http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture


Thanks for the updated documentation.

Another tricky question with \starthangaround: If the text
following the picture is very short, e.g. the text height
is much less than the picture height, the next paragraph
is placed below the picture, e.g. the hanging paragraph
does not get its correct height.

It seems that the height is calculated based on the text
height only, not the picture.

Is there a clever commmand/option that can compensate for this?

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

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] Float within a frame challenge

2008-09-02 Thread Aditya Mahajan
On Tue, 2 Sep 2008, Henning Hraban Ramm wrote:

 Am 2008-09-02 um 08:26 schrieb Wolfgang Schuster:
 http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html

 Never knew that myself.
 Wikified it:
 http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture

I tried to add the typeset example on the wiki, but the figure cow is 
missing. There are a few examples on the wiki that use cow.pdf put we 
have a missing figure in the output.

http://wiki.contextgarden.net/Dotted_number_in_caption
http://wiki.contextgarden.net/Figures_in_Headings

Is there an easy way to include cow.pdf in the search path in the wiki?

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
___


[NTG-context] Helping Mac users with the Bourne-again shell

2008-09-02 Thread Charles P. Schaum
Might it be helpful for the Garden or even Mac TeX to have links like
the following for OS X Aqua users and the terminal app / UNIX world?

http://www.osxfaq.com/tutorials/LearningCenter/

http://www.google.com/search?q=Unix+tutorials

http://www.google.com/search?q=Unix+tutorials+%22os+x%22

Seems that this could be a time saver for all concerned. My problem is
keeping straight what idiosyncratically does what on the given *nix I
happen to be using. They all differ just enough...

Charles

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

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] new beta

2008-09-02 Thread Hans Hagen
there's a new beta with a handful of patches / extensions (as mentioned 
on the list)

no fix for arab numbering yet (needs analysis and testing)

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Johan Sandblom
So perhaps as expected it turns out that the limitation was only in my
imagination. Thanks for the responses.

Johan

2008/9/2 Hans Hagen [EMAIL PROTECTED]:
 Peter Rolf wrote:
 Johan Sandblom schrieb:
 What would be the drawback of allowing

 backgroundcolor=n imply background=color

 and

 backgroundscreen=x imply background=screen

 in the setup to \framed. Background compatibility should not be an
 issue and I am failing to imagine cases where it would not be
 desirable.

 The background parameter is not fixed to 'color' or 'screen'. You can
 use any type of overlay background (which itself can use the parameter
 backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply
 'screen=color'. At least not in my macros.. :)

 is anyone using screen? deep down it's already mapped onto color anyway
 (the color mechanism will reduce colors anyway) .. if not, we might as
 well remove it from mkiv

 Hans

 ps. it dates from the time where not all printers could print gray areas
 and fallbacks were needed (fakes, real old code often)

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

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




-- 
Johan Sandblom, MD PhD
m +46735521477 Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] bug with numeral conversion function

2008-09-02 Thread Khaled Hosny
On Tue, Sep 02, 2008 at 08:25:38PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:
 core-con.mkiv 20: \def\abjadnumerals 
 #1{\ctxlua{converters.arabicnumerals(\number#1)}}
 core-con.mkiv 21: \def\abjadnodotnumerals 
 #1{\ctxlua{converters.arabicnodotnumerals(\number#1)}}
 core-con.mkiv 22: \def\abjadnaivenumerals 
 #1{\ctxlua{converters.arabicnaivenumerals(\number#1)}}
 core-con.mkiv 87: \def\arabicnumerals 
 #1{\ctxlua{converters.alphabetic(\number#1,arabic)}}
 core-con.mkiv 99: \defineconversion [arabicnumerals] [\arabicnumerals]
  
 
 the abjad number converters are definied differently (based on specs by 
 idris)

True, but in:
\def\abjadnumerals#1{\ctxlua{converters.arabicnumerals(\number#1)}}
There is actually no converters.arabicnumerals, only
converters.abjadnumerals, so I think this is a typo.

 
 so, if the 0/1 offset is a problem then we need to fix the tables, not 
 the function (unless arabic follows a different logic, as chinese does)

That is OK as far as it works :) I was thrilled with how easy is lua and
thought I'd try to write some code (like a kid playing with this new toy
:p), and I don't think we have any special logic, it is essentially the
same system with different numerals.


Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] images as background

2008-09-02 Thread Thomas A. Schmitz
Hi all,

for a presentation, I would like to have a series of images as  
backgrounds for my slides, and I want to use them in a randomized  
order. The images are named 1.jpg through 20.jpg. So I was  
thinking of using this code:

\externalfigure[\directlua0{print(math.random(20))}][width=\paperwidth]

epecting that this should  But that doesn't work, ConTeXt doesn't find  
my pictures (I get name: dummy texts). Any idea what is going wrong?

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

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] Installing ConTeXt Minimals on a Mac ... and using bibtex

2008-09-02 Thread Michael Green
On Tue, 2 Sep 2008, Aditya Mahajan wrote:

 On Tue, 2 Sep 2008, Michael Green wrote:

 I have the minimals installed in ~/Applications/context/

 Context works great. However, I'm having trouble with bibtex.

 [1] I export the following variables before using context.

 . ~/Applications/context/tex/setuptex ~/Applications/context/tex
 export TEXMFHOME='$HOME/Library/texmf'
 export TEXMF='{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!
 $TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}';

 (I added export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx- 
 intel/
 bin:$PATH but that didn't seem to make a difference in a couple of
 quick trials)

 [2] The problem is that the minimal's bibtex can't find the bib file
 that I have stored in ~/Library/texmf/bibtex/bib/

 It reports: I couldn't open database file bib-name.bib and I found
 no database files---while reading file file-name.aux

 You need to add ~/Library/texmf/bibtex/bib to the variable BIBINPUTS,
 either in texmf.cnf or in your .bashrc/calling script.

Perfect. Thank you!

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

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] new beta

2008-09-02 Thread Thomas A. Schmitz

On Sep 2, 2008, at 8:58 PM, Hans Hagen wrote:

 there's a new beta with a handful of patches / extensions (as  
 mentioned
 on the list)

Hi Hans,

my problem with \sometxt appears to be solved; I get properly aligned  
labels again. Thanks a million!

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

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] Installing ConTeXt Minimals on a Mac

2008-09-02 Thread Alan Bowen

On Sep 2, 2008, at 14;54,40 , Mojca Miklavec wrote:

 On Tue, Sep 2, 2008 at 8:42 PM, Alan Bowen wrote:

 I have also inserted the lines
 export HOMETEXMF=~/Library/texmf
 and
 export
 TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
 $TEXMFEXTRA,!!$TEXMFMAIN}'
 into a file formed by copying the content of setuptex.
 But before I can test this, assuming that so far is so good, I need  
 to turn
 my setuptex (which is natively a .tex file) into unix executable.  
 How do I
 do this?

 A TeX file???

I did confess ignorance at the outset, didn’t I? 8-)

 setuptex should already be executable and no TeX file (the best way to
 do the change would be to use cp setuptex mysetuptex and then modify
 the latter), but if you want to make sure ... do
chmod a+x mysetuptex (or however your file is called)
 ls -l should show you the status of file (you should be able to see
 if the file is executable).

Thanks. What confused me was that on my Mac the icon for the setuptex  
changed after I edited it.

Anyway, the revised setuptex works perfectly with the  
ConTeXtMinimals.engine. Thank you again.

But the question now is, which solution do you recommend? As a user,  
my preference is for the one that leaves setuptex alone and focuses on  
the engines that TeXShop uses, since it makes switching form MKII to  
MKIV very easy to do. (I would add that, as things stand now, I also  
have easy access to my Texlive 2007 setup.) However, I am much more  
interested in keeping my setup in line with development path that you,  
Hans, and the others set for the minimals, since, as I gather, they  
are the future of ConTeXt.

Very best, 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] images as background

2008-09-02 Thread Thomas A. Schmitz

On Sep 2, 2008, at 9:43 PM, Thomas A. Schmitz wrote:

 Hi all,

 for a presentation, I would like to have a series of images as
 backgrounds for my slides, and I want to use them in a randomized
 order. The images are named 1.jpg through 20.jpg. So I was
 thinking of using this code:

 \externalfigure[\directlua0{print(math.random(20))}][width= 
 \paperwidth]

 epecting that this should  But that doesn't work, ConTeXt doesn't find
 my pictures (I get name: dummy texts). Any idea what is going wrong?

 Thomas

Got it, finally:

\externalfigure[\directlua0{tex.write(math.random(20))}][width= 
\paperwidth]

Sorry for the noise...

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

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] Typesetting chess boards

2008-09-02 Thread Mojca Miklavec
On Tue, Sep 2, 2008 at 8:16 PM, Maurício wrote:
  Hi,
 
  What is the easiest way to
  include chess boards in a
  Context document?

 Chessboards or chessboards with figures?

 Chessboards with figures (actually,
 chess studies sets).

Nobody has written a package for that yet, but if you are patient,
it's easy enough that people will be ready to help you. All you need
is some basic metapost (or tables) or TikZ + a suitable font. And
exact specification how you would like the package to work (the form
of input, what options you need, ...).

If you are ready to wait and if you are ready to provide enough
feedback regularly, it's quite doable.

When I think about it, it might make sense to ask on TikZ mailing list
as well. Maybe it's easy enough to make a general TikZ module that
would then work equally well on all engines and all flavours of TeX
(but I don't know TikZ well enough).

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
___


Re: [NTG-context] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Khaled Hosny
On Tue, Sep 02, 2008 at 08:33:50PM +0200, Khaled Hosny wrote:
 Figures are shifted to the right (the left edge is where right edge
 should) when I set \pagedir TRT\bodydir TRT.
 
 See the attached example.

When I make the figure \framed the frame gets in the prober place, but
not the image, may be this is a LuaTeX bug?


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Helping Mac users with the Bourne-again shell

2008-09-02 Thread Aditya Mahajan
On Tue, 2 Sep 2008, Charles P. Schaum wrote:

 Might it be helpful for the Garden or even Mac TeX to have links like
 the following for OS X Aqua users and the terminal app / UNIX world?

 http://www.osxfaq.com/tutorials/LearningCenter/

 http://www.google.com/search?q=Unix+tutorials

 http://www.google.com/search?q=Unix+tutorials+%22os+x%22

 Seems that this could be a time saver for all concerned. My problem is
 keeping straight what idiosyncratically does what on the given *nix I
 happen to be using. They all differ just enough...

Feel free to add them to the wiki where you deem appropriate. It is after 
all a wiki :)

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
___


Re: [NTG-context] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Khaled Hosny
On Tue, Sep 02, 2008 at 10:50:23PM +0200, Khaled Hosny wrote:
 On Tue, Sep 02, 2008 at 08:33:50PM +0200, Khaled Hosny wrote:
  Figures are shifted to the right (the left edge is where right edge
  should) when I set \pagedir TRT\bodydir TRT.
  
  See the attached example.
 
 When I make the figure \framed the frame gets in the prober place, but
 not the image, may be this is a LuaTeX bug?

It looks like a bug inherited from omega.
I can reproduce a similar reselut with this plain tex file:

\textdir TRT
\input epsf

\epsfbox{fig.eps}\input knuth

\bye

and it gives the same result with luatex and aleph (and even with omega).
Is this a known bug?

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Hans Hagen
Khaled Hosny wrote:
 On Tue, Sep 02, 2008 at 10:50:23PM +0200, Khaled Hosny wrote:
 On Tue, Sep 02, 2008 at 08:33:50PM +0200, Khaled Hosny wrote:
 Figures are shifted to the right (the left edge is where right edge
 should) when I set \pagedir TRT\bodydir TRT.

 See the attached example.
 When I make the figure \framed the frame gets in the prober place, but
 not the image, may be this is a LuaTeX bug?
 
 It looks like a bug inherited from omega.
 I can reproduce a similar reselut with this plain tex file:
 
 \textdir TRT
 \input epsf
 
 \epsfbox{fig.eps}\input knuth
 
 \bye
 
 and it gives the same result with luatex and aleph (and even with omega).
 Is this a known bug?

no, it might be related to rlap/llap kind of situations; i'll look into 
it later

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Hans Hagen
Khaled Hosny wrote:
 Figures are shifted to the right (the left edge is where right edge
 should) when I set \pagedir TRT\bodydir TRT.

\pagedir TRT \bodydir TRT

\setupheadertexts[from left to right]

\starttext

\input tufte

\placefigure
   [here,force]
   [fig:Mill]
   {Test.}
   {\externalfigure[mill]}

\input tufte

\stoptext

i'm wondering ... why do we need pagedir and bodydir?

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 02 Sep 2008 15:58:21 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 i'm wondering ... why do we need pagedir and bodydir?

=
http://www.ctan.org/tex-archive/systems/omega/

\pagedir  The direction for pages (\shipout).
\bodydir  The direction for vboxes, including the main body of text.
=

Think of footnote numerals etc. IIRC: Without \pagedir TRT\bodydir TRT the  
footnote numerals will appear on the left despite \pardir and \textdir.

I still don't completely _separately_ understand \pagedir TRT\bodydir TRT,  
but together they seem to make sense to me. Taco once started explainig  
these two to Hans and I a few months back but that thread was never  
completed... I'll look up where we left things off.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Peter Rolf
Johan Sandblom schrieb:
 So perhaps as expected it turns out that the limitation was only in my
 imagination. Thanks for the responses.

It's limited by your main focus. The drawbacks of specialismn (mine is
graphics, so I surely lack the textual part [not always (some would say
most times) aware of it]) :D

 Johan
 
 2008/9/2 Hans Hagen [EMAIL PROTECTED]:
 Peter Rolf wrote:
 Johan Sandblom schrieb:
 What would be the drawback of allowing

 backgroundcolor=n imply background=color

 and

 backgroundscreen=x imply background=screen

 in the setup to \framed. Background compatibility should not be an
 issue and I am failing to imagine cases where it would not be
 desirable.

 The background parameter is not fixed to 'color' or 'screen'. You can
 use any type of overlay background (which itself can use the parameter
 backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply
 'screen=color'. At least not in my macros.. :)
 is anyone using screen? deep down it's already mapped onto color anyway
 (the color mechanism will reduce colors anyway) .. if not, we might as
 well remove it from mkiv

I can live without (and it's not a big deal to get the same effect with
a slightly different setup). So if it doesn't hurt too much, cut of the
old pigtails. *ConTeXt is a democratic kingdom* ;)

Regards, Peter

 Hans

 ps. it dates from the time where not all printers could print gray areas
 and fallbacks were needed (fakes, real old code often)

must be from the time before I was born (or realized what a printer is) ...

 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!

 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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] dot space (english article in german publication)

2008-09-02 Thread Marcin Borkowski
Dnia Tue, Sep 02, 2008 at 05:05:09PM +0200, Wolfgang Schuster napisa#322;(a):
 On Tue, Sep 2, 2008 at 3:01 PM, Steffen Wolfrum [EMAIL PROTECTED] wrote:
  Hi,
 
  an english article set with \mainlanguage[en] gets this additional
  space after the dot closing a sentence.
  That's probably right for english, only if all other articles in that
  publication are german it looks like a mistake.
 
  How to keep the english language but turn this english typesetting off?
 
 \setuplanguage[en][spacing=packed]

Hi!

I didn't test it (sorry;)), but I found this interesting, so I posted
this to the wiki (http://wiki.contextgarden.net/French_spacing).  Please
correct that page if necessary.

 Wolfgang

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

Computer science is no more about computers than astronomy about
telescopes.

(E. Dijkstra)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Strange font issue with LuaTeX on Linux

2008-09-02 Thread Mohamed Bana
Hans Hagen pragma at wxs.nl writes:

 
 abbg770 at city.ac.uk wrote:
 
 Font \*adobe12ptrmtfrm*:=name:Envy Code R*default at 12pt not loadable: 
 
 just ...
 
 name:envycoder
 
 just use chars and digits

Sorry I didn't quiet understand that.  Given this;

$ mtxrun --script fonts --list --pattern=warnock 
warnockpro-bold WarnockPro-Bold WarnockPro-Bold.otf
...

which of the following are correct;

1. \definefontsynonym [WarnockPro-Regular] [name:warnockpro-bold] 
2. \definefontsynonym [WarnockPro-Regular] [name:WarnockPro-Bold]
3. \definefontsynonym [WarnockPro-Regular] [file:WarnockPro-Bold.otf]
4. \definefontsynonym [WarnockPro-Regular] [file:WarnockPro-Bold]


 
 also, do you use the latest mtxrun, mtx-fonts and context? the first 
 entry in the list should show the stripped name

I'm using cont-tmf.zip uploaded on 2008-08-05 18:50
(http://www.pragma-ade.nl/download-1.htm) extracted to ~/texmf.  I need this
because I use TeXLive 2007.

 internally we strip names anyway but spaces are always kind of special 
 in tex;
 
 Hans
 

Hans, why does it compile fine when I copy the fonts over to the working
directory?  There must be something wrong with the OSFONTDIR variable.  BTW, I
think you should switch over to linux and make life easier for us :)


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

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] Strange font issue with LuaTeX on Linux

2008-09-02 Thread Mohamed Bana
Hans Hagen pragma at wxs.nl writes:

 
 also, do you use the latest mtxrun, mtx-fonts and context? the first 
 entry in the list should show the stripped name
 

I forgot to ask, how do I update with my current setup?  That is I'm running
ConTeXt locally in my $HOME/texmf tree.

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

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] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 02 Sep 2008 15:58:21 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Khaled Hosny wrote:
 Figures are shifted to the right (the left edge is where right edge
 should) when I set \pagedir TRT\bodydir TRT.

 \pagedir TRT \bodydir TRT

 \setupheadertexts[from left to right]

 \starttext

 \input tufte

 \placefigure
[here,force]
[fig:Mill]
{Test.}
{\externalfigure[mill]}

 \input tufte

 \stoptext

 i'm wondering ... why do we need pagedir and bodydir?

Try this one, and play with commenting lines 1 or 2:

\pagedir TRT \bodydir TRT
\pardir TRT \textdir TRT

\setupheadertexts[from left to right]

\starttext

\input tufte\footnote{\input ward }

\placefigure
[here,force]
[fig:Mill]
{Test.}
{\externalfigure[mill]}

\input tufte\footnote{\input ward }

\stoptext

As to the original problem:

\textdir TRT
\input epsf

\epsfbox{fig.eps}\input knuth

\bye

I don't think this is an omega/aleph/luatex bug, but rather that epsf.tex  
does not take the global direction change into account. It seems that, for  
any figure mechanism in TeX, the coordinates of the figure need to be  
vertically reversed when
\pagedir TRT \bodydir TRT
in effect.

Best wishes
Idris


-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Khaled Hosny
On Tue, Sep 02, 2008 at 06:11:57PM -0600, Idris Samawi Hamid ادريس سماوي حامد 
wrote:
 As to the original problem:
 
 \textdir TRT
 \input epsf
 
 \epsfbox{fig.eps}\input knuth
 
 \bye
 
 I don't think this is an omega/aleph/luatex bug, but rather that epsf.tex  
 does not take the global direction change into account. It seems that, for  
 any figure mechanism in TeX, the coordinates of the figure need to be  
 vertically reversed when
 \pagedir TRT \bodydir TRT
 in effect.

I think I got the idea now (and this explains why the frame gets right).

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] units module has bug with markIV?

2008-09-02 Thread Chen Shen
Hi all,
\Micro in the units module failed, while \Nano and \Milli works fine.
$\mu$ works, so it doesn't look like a font problem.
The following code works with pdftex/MarkII, but fails under Luatex
0.29beta/MarkIV.

\usemodule[units]
\starttext Hello world! $1\Micro\Meter$ $1\Micro\Second$
\stoptext

Any hints? Thanks a lot!

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

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
___