Hot answers tagged

8

By generating a table, do you mean making one in the first place? I recommend breaking something like this down into individual tasks (like the list you made) and approaching it one step at a time, starting from a very basic structure and gradually building it up. Each of these tasks can be found in various examples across the internet (particularly here) ...


6

Well, I will convert my comment to one of possible solutions ... See, if the following is what you looking for: Code (Minimal Working Example: MWE) -- I took opportunity and changes obsolete \tikzstyle for nodes styles to option of tikzpicture, correct wrong syntax in positioning of nodes and add TikZ library chains and with this slightly make code ...


5

You can use as much labels as you need: just declare several label options. But if you want to join label and node with a line/arrow, use pin. \documentclass[border=100pt]{standalone} \usepackage{tikz} \usetikzlibrary{shadows} \begin{document} \begin{tikzpicture} \node[circle, shading=ball, drop shadow, ball color=red!20!black, minimum width=4cm, ...


5

Here is a solution with pst-node and arydshln. Is consists in using an ordinary tabularx environment and defining the relevant cells as nodes of various types and linking them with node connections. It compiles with xelatex only. \documentclass{article} \usepackage{array, tabularx, arydshln} \usepackage{geometry} \usepackage{pst-node, multido} \usepackage{...


3

One solution, as pointed out by Zarko in his answer would be to use the tape style if it's applicable. Another solution would be to use a pic, where you can draw arbitrary shapes that can conveniently be reused. Your souce with the added tikz pic: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \begin{document} \...


3

If you want to change the fontsize of nodes inserted by an \addplot command you can use something like every axis plot/.append style = {font = \scriptsize} Code: \documentclass[margin=5pt]{standalone} \usepackage{pgfplots} \usepackage{amsmath} \pgfplotsset{compat=newest} \pgfplotsset{ tick label style = {font = \tiny}, label style = {font = \...


3

You can use in the third one \draw[line width=1mm,blue] (A) to[out=90,in=300,out looseness=1.3] (C); and in the last one \coordinate (aux) at (.5,2.4); \draw[line width=1mm,smooth,blue] (A) to[out=90,in=270] (aux) to[out=90,in=270] (C); To get the end of the last line to be straight, you can do \coordinate (aux) at (.5,2); \draw[line width=1mm,...


3

pdftex has no information about the character other than four lengths height, depth, width, italic correction, it may be a black square or a white rectangle or look like an F so there is no way to avoid giving tex the corrections by hand, either on each instance or setting up a font-specific table of spacing corrections for each character


3

It is not true that the text has to go where the nodes are if you use one of the easier tree specification syntaxes. forest allows you to put the text from the nodes somewhere else entirely. For example, \documentclass[border=10pt,multi,tikz]{standalone} \usepackage{forest} \begin{document} \begin{forest} for tree={ parent anchor=children, anchor=...


3

I understand, that nodes in stack differs in its heights, which you like to calculate from relative size (in provided picture are written in nodes in stack) of something, i.e. you like to obtain something like this: Code for this can be quite simple and concise, if you employ two more TikZ libraries: calc and chains \documentclass[tikz, border=3mm]{...


3

Just using positioning TikZ library and a well defined node style. Code \documentclass[border=2pt,tikz]{standalone} \usetikzlibrary{positioning} \begin{document} \tikzset{block/.style={shape=rectangle, draw, node distance=-1pt, minimum width = 10em, line width=1pt}} \begin{tikzpicture} \node[block] (first) {first node}; \node[block,...


3

This is what I would to do reproduce that image: Use the actual colors with some RGB definition. Use the arrows.meta library. arrows is still supported, but it's deprecated. I changed some styling in the nodes to be more faithful. Also, this is a matter of preference, but I'd advise against using bold and large font together. Output Code \...


2

Another solution with a rectangle split shape. As this kind of shapes doesn't consider a minimum height for vertically split nodes, a \parbox has been used to define different heights in each part. \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning,shapes.multipart} \newcommand{\textbox}{\parbox[c][1cm][c]{3cm}{\centering #1}} \begin{...


2

I'm guessing, that you like to obtain something like this: \documentclass[border=3cm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows, positioning, shadows} \begin{document} \begin{tikzpicture}[ node distance = 5cm, thick, every node/.style = {font = \Large\sffamily, text=black}, box/.style = {rectangle, draw=green, minimum ...


2

It may not be that easy to read, but it looks like it's possible to continue the way you started: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture}[ font = \footnotesize, edge from parent/.style = {draw ,thin}, SN/.style = {%solid node circle, inner sep=1.2 ,fill=blue},...


2

I must confess that your code is beyond my ability of comprehension ... So I only redraw provided images: I'm pretty sure that it can be easy to extend/adopt to your demands. Straight lines can be replaced with curves with plot macros if necessary. MWE for above picture is: \documentclass[tikz, border=5mm]{standalone} \usetikzlibrary{calc, intersections}...


1

Don't use a negative outer sep and take a look at Should \tikzset or \tikzstyle be used to define TikZ styles? \documentclass[a4paper]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} [ level/.style={sibling distance=20mm/#1}, level distance=25mm, hollow node/.style={draw, circle, minimum width=10pt, inner sep=0pt}, black ...



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