I'm looking into replicating (or approaching) the following poster/cheatsheet produced by the International Baccalaureate Organization:
In positioning the nodes/boxes relative to each other, I have found that I had to tweak node distance= on a case by case basis: Is there a way to set so that the vertical and horizontal distances are the same irrespective of the size of the boxes?
If anyone knows how to set up a font that more closely resembles the original, I'd greatly appreciate any suggestions. I haven't looked into replicating the style of the figures yet, that's for another day!
Here's my attempt at positioning boxes:
% !TEX TS-program = xelatex
% !TeX spellcheck = fr
% !TEX encoding = UTF-8 Unicode
\documentclass[landscape,letterpaper]{article}
\usepackage[svgnames]{xcolor}
\usepackage{graphicx}
% font stuff
\usepackage[math-style=upright]{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont{Bradley Hand}
\setmathfont{GFS Neohellenic Math}
% tikz libraries
\usepackage{tikz}
\usetikzlibrary{calc,positioning}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{decorations.pathmorphing}
% Define box styles
% Define box styles
\tikzset{boxstyle/.style={draw=Gold, minimum height=1ex, minimum width=5em},
fluffybox/.style={boxstyle, fill=white, very thick,
decorate, decoration={random steps,segment length=3pt,amplitude=1pt}},
doublebox/.style = {boxstyle, fill=Lavender!50, thick, double},
line/.style = {very thick, draw=Gold},
pointer/.style = {very thick, draw=Gold, -latex'}
}
\begin{document}
\begin{tikzpicture}
% title
\node [doublebox] (A) {Interesting Title};
% node A
\node [fluffybox, below of=A] (B) {%
$ \lim_{t \to \infty} \frac{\partial}{\partial t}
\int_0^{2 \muppi} \frac{t^2}{2} \mathop{\symup{d}t} \leq
\sum_{i=1}^N \frac{\muppi i}{\sqrt 2} \approx \increment \symbfup{v}t
$
};
% node B
\node [fluffybox, node distance=5cm, right of=B] (C) {%
$ \frac{\sin \theta}{\Theta} =
\frac{\sin \varphi}{\Phi} =
\frac{\sin \gamma}{\Gamma}
$
};
% edge
\path [line] (B) -- (C);
% node C
\node [fluffybox, node distance=2cm, below of=B] (D) {%
$ x^n+y^n = z^n $
};
% pointer
\path [pointer] (B) -- (D);
% title
\node [doublebox, below of=C] (E) {Lettres Intéressantes: ç, ï, ê, œ};
% image
\node [fluffybox, node distance=2cm, below of=E] (F) {%
\includegraphics[width=0.3\linewidth,height=0.3\textheight,keepaspectratio]%
{example-image-a.jpg}
};
\end{tikzpicture}
\end{document}
I'm compiling with XeLaTeX and plan to write a French version of this, hence the experiment with accents.
EDIT If I set the node distances globally, say \tikzset{node distance = 2cm and 2cm}, I get the correct distance for some boxes but not for others, e.g.:




tikzstylewhich is deprecated.
– js bibra Jan 23 '24 at 04:09\tikzset{inicio/.style = {rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=yellow}, nodo/.style = {rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black}, }\tikset. So I don't want a table with fixed widths and heights, but instead randomly sized and positioned boxes that have a fixed distance between them. Thanks! – PatrickT Jan 23 '24 at 04:16\setmainfont{BarterwithaGypsy}without success. (what a font name that is) – PatrickT Jan 23 '24 at 08:57[fluffybox, right = of B.east]. you can even go for[fluffybox, right = of B.east, anchor=west]. it basically indicates that exact distance between the east anchor of the node B isnode distancefrom the west anchor of the current node. – anis Jan 24 '24 at 12:30