Quantcast
Channel: User sorry - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 28

How can I put two boxes right next to each other that have the exact same size?

$
0
0

I am new to Latex and Tikz and I am struggling to make two boxes right next to each other that have the exact same size.

(So like this but without spacing in between and without the 123 node being bigger)

Right now I have come up with this:

\documentclass{article}\usepackage{tikz}\usetikzlibrary{positioning} \usepackage{xstring}\begin{document}\begin{tikzpicture}[    roundnode/.style={circle, draw=blue!60, fill=blue!5, very thick, exact size=5mm},    squarednode/.style={rectangle, draw=blue!60, fill=blue!5, very thick, minimum size=5mm},    ]    %Nodes    \node[squarednode]      (maintopic)                              {2};    \node[squarednode]      (mynode)            [right=of maintopic] {123};    %Connections    \draw[] (maintopic) (mynode);\end{tikzpicture}\end{document}

Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>