keinstein / latex-fca Goto Github PK
View Code? Open in Web Editor NEWsome latex files for formal concept analysis
some latex files for formal concept analysis
Die Neufassung des fca.sty ist noch zu wenig dokumentiert und deshalb für mich schwierig zu benutzen. Für FBA-Diagramme verwende ich zurzeit deshalb eine Minimalumgebung, die sich bestimmt in fca.sty einbetten lässt. Diese Minimalversion kann nix, außer einfache Diagramme zeichnen, aber das funktioniert immerhin. Natürlich hätte ich gern all die schönen Sachen, die fca.sty zusätzlich bietet, deshalb hoffe ich, das zusammenführen zu können.
Folgende drastische Einschränkungen machen für mich die Sache einfacher:
1.) Ich arbeite mit TikZ. Kompatibilitätsfragen machen die Sache zu kompliziert. Es ist leichter, alte Diagramm-Files umzuschreiben. Tikzlibrary {calc} ist sowieso geladen.
2.) Default ist scale=0.1. Diagramme male ich lieber in Millimetern als in Zentimetern.
3.) Ich arbeite altmodisch mit Koordinaten.
So sieht's dann aus:
\newcommand{\FCAdrawnode}[1]{\draw[fill=white, line width=1pt] (#1) circle[radius=12mm];}
\newcommand{\Node}[2]{\coordinate (#1) at #2; \FCAdrawnode{#1}}
\newcommand{\Edge}[2]{\draw[thick] (#1) -- (#2); \FCAdrawnode{#1}\FCAdrawnode{#2}}
\newenvironment{fcadiagram}{\begin{tikzpicture}[scale=.1]}{\end{tikzpicture}}
\fbox{\begin{fcadiagram}
\Node{1}{(0,0)}
\Node{2}{(-10,10)}
\Node{3}{(10,10)}
\Node{4}{($(2)+(3)$)}
\Edge{1}{2}
\Edge{1}{3}
\Edge{2}{4}
\Edge{3}{4}
\end{fcadiagram}}
Bernhard
Inside a TikZ environment the nodes should be scaled according with the current ratio.
This bug has been reported upstream as pgf-tikz/pgf#1251 .
Backporting of the fix provided there can be done after it is integrated in the repository. We need to know which is the last version that needs it.
Somewhere between TikZ 3.1.1 and 3.1.9a the behavior of name prefixes and suffixes has changed.
Now, TikZ checks whether the node name is defined, and the prefix and the suffix are added only if the pure name does not exist. This allows access node anchors of nodes whose name was defined with a different name prefix or a different name suffix.
This affects diagrams inside a tikzpicture
environment (including tikzdiagram
).
Currently, I don't know how to deal with that. Shall I write a workaround (does it work “forever”)? Is it better to patch TikZ depending on the version? Or is the best way to require a convenient TikZ version even if it is currently not widespread enough?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.