UniFormal / MMT

The MMT Language and System
https://uniformal.github.io/
Other
68 stars 22 forks source link

Standardize arrow styles in diagrams #250

Open florian-rabe opened 6 years ago

florian-rabe commented 6 years ago

We have the following kinds of theory morphisms

It would be good to have a standard way of styling these, i.e., to assign

We might want to make color optional so that

@kohlhase @jbetzend @tkw1536 @Jazzpirate

florian-rabe commented 6 years ago

So far, I've tried to use only hooked and double. I never used anything special for structures.

Also note that structures and view are usually labeled with their names.

kohlhase commented 6 years ago

I have already done that for tikz pictures in https://github.com/KWARC/localmh/blob/master/sty/pgflibrarytikzmmt.code.tex to use it just use

\usetikzlibrary{mmt}
\begin{tikzpicture}
\node[thy] (a) at (0,0) {foo};
\node[thy] (b) at (0,1) {bar};
\draw[include] (a) -- (b);
\draw[view] (a) --  (b); 
\draw[struct] (a) -- (b);
\end{tikzpicture}

This has helped consistency in my papers very much. This conforms to my current taste in arrows: single straight arrows for structures single squigly arrows for views hooked arrows (there are left and right version) for includes dotted arrows for meta.

kohlhase commented 6 years ago

There are also other useful things like pushout annotations, ....

kohlhase commented 6 years ago

But I guess that with standardize, you mean standardize everywhere (i.e. also in TGView, ... ) I am all for that.

lambdaTotoro commented 6 years ago

Just for the record: Should we ever chose to make colours carry meaning in the theory graphs ( and not just in e.g. the logo, see issue #174 ), we should take care to chose a colour palette that doesn't make it harder for colourblind people to read the information conveyed, like e.g. red/green would.

kohlhase commented 6 years ago

I am completely against using color for semantics in TG.

lambdaTotoro commented 6 years ago

I can see why, I wouldn't want that, either. If this isn't actually considered, disregard above comment.