ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Communative diagrams with TikZ & ConTeXt
@ 2016-10-06 13:52 Mojca Miklavec
  2016-10-06 15:54 ` Hans Åberg
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mojca Miklavec @ 2016-10-06 13:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

(was: MacOS system wide installation)

On 6 October 2016 at 15:31, Hans Åberg wrote:
>> On 6 Oct 2016, at 15:19, Mojca Miklavec wrote:
>>
>> On 6 October 2016 at 15:13, Hans Åberg wrote:
>>> For the MacOS system wide installation [1], the command 'sudo sh ./first-setup.sh' does not have arguments for modules and engine, as for the local installation. Is that correct?
>>
>> No, it is not. "sudo sh" just means that you are running the same
>> command as root. You can/should just as well use --modules=t-tikz or
>> --modules=all
>
> I did run the latter, but still get an error [1]. The example is from [2].
>
> 1. Package tikz Error: I did not find the tikz library 'commute'. I looked for files named tikzlibrarycommute.code.tex and pgflibrarycommute.code.tex, but neither could be found in the current texmf trees.
>
> 2. https://mailman.ntg.nl/pipermail/ntg-context/2013/073368.html

Sorry, I couldn't resist, but post a link to:
    http://xkcd.com/1742/

This goes to the
    Anything that "requires only minimal configuration and tweaking"
part :)

I don't have the file tikzlibrarycommute.code.tex on my machine
either. Anywhere. Not in the ConTeXt distribution nor in TeX Live.
That file was only posted to the mailing list by Idris and apparently
nobody ever looked at it or added it anywhere.

(It usually helps to provide a minimal example or a bit more context.
Just saying that something doesn't work is a bit more difficult to
debug.)

If you want to get this work out of the box, it would be super useful
to coordinate with the original author of tikz-cd to add support for
ConTeXt. And if any other patches are needed, we should try to
coordinate with upstream TikZ authors as well. I'm not sure what to do
with "&" though. We could theoretically add that file to the ConTeXt
distribution, but we'll then end up with other people asking why it
doesn't work in TeX Live and I certainly cannot afford to do
unauthorized changes to other TikZ files without getting a formal
approval that something is broken and without at least getting some
patch scheduled for approval by TikZ developers.

So if you want to get that working temporarily, it's probably best to
follow instructions in that email. If you want to get it fixed
properly, we should convince the authors to add support upstream. I
didn't look at the file(s) yet.

Mojca

PS: I have to add that I'm recently experiencing problems syncing with
upstream TikZ sources - CVS (this has been a problem for perhaps two
months or so).
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Communative diagrams with TikZ & ConTeXt
  2016-10-06 13:52 Communative diagrams with TikZ & ConTeXt Mojca Miklavec
@ 2016-10-06 15:54 ` Hans Åberg
  2016-10-06 16:19 ` Hans Åberg
  2016-10-06 21:45 ` Hans Åberg
  2 siblings, 0 replies; 5+ messages in thread
From: Hans Åberg @ 2016-10-06 15:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec


> On 6 Oct 2016, at 15:52, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> 
> (was: MacOS system wide installation)
> 
> On 6 October 2016 at 15:31, Hans Åberg wrote:
>>> On 6 Oct 2016, at 15:19, Mojca Miklavec wrote:
>>> 
>>> No, it is not. "sudo sh" just means that you are running the same
>>> command as root. You can/should just as well use --modules=t-tikz or
>>> --modules=all
>> 
>> I did run the latter, but still get an error [1]. The example is from [2].
>> 
>> 1. Package tikz Error: I did not find the tikz library 'commute'. I looked for files named tikzlibrarycommute.code.tex and pgflibrarycommute.code.tex, but neither could be found in the current texmf trees.
>> 
>> 2. https://mailman.ntg.nl/pipermail/ntg-context/2013/073368.html
> 
> Sorry, I couldn't resist, but post a link to:
>    http://xkcd.com/1742/
> 
> This goes to the
>    Anything that "requires only minimal configuration and tweaking"
> part :)

Or the roll-over text: I searched for ConTeXt and commutative diagrams, and this was the only example code I found.

> I don't have the file tikzlibrarycommute.code.tex on my machine
> either. Anywhere. Not in the ConTeXt distribution nor in TeX Live.
> That file was only posted to the mailing list by Idris and apparently
> nobody ever looked at it or added it anywhere.
> 
> (It usually helps to provide a minimal example or a bit more context.
> Just saying that something doesn't work is a bit more difficult to
> debug.)
> 
> If you want to get this work out of the box, it would be super useful
> to coordinate with the original author of tikz-cd to add support for
> ConTeXt. And if any other patches are needed, we should try to
> coordinate with upstream TikZ authors as well.

From my side, it was just a test, as commutative diagrams is an example of a math 2D layout.

It would probably be good if ConTeXt supports it out of the box.


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

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Communative diagrams with TikZ & ConTeXt
  2016-10-06 13:52 Communative diagrams with TikZ & ConTeXt Mojca Miklavec
  2016-10-06 15:54 ` Hans Åberg
@ 2016-10-06 16:19 ` Hans Åberg
  2016-10-06 21:45 ` Hans Åberg
  2 siblings, 0 replies; 5+ messages in thread
From: Hans Åberg @ 2016-10-06 16:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec


> On 6 Oct 2016, at 15:52, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> 
> On 6 October 2016 at 15:31, Hans Åberg wrote:
>> The example is from [2].
>> 
>> 2. https://mailman.ntg.nl/pipermail/ntg-context/2013/073368.html

The example works: 

> I don't have the file tikzlibrarycommute.code.tex on my machine
> either. Anywhere. Not in the ConTeXt distribution nor in TeX Live.
> That file was only posted to the mailing list by Idris and apparently
> nobody ever looked at it or added it anywhere.

This file was removed and listed with a URL under different name. So just download it and rename it to tikzlibrarycommute.code.tex, and the example compiles.


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

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Communative diagrams with TikZ & ConTeXt
  2016-10-06 13:52 Communative diagrams with TikZ & ConTeXt Mojca Miklavec
  2016-10-06 15:54 ` Hans Åberg
  2016-10-06 16:19 ` Hans Åberg
@ 2016-10-06 21:45 ` Hans Åberg
  2016-10-11 16:26   ` Alan Braslau
  2 siblings, 1 reply; 5+ messages in thread
From: Hans Åberg @ 2016-10-06 21:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec


> On 6 Oct 2016, at 15:52, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> 
> I don't have the file tikzlibrarycommute.code.tex on my machine
> either. Anywhere. Not in the ConTeXt distribution nor in TeX Live.
> That file was only posted to the mailing list by Idris and apparently
> nobody ever looked at it or added it anywhere.

There is a tikz-cd package at CTAN:
  https://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-cd?lang=en

One makes sure to have the file tikzlibrarycd.code.tex, and follows the translation rules in the manual for ConTeXt. In addition to that, one seems to have to replace the apostrophe with "below".

The first few examples in the manual, which compiled with latest ConTeXt:

\usemodule[tikz]
\usetikzlibrary[cd]


\starttext

\starttikzcd
  A \arrow{rd} \arrow{r}{𝜑} \NC B \NR
                                 \NC C
\stoptikzcd

\starttikzcd
  A \arrow[r, "\phi"] \arrow[d, red]
    \NC B \arrow[d, "\psi" red] \NR
  C \arrow[r, red, "\eta" blue]
  \NC D
\stoptikzcd

\starttikzcd
  A \arrow[r, "\phi" near start, "\psi" below, "\eta" near end] \NC B
\stoptikzcd

\starttikzcd
  T
  \arrow[drr, bend left, "x"]
  \arrow[ddr, bend right, "y"]
  \arrow[dr, dotted, "{(x,y)}" description] \NC \NC \NR
    \NC X \times_Z Y \arrow[r, "p"] \arrow[d, "q"]
    \NC X \arrow[d, "f"] \NR
  \NC Y \arrow[r, "g"] \NC Z
\stoptikzcd

\starttikzcd[column sep=tiny]
  \NC \pi_1(U_1) \ar[dr] \ar[drr, "j_1", bend left=20]
    \NC
      \NC[1.5em] \NR
  \pi_1(U_1\cap U_2) \ar[ur, "i_1"] \ar[dr, "i_2" below]
    \NC
      \NC \pi_1(U_1) \ast_{ \pi_1(U_1\cap U_2)} \pi_1(U_2) \ar[r, dashed, "\simeq"]
        \NC \pi_1(X) \NR
  \NC \pi_1(U_2) \ar[ur]\ar[urr, "j_2" below, bend right=20]
    \NC
      \NC
\stoptikzcd

\stoptext


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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Communative diagrams with TikZ & ConTeXt
  2016-10-06 21:45 ` Hans Åberg
@ 2016-10-11 16:26   ` Alan Braslau
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Braslau @ 2016-10-11 16:26 UTC (permalink / raw)
  To: haberg-1; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 84 bytes --]

Hello,

I wrote some very simple MetaPost helpers to create commutative diagrams:



[-- Attachment #2: natural.pdf --]
[-- Type: application/pdf, Size: 10393 bytes --]

[-- Attachment #3: Type: text/plain, Size: 2523 bytes --]




Alan


> On Oct 6, 2016, at 15:45, Hans Åberg <haberg-1@telia.com> wrote:
> 
> 
>> On 6 Oct 2016, at 15:52, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
>> 
>> I don't have the file tikzlibrarycommute.code.tex on my machine
>> either. Anywhere. Not in the ConTeXt distribution nor in TeX Live.
>> That file was only posted to the mailing list by Idris and apparently
>> nobody ever looked at it or added it anywhere.
> 
> There is a tikz-cd package at CTAN:
>  https://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-cd?lang=en
> 
> One makes sure to have the file tikzlibrarycd.code.tex, and follows the translation rules in the manual for ConTeXt. In addition to that, one seems to have to replace the apostrophe with "below".
> 
> The first few examples in the manual, which compiled with latest ConTeXt:
> 
> \usemodule[tikz]
> \usetikzlibrary[cd]
> 
> 
> \starttext
> 
> \starttikzcd
>  A \arrow{rd} \arrow{r}{𝜑} \NC B \NR
>                                 \NC C
> \stoptikzcd
> 
> \starttikzcd
>  A \arrow[r, "\phi"] \arrow[d, red]
>    \NC B \arrow[d, "\psi" red] \NR
>  C \arrow[r, red, "\eta" blue]
>  \NC D
> \stoptikzcd
> 
> \starttikzcd
>  A \arrow[r, "\phi" near start, "\psi" below, "\eta" near end] \NC B
> \stoptikzcd
> 
> \starttikzcd
>  T
>  \arrow[drr, bend left, "x"]
>  \arrow[ddr, bend right, "y"]
>  \arrow[dr, dotted, "{(x,y)}" description] \NC \NC \NR
>    \NC X \times_Z Y \arrow[r, "p"] \arrow[d, "q"]
>    \NC X \arrow[d, "f"] \NR
>  \NC Y \arrow[r, "g"] \NC Z
> \stoptikzcd
> 
> \starttikzcd[column sep=tiny]
>  \NC \pi_1(U_1) \ar[dr] \ar[drr, "j_1", bend left=20]
>    \NC
>      \NC[1.5em] \NR
>  \pi_1(U_1\cap U_2) \ar[ur, "i_1"] \ar[dr, "i_2" below]
>    \NC
>      \NC \pi_1(U_1) \ast_{ \pi_1(U_1\cap U_2)} \pi_1(U_2) \ar[r, dashed, "\simeq"]
>        \NC \pi_1(X) \NR
>  \NC \pi_1(U_2) \ar[ur]\ar[urr, "j_2" below, bend right=20]
>    \NC
>      \NC
> \stoptikzcd
> 
> \stoptext
> 
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 489 bytes --]

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-11 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-06 13:52 Communative diagrams with TikZ & ConTeXt Mojca Miklavec
2016-10-06 15:54 ` Hans Åberg
2016-10-06 16:19 ` Hans Åberg
2016-10-06 21:45 ` Hans Åberg
2016-10-11 16:26   ` Alan Braslau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).