Re: [NTG-context] Commutative diagrams in tikz-cd: for wiki

2014-03-01 Thread Florêncio Neves
I have added ConTeXt support in the the newest version of tikz-cd
(which I just submitted to CTAN and should be available within the
next few days).

I didn't test it very extensively.  Let me know if there is any problems.

On 5/25/13, Idris Samawi Hamid ادريس   سماوي حامد isha...@colostate.edu wrote:
 Dear gang,

 With a couple of modifications I got tikz-cd (a package to make
 commutative diagrams for categories and toposes etc. by Florêncio Neves)
 working in mkiv:

 http://texdoc.net/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf

 It depends on the tikz module, already supported in mkiv.

 The tikz-cd module is attached, and here is a sample file:

 ===
 \usemodule[tikz]
 \usetikzlibrary{commute}

 \starttext
 \starttikzcd %[ampersand replacement=\]
 A \arrow{rd} \arrow[yshift=0.5ex]{r}{\phi} \ B \\
 \ C
 \stoptikzcd

 \starttikzcd %[ampersand replacement=\]
 A
 \arrow[yshift=1.5ex]{r}
 \arrow[yshift=0.0ex]{r}
 \ B \arrow[xshift=0.7ex]{d} \arrow[xshift=-0.7ex]{d} \\
 \ C
 \stoptikzcd
 \stoptext
 ===

 A couple of things:

 1 I had to comment out line 396 of pgfsys-pdftex.def in the tikz module,
 or else I'd get an undefined control sequence. It's not needed anyway
 since that's pdftex.

 2 In tikzlibrarycommute.code.tex, line 395 I had to add the option

 ampersand replacement=\

 to avoid a TeX error. So you'll have to use '\' instead of '' for matrix

 arrays.

 3 Some LaTeX-specific stuff is commented, and support is added for

 \starttikzcd \stoptikzcd

 so we get a ConTeXt environment.


 I'm hoping someone can volunteer to place this on the wiki, perhaps even
 set it up on the modules page, with an indication of its proper place in
 the texmf-modules tree etc.

 Any other improvements will also be appreciated. Enjoy!

 Best wishes
 Idris
 --
 Professor Idris Samawi Hamid
 Department of Philosophy
 Colorado State University
 Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Commutative diagrams in tikz-cd: for wiki

2013-05-25 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

With a couple of modifications I got tikz-cd (a package to make  
commutative diagrams for categories and toposes etc. by Florêncio Neves)  
working in mkiv:


http://texdoc.net/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf

It depends on the tikz module, already supported in mkiv.

The tikz-cd module is attached, and here is a sample file:

===
\usemodule[tikz]
\usetikzlibrary{commute}

\starttext
\starttikzcd %[ampersand replacement=\]
A \arrow{rd} \arrow[yshift=0.5ex]{r}{\phi} \ B \\
\ C
\stoptikzcd

\starttikzcd %[ampersand replacement=\]
A
\arrow[yshift=1.5ex]{r}
\arrow[yshift=0.0ex]{r}
\ B \arrow[xshift=0.7ex]{d} \arrow[xshift=-0.7ex]{d} \\
\ C
\stoptikzcd
\stoptext
===

A couple of things:

1 I had to comment out line 396 of pgfsys-pdftex.def in the tikz module,  
or else I'd get an undefined control sequence. It's not needed anyway  
since that's pdftex.


2 In tikzlibrarycommute.code.tex, line 395 I had to add the option

ampersand replacement=\

to avoid a TeX error. So you'll have to use '\' instead of '' for matrix  
arrays.


3 Some LaTeX-specific stuff is commented, and support is added for

\starttikzcd \stoptikzcd

so we get a ConTeXt environment.


I'm hoping someone can volunteer to place this on the wiki, perhaps even  
set it up on the modules page, with an indication of its proper place in  
the texmf-modules tree etc.


Any other improvements will also be appreciated. Enjoy!

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

tikzlibrarycommute.code.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Commutative diagrams.

2012-10-14 Thread Andre Caldas
Dear gurus,

How can I make commutative diagrams in ConTeXt?


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

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

Re: [NTG-context] Commutative diagrams.

2012-10-14 Thread Marco Patzer
2012-10-14 Andre Caldas:

 How can I make commutative diagrams in ConTeXt?

Have a look at the MetaFun manual¹ and the TikZ manual²


Marco

[1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf
[2] 
http://www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf

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

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

[NTG-context] Commutative Diagrams

2010-11-14 Thread Martin 'golodhrim' Scholz
Hi List,

   I'm looking for a good way to set mathmatical commutative Diagrams
   in ConTeXt, has anybody of you advices what would be a native/good
   way to do so?

Thanks
-- 
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Germany
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 7990138
e-Mail: scholz@googlemail.com

Not only Guinness - Linux is good for you, too.
-- Banzai on IRC

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

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


Re: [NTG-context] Commutative Diagrams

2010-11-14 Thread John Culleton
On Sunday 14 November 2010 07:03:31 Martin 'golodhrim' Scholz wrote:
 Hi List,

I'm looking for a good way to set mathmatical commutative
 Diagrams in ConTeXt, has anybody of you advices what would be a
 native/good way to do so?

 Thanks

The eplain macro set does commutative diagrams. But the eplain package 
has a conflict with Context macros. Perhaps you could build the 
diagrams in eplain as individual eps or pdf files and then place them 
in a Context document. 
-- 
John Culleton, Wexford Press
Create Book Covers with Scribus $5.95 at
http://www.booklocker.com/books/4055.html

Free eps format barcode: http://www.tux.org/~milgram/bookland/

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

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


Re: [NTG-context] Commutative Diagrams

2010-11-14 Thread Emanuele Sacco
I use the TikZ module.

http://www.felixl.de/commu.pdf

Bye

Emanuele

2010/11/14 John Culleton j...@wexfordpress.com:
 On Sunday 14 November 2010 07:03:31 Martin 'golodhrim' Scholz wrote:
 Hi List,

    I'm looking for a good way to set mathmatical commutative
 Diagrams in ConTeXt, has anybody of you advices what would be a
 native/good way to do so?

 Thanks

 The eplain macro set does commutative diagrams. But the eplain package
 has a conflict with Context macros. Perhaps you could build the
 diagrams in eplain as individual eps or pdf files and then place them
 in a Context document.
 --
 John Culleton, Wexford Press
 Create Book Covers with Scribus $5.95 at
 http://www.booklocker.com/books/4055.html

 Free eps format barcode: http://www.tux.org/~milgram/bookland/

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

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




-- 
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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