# Tag Info

6

Like this? \documentclass[tikz]{standalone} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node (a) {a}; \node[right=1cm of a] (b) {B}; \node[right=1cm of b] (c) {C}; \node[right=1cm of c] (d) {D}; \node[right=1cm of d] (e) {E}; \node[right=1cm of e] (f) {F}; \draw [dashed] (a) to[bend left] node {} (f); ...

6

The simplest thing to do is specify outer sep=0: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ultra thick, MyNode/.style={draw, minimum height=1cm}] \draw[step=1cm,gray,ultra thin] (-1cm,-3cm) grid (5cm,2cm); % default case \begin{scope}[red] \path (0,0) node[MyNode, anchor=south west, minimum ...

5

You are a victim of babel. Add \usetikzlibrary{babel} to escape. \documentclass[a4paper, 12pt]{scrartcl} \usepackage[english, french, ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{positioning,babel} %%<------------------- \usepackage{rotating} \begin{document} ...

5

Why not just this? \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{calc} \makeatletter \newcommand\aescandash[1]{%% \let\ae@scan@dash@result\relax \ae@scan@dash@parse#1_\@nil \ae@scan@dash@result } \def\ae@add@to@result#1#2{%% \ifx#1\relax \def#1{#2}%% \else \expandafter\def\expandafter#1\expandafter{#1#2}%% \fi} ...

4

This is an attempt where tikz pic is used with cloud shape from tikzlibrary. One might to play with cloud puff arc=110, aspect=2 in the cloud/.pic definition for one's like . Furthermore, the node (c1) and (c2) are adjustable to place the two clouds. Edit: Replace the aspect=2 key by cloud ignores aspect key will yield Code \documentclass{article} ...

4

Remark For a version working in PGF version 2.10, please see the bottom of the answer. Here's a possibility using TikZ and its pic path, as Claudio Fiandrino suggested in his comment: The code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,fit} \tikzset{ mynode/.pic={ \node[overlay,draw,circle,inner sep=3pt] at (0,-7.5pt) ...

3

This is one possible solution where semi-circle is drawn for each nodes involved and then bezier curve is applied to connect all curves. Although the staring angle and end angle of the semi-circles may different for smoothness reason, some kind of repeated pattern is found and used here. Code \documentclass{article} \usepackage{tikz} ...

3

I would suggest you use the to syntax and specify the out and in angles. Here are a few examples and perhaps adjust the distance: Code: \documentclass[tikz]{standalone} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[thick, dashed] \foreach [count=\i] \x in {$L_0$, $R_3$, $R_1$, $L_2$, $R_0$} { \node (\i) at (\i,0) {\x}; } ...

3

There is actually a preprocessor in disguise. You can use the node contents key started with TikZ 3. And via style nesting it becomes a preprocessor. But the downside is that you have to give all the specs within the brackets because closing bracket finishes the node parsing on a path. Edit: After cfr's correction, a little better with the option to choose ...

3

It is possible to insert a preprocessor, but obviously this involves a teensy hack of the node parser. In the code below I define a preprocess node content key which takes a macro as an argument. This macro should be defined to take one argument, which will be the text to process. Obviously if there is something more complex than simple text then the whole ...

3

The \resizebox will scale both the graphics and the text. It would be better if you just applied a scale to the tikzpicture instead: Notes: I commented out the stuff that was irrelvant to this question. I also commented out the \begin{scriptsize} and \end{scriptsize}, as that was also resulting the changes in font size of the text. Am not sure if that ...

3

Defining new anchors is tricky and basically impossible without looking at the PGF code used to define the shape. But aliasing anchors is quite straightforward (once you have the command to do it): \documentclass[tikz,border=5]{standalone} \usetikzlibrary{shapes.geometric} \makeatletter \def\pgfaliasanchor#1#2#3{% \expandafter\gdef\csname ...

2

If you're looking for an arbitrary coordinate around the perimeter you can use (name.number), where name is the shape name and number is an angle in degrees measured from name.east. \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.geometric,plotmarks} \begin{document} \begin{tikzpicture} \node[name=s, shape=regular polygon, ...

2

You can change global path thickness as below, so you no need to change it here and there: \documentclass[tikz]{standalone} \begin{document} \tikzstyle{every node}=[font=\large] \tikzstyle{every path}=[line width=2pt] \begin{tikzpicture}[ every node/.append style={circle, draw=blue!80, inner sep=2pt, minimum size=12pt}] \node (1) at ...

2

It looks that you have exported this code from some drawing software, hence it is not readable enough. On the other hand, for such simple diagrams, you can write the code yourself. Here is one sample: \documentclass[tikz,border=5]{standalone} \definecolor{uuuuuu}{rgb}{0.266666666667,0.266666666667,0.266666666667} \definecolor{zzttqq}{rgb}{0.6,0.2,0.} ...

2

Thanks to @cfr , this is the solution I came up with. I didn't fully go with his solution because I need \myn unaltered for later purposes in my main document. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \makeatletter \newcommand\aescandash[1]{%% \let\ae@scan@dash@result\relax \ae@scan@dash@parse#1_\@nil \ae@scan@dash@result } ...

2

I do not know why the \node text is not centered by default, but you can use the label=center:my text option to place the text in the same node: Alternatively you can place a separate \node after you have your fit. Code: \documentclass[tikz,border=3mm]{standalone} \begin{document} \usetikzlibrary{fit,positioning} \begin{tikzpicture}[ node ...

2

This is not automatic, it's just another manual solution but using hobby library. \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees,calc,positioning,hobby} \begin{document} \begin{tikzpicture} \begin{scope}[level distance=1.5cm, level 1/.style={sibling distance=3.2cm}, level 2/.style={sibling distance=1.7cm}] \tikzstyle{every ...

2

I think this solution is more clean. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \newcommand{\twonodes}[2]{% \begin{tikzpicture}[remember picture,node distance=0.6cm] \node[ circle, fill=gray] (#1) {}; \node[circle, below of = #1](#2) {}; ...

2

Here's a (very badly designed) custom shape, just to illustrate an alternative method which enables the parametrization of the parent anchor according to the number of the child. Only two children are permitted, but each node can use the circle 1 and circle 1 keys to specify the style for the inner circles: \documentclass[tikz,border=5]{standalone} ...

1

You should use proper tool for each job ;-) Here it is tcolorbox \documentclass[12pt,border=5]{standalone} \usepackage[most]{tcolorbox} \newtcolorbox{mybox}[1][]{ enhanced, colframe=gray!80, colback=gray!40, left=2em,right=1ex,top=1ex,bottom=1ex,%boxsep=1em, leftrule=4pt, rightrule=0pt, toprule=0pt, bottomrule=0pt, arc=0pt, %breakable, ...

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