Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Objectification #8

Open
RSAsterix opened this issue May 31, 2017 · 1 comment
Open

Feature request: Objectification #8

RSAsterix opened this issue May 31, 2017 · 1 comment

Comments

@RSAsterix
Copy link

I would love to be able to objectify fact types. As it is now, I see no (obvious) way to do that.

I have made this beautiful mockup with MS Paint:
image

@camilstaps
Copy link
Collaborator

I agree. For the moment, you can hack this in by placing a \entity over a fact type and setting the text width and opacity fill (alternatively, first place the \entity and then the fact type, you probably don't need to set the opacity fill then).

This requires hard-coding the width of the fact type, unfortunately. It would be nice to have a more readable syntax and a backend that takes care of the scaling. Something like \objectify (EntityName) at (FactName) {}; would already be nice (but, I don't think I will have time to look into scaling soon - perhaps nichtich does).

For now, the hack:

\documentclass{article}
\usepackage{tkz-orm}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[orm]

\entity (A) at (0,0) {A};
\entity (B) at (4,0) {B};

\binary (link) at (2,0) {};
\plays (A) to (link);
\plays (B) to (link);

\entity [fill opacity=0, text width=1cm] (L) at (link) {};

\entity (C) at (2,-2) {C};

\vbinary (linkb) at (2,-1) {};
\plays (L) to (linkb);
\plays (C) to (linkb);

\end{tikzpicture}
\end{document}

objectify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants