Hot answers tagged

5

See, if the following MWE gives what you like to obtain: \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{positioning, shapes, arrows} \begin{document} \begin{tikzpicture}[ node distance=3mm, class/.style = {shape=rectangle, rounded corners, draw, top color=blue!15, bottom color=blue!5, minimum ...


4

That's a pretty elaborate animation, so here's a start. If you have trouble (and probably you will), feel free to ask a new question, but remember to keep it focused on a specific issue you got stuck with. Adding tikz to the standalone class options allows your pdf to have one page per frame. To compile this as a .gif, install imagemagick in your system, ...


4

For the first question, you can gradually change the distances as you alter the opacity using the same basic idea. At least, I think so. I don't entirely understand why things are lower to the right of the equation i.e. why 4ac is lower than 4abx and that is lower than 4aax^2, so perhaps I've not properly understood how this is meant to work. ...


4

See, if the following MWE gives what you expected: Figure is slightly changed in comparison to your sketch. If you not liked this, just change sibling distance accordingly and text write in one column. \documentclass[tikz, border=3mm, ]{standalone} \usetikzlibrary{fit}% <-- new \begin{document} \begin{tikzpicture}[ ...


4

Hadn't seen that library before, perhaps because it is a third-party library, and not discussed in the TikZ manual. The only documentation seems to be a short readme file, so I had a look at the code of the library itself. The library file can be found by running kpsewhich tikzlibrarybayesnet.code.tex in a terminal, on my system it is found in ...


3

Here is a Forest version of your tree. One of the nice things about Forest is that it uses a bracket syntax which allows you to specify trees extremely concisely. And since it is TikZ-based, you can use the full power of TikZ in addition to Forest's range of features. In this case, the tree itself is specified with this code: [, my pin=Consumers decide ...


1

The problem is that you've hard-coded absolute positions for the nodes. This isn't a good way to go about drawing this kind of diagram. However, if you just want a quick fix, you can pass scale=<factor> to the picture. For example: \documentclass[border=10pt,tikz,multi]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} ...



Only top voted, non community-wiki answers of a minimum length are eligible