Re: [NTG-context] line of text after a table

2008-11-24 Thread Taco Hoekwater
Albrecht Kauffmann wrote:
 Hi all,
 
 would it be able to write a line after a table or figure (e.g.: Data
 source: ...) that will be handled as a part of the float object?
 

Just do
   \placefigure[]{}{\externalfigure[cow.pdf]\crlf Data source: .. }

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
___


Re: [NTG-context] line of text after a table

2008-11-24 Thread Wolfgang Schuster
On Mon, Nov 24, 2008 at 9:20 AM, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Albrecht Kauffmann wrote:
 Hi all,

 would it be able to write a line after a table or figure (e.g.: Data
 source: ...) that will be handled as a part of the float object?


 Just do
   \placefigure[]{}{\externalfigure[cow.pdf]\crlf Data source: .. }

\placefigure[]{}{\placelegend{\externalfigure[cow.pdf]}{Data source: ...}}

Regards,
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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
Hi All!

I'm in beginning to write a thesis in physics(undergraduate level) and
one of many things I wanna do is, cause I create much illustrations in
DIA http://www.gnome.org/projects/dia/   
and the program can export to figure.mp, to include these in my
document.

I've read the instructions on http://wiki.contextgarden.net/Mpgraphic

I do not get this working. How is the best way to accomplish this?

The reason is why I want to do in this way is to input tex code in the
figure (especially math and symbol definitions) and optionally place
them in specific places inside the figure. By this method I can even do
better illustrations, hopefully.

My workflow has been like this:

1. Create the desired figure in DIA and choose the export option. TeX
metapost *.mp(see attached file ).

2. Tryed to do inclusion in a TeX-document like this

\startstaticMPfigure{magflux}
  the code in the attached file
\stopstaticMPfigure

\starttext

Here is my figure \usestaticMPfigure[magflux][width=0.8\textwidth]

\stoptext

But it fails with errormessage:

!Paragraph ended before \startstaticMPfigure was complete .

Should I place part of the code in some definitions?

3. To input textlabels in mathnotation optionally anywhere I want inside
the figure. 

And also do something like

\placefigure[][fig:metapostfigure]{Here is the figure I made in DIA
converted to metapost}{\usestaticMPfigure[magflux][width=0.8\textwidth]}

so it also can be referred to in the text.

All best and thanks in advance!

Janneman



-- 
TeX Engine : LuaTeX

current version: 2008.10.23 17:32

OS : Ubuntu 8.10 Intrepid Ibex
% Metapost TeX macro
% Title: /home/djsameman/Dokument/fysikC/uppsats/FysikC15HP/bilder/magfluxdensity.dia
% Creator: Dia v0.96.1
% CreationDate: Mon Nov 24 13:07:01 2008
% For: djsameman


beginfig(1);
verbatimtex
%latex
\documentclass{minimal}
\begin{document}
etex
% Define macro for horizontal centering.
vardef hcentered primary P =
  P shifted -(xpart center P, 0)
enddef;
% Define macro for right justification.
vardef rjust primary P =
  P shifted -(xpart (lrcorner P - llcorner P), 0)
enddef;
  % picture(3.815239,-25.950081)(46.421315,6.984149)
  x = 1.00cm; y = -1.00cm;

  t = 1.00;

% set_line_color 0.00, 0.00, 0.00
% set_line_color 1.00, 1.00, 1.00
% set_linewidth 0.10
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 90.00% angle2 = 180.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,5.15y)..(15.40x,5.15y)..(15.40x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 0.00% angle2 = 90.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,5.15y)..(46.10x,5.15y)..(46.10x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 180.00% angle2 = 270.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,22.90y)..(15.40x,22.90y)..(15.40x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 270.00% angle2 = 360.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,22.90y)..(46.10x,22.90y)..(46.10x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)--(46.10x,5.15y)
withpen pencircle scaled 0.1000x;
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,22.90y)--(46.10x,22.90y)
withpen pencircle scaled 0.1000x;
%metapost_arc
% center-x = 15.40% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 90.00% angle2 = 180.00% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)..(15.40x,5.15y)..(15.40x,5.15y)
withpen pencircle scaled 0.1000x;
%metapost_arc
% center-x = 46.10% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 0.00% angle2 = 90.00% set_line_color 0.00, 0.00, 0.00
  draw (46.10x,5.15y)..(46.10x,5.15y)..(46.10x,5.15y)
withpen pencircle scaled 0.1000x;
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)--(15.40x,22.90y)
  

[NTG-context] Error with ctx=x-ldx in char_cmp.lua

2008-11-24 Thread luigi scarso
context --ctx=x-ldx char-cmp.lua
fails
with
{/opt/luatex/minimals/tex/texmf/fonts/map/dvips/iwona/iwona-ex.map}
[1.1] [2.2] [3.3]
 Illegal parameter number in definition of \!!stringa.
to be read again
   1
\doprocesscommalist ... \commalevel \endcsname ##1
  ,{#2{##1}\doprocesscommait...
\expanded ...long \xdef \@@expanded {\noexpand #1}
  \@@expanded
l.1 \xmlsetup{764}{ldx:function}

\xmlflush #1-\ctxlua {lxml.flush(#1)}

\doifelsenothing #1-\edef \!!stringa {#1
 }\ifx \!!stringa \empty \expandafte...
...
l.2 \xmlprocess{\xmldocument}{./char-cmp.lua}{}


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

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


Re: [NTG-context] modifying URL wrapping rules

2008-11-24 Thread Lars Huttar
On 11/21/2008 4:53 PM, Hans Hagen wrote:
 Mojca Miklavec wrote:
 
   hack hack hack hack 
 
 I tried solutions with special patterns sveral times but the problem is 
 in mixed languages, i.e. english text mixed with url-language; there are 
 some limitations (in pdftex for instance the same codes are used fo rthe 
 whole par (i.e. mixed languages are possible but with the same lccodes 
 etc). Also, one needs to get rid of the -
 
 Anyhow, there is another trick, one that Aditya might love ...
 
 \bgroup
 
 \gdef\lettercolon{:}
 
 \catcode`\:=\active
 \catcode`\^=\active
 \catcode`\/=\active
 \catcode`\~=\active
 
 \gdef\ForMojcaWhoLikesHacks#1%
{\dontleavehmode
 \begingroup
 \mathcode`\:=8000
 \mathcode`\^=8000
 \mathcode`\/=8000
 \mathcode`\~=8000
 \def:{\nobreak   \hbox{\lettercolon}\allowbreak}%
 \def^{\allowbreak\hbox{\letterhat  }\nobreak}%
 \def/{\nobreak   \hbox{\letterslash}\allowbreak}%
 \def~{\allowbreak\hbox{\lettertilde}\nobreak}%
 \everymath\emptytoks
 \mathsurround\zeropoint$\tttf#1$%
 \endgroup}
 
 \egroup
 
 \hsize 1mm \ForMojcaWhoLikesHacks{http://www.sil.org/silesr/}
 

Thanks, this is great.

Looks like, as in improvement over \hyphenatedurl, it allows you to
specify that you can break before a character, after, or both.

I think I can even see how to use it in a document...
though, would I have to undo the initial \catcode commands after the
\egroup?

Also, I don't see a way to prevent breaking between two slashes...
unless you treat them as part of a separate hbox:
   \hbox{http://}\ForMojcaWhoLikesHacks{www.sil.org/silesr/}
which is not a big problem.

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

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] patterns for German in mkiv

2008-11-24 Thread Taco Hoekwater


Thomas A. Schmitz wrote:
 On Nov 22, 2008, at 6:56 PM, Taco Hoekwater wrote:
 
 This must be a bug in luatex, hyphenation is supposed to be identical
 but the whole algorithm is redone, and obviously not flawlessly.

 It seems there is (at least) a problem with all patterns that are
 supposed to end a word. For example, the 4ch. that is supposed to
 prevent i-ch appears to be ignored  (at first glance, it looks like it
 is interpreted as c4h. and etc. for all others with a trailing .)

 I will investigate further next week, at the office.

 Best wishes,
 Taco
 
 Excellent, Taco, you're on the case! Looking forward to hearing about  
 your little investigation - elementary, my dear Watson! :)

I wouldn't say it was elementary, but it is fixed now. Sometime
later this week I will create a 0.30.3 (as this is a grave bug),
but if you want to verify: the fix is in the source repository
(#1576-1578).

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
___


Re: [NTG-context] patterns for German in mkiv

2008-11-24 Thread Thomas A. Schmitz

On Nov 24, 2008, at 2:39 PM, Taco Hoekwater wrote:

 I wouldn't say it was elementary, but it is fixed now. Sometime
 later this week I will create a 0.30.3 (as this is a grave bug),
 but if you want to verify: the fix is in the source repository
 (#1576-1578).

 Best wishes,
 Taco

Hi Taco,

of course I was curious and tried to compile the trunk, but I get an  
error:

/usr/bin/ar rv libopenbsd-compat.a bsd-asprintf.o bsd-snprintf.o   
strlcat.o strlcpy.o strsep.o strtonum.o strtoll.o strtoul.o
ar: creating archive libopenbsd-compat.a
a - bsd-asprintf.o
a - bsd-snprintf.o
a - strlcat.o
a - strlcpy.o
a - strsep.o
a - strtonum.o
a - strtoll.o
a - strtoul.o
ranlib: file: libopenbsd-compat.a(bsd-asprintf.o) has no symbols
ranlib: file: libopenbsd-compat.a(bsd-snprintf.o) has no symbols
ranlib: file: libopenbsd-compat.a(strlcat.o) has no symbols
ranlib: file: libopenbsd-compat.a(strlcpy.o) has no symbols
ranlib: file: libopenbsd-compat.a(strsep.o) has no symbols
ranlib: file: libopenbsd-compat.a(strtoll.o) has no symbols
ranlib: file: libopenbsd-compat.a(strtoul.o) has no symbols
ranlib libopenbsd-compat.a
ranlib: file: libopenbsd-compat.a(bsd-asprintf.o) has no symbols
ranlib: file: libopenbsd-compat.a(bsd-snprintf.o) has no symbols
ranlib: file: libopenbsd-compat.a(strlcat.o) has no symbols
ranlib: file: libopenbsd-compat.a(strlcpy.o) has no symbols
ranlib: file: libopenbsd-compat.a(strsep.o) has no symbols
ranlib: file: libopenbsd-compat.a(strtoll.o) has no symbols
ranlib: file: libopenbsd-compat.a(strtoul.o) has no symbols
mkdir -p ../../libs/lua51  cd ../../libs/lua51  cp -f ../../../src/ 
texk/web2c/../../libs/lua51/* .  make posix
Makefile:25: *** missing separator.  Stop.
make: *** [../../libs/lua51/liblua.a] Error 2

Hope this is nothing too serious...

All best, and thanks

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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Aditya Mahajan

On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote:


Hi All!

I'm in beginning to write a thesis in physics(undergraduate level) and
one of many things I wanna do is, cause I create much illustrations in
DIA http://www.gnome.org/projects/dia/
and the program can export to figure.mp, to include these in my
document.

I've read the instructions on http://wiki.contextgarden.net/Mpgraphic

I do not get this working. How is the best way to accomplish this?


See the attached file. Dia exports the figure with
verbatimtex
latex
etex

which tells metapost to run labels through latex. I guess that this is 
what causes the errors. If you simply remove some of the boiler plate, the 
figure compiles fine (see attached file)



The reason is why I want to do in this way is to input tex code in the
figure (especially math and symbol definitions) and optionally place
them in specific places inside the figure. By this method I can even do
better illustrations, hopefully.

My workflow has been like this:

1. Create the desired figure in DIA and choose the export option. TeX
metapost *.mp(see attached file ).

2. Tryed to do inclusion in a TeX-document like this

\startstaticMPfigure{magflux}
 the code in the attached file
\stopstaticMPfigure

\starttext

Here is my figure \usestaticMPfigure[magflux][width=0.8\textwidth]

\stoptext

But it fails with errormessage:

!Paragraph ended before \startstaticMPfigure was complete .

Should I place part of the code in some definitions?


I do not get this error, but staticMPfigure is not working for me. I would 
recomment not to use staticMPfigure, rather use useMPfigure.


(I had asked Hans for staticMPfigure a few years ago when TeX-MP 
interaction was slow. Now, with MPLib I do not think that we need the 
staticMPfigure mechanism. Personally, I haven't used it for a while)


I also had to add

save x, y, t, p ;  Added this line

to include the figure multiple times (or to include multiple figures, I 
would imagine).


Aditya\startuseMPgraphic{mag}
% Define macro for horizontal centering.
vardef hcentered primary P =
  P shifted -(xpart center P, 0)
enddef;
% Define macro for right justification.
vardef rjust primary P =
  P shifted -(xpart (lrcorner P - llcorner P), 0)
enddef;
  save x, y, t, p ;  Added this line

  % picture(3.815239,-25.950081)(46.421315,6.984149)
  x = 1.00cm; y = -1.00cm;

  t = 1.00;

% set_line_color 0.00, 0.00, 0.00
% set_line_color 1.00, 1.00, 1.00
% set_linewidth 0.10
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 90.00% angle2 = 180.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,5.15y)..(15.40x,5.15y)..(15.40x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 0.00% angle2 = 90.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,5.15y)..(46.10x,5.15y)..(46.10x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 180.00% angle2 = 270.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,22.90y)..(15.40x,22.90y)..(15.40x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 270.00% angle2 = 360.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,22.90y)..(46.10x,22.90y)..(46.10x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)--(46.10x,5.15y)
withpen pencircle scaled 0.1000x;
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,22.90y)--(46.10x,22.90y)
withpen pencircle scaled 0.1000x;
%metapost_arc
% center-x = 15.40% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 90.00% angle2 = 180.00% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)..(15.40x,5.15y)..(15.40x,5.15y)
withpen pencircle scaled 0.1000x;
%metapost_arc
% center-x = 46.10% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 0.00% angle2 = 90.00% set_line_color 0.00, 0.00, 0.00
  draw 

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Peter Rolf
Hi Jan-Erik,

Jan-Erik Hägglöf schrieb:
 Hi All!
 
 I'm in beginning to write a thesis in physics(undergraduate level) and
 one of many things I wanna do is, cause I create much illustrations in
 DIA http://www.gnome.org/projects/dia/   
 and the program can export to figure.mp, to include these in my
 document.
 
 I've read the instructions on http://wiki.contextgarden.net/Mpgraphic
 
 I do not get this working. How is the best way to accomplish this?
 
 The reason is why I want to do in this way is to input tex code in the
 figure (especially math and symbol definitions) and optionally place
 them in specific places inside the figure. By this method I can even do
 better illustrations, hopefully.
 
 My workflow has been like this:
 
 1. Create the desired figure in DIA and choose the export option. TeX
 metapost *.mp(see attached file ).

1.1 remove all latex related code from the mp file

verbatimtex
%latex
\documentclass{minimal}
\begin{document}
etex

 2. Tryed to do inclusion in a TeX-document like this
 
 \startstaticMPfigure{magflux}
   the code in the attached file
\input magfluxdensity.mp
 \stopstaticMPfigure
 
 \starttext
 
 Here is my figure \usestaticMPfigure[magflux][width=0.8\textwidth]
 
 \stoptext
 
 But it fails with errormessage:
 
 !Paragraph ended before \startstaticMPfigure was complete .
 
 Should I place part of the code in some definitions?
 
 3. To input textlabels in mathnotation optionally anywhere I want inside
 the figure. 

\startMPenvironment[global]
... global font defintions (esp. a math font), so metapost can also use them

\stopMPenvironment

Hope that helps...


Best wishes, Peter

 And also do something like
 
 \placefigure[][fig:metapostfigure]{Here is the figure I made in DIA
 converted to metapost}{\usestaticMPfigure[magflux][width=0.8\textwidth]}
 
 so it also can be referred to in the text.
 
 All best and thanks in advance!
 
 Janneman
 
 
 
 
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] patterns for German in mkiv

2008-11-24 Thread Taco Hoekwater


Thomas A. Schmitz wrote:
 mkdir -p ../../libs/lua51  cd ../../libs/lua51  cp -f ../../../src/ 
 texk/web2c/../../libs/lua51/* .  make posix
 Makefile:25: *** missing separator.  Stop.
 make: *** [../../libs/lua51/liblua.a] Error 2
 
 Hope this is nothing too serious...

It looks like your checkout is not complete (locally editted files?),
line 25 of libs/lua51/Makefile should now be a commented-out line:

#COCOCFLAGS= -DCOCO_USE_SETJMP

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
___


[NTG-context] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Michael Krauß
Hello list members and ConTeXt gods,

this question is more technical than TeXnical but none the less ConTeXt 
releated. Today I am investigating if I can replace linux with OpenSolaris, so 
I am testing every, even exotic, software that I use on my linux box on 
OpenSolaris.

Looking into first-setup.sh there seem to be support for Solaris on Intel 
hardware called sunos-intel. But if I try to install ConTeXt it doesn't work:

[EMAIL PROTECTED]:~/context$ ./first-setup.sh 
/usr/bin/rsync
/usr/bin/ruby
receiving file list ... rsync: link_stat /setup/sunos-intel/bin (in minimals) 
failed: No such file or directory (2)
done

sent 4 bytes  received 9 bytes  26.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at main.c(1385) 
[receiver=2.6.9]
./first-setup.sh: line 68: mtxrun: not found


Next I tried to build the binaries myself by checking out the sources from 
Subversion:

svn co http://svn.contextgarden.net/minimals-src/build-binaries


And running ./build-binaries.sh afterwards. But this doesn't work either:

[EMAIL PROTECTED]:~/context/build-binaries$ ./build-binaries.sh 
[ ... tons of make output removed ... ]
ar cru ../kpathsea/.libs/libkpathsea.a  tex-file.o absolute.o atou.o cnf.o 
concat.o concat3.o concatn.o db.o debug.o dir.o elt-dirs.o expand.o 
extend-fname.o file-p.o find-suffix.o fn.o fontmap.o getopt.o getopt1.o hash.o 
kdefault.o line.o magstep.o make-suffix.o path-elt.o pathsearch.o proginit.o 
progname.o readable.o rm-suffix.o str-list.o str-llist.o tex-glyph.o tex-hush.o 
tex-make.o tilde.o truncate.o uppercasify.o variable.o version.o xbasename.o 
xcalloc.o xdirname.o xfopen.o xfseek.o xfseeko.o xftell.o xftello.o xgetcwd.o 
xmalloc.o xopendir.o xputenv.o xrealloc.o xstat.o xstrdup.o error.o filename.o 
home.o lookcmd.o string.o system.o time.o user.o volume.o 
ranlib ../kpathsea/.libs/libkpathsea.a
creating ../kpathsea/libkpathsea.la
(cd ../kpathsea/.libs  rm -f libkpathsea.la  ln -s ../libkpathsea.la 
libkpathsea.la)
./ctangle ctangle 
make: ./ctangle: Command not found
make: *** [ctangle.c] Error 127
cp: cannot stat `build/texk/web2c/mpdir/mpost': No such file or directory
Reverted 'VERSIONS'
-e Sorry, there have been some failures:
  - build of xetex on sunos-intel
  - build of luatex on sunos-intel
  - build of metapost on sunos-intel
-n No svn commit! Please press enter to continue! 


There are three executables named ctangle in the minimals directory:
[EMAIL PROTECTED]:~/context/build-binaries$ find . -name ctangle
./src/current/pdftex/build/texk/web2c/ctangle
./src/current/luatex/build/texk/web2c/ctangle
./src/current/xetex/Work/texk/web2c/ctangle


How should I proceed from here? What is the status of Solaris support for 
context minimals?


Kind regards,
Michael Krauss
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Diego Depaoli
2008/11/24 Michael Krauß [EMAIL PROTECTED]:
 [EMAIL PROTECTED]:~/context/build-binaries$ ./build-binaries.sh
 [ ... tons of make output removed ... ]
 ar cru ../kpathsea/.libs/libkpathsea.a  tex-file.o absolute.o atou.o cnf.o 
 concat.o concat3.o concatn.o db.o debug.o dir.o elt-dirs.o expand.o 
 extend-fname.o file-p.o find-suffix.o fn.o fontmap.o getopt.o getopt1.o 
 hash.o kdefault.o line.o magstep.o make-suffix.o path-elt.o pathsearch.o 
 proginit.o progname.o readable.o rm-suffix.o str-list.o str-llist.o 
 tex-glyph.o tex-hush.o tex-make.o tilde.o truncate.o uppercasify.o variable.o 
 version.o xbasename.o xcalloc.o xdirname.o xfopen.o xfseek.o xfseeko.o 
 xftell.o xftello.o xgetcwd.o xmalloc.o xopendir.o xputenv.o xrealloc.o 
 xstat.o xstrdup.o error.o filename.o home.o lookcmd.o string.o system.o 
 time.o user.o volume.o
 ranlib ../kpathsea/.libs/libkpathsea.a
 creating ../kpathsea/libkpathsea.la
 (cd ../kpathsea/.libs  rm -f libkpathsea.la  ln -s ../libkpathsea.la 
 libkpathsea.la)
 ./ctangle ctangle
 make: ./ctangle: Command not found
 make: *** [ctangle.c] Error 127
 cp: cannot stat `build/texk/web2c/mpdir/mpost': No such file or directory
 Reverted 'VERSIONS'
 -e Sorry, there have been some failures:
  - build of xetex on sunos-intel
  - build of luatex on sunos-intel
  - build of metapost on sunos-intel
 -n No svn commit! Please press enter to continue!


 There are three executables named ctangle in the minimals directory:
 [EMAIL PROTECTED]:~/context/build-binaries$ find . -name ctangle
 ./src/current/pdftex/build/texk/web2c/ctangle
 ./src/current/luatex/build/texk/web2c/ctangle
 ./src/current/xetex/Work/texk/web2c/ctangle


 How should I proceed from here? What is the status of Solaris support for 
 context minimals?
You need ctangle in your path.
Install texlive or tetex.

Cheers

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

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] modifying URL wrapping rules

2008-11-24 Thread Hans Hagen
Lars Huttar wrote:

 Also, I don't see a way to prevent breaking between two slashes...
 unless you treat them as part of a separate hbox:
\hbox{http://}\ForMojcaWhoLikesHacks{www.sil.org/silesr/}
 which is not a big problem.

it's no problem to catch the // but in general this method is not that 
generic since font changes in math are somewhat limited and kerning is 
gone too

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
___


[NTG-context] how can I write mongolian in context

2008-11-24 Thread Ardi
Hello all,

I would like to write some words in Classical Mongolian in Latex.
Is it possible to use the old Montex package of Oliver Corff in Context?

Regards,

bozon42



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

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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
mån 2008-11-24 klockan 09:08 -0500 skrev Aditya Mahajan:
 On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote:
 
  Hi All!
 
  I'm in beginning to write a thesis in physics(undergraduate level) and
  one of many things I wanna do is, cause I create much illustrations in
  DIA http://www.gnome.org/projects/dia/
  and the program can export to figure.mp, to include these in my
  document.
 
  I've read the instructions on http://wiki.contextgarden.net/Mpgraphic
 
  I do not get this working. How is the best way to accomplish this?
 
 See the attached file. Dia exports the figure with
 verbatimtex
 latex
 etex
 
 which tells metapost to run labels through latex. I guess that this is 
 what causes the errors. If you simply remove some of the boiler plate, the 
 figure compiles fine (see attached file)
 
  The reason is why I want to do in this way is to input tex code in the
  figure (especially math and symbol definitions) and optionally place
  them in specific places inside the figure. By this method I can even do
  better illustrations, hopefully.
 
  My workflow has been like this:
 
  1. Create the desired figure in DIA and choose the export option. TeX
  metapost *.mp(see attached file ).
 
  2. Tryed to do inclusion in a TeX-document like this
 
  \startstaticMPfigure{magflux}
   the code in the attached file
  \stopstaticMPfigure
 
  \starttext
 
  Here is my figure \usestaticMPfigure[magflux][width=0.8\textwidth]
 
  \stoptext
 
  But it fails with errormessage:
 
  !Paragraph ended before \startstaticMPfigure was complete .
 
  Should I place part of the code in some definitions?
 
 I do not get this error, but staticMPfigure is not working for me. I would 
 recomment not to use staticMPfigure, rather use useMPfigure.
 
 (I had asked Hans for staticMPfigure a few years ago when TeX-MP 
 interaction was slow. Now, with MPLib I do not think that we need the 
 staticMPfigure mechanism. Personally, I haven't used it for a while)
 
 I also had to add
 
 save x, y, t, p ;  Added this line
 
 to include the figure multiple times (or to include multiple figures, I 
 would imagine).
 
 Aditya
Thanks to all answers. I got it work, though a minor problem left, it
seems that calligraphy is not working.

 line 108 draw btex { $ \vec{\cal B }$} etex.

see the new attached file.

Janneman
\usetypescriptfile[type-gyr]
\usetypescript[Adventor] % leave out 'ec' when using XeTeX/luaTeX
\setupbodyfont[Adventor,14.4pt,ss]
\startMPenvironment
\usetypescript[Adventor] % leave out 'ec' when using XeTeX/luaTeX
\setupbodyfont[Adventor,14.4pt,ss]
\stopMPenvironment



\startuseMPgraphic{mag2}
% Define macro for horizontal centering.
vardef hcentered primary P =
  P shifted -(xpart center P, 0)
enddef;
% Define macro for right justification.
vardef rjust primary P =
  P shifted -(xpart (lrcorner P - llcorner P), 0)
enddef;
save x, y, t, p ;
  % picture(3.436250,-29.212500)(46.421315,9.246250)
  x = 1.00cm; y = -1.00cm;

  t = 1.00;

% set_line_color 0.00, 0.00, 0.00
% set_line_color 1.00, 1.00, 1.00
% set_linewidth 0.10
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 90.00% angle2 = 180.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,5.15y)..(15.40x,5.15y)..(15.40x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 0.00% angle2 = 90.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,5.15y)..(46.10x,5.15y)..(46.10x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 180.00% angle2 = 270.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,22.90y)..(15.40x,22.90y)..(15.40x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 270.00% angle2 = 360.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,22.90y)..(46.10x,22.90y)..(46.10x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)--(46.10x,5.15y)
withpen pencircle scaled 0.1000x;
% set_line_color 0.00, 0.00, 0.00
  draw 

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Aditya Mahajan

On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote:




Thanks to all answers. I got it work, though a minor problem left, it
seems that calligraphy is not working.

line 108 draw btex { $ \vec{\cal B }$} etex.

see the new attached file.


If you are using MKII (running context using texexec filename), then do 
not use btex ... etex.[1] Use \sometxt{...} instead.


I just used the following regex on your file
%s/btex\s*\(.\)\s*etex/\\sometxt\1/g
and then everything works fine.


[1] It is possible to get correct fonts using btex ... etex also. You need 
to set up fonts in \startMPenvironment ... \stopMPenvironment. For most 
cases \sometxt is more convinient.


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] patterns for German in mkiv

2008-11-24 Thread Thomas A. Schmitz

On Nov 24, 2008, at 3:11 PM, Taco Hoekwater wrote:

 It looks like your checkout is not complete (locally editted files?),
 line 25 of libs/lua51/Makefile should now be a commented-out line:

 #COCOCFLAGS= -DCOCO_USE_SETJMP

 Best wishes,
 Taco


Strange. I deleted the Makefile and let svn regenerate it, and now  
compilation works. And the wrong hyphenations are gone! Hooray and  
three cheers, thanks Taco!

All best

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Michael Krauß
 Von: Diego Depaoli [EMAIL PROTECTED]

 You need ctangle in your path.
 Install texlive or tetex.

Done. Installed texlive by the net installer and set PATH:

[EMAIL PROTECTED]:~/context/build-binaries$ which ctangle
/export/home/mickraus/texlive/bin/i386-solaris/ctangle
[EMAIL PROTECTED]:~/context/build-binaries$ echo $PATH
/export/home/mickraus/texlive/bin/i386-solaris/:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin

But I am still getting the same error message:

./ctangle ctangle 
make: ./ctangle: Command not found
make: *** [ctangle.c] Error 127

To me make rather tries to start a local version of ctangle (./ctangle) 
than to start the one in PATH. 


Kind regards
Michael Krauss
-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread luigi scarso
On Mon, Nov 24, 2008 at 5:00 PM, Michael Krauß [EMAIL PROTECTED]wrote:

  Von: Diego Depaoli [EMAIL PROTECTED]
 
  You need ctangle in your path.
  Install texlive or tetex.

 Done. Installed texlive by the net installer and set PATH:

 [EMAIL PROTECTED]:~/context/build-binaries$ which ctangle
 /export/home/mickraus/texlive/bin/i386-solaris/ctangle
 [EMAIL PROTECTED]:~/context/build-binaries$ echo $PATH

 /export/home/mickraus/texlive/bin/i386-solaris/:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin

 But I am still getting the same error message:

 ./ctangle ctangle
 make: ./ctangle: Command not found
 make: *** [ctangle.c] Error 127

 To me make rather tries to start a local version of ctangle (./ctangle)
 than to start the one in PATH.

try first to copy in your current dir.
I have had a similar problem under linux
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] modifying URL wrapping rules

2008-11-24 Thread Lars Huttar
On 11/24/2008 8:45 AM, Hans Hagen wrote:
 Lars Huttar wrote:
 
 Also, I don't see a way to prevent breaking between two slashes...
 unless you treat them as part of a separate hbox:
\hbox{http://}\ForMojcaWhoLikesHacks{www.sil.org/silesr/}
 which is not a big problem.
 
 it's no problem to catch the // but in general this method is not that 
 generic since font changes in math are somewhat limited and kerning is 
 gone too

Oh... so my ugly \hbox{...}\discretionary{}{}{} method eliminates
kerning? Bummer...

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

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Michael Krauß
 Von: luigi scarso [EMAIL PROTECTED]

 try first to copy in your current dir.
 I have had a similar problem under linux

Do you mean adding the dot in front of the PATH? I did so 

[EMAIL PROTECTED]:~/context/build-binaries$ echo $PATH
.:/export/home/mickraus/texlive/bin/i386-solaris/:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin

but unfortunately nothing has changed.


Kind regards.
Michael Krauss
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread luigi scarso
On Mon, Nov 24, 2008 at 5:48 PM, Michael Krauß [EMAIL PROTECTED]wrote:

  Von: luigi scarso [EMAIL PROTECTED]
 
  try first to copy in your current dir.
  I have had a similar problem under linux

 Do you mean adding the dot in front of the PATH? I did so

 [EMAIL PROTECTED]:~/context/build-binaries$ echo $PATH

 .:/export/home/mickraus/texlive/bin/i386-solaris/:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin

no, copy ctangle in current dir where build-binaries.sh lives

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

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


Re: [NTG-context] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Mojca Miklavec
On Mon, Nov 24, 2008 at 2:52 PM, Michael Krauß wrote:
 Hello list members and ConTeXt gods,

 this question is more technical than TeXnical but none the less ConTeXt 
 releated. Today I am investigating if I can replace linux with OpenSolaris, 
 so I am testing every, even exotic, software that I use on my linux box on 
 OpenSolaris.

 Looking into first-setup.sh there seem to be support for Solaris on Intel 
 hardware called sunos-intel. But if I try to install ConTeXt it doesn't 
 work:

Well, Hans wanted to try it out, but gave up too soon because of some
compilation problems. I didn't remove the few lines that I added, but
there are no binaries available either. If you are willing to compile
them (or rather keep compiling them every now to keep dependencies
satisfied), we can finish adding support for open solaris.

 [EMAIL PROTECTED]:~/context$ ./first-setup.sh
 /usr/bin/rsync
 /usr/bin/ruby
 receiving file list ... rsync: link_stat /setup/sunos-intel/bin (in 
 minimals) failed: No such file or directory (2)
 done

Sure. We have no binaries at the moment.

 Next I tried to build the binaries myself by checking out the sources from 
 Subversion:

 svn co http://svn.contextgarden.net/minimals-src/build-binaries


 And running ./build-binaries.sh afterwards. But this doesn't work either:

 [EMAIL PROTECTED]:~/context/build-binaries$ ./build-binaries.sh
 [ ... tons of make output removed ... ]
 ar cru ../kpathsea/.libs/libkpathsea.a  tex-file.o absolute.o atou.o cnf.o 
 concat.o concat3.o concatn.o db.o debug.o dir.o elt-dirs.o expand.o 
 extend-fname.o file-p.o find-suffix.o fn.o fontmap.o getopt.o getopt1.o 
 hash.o kdefault.o line.o magstep.o make-suffix.o path-elt.o pathsearch.o 
 proginit.o progname.o readable.o rm-suffix.o str-list.o str-llist.o 
 tex-glyph.o tex-hush.o tex-make.o tilde.o truncate.o uppercasify.o variable.o 
 version.o xbasename.o xcalloc.o xdirname.o xfopen.o xfseek.o xfseeko.o 
 xftell.o xftello.o xgetcwd.o xmalloc.o xopendir.o xputenv.o xrealloc.o 
 xstat.o xstrdup.o error.o filename.o home.o lookcmd.o string.o system.o 
 time.o user.o volume.o
 ranlib ../kpathsea/.libs/libkpathsea.a
 creating ../kpathsea/libkpathsea.la
 (cd ../kpathsea/.libs  rm -f libkpathsea.la  ln -s ../libkpathsea.la 
 libkpathsea.la)
 ./ctangle ctangle
 make: ./ctangle: Command not found
 make: *** [ctangle.c] Error 127
 cp: cannot stat `build/texk/web2c/mpdir/mpost': No such file or directory

If I'm not mistaken then pdftex, xetex and luatex have been compiled
without problems?
The process would probably not run out of the box before a new svn
repository gets created and you would need an account in order to be
able to commit anyway, but you can check if files like:
- src/current/pdftex/build/texk/web2c/pdftex
- src/current/xetex/Work/texk/web2c/xetex
- src/current/luatex/build/texk/web2c/luatex
exist.

 There are three executables named ctangle in the minimals directory:
 [EMAIL PROTECTED]:~/context/build-binaries$ find . -name ctangle
 ./src/current/pdftex/build/texk/web2c/ctangle
 ./src/current/luatex/build/texk/web2c/ctangle
 ./src/current/xetex/Work/texk/web2c/ctangle

Taco has been modifying the make scripts some time ago. I would ask
him. I did have some problems to build binaries on contextgarden, but
I thought that these problems have been solved. In general adding any
ctangle to build path should help (at the time when you build metapost
it doesn't see the ctangle binary of pdftex/xetex/luatex), but maybe
there was a tiny overlook somewhere. Taco has ctangle all over on his
machine, so he would not notice if that was a problem.

 How should I proceed from here? What is the status of Solaris support for 
 context minimals?

None exists, but we can add it if one (you?) promisses to run the
building script every now and then.

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Michael Krauß
 Von: Mojca Miklavec [EMAIL PROTECTED]

  If you are willing to compile
 them (or rather keep compiling them every now to keep dependencies
 satisfied), we can finish adding support for open solaris.

Until now I am just evaluating OpenSolaris as a Linux replacement. 10 Years of 
fun with a constantly morphing kernel are enough. There are two issues left: 
One is Context and the other is OCaml. The mainstream software is running just 
fine.


 If I'm not mistaken then pdftex, xetex and luatex have been compiled
 without problems?

Not really:

make: ./ctangle: Command not found
make: *** [ctangle.c] Error 127
cp: cannot stat `build/texk/web2c/mpdir/mpost': No such file or directory
Reverted 'VERSIONS'
-e Sorry, there have been some failures:
  - build of xetex on sunos-intel
  - build of luatex on sunos-intel
  - build of metapost on sunos-intel
-n No svn commit! Please press enter to continue! 


 The process would probably not run out of the box before a new svn
 repository gets created and you would need an account in order to be
 able to commit anyway, but you can check if files like:
 - src/current/pdftex/build/texk/web2c/pdftex

Yes, this program was compiled and I can run it (missing texmf.cnf aside).

 - src/current/xetex/Work/texk/web2c/xetex
 - src/current/luatex/build/texk/web2c/luatex

Those two files don't exist. There are a bunch of source files in this web2c 
directories but not the searched executables.


 Taco has been modifying the make scripts some time ago. I would ask
 him. I did have some problems to build binaries on contextgarden, but
 I thought that these problems have been solved. In general adding any
 ctangle to build path should help (at the time when you build metapost
 it doesn't see the ctangle binary of pdftex/xetex/luatex), but maybe
 there was a tiny overlook somewhere. Taco has ctangle all over on his
 machine, so he would not notice if that was a problem.

I will try to figure out in what directory gmake is getting the command not 
found error and place a copy of ctangle there.


Kind regards,
Michael Krauss
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Arthur Reutenauer
 make: ./ctangle: Command not found

  As has already been said, you need a working TeX installation in order
to compile new binaries.  Try TeX Live 2008, which has a i386-solaris
binary distribution.

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

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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
mån 2008-11-24 klockan 10:40 -0500 skrev Aditya Mahajan:
 On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote:
 
 
  Thanks to all answers. I got it work, though a minor problem left, it
  seems that calligraphy is not working.
 
  line 108 draw btex { $ \vec{\cal B }$} etex.
 
  see the new attached file.
 
 If you are using MKII (running context using texexec filename), then do 
 not use btex ... etex.[1] Use \sometxt{...} instead.
I am using MKIV
 I just used the following regex on your file
 %s/btex\s*\(.\)\s*etex/\\sometxt\1/g
 and then everything works fine.
This above I didn't understood. I did though replace with
\sometxt{\vec{\cal B}} but no effect.
 
 [1] It is possible to get correct fonts using btex ... etex also. You need 
 to set up fonts in \startMPenvironment ... \stopMPenvironment. For most 
 cases \sometxt is more convinient.
 
 Aditya
I tried to do some fontsettings, maybe it was the wrong way setting up
things. You can see in the updated file.

Janneman

-- 
TeX Engine : LuaTeX

current version: 2008.10.23 17:32

OS : Ubuntu 8.10 Intrepid Ibex
%s/btex\s*\(.\)\s*etex/\\sometxt\1/g
\usetypescriptfile[type-gyr]
\usetypescript[Adventor] % leave out 'ec' when using XeTeX/luaTeX
\setupbodyfont[Adventor,14.4pt,ss]
\startMPenvironment
\usetypescript[Adventor] % leave out 'ec' when using XeTeX/luaTeX
\setupbodyfont[Adventor,14.4pt,ss]
\stopMPenvironment



\startuseMPgraphic{mag2}
% Define macro for horizontal centering.
vardef hcentered primary P =
  P shifted -(xpart center P, 0)
enddef;
% Define macro for right justification.
vardef rjust primary P =
  P shifted -(xpart (lrcorner P - llcorner P), 0)
enddef;
save x, y, t, p ;
  % picture(3.436250,-29.212500)(46.421315,9.246250)
  x = 1.00cm; y = -1.00cm;

  t = 1.00;

% set_line_color 0.00, 0.00, 0.00
% set_line_color 1.00, 1.00, 1.00
% set_linewidth 0.10
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 90.00% angle2 = 180.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,5.15y)..(15.40x,5.15y)..(15.40x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 0.00% angle2 = 90.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,5.15y)..(46.10x,5.15y)..(46.10x,5.15y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
  path p;
  p = (15.40x,5.15y)--(15.40x,22.90y)--(46.10x,22.90y)--(46.10x,5.15y)--cycle;
  fill p withcolor (1.00,1.00,1.00);
%metapost_arc
% center-x = 15.40% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 180.00% angle2 = 270.00% set_line_color 1.00, 1.00, 1.00
  draw (15.40x,22.90y)..(15.40x,22.90y)..(15.40x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
%metapost_arc
% center-x = 46.10% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 270.00% angle2 = 360.00% set_line_color 1.00, 1.00, 1.00
  draw (46.10x,22.90y)..(46.10x,22.90y)..(46.10x,22.90y)
withpen pencircle scaled 0.1000x
withcolor (1., 1., 1.);
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)--(46.10x,5.15y)
withpen pencircle scaled 0.1000x;
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,22.90y)--(46.10x,22.90y)
withpen pencircle scaled 0.1000x;
%metapost_arc
% center-x = 15.40% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 90.00% angle2 = 180.00% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)..(15.40x,5.15y)..(15.40x,5.15y)
withpen pencircle scaled 0.1000x;
%metapost_arc
% center-x = 46.10% center-y = 5.15% width = 0.00% height = 0.00% angle1 = 0.00% angle2 = 90.00% set_line_color 0.00, 0.00, 0.00
  draw (46.10x,5.15y)..(46.10x,5.15y)..(46.10x,5.15y)
withpen pencircle scaled 0.1000x;
% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,5.15y)--(15.40x,22.90y)
withpen pencircle scaled 0.1000x;
% set_line_color 0.00, 0.00, 0.00
  draw (46.10x,5.15y)--(46.10x,22.90y)
withpen pencircle scaled 0.1000x;
%metapost_arc
% center-x = 15.40% center-y = 22.90% width = 0.00% height = 0.00% angle1 = 180.00% angle2 = 270.00% set_line_color 0.00, 0.00, 0.00
  draw (15.40x,22.90y)..(15.40x,22.90y)..(15.40x,22.90y)

[NTG-context] Minimals \placefootnotes

2008-11-24 Thread Bart C. Wise
I have loaded the minimals packaging on my system.  In running through some 
code I'm finding that \placefootnotes does not appear to be working (or at 
least it's different than MkII.  With the minimals, the footnotes always appear 
at the bottom of the page, not where the \placefootnotes command is placed.  
Is this a bug, or do I need to make some changes?

\setupfootnotes[location=text]

\starttext
Here is a footnote.\footnote{Here's the first footnote}  And yet, another.
\footnote{The second.}
\placefootnotes

Here is some more text, with another footnote.\footnote{The third footnote.}
\placefootnotes
\stoptext


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

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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Aditya Mahajan

On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote:


I tried to do some fontsettings, maybe it was the wrong way setting up
things. You can see in the updated file.


This is not your fault. There is a bug in MKIV definition of \cal. Test 
example:


\starttext
\startMPcode
  draw \sometxt{$\cal B$} ;
\stopMPcode
\stoptext

does not give caligraphic B. For the time being, you can use a 
work-around of adding \noexpand before \cal.


\starttext
\startMPcode
  draw \sometxt{$\noexpand\cal B$} ;
\stopMPcode
\stoptext

Hans, Taco: Is it OK to add \unexpanded in the definition of cal

\unexpanded\def\cal{\mathortext{\fam\purefamily{calligraphic}}{\symbolicfont{Calligraphic}}}

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] context minimals on OpenSolaris 2008.11

2008-11-24 Thread Michael Krauß
 Von: Arthur Reutenauer [EMAIL PROTECTED]

  make: ./ctangle: Command not found
 
   As has already been said, you need a working TeX installation in order
 to compile new binaries.  Try TeX Live 2008, which has a i386-solaris
 binary distribution.

Yes I know. I installed it a few hours ago and included the directory 
containing the binaries into PATH:

[EMAIL PROTECTED]:~/context/build-binaries$ echo $PATH
/export/home/mickraus/texlive/bin/i386-solaris:/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin

[EMAIL PROTECTED]:~/context/build-binaries$ which pdflatex
/export/home/mickraus/texlive/bin/i386-solaris/pdflatex

[EMAIL PROTECTED]:~/texlive$ find . -name ctangle
./bin/i386-solaris/ctangle


But now I am going to bed. I will work through Mojcas post tomorrow.


Good Night,
Michael Krauss
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
It worked! Thanks a lot!

mån 2008-11-24 klockan 16:23 -0500 skrev Aditya Mahajan:
 On Mon, 24 Nov 2008, Jan-Erik Hägglöf wrote:
 
  I tried to do some fontsettings, maybe it was the wrong way setting up
  things. You can see in the updated file.
 
 This is not your fault. There is a bug in MKIV definition of \cal. Test 
 example:
 
 \starttext
 \startMPcode
draw \sometxt{$\cal B$} ;
 \stopMPcode
 \stoptext
 
 does not give caligraphic B. For the time being, you can use a 
 work-around of adding \noexpand before \cal.
 
 \starttext
 \startMPcode
draw \sometxt{$\noexpand\cal B$} ;
 \stopMPcode
 \stoptext
 
 Hans, Taco: Is it OK to add \unexpanded in the definition of cal
 
 \unexpanded\def\cal{\mathortext{\fam\purefamily{calligraphic}}{\symbolicfont{Calligraphic}}}
Can this line above be copied and pasted in to my personal module
file?
 

 Aditya

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

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 to overlap two figures?

2008-11-24 Thread 그래프 수학과
Dear all,

I'd like to two figures in one place.

There is a base figure, and
I'd like to put other figures on the base figure case by case.

base file + figure 1,
base file + figure 2,
...

The figures are created using metafun.

Thank you for help.

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

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] chapter-like headings with separate numbering

2008-11-24 Thread Sanjoy Mahajan
I'm experimenting with making a heading that is like a chapter in format
but has its own numbering (or lettering).  The purpose to have an
interlude, or extended example, every few chapters.  The following
almost-minimal example almost does so.  However, the second interlude is
numbered with 'A' instead of 'B'.  Is there a missing key=value pair, or
is the approach completely wrong?

\definesection[nc]
\setupsection[nc][conversion=Characters]
\definehead[interlude][section=nc,default=chapter]
\setuphead[interlude][incrementnumber=yes]

\starttext

\title{Contents}
\placelist[chapter,interlude]

\chapter{Chap 1}

\interlude{Interlude 1}

\chapter{Chap 2}

\interlude{Interlude 2}

\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] Minimals, Linux OSFONTDIR

2008-11-24 Thread Bart C. Wise
I have more that two path for my fonts:
- /usr/local/share/fonts
-/usr/share/fonts

When I do one path, it works fine; however, if I put two paths as follows:

export OSFONTDIR=/usr/local/share/fonts:/usr/share/fonts

it does not pick up the fonts in both directories.  Admitedly, this is my 
fault, but could someone help out?

Thanks,
Bart

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

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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Taco Hoekwater
Aditya Mahajan wrote:
 Hans, Taco: Is it OK to add \unexpanded in the definition of cal
 
 \unexpanded\def\cal{\mathortext{\fam\purefamily{calligraphic}}{\symbolicfont{Calligraphic}}}
  

I think so. It makes sense to have \unexpanded before every macro that
executes an unexpandable primitive command, as these will never be
expanded correctly anyway.

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
___


Re: [NTG-context] Minimals, Linux OSFONTDIR

2008-11-24 Thread Taco Hoekwater
Bart C. Wise wrote:
 I have more that two path for my fonts:
 - /usr/local/share/fonts
 -/usr/share/fonts
 
 When I do one path, it works fine; however, if I put two paths as follows:
 
 export OSFONTDIR=/usr/local/share/fonts:/usr/share/fonts
 
 it does not pick up the fonts in both directories.  Admitedly, this is my 
 fault, but could someone help out?

You could create a new directory, say:

/home/bart/context-os-fonts

and add (sym)links to /usr/local/share/fonts and /usr/share/fonts in
that (I myself have added extra symlinks inside /usr/share/fonts).

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
___


Re: [NTG-context] how can I write mongolian in context

2008-11-24 Thread Ardi
Hello Arthur,

I have tried the xetex ClassicalMongolian.tex and the result is OK.

But the only problem remained - what editor can I use to see what characters I 
am writing?
Does emacs for example able to see Mongolian characters?

bozon42

--- On Mon, 11/24/08, Arthur Reutenauer [EMAIL PROTECTED] wrote:
From: Arthur Reutenauer [EMAIL PROTECTED]
Subject: Re: [NTG-context] how can I write mongolian in context
To: [EMAIL PROTECTED], Mailing list for ConTeXt users ntg-context@ntg.nl
Date: Monday, November 24, 2008, 6:50 AM

 Is it possible to use the old Montex package of Oliver Corff in Context?

  No.  It's a LaTeX package, you can't use it out of the box with
ConTeXt.  There is a sample file with Mongolian script in XeTeX, you
should try it (it's in plain TeX, if I remember correctly).


http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsiformat=filemedia_id=xetex_doc_094filename=XeTeX_doc.zip

Arthur



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

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 can I write mongolian in context

2008-11-24 Thread luigi scarso
On Tue, Nov 25, 2008 at 8:23 AM, Ardi [EMAIL PROTECTED] wrote:

 Hello Arthur,

 I have tried the xetex ClassicalMongolian.tex and the result is OK.

 But the only problem remained - what editor can I use to see what
 characters I am writing?
 Does emacs for example able to see Mongolian characters?


maybe yes, if you have the right font

Give also a look at
http://www.yudit.org/

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

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