# Tag Info

1

I do not know if I correctly understood what you are trying to achieve. Does this provide any help? \documentclass[tikz]{standalone} \begin{document} \centering \tikzstyle{startstop} = [rectangle, minimum width=3cm, minimum height=1cm,text centered, draw=black] \tikzstyle{io} = [rectangle, minimum width=3cm, minimum height=1cm,text centered, draw=black] ...

4

This is not a completely automatic solution like the one proposed in Tikz foreach inside matrix but node contents and nodes in empty cells options can help to provide a semiautomatic solution. \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix (m) [draw, matrix of nodes, nodes in empty cells, ...

1

Meanwhile during wait on solution for automatic padding of matrix see if the next solution is work for you: \documentclass[tikz]{standalone} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture}[ node distance = 3mm, every node/.style = {draw, inner sep=1mm}, ] \foreach \i in {1,2,...,5} \node (n\i) at (\i,0) ...

6

Simpler than use of \pgfmathparse is: \documentclass[border=0mm,tikz]{standalone} \usetikzlibrary{%backgrounds,calc,fit, positioning, %shapes.multipart } \begin{document} \begin{tikzpicture}[node distance= 2mm] \node (poste1) {poste1}; \foreach \x [count=\xx from 2] in {1,2,...,5} { \node[right=of poste\x] ...

5

You can use a simple evaluate= as this: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes.multipart, fit,backgrounds,calc} \begin{document} \begin{tikzpicture} \node(poste1){poste1}; \foreach \x [evaluate=\x as \y using int(\x-1)] in {2,...,6}{% \node[right=of poste\y](poste\x){poste\x}; } \end{tikzpicture} \end{document} ...

1

If you don't want to shift the node itself (since that would shift the arrows), either you have to play around with adding space to your node text (negative to the left or positive to the right), or you have to add another node that contains your text. This second option has the advantage that you can directly specify the amount of shifting and not rely on ...

0

Just add \hspace{-2em} to the node text for West. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[node distance=1.5cm, auto] \node (West) { \hspace{-2em}$\Gamma \vdash A, B, C, D, E, F, G$ }; \node (North) [right of=West, above of=West] { $\Gamma'$ }; \node (South) [below of=West, right of=West] { ...

1

I'm back :-). After rethinking, what should be preserved and what should to be moved in desired image, I decided to edit my answer again ... Edit (3): Since the question has not been clear to me, in prevous version of answer (which I erase, since they are not help you) I from your solution guess, again, what you like to obtain. Below is my (last) ...

2

You mentioned the possibility of using an alternative package. You also mentioned a forest, somewhere along the line. Perhaps if you can't see the forest for the trees, you should just draw a forest instead. This solution is based on the current version of forest. I defines a style derivation tree based on your current code. It also defines circular empty ...

4

Basically, I gave every tree node a name and consolidated the midway nodes into one \path at the end. I probably could have come up with a better naming protocol. \documentclass{standalone} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture}[font=\small, every tree node/.style={inner sep=0.0625cm, circle, draw}, level ...

4

Just using simple stacks. \documentclass{article} \usepackage{marvosym,amssymb,txfonts,stackengine,xcolor,scalerel} \def\hex{\kern.2pt\textcolor{green!80!black}{\scalerel*{$\Hexasteel$}{)}}} \def\btd{\textcolor{blue!30!red}{\scalerel*{\blacktriangledown}{)}}} \def\hrt{\textcolor{orange!80!red}{\scalerel*{\varheartsuit}{)}}} \def\topstik{\rule{1pt}{10pt}} ...

6

Your picture is (to me) more easily to draw without use of trees library: \documentclass[border=3mm,tikz]{standalone} \usetikzlibrary{chains, positioning, shadows, shapes.geometric } \begin{document} \begin{tikzpicture}[ node distance=5mm and 11mm, start chain = going below, ...

2

Something like this? I'm not sure if it is optimised or not - it probably depends what you have in mind. \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{positioning} \begin{document} \tikzset{% \tikzstyle is deprecated bnode/.style={draw, fill=blue!20, text width=5em, text centered, minimum height=2.5em, line width=.4pt, above=.95}} ...

2

I will extend my comment to answer: \documentclass[border=3mm]{standalone} % standalone \usepackage{tikz} \usetikzlibrary{chains,shapes,positioning} \tikzset{ every node/.style = {rectangle, draw=black, thick, fill opacity = 0.5, text opacity = 1, font=\small, outer sep=0pt,% <-- this ...

1

For your example, nodes with a monospaced font is sufficient, so you can use something like node[draw,align=center,font=\ttfamily]{imimi\\23451}. That said, a matrix is just a special type of node, so you can actually use node[matrix] {...} in TikZ tree structure. See example below. I also added a simple example of a more manual way of setting things up, ...

2

Use clip=false to avoid clipping of content falling outside the axis. Then use anchor=west in place of anchor=east for those nodes. \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{WHCs.dat} Sample y y_err 5-Pa-Pr 0.520 0.10 6-Pa-Pr 0.465 0.05 7-Pa-Pr 0.768 0.16 5-Pa-S 0.517 0.10 6-Pa-S 0.562 0.20 7-Pa-S 0.794 0.35 ...

Top 50 recent answers are included