# Tag Info

## New answers tagged tikz-styles

2

Not exactly what daleif proposed but similar. Once nodes A and B are defined, the wanted intersection is at (A|-B) coordinate. Then it's easy to draw desired braces. \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning, decorations.pathreplacing} \usepackage{lmodern} \begin{document} \begin{tikzpicture}[axis/.style={very thick, ->}, ...

2

You need to add the [transform shape] option when creating the node. \documentclass{standalone} \usepackage{graphicx,tikz} \begin{document} \begin{tikzpicture} \begin{scope} [rotate=30] \node [transform shape](scope6) at (0,0) {\includegraphics{example-image}}; \node at (0,0) [rotate=0,color=black] {Text}; \end{scope} \end{tikzpicture} ...

1

Something like this: For this scope doesn't work. You can simply do the following: \documentclass[border=3mm, multi, tikz]{standalone} \usepackage{graphicx} \begin{document} \begin{tikzpicture} \node[rotate=30,draw=red,very thick] (scope6) {\includegraphics{example-image}}; \node ...

1

As JMP says in the comment, the tikzposter class has taken the place of the fancytikzposter package. Using the class, blocks with empty titles doesn't get the title "area" in the block by default, so no extra work is needed. \documentclass{tikzposter} \usetheme{Envelope} \author{A not so frustrated user} \title{A pretty enough poster I hope} ...

1

Looking at the code of the groupplots library, I see that the style /pgfplots/group/every plot is added to each \nextgroupplot. So to only affect axes in groupplots environments, append to that style, e.g. \pgfplotsset{/pgfplots/group/every plot/.append style = { ylabel absolute, y label/.append style={yshift=0em}, } } \documentclass{article} ...

2

Like this? \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{patterns,shapes.symbols,positioning} \usepackage{listings} \tikzset{data/.style={draw, tape, tape bend top=none}} \begin{document} \begin{tikzpicture}[scale=0.3, every node/.style={scale=0.78}] \node[data, scale=0.7] (bb3r) { \begin{lstlisting}[basicstyle=\ttfamily\scriptsize] Foo: ...

6

You can load the libraries angles, quotes and then use the pic option. I have applied some modifications to your code, for example, the axis lines are now equally long, and the label for the X axis is added together with the \draw command. Output Code \documentclass[margin=10pt]{standalone} \usepackage{amsmath} \usepackage{tikz} ...

3

Here is a sketch of the solution to adapt \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{positioning,calc} \begin{document} \begin{tikzpicture} \node[draw,minimum height=2em, minimum width=8em](pred) {(1) Prediction}; \node[below=0em of pred](equa1) { \left\{\begin{aligned} A_t&= F A_{t-1}\\ P_t&=F P_{t-1} ... 3 Another way \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture} \path coordinate["a$" right] (1) at (0,0) coordinate["$b$" right] (2) at (3,0) coordinate["$c$" right] (3) at (1,1.5) coordinate["$d$" above] (4) at (1,3) coordinate["$e$" below] (5) at ... 5 Put braces around the label text. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (1) [label=above:{$ab = A\$}] at (-2,0) {node label}; \end{tikzpicture} \end{document}

6

I suppose, that you like to obtain the following picture: From code below you can see, that the coordinates are determined by .center. Without this it is considered one of anchors on node's shape border. To be filled area under nodes, I also use `background library. \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{backgrounds} ...

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} ...

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 ...

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}[ ...

Top 50 recent answers are included