You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
$$\begin{tikzcd}A\ar[r, "f"]&B\end{tikzcd}$$
yeah, we don't have tikzcd yet. but it's open source and has an active development community: chat.zulip.org
I think Zulip uses KaTeX, which doesn't support commutative diagrams (yet)
it's tracked here: https://github.com/KaTeX/KaTeX/issues/1834
KaTeX tends to be "good enough" for most things, but yeah, you're going to have a bad time if you try and define a diagram. Take some photos until then.
no tikz, I guess.
Yeah, we'll have to take photos, as Emily says, or screenshots: https://tikzcd.yichuanshen.de/
$z^2$
Try with double dollar signs!
Different, but doesn't look right in the zulip app, though. I'll trust it does in a browser. Thanks @Fabrizio Genovese !
In a browser it's perfect!
The problem with diagrams in KaTeX seems to be that KaTeX supports offline rendering via node.js, which doesn't allow measuring distances the way MathJax does. I suppose .svg support would be too different from what the current code does. Disclaimer: it's been a while since I looked at that bug.
the Zulip app does a weird thing where it duplicates the LaTeX notation with plaintext, so it's hard to read, but it shows up correctly in browsers
@Nicholas Scheel: this is a known issue that's being tracked by https://github.com/zulip/zulip-mobile/pull/3744
so hopefully it'll be fixed soon!
The latest work is being done here; it's being actively worked on (last activity ~12 hours ago), and the lead developer of the mobile app considers it almost ready to merge. It shouldn't be long now at all.
Merged about five minutes ago! The issue has been closed. It should be in the next release.
There's been a new release of the mobile app; it's currently in beta, which shouldn't last more than 3-4 days based on past releases, at which point it'll be available to everyone on Google Play and the App Store. There's also an Android APK available now at the link.
The -supporting version of the mobile app is now available to everyone on Google Play; the App Store takes a bit longer due to Apple's review process, but it's in the pipeline.
I'm on iOS fwiw , april 8
Does anyone know of a document with good practices for using Latex to write Category Theory? (What is the best font for a category? etc...)
Henry Story said:
Does anyone know of a document with good practices for using Latex to write Category Theory? (What is the best font for a category? etc...)
This would be my suggestion
https://mirrors.rit.edu/CTAN/graphics/pgf/contrib/tikz-cd/tikz-cd-doc.pdf
Thanks @Carlos Vera, that is helpful, especially for all signs that are very recogniseable. But I was also wondering about a stylesheet, something that would answer questions such as: what is the font for the name of a category? ...
The HoTT book is online and I guess I could look there in the Tex, but I don't think those notations cover the usage of CT.
I have been drawing my diagrams with Omnigraffle mostly. Perhaps at some point I should move to programming them in tikz.
Henry Story said:
I have been drawing my diagrams with Omnigraffle mostly. Perhaps at some point I should move to programming them in tikz.
Oh I see, sorry, I misinterpreted your original question
Misinterpreted is too strong a word there :-)
Another type of question such a doc could answer would be: should I use for functors?
I didn't expect to have strong feelings for this, but it's a visceral "no" from me on that last question :rolling_on_the_floor_laughing:
If you use them at all, save for 2-cells (eg natural transformations, which are likely to come up), so that can be used for 3-cells and so on in a consistent way, with number of horizontal lines representing dimension of cell, if and when those become relevant.
Alternatively, if you never get higher than natural transformations, let the choice of style/lettering of the domain/codomain or the name of the arrow carry the distinctions between a morphism in a category and a functor between categories.
I got some good answers on Twitter https://twitter.com/cronokirby/status/1302185841633251328
(Who'd have thought that Twitter could be used for maths. The mind boggles)
@bblfish I've seen a bunch of different conventions for small things, so I'd guess not. In my personal notes: \mathcal{C} for arbitrary categories \bold{Set} for well known ones (\bold{Ens} if you're French or German) \hookrightarrow for monos \twoheadrightarrow for epis
- Lúcás Meier (@cronokirby)All good suggestions!
Probably little known thing: You can download the source code of most papers on arXiv
Another type of question such a doc could answer would be: should I use for functors?
No, that would terribly confusing! Most importantly, nobody ever does it: they use . Second, functors are an 1-morphisms in Cat and 1-morphisms are denoted . Natural transformations are 2-morphisms in Cat so it's good to use for them, e.g. where are functors.
Thanks. It would be useful to have a cheat sheet of a CT to latex mapping.
(all programming languages I have seen have those (eg. for scala)
You should create one!
You can read category theory papers and create a cheat sheet based on them.
ok, I guess I'll have to. I was that may have been done already :-/
I may not be the best person to do this though.
You want it, so you're the best person to do it. (I've never heard a mathematician ask for it! It must be a computer science thing.)
There are some consistent notations (functors, natural transformations, adjunctions, etc.), but many notations differ between authors and papers, which I imagine would make it difficult to write down a "cheat sheet" like this. But that's not to say it's not worth trying :)
Perhaps this would be a good thing for a wiki actually.
We've got the wiki:
https://wiki.functorialwiki.org/act/show/HomePage
Start a new page!
Henry Story said:
ok, I guess I'll have to. I was that may have been done already :-/
I may not be the best person to do this though.
If you do, I would be more than happy to give you a critique :grinning_face_with_smiling_eyes:
Ok, put a bit together here https://wiki.functorialwiki.org/act/show/latex_cheat
John Baez said:
Most importantly, nobody ever does it: they use . Second, functors are an 1-morphisms in Cat and 1-morphisms are denoted .
I really like denoting functors with early on in my lectures in order to distinguish them from morphisms inside other categories. Once I feel the audience should be familiar with the concept of functors as morphisms in , I can drop this notation (although I usually only do so inside commutative diagrams).
I spend a lot of time getting students used to mindblowing ideas like "functors are morphisms in the category of all categories", which tends to blow their mental fuses at first, because these "level shifts" are crucial in category theory.
I think in general they catch on a lot faster than older people (like me) whose mental circuits are somewhat ossified.
But, I find it helps to really talk about these level shifts and how they're confusing at first.
@John Baez on that note, I saw you being cited for a (quote) mindblowing fact (the writeup of the Borwein integral) a day ago here.
Thanks, yes, that was a fun project I did with Greg Egan. He's the one who did the really hard calculation - I just computed by hand a bound on when the identities would break down.
Just when you thought you understood the pattern...
Jules Hedges said:
Probably little known thing: You can download the source code of most papers on arXiv
Yeap so if you don't want people to see your weird comments you should probably use this https://github.com/google-research/arxiv-latex-cleaner :)
So people don't see things like
\bibitem{Angelos} N.\ Angelos, Topological categories and categorical topology, \textsl{J.\ Rand.\ Math.\ } \textbf{44} (1980), 22--29. %stupid reference the referee made us add
But then you take away the fun for other people of finding your comments
True, few people would read my papers then.
The main reason for digging into people's LaTeX on the arXiv is to figure out how they get cool fonts, amazing diagrams, etc.
I'd peeked into "edit" on MO once or twice just because of this ;)
John Baez said:
The main reason for digging into people's LaTeX on the arXiv is to figure out how they get cool fonts, amazing diagrams, etc.
Yeah, copy-pasting tikz code from other people's diagrams is 90% of the reasons why I look at other people's code. It's also why I find TiKzIt extremely disappointing.
Fabrizio Genovese said:
John Baez said:
The main reason for digging into people's LaTeX on the arXiv is to figure out how they get cool fonts, amazing diagrams, etc.
Yeah, copy-pasting tikz code from other people's diagrams is 90% of the reasons why I look at other people's code. It's also why I find TiKzIt extremely disappointing.
The only way one produces cool diagrams is by being an artist, and an artist doesn't copy. Blaming tikzit is like blaming a blank canvas for being a blank canvas.
"Lesser artists borrow; great artists steal" - Pablo Picasso, stealing a line from Stravinsky.
John Baez said:
"Lesser artists borrow; great artists steal" - Pablo Picasso, stealing a line from Stravinsky.
Who did the cave (wo)man steal from? I consider myself in their league.
Bob Coecke said:
John Baez said:
"Lesser artists borrow; great artists steal" - Pablo Picasso, stealing a line from Stravinsky.
Who did the cave (wo)man steal from? I consider myself in their league.
The monolith from 2001 perhaps.
Bob Coecke said:
John Baez said:
"Lesser artists borrow; great artists steal" - Pablo Picasso, stealing a line from Stravinsky.
Who did the cave (wo)man steal from? I consider myself in their league.
They stole from nature.
I can't believe it strips out TikZ source and replaces the code with pdf images. That's terrible, and antithetical to the arXiv philosophy. It would also play merry hell with people doing machine learning of category-theoretic diagrams using arXiv source files.
The problem with code made with TiKzIt is that it's not compositional: If you draw a box in tikzit, in the tikz code you'll essentially find four points and four lines
All node and edge names are also automatically generated, so there's basically no way to understand what-is-what
Personally I just copy-paste components of my diagrams over and over and re-edit them as needed, but "stealing" is useful when one has to switch from some diagrammatic formalism to another. E.g. some time ago I was writing some notes and I needed to tikz some surface diagrams. I never did that before, so I had no macros/code to reuse. Taking a look at other people's paper souce code helped a lot.
David Michael Roberts said:
I can't believe it strips out TikZ source and replaces the code with pdf images. That's terrible, and antithetical to the arXiv philosophy. It would also play merry hell with people doing machine learning of category-theoretic diagrams using arXiv source files.
You choose to do this or not; the base program only strips out comments. But I am not sure what you mean here, it certainly doesn't go against arXiv if an author wants to hide hours of work (it is certainly not me though :grinning:) I think mathematicians are more prone to assign values to institution that doesn't have those values just because they behave that way in an institution.
Well, in that case, why don't people just upload a pdf and no (La)TeX source? Mike Barr told me he didn't want to send his papers to the arXiv, though he very much makes them available for free (and is no fan of commercial publishers), because he didn't want to reveal his source. But the arXiv explicitly strongly discourages this option, so I was extending the sentiment to smaller, sub-article units produced with TeX-like code.
Why would you not want to share the source?
In my experience, it's people that are not proud of their work that are the most secretive with code/papers etc are the least proud of their work.
But that is a huge generalization (it's anecdotally true for me though)
I share but I don't want people to look at my comments predominantly because I have whole discussions with my coauthors in them, some that can be misconstrued in the context of the final product, everything else stays :)
Giorgos Bakirtzis said:
I share but I don't want people to look at my comments predominantly because I have whole discussions with my coauthors in them, some that can be misconstrued in the context of the final product, everything else stays :)
:-) That's true enough - and sometimes the comments between coauthors are of a nature that might be "misinterpreted" by "outsiders" who don't get one's sense of "humour"!! ;-)
FWIW, when I've ever posted TeX source code, I've always deleted all comments as a matter of course (apart from in macro files, where they sometimes explain how the macro is to be used). The paper is supposed to be self-explaining, right?!?
Doesn't want to reveal his source? Wow, I'd sure like to talk him out of that.
@John Baez Please do!
John Baez said:
Doesn't want to reveal his source? Wow, I'd sure like to talk him out of that.
Maybe 'the source' is actually a person passing him papers, and he doesn't want to blow their cover
conspiracy intensifies
Robert Seely said:
sometimes the comments between coauthors are of a nature that might be "misinterpreted" by "outsiders" who don't get one's sense of "humour"!! ;-)
On the other hand, my last push to the open games public code repository contained the following comment:
-- extremely evil hack, do not think about what this does or your brain will rot
I thought at some point we could make displayed equations on zulip with triple dollar-signs. But if so, it seems to have gone away?
$$$ x^2 $$$
Does anyone know more about this?
You can use ```math
, like a code block:
(I don't know whether triple dollar was ever an alternative syntax for this.)
Ah, that's good to know, thanks.