New answers tagged

0

Welcome! This combines the nodes 5 and 8 to one. More importantly, it uses the positioning library for better positioning (and also quotes). \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{automata,positioning,quotes} \begin{document} \begin{tikzpicture}[->,shorten >=1pt,auto,node distance=2cm, thick,main node/.style={...


3

I am posting this as a matter of record. I had to solve a very similar problem which allowed for text of arbitrary length in all three fields, particularly on the left. There are some extras in this code merely to show the possibilities. \documentclass{article} \usepackage{tikz} \usepackage[papersize={5.5in,8.5in},margin=0.6in,bottom=0.7in]{geometry} \...


1

Unfortunately I have no idea what's going on, but specifying the pos option to the edge node solves the placement: \documentclass{article} \usepackage{tikz} \begin{document} \tikzset{test/.pic={ \node (a) at (0,0) {a}; \node (b) at (3,0) {b}; \draw (a)--node[pos=0.5]{edge node} (b); } } \begin{tikzpicture} \pic {test}; \end{...


2

A rough look at how the coord system is working -- x and y are being varied for the text block --irrespective of the node(s) the block will move to all 4 corners of the page-- in the last image at x=7,y=10 the example image A is moved relative to the duck--the coord of the node point has no effect since it is held by the text block itself \documentclass{...


1

This is not a serious answer but just a code that does something along the lines you want. \documentclass{article} \usepackage{tikz} \usepackage{soul} \newcounter{nodepart} \usetikzlibrary{positioning} \makeatletter \DeclareRobustCommand*{\SplitMathNodes}{% \SOUL@setup \def\SOUL@preamble{\setcounter{nodepart}{0}}% \def\SOUL@everytoken{\stepcounter{...


3

You may want to have something where the bars always start at the same horizontal position for each diagram, and extend to the east side of the text area. \documentclass{article} \usepackage{tikzpagenodes} \usetikzlibrary{calc,fit} \newcounter{yval} \newenvironment{bardiagram} { \noindent\begin{tikzpicture}[remember picture] \setcounter{...


3

Here is a suggestion for you, using fill only. \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture} \def\incurve{(0,0) circle(1)} \def\outcurve{(0,0) circle(2)} \fill[inner color=red!40, outer color=blue!40,even odd rule] \incurve \outcurve; \draw[red] \incurve; \draw[blue] \outcurve; \end{tikzpicture} \end{document} There is ...


Top 50 recent answers are included