Re: [NTG-context] XYPic

2007-05-16 Thread Dirard M. Mikdad
Ok, I will do that.

Thnx,

Dirard
* On 14/05/07 at 11:34 luigi scarso [EMAIL PROTECTED] wrote:
 Also, have a look at
 http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metaobj
 It seems that it has the same power of XY-pic .
 -- 
 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

 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] XYPic

2007-05-14 Thread luigi scarso

Also, have a look at
http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metaobj
It seems that it has the same power of XY-pic .
--
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-04 Thread Dirard Mikdad
Luigi,

It works!

Grazie mille,

Dirard

* On 04/05/07 at 02:40 luigi scarso [EMAIL PROTECTED] wrote:
 On 5/2/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
  I save the following code in a file, say tt.tex.
  Then I just run texec tt.tex.
  It compiles. The problem is that the universal arrow  is not displayed
  as it should; i.e. a dotted arrow.
 
  ---
  \input xy
  \xyoption{all}
  \starttext
  \startformula
  \xymatrix{
   W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
   X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
  \stopformula
  \stoptext
  ---
 
 %%
 %% put a space between \ar and @
 %%
 \input xy
 \xyoption{all}
 \starttext
 \startformula
 \xymatrix{
   W \ar[dr]^{f_2} \ar @{.}[d]_{f} \ar[dl]_{f_1} \\
  X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
 \stopformula
 \stoptext
 
 Maybe there is a clean solution.
 
 -- 
 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
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] XYPic

2007-05-04 Thread luigi scarso
On 5/4/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
 Luigi,

 It works!
I'm not so sure about this, if I have time I will give a closer look.

BTW, the safest way actually is to made your xy-diagrams in pdftex as
singles figure and then import in context using \externalfigure.
With a bit of TeX programming, you can also made a pdf that contains exactly
a xy-diagram (ie width and height are those of xy-diagram no letter or a4)
so that inclusion in context is nicer.

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

2007-05-03 Thread luigi scarso

hmm, some problem with [EMAIL PROTECTED]
Maybe a collision with another macro of context.
I will investigate
--
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-03 Thread luigi scarso
On 5/2/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
 I save the following code in a file, say tt.tex.
 Then I just run texec tt.tex.
 It compiles. The problem is that the universal arrow  is not displayed
 as it should; i.e. a dotted arrow.

 ---
 \input xy
 \xyoption{all}
 \starttext
 \startformula
 \xymatrix{
  W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
  X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
 \stopformula
 \stoptext
 ---

%%
%% put a space between \ar and @
%%
\input xy
\xyoption{all}
\starttext
\startformula
\xymatrix{
  W \ar[dr]^{f_2} \ar @{.}[d]_{f} \ar[dl]_{f_1} \\
 X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
\stopformula
\stoptext

Maybe there is a clean solution.

-- 
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-02 Thread Dirard Mikdad
There seems to be something wrong with the dotted arrows. 
I tried different codes.

The following code compiles. 
---
\input xy
\xyoption{all}
\starttext
\startformula
\xymatrix{
 W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
 X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
\stopformula
\stoptext
---

Dirard

* On 01/05/07 at 22:10 luigi scarso [EMAIL PROTECTED] wrote:
 hmm, try this
 
 \input xy
 \xyoption{all}
 \unprotect
 \appendtoks
   \xywithoption{tips}{\let\tipsize at  at \bodyfontpoint}%
 \to\everybodyfont
 \protect %\endinput
 % \usemodule[xypic]
 \starttext
 \startformula
 \xymatrix{
  W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
  X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
 \stopformula
 \stoptext
 
 btw, not sure it works;
 something strange near W in your xymatrix
 -- 
 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
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] XYPic

2007-05-02 Thread luigi scarso
On 5/2/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
 There seems to be something wrong with the dotted arrows.
 I tried different codes.

 The following code compiles.
 ---
 \input xy
 \xyoption{all}
 \starttext
 \startformula
 \xymatrix{
  W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
  X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
 \stopformula
 \stoptext
 ---


How doy you compile it under LaTeX (or TeX) ?
-- 
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-02 Thread Dirard Mikdad
I save the following code in a file, say tt.tex.
Then I just run texec tt.tex.
It compiles. The problem is that the universal arrow  is not displayed
as it should; i.e. a dotted arrow.

---
\input xy
\xyoption{all}
\starttext
\startformula
\xymatrix{
 W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
 X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
\stopformula
\stoptext
---

Dirard

* On 02/05/07 at 11:30 luigi scarso [EMAIL PROTECTED] wrote:
 On 5/2/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
  There seems to be something wrong with the dotted arrows.
  I tried different codes.
 
  The following code compiles.
  ---
  \input xy
  \xyoption{all}
  \starttext
  \startformula
  \xymatrix{
   W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
   X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
  \stopformula
  \stoptext
  ---
 
 
 How doy you compile it under LaTeX (or TeX) ?
 -- 
 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
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] XYPic

2007-05-02 Thread luigi scarso
On 5/2/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
 I save the following code in a file, say tt.tex.
 Then I just run texec tt.tex.
yes, ok
How did you used to compile it under LaTeX ? (sorry, I don't use latex
from a long time)

-- 
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-02 Thread Dirard Mikdad
I don't use LaTeX either. This code comes from my thesis which I wrote
in plain TeX.

Save the following code in a file:
--
\input xy
\xyoption{all}
\xyoption{dvips}
$$
\xymatrix{
 W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
 X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
 $$
 \bye
--
Then run tex file.

Dirard

* On 02/05/07 at 17:06 luigi scarso [EMAIL PROTECTED] wrote:
 On 5/2/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
  I save the following code in a file, say tt.tex.
  Then I just run texec tt.tex.
 yes, ok
 How did you used to compile it under LaTeX ? (sorry, I don't use latex
 from a long time)
 
 -- 
 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
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] XYPic

2007-05-02 Thread luigi scarso
On 5/2/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
 I don't use LaTeX either. This code comes from my thesis which I wrote
 in plain TeX.

 Save the following code in a file:
 --
 \input xy
 \xyoption{all}
 \xyoption{dvips}
 $$
 \xymatrix{
  W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
  X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
  $$
  \bye
 --
 Then run tex file.
ok, thanks.
I will look into this night

-- 
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-01 Thread luigi scarso
On 4/27/07, Dirard Mikdad [EMAIL PROTECTED] wrote:
 Hallo,

 I want to convert my thesis (which I wrote in plain tex) to ConTeXt.
 Unfortunately the process fails because my documents contain
 some commutative diagrams made in Xypic. Is it possible to convert xy
 code to something that ConTeXt can understand?

 Thanks,

 Dirard
You can try this
http://search.gmane.org/search.php?group=gmane.comp.tex.contextquery=XYPic
There are exemples there.


-- 
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-01 Thread luigi scarso
Also in
http://thread.gmane.org/gmane.comp.tex.context/5227/focus=5254
Save following line in m-xypic.tex

%%%
%m-xypic.tex
%
\input xy

\xyoption{all}

\unprotect

\appendtoks
   \xywithoption{tips}{\let\tipsize at  at \bodyfontpoint}%
\to\everybodyfont

\protect \endinput
%

And in you tex file put before \starttext
\usemodule[xypic]


-- 
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-05-01 Thread Dirard Mikdad
Hi all,

I created a m-xypic.tex file with the code that Luigi suggested.
Then I tried to run texec on my file t.tex, but texec hangs with a message 
xymatrix 4x2.

This is the code in t.tex

---
\usemodule[xypic]
\starttext
\startformula
\xymatrix{
 W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
\stopformula
\stoptext
---

Dirard


* On 01/05/07 at 09:09 luigi scarso [EMAIL PROTECTED] wrote:
 Also in
 http://thread.gmane.org/gmane.comp.tex.context/5227/focus=5254
 Save following line in m-xypic.tex
 
 %%%
 %m-xypic.tex
 %
 \input xy
 
 \xyoption{all}
 
 \unprotect
 
 \appendtoks
\xywithoption{tips}{\let\tipsize at  at \bodyfontpoint}%
 \to\everybodyfont
 
 \protect \endinput
 %
 
 And in you tex file put before \starttext
 \usemodule[xypic]
 
 
 -- 
 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
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 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] XYPic

2007-05-01 Thread luigi scarso
hmm, try this

\input xy
\xyoption{all}
\unprotect
\appendtoks
  \xywithoption{tips}{\let\tipsize at  at \bodyfontpoint}%
\to\everybodyfont
\protect %\endinput
% \usemodule[xypic]
\starttext
\startformula
\xymatrix{
 W \ar[dr]^{f_2} [EMAIL PROTECTED]}[d]_{f} \ar[dl]_{f_1} \\
 X  X \times Y  \ar[l]_{p_1} \ar[r]^{p_2}   Y }
\stopformula
\stoptext

btw, not sure it works;
something strange near W in your xymatrix
-- 
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2007-04-30 Thread Dirard Mikdad
Hallo,

I want to convert my thesis (which I wrote in plain tex) to ConTeXt.
Unfortunately the process fails because my documents contain 
some commutative diagrams made in Xypic. Is it possible to convert xy
code to something that ConTeXt can understand?

Thanks,

Dirard

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

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

2007-04-30 Thread Dirard Mikdad
Hallo,

I want to convert my thesis (which I wrote in plain tex) to ConTeXt.
Unfortunately the process fails because my documents contain 
some commutative diagrams made in Xypic. Is it possible to convert xy
code to something that ConTeXt can understand?

Thanks,

Dirard

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

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

2005-04-29 Thread luigi.scarso
Vit, many thanks for your answer.
Vit Zyka wrote:
1. For a moment I set
  shell_escape =f
in `kpsewhich texmf.cnf'
ok, done
2. Input file f.tex:
\startuseMPgraphic{A}
  draw unitcircle scaled\overlaywidth;
\stopuseMPgraphic
\defineoverlay
  [B]
  [\uniqueMPgraphic{A}]
\starttext
  \framed[background=B]{Hallo frame!}
\stoptext
3a. classical run
  texexec --pdf f
No circle under frame,  right? If not, I have a bad installation; please 
discard the rest
(and some hints to repair will be really appreciate :)  ).

3b. step by step
  texexec --pdf --nomp f
  mpost f-mpgraph
  texexec --pdf --nomp f

A circle appear under the frame. But I   have 3  runs ( texexec, mpost, 
texexec).

Now, what is my goal ?
To achieve a circle under the frame  as quick as possible.
For 3.a, in f.log I find
 mpost  -progname=mpost -mem=metafun f-mpgraph
 system()...disabled.
An attempt to run mpost failed: no circle, goal unsatisfied.
For 3.b, I run manually mpost (and then again texexec): goal satisfied.
With shell_export=t, 3.a) is ok, but f.log says
system(mpost  -progname=mpost -mem=metafun f-mpgraph)...executed.
So it seems that my goal can be achieved only with  a run of mpost.
With XYPic, a similar result can be achieved without mpost:
%%
%% WARNING:: deprecated example
%% Don't use it !
%%
\input xy
\xyoption{frame}
\starttext
\xy
(0,0) *++=\hbox{\framed{Hallo frame}} *\frm{o} ;
\endxy
\stoptext
Of course this doesn't mean that XY is better/worse than mpost, nor that
using mpost coupled with context will be always slow than others ways;
but sometimes a faster alternative may be required.
Sure for XYPic, name spaces collisions, cpu/memory required, syntax are 
(some) items
to consider: but it also comes with a bunch of features and may be 
faster than mpost
in some circumstances.

[OT] XFIG: fig2dev can be export to metapost and in multi-metapost.
Hence, from the moon, I see that xfig can be used with context.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-29 Thread Vit Zyka
luigi.scarso wrote:
Vit, many thanks for your answer.
Vit Zyka wrote:
1. For a moment I set
  shell_escape =f
in `kpsewhich texmf.cnf'
ok, done
2. Input file f.tex:
\startuseMPgraphic{A}
  draw unitcircle scaled\overlaywidth;
\stopuseMPgraphic
\defineoverlay
  [B]
  [\uniqueMPgraphic{A}]
\starttext
  \framed[background=B]{Hallo frame!}
\stoptext
3a. classical run
  texexec --pdf f
No circle under frame,  right? If not, I have a bad installation; please 
discard the rest
(and some hints to repair will be really appreciate :)  ).
?? I obtained both a frame and a circle.
3b. step by step
  texexec --pdf --nomp f
  mpost f-mpgraph
  texexec --pdf --nomp f
A circle appear under the frame. But I   have 3  runs ( texexec, mpost, 
texexec).
Yes, the cases 3a = 3b should have at least 3 runs. With shell_escape=t 
only 2 are needed. You are right.

With XYPic, a similar result can be achieved without mpost:
%%
%% WARNING:: deprecated example
%% Don't use it !
%%
\input xy
\xyoption{frame}
\starttext
\xy
(0,0) *++=\hbox{\framed{Hallo frame}} *\frm{o} ;
\endxy
\stoptext
Of course this doesn't mean that XY is better/worse than mpost, nor that
using mpost coupled with context will be always slow than others ways;
but sometimes a faster alternative may be required.
All right, I agree for somebody and sometimes xypic might be use with 
advantage. I was thinkink about general recommendation.

Sure for XYPic, name spaces collisions, cpu/memory required, syntax are 
+ limitation by substance: drawing is mostly done via fonts
(some) items
to consider: but it also comes with a bunch of features and may be 
faster than mpost
in some circumstances.

[OT] XFIG: fig2dev can be export to metapost and in multi-metapost.
Hence, from the moon, I see that xfig can be used with context.
Export to context is good news. But still no parametrization possible :-(
vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-29 Thread luigi.scarso
Vit, the last things.
After that I consider this topic closed.
+ limitation by substance: drawing is mostly done via fonts
Yes, I forget to write it.
[XFIG]..Export to context is good news. But still no parametrization 
possible :-(
..maybe something to play this summer...

Now for metapost:
shell_escape= f
in texmf.cnf
so \write18 is disabled.
$texexec --pdf f
No circle; it seems right, because f.log says
systems: randomizer starts with 797065300
mpost  -progname=mpost -mem=metafun f-mpgraph
system()...disabled.
$ shell_escape=x ; texutil --purgeall; texexec --pdf f
As before.
$ shell_escape= ; texutil --purgeall; texexec --pdf f
As before.
$ shell_escape=t ; texutil --purgeall; texexec --pdf f
Circle ok; again it's right, f.log says
systems: randomizer starts with 800565448
system(mpost  -progname=mpost -mem=metafun f-mpgraph)...executed.
$ shell_escape=f ; texutil --purgeall; texexec --pdf f
Strange:circle again.
I found into texexec.pl
if (($ENV{shell_escape} eq 'f') || ($ENV{SHELL_ESCAPE} eq 'f')) {
   $AutoMPRun = 1 ;
}
Hence texexec/texutil has called mpost instead of \write18; it's like 
shell_escape=t
(for this task, not in general sense, of course)
Hmm, it's not crystal clear:
shell_escape=f  means shell_escape is  False
shell_escape=t  means shell_escape is  True
but for processing f.tex 'True and False are the same'

$shell_escape=; texutil --purge; texexec --pdf --automprun f
Circle ok; it seems right, because I force execution of mpost.
Again, many thanks
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-28 Thread luigi.scarso
Vit Zyka wrote:

before I started to use context I had prepared some diagrams in xypic. 
Me too, for some notes on a course  on commutative algebra when I was 
student at university.

It was the only way I knew for creating vector graphics for both tex 
and pdftex with text and graphics interaction possibility.

I try xfig with poor results.
For that experience I strongly discourage for using it with context:
1) Xypic has the most obscure syntax I have ever seen.
After writing some commutative algebra exercises, xy code is not so 
obscure :)

2) Nobody knows if there are not some name-space problems 
(redefinitions).
Big problem not only with xypic.
(after grep-ing xp package and context base I found some possibles names 
collisions
in  core-pos.tex,page-lyr.tex,xtag-ini.tex)

3) Metapost is naturaly incorporated to context, strongly supported, 
higher possibilities and (my opinion) much more intuitive.

Yes, I love metafun.
But a mp graphic must be preprocessed by mpost for inclusion, and I can 
do it only
if I can execute sysytems commands; this open a security and performance 
issues.

So:
Can I typeset a framedbox with a rulestyle WITHOUT using MetaPost ?
I have posted an idea with XYPic; but \leaders can be used too.
So I think that such a contextgarden xypic page would be only confusing.
ok, I follow your suggestion.

P.S. If you are still interesting google for xypic manual.
Better:
http://www.tug.org/applications/Xy-pic/
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-28 Thread Vit Zyka
luigi.scarso wrote:
Vit Zyka wrote:
before I started to use context I had prepared some diagrams in xypic. 
Me too, for some notes on a course  on commutative algebra when I was 
student at university.

It was the only way I knew for creating vector graphics for both tex 
and pdftex with text and graphics interaction possibility.

I try xfig with poor results.
With 'interaction possibilitity' I meant e.g. text labeling with the 
same fonts and possibilities as in the main text (math...), length 
parametrization. It is not possile in xfig.

3) Metapost is naturaly incorporated to context, strongly supported, 
higher possibilities and (my opinion) much more intuitive.

Yes, I love metafun.
But a mp graphic must be preprocessed by mpost for inclusion, and I can 
do it only
if I can execute sysytems commands; this open a security and performance 
issues.
It is true only for very advanced features like text along line, AFAIK. 
For framed text it is possible to run mpost manually with several passes 
of tex.

So:
Can I typeset a framedbox with a rulestyle WITHOUT using MetaPost ?
(Rulestyle?) Frames with only plain \hrule and \vrule is of course 
possible even with plain TeX. But it is probably not what you mean.

vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-28 Thread luigi.scarso
Vit Zyka wrote:
But a mp graphic must be preprocessed by mpost for inclusion, and I 
can do it only
if I can execute sysytems commands; this open a security and 
performance issues.

It is true only for very advanced features like text along line, 
AFAIK. For framed text it is possible to run mpost manually with 
several passes of tex.
Ok, it seem I've missed something important because I don't understand 
when you say
For framed text it is possible to run mpost manually with several 
passes of tex. .
This seem in contrast with preprocessing as I write before.

Can you give me a simple example ?
Thanks
luigi


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-28 Thread Vit Zyka
luigi.scarso wrote:
Vit Zyka wrote:
But a mp graphic must be preprocessed by mpost for inclusion, and I 
can do it only
if I can execute sysytems commands; this open a security and 
performance issues.
It is true only for very advanced features like text along line, 
AFAIK. For framed text it is possible to run mpost manually with 
several passes of tex.
Ok, it seem I've missed something important because I don't understand 
when you say
For framed text it is possible to run mpost manually with several 
passes of tex. .
This seem in contrast with preprocessing as I write before.

Can you give me a simple example ?
Of course.
1. For a moment I set
  shell_escape =f
in `kpsewhich texmf.cnf'
2. Input file f.tex:
\startuseMPgraphic{A}
  draw unitcircle scaled\overlaywidth;
\stopuseMPgraphic
\defineoverlay
  [B]
  [\uniqueMPgraphic{A}]
\starttext
  \framed[background=B]{Hallo frame!}
\stoptext
3a. classical run
  texexec --pdf f
3b. step by step
  texexec --pdf --nomp f
  mpost f-mpgraph
  texexec --pdf --nomp f
vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XYpic

2005-04-27 Thread Vit Zyka
Henning Hraban Ramm wrote:
Am 26.04.2005 um 17:35 schrieb luigi.scarso:
[OT] Can XYpic be used under Context ? I will try .
At least for  me this works:
\input xy
\xyoption{frame}
\starttext
\framed[offset=10pt]{%
\xy
(0,0) *++=\hbox{text} *\frm{--} ;
(50,0) *++=\hbox{text} *\frm{..} ;
(100,0) *++=\hbox{text} *\frm{=} ;
\endxy}
\stoptext
It can be a way to add some frame style without using metapost.

I don't know XYpic, but it looks interesting.
Would you write a wiki page about it?
Dear Henning,
before I started to use context I had prepared some diagrams in xypic. 
It was the only way I knew for creating vector graphics for both tex and 
pdftex with text and graphics interaction possibility.

For that experience I strongly discourage for using it with context:
1) Xypic has the most obscure syntax I have ever seen.
2) Nobody knows if there are not some name-space problems (redefinitions).
3) Metapost is naturaly incorporated to context, strongly supported, 
higher possibilities and (my opinion) much more intuitive.

So I think that such a contextgarden xypic page would be only confusing.
vit
P.S. If you are still interesting google for xypic manual.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XYpic (was: dotted line for \framed ?)

2005-04-26 Thread Henning Hraban Ramm
Am 26.04.2005 um 17:35 schrieb luigi.scarso:
[OT] Can XYpic be used under Context ? I will try .
At least for  me this works:
\input xy
\xyoption{frame}
\starttext
\framed[offset=10pt]{%
\xy
(0,0) *++=\hbox{text} *\frm{--} ;
(50,0) *++=\hbox{text} *\frm{..} ;
(100,0) *++=\hbox{text} *\frm{=} ;
\endxy}
\stoptext
It can be a way to add some frame style without using metapost.
I don't know XYpic, but it looks interesting.
Would you write a wiki page about it?
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context