8
votes
Accepted
Modify This Tikzpicture
Does something like this suit you? If not exactly, you get the idea, just have to change a bit the dimensions.
\documentclass[border=1cm]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{...
6
votes
Accepted
Draw this scheme on TikZ
Welcome to TeX.:SE!
Reproduction of your image:
is done by:
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[very thick](-6,0) -- (-3.84,0) -- ++ (...
5
votes
Accepted
Change line draw style in TikZ
You could add style to every path:
\documentclass[border=0.618cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[every path/.style={double=black},draw=white,very thick]
\draw (0,...
5
votes
Accepted
Drawing subgroup lattice of G in Tikz
You're pretty close. Use the positioning library. Then the correct syntax is below=of G, not below of=G. The node distance is measured along the diagonals, which is preventing the rows from lining up, ...
4
votes
Accepted
TikZ: prevent overlapping boxes when using fit
You want to merge those red fit nodes with the same opacity, it can be done using a scope and the transparency group option. See the code below. Nevertheless, when doing that, you still get some dots ...
4
votes
Accepted
Interface for diagrams and example
It's true—TikZ can be intimidating at first. The 1000+ page manual is downright terrifying. But it's worth it! Start with some of the tutorials at the beginning of the manual. You'll be drawing ...
4
votes
Accepted
Drawing a number line in TikZ with text descriptions
In your question you not show sketch of desired image, only not accessible link.
I hope, that image in the @Tom answer is sufficient close to what you after.
I would draw this picture a slightly ...
4
votes
Accepted
Center-align stacked molecules with chemfig
The issue is a space that you don't want after \chemfig{ M(-[0]M{\sim}) (-[4]{\sim}M) }. Add a % to remove the whitespace at the end of the line.
\subscheme{
\chemfig{H_2C=[@{bond}]CH_2}
\...
3
votes
Style rows/columns of a `tikz-cd` diagram
Nodes:
To change the style of a row use nodes={row 1/.style=red}
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[
\begin{tikzcd}[nodes={row 1/.style=red}]
A \...
3
votes
Style rows/columns of a `tikz-cd` diagram
With
\tikzcdset{arrow style=tikz,
arrows = {>=Straight Barb, very thick, gray}
}
For color of nodes you can change their color only locally:
Complete MWE
\documentclass[...
3
votes
tikz: draw arc between two specific points
\documentclass{article}
\usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,shapes,positioning,intersections,quotes,...
3
votes
Center-align stacked molecules with chemfig
It is not necessary to use \subscheme or \chemmove, shorter code is possible.
It is possible to insert the arrow inside the molecule without the \arrow command
\documentclass[12pt]{article}
\...
3
votes
Interface for diagrams and example
A small variation of the nice @Sandy G answer (+1) which gives wee bit shorter code. For exercise :-)
\documentclass[border=3.14159]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
...
3
votes
Accepted
Tree Diagram with Filesystem Branches
This can be done with forest, but it requires some manual adjustment because of the way the folder style interacts with the standard style.
\documentclass{article}
\usepackage[edges]{forest}
\...
2
votes
Accepted
I Need to Edit Part of this Tikzpicture
This is quite a complex picture --- I wouldn't really call it a minimal example. But without knowing anything about the 3d parts, and if I understood correctly what you wanted, I tried to mimic what ...
2
votes
I Need to Edit Part of this Tikzpicture
The foreach is setting the position of each of the three shapes, to get a fourth one try adding another number to it like this:
\path foreach \xy in {-1.5,0,1.5,3.0}
Since they are each 1.5 apart I ...
2
votes
Creating a bent 3D pipe in Tikz
Not sure if this is exactly what you're looking for, but you can \draw an arc with option double and place ellipses at each end. Note the double distance should account for the line thickness to get a ...
2
votes
Tree Diagram with Filesystem Branches
your question is not clear, sorry.
your other image is simple to draw by use of forest package:
\documentclass[border=0.2 cm]{standalone}
\usepackage[edges]{forest}
\usetikzlibrary{arrows.meta}
\...
2
votes
Drawing a number line in TikZ with text descriptions
Here is a solution.
Is there a way to make the code more concise? Any advice?
\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, decorations.pathreplacing,calc}
\...
2
votes
TikZ: prevent overlapping boxes when using fit
You can draw path around nodes, which you like to annotated by some transparency fill:
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
calc, ...
2
votes
How to fill a customized shape?
First, close your path. Then fill it.
If you fill in, say, orange, you get:
If you want to fill it with what you call a dashed filling, use the patterns or the patterns.meta libraries:
\...
2
votes
tikz: fit rectangle to content and rectangle nodes
For nodes positioning I would use positioning library and define anchors for nodes. For nodes I suggest to use common defined style (without definition of minimum node size) with parameter for colors:
...
2
votes
Accepted
tikz: draw arc between two specific points
Here are some different arcs:
\documentclass[tikz, border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[yshift=0cm] (1,0) to [bend right=45] (5,0);
\draw[yshift=2cm] (1,0) to [bend ...
1
vote
How to return/realign/reunite a branch of a tree structure to the original parent lineage using the forest package?
I'm afraid the node can only have a single formal parent. So \draw it is, in principle. However, as I often need to fake an extra parent (or child) myself, I wrote the edge to/from styles you can see ...
1
vote
tikz: fit rectangle to content and rectangle nodes
Not the best solution but at least one possibility:
\documentclass{article}
\usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry}
\usepackage{tikz}
\usetikzlibrary{...
1
vote
Accepted
Smooth curve with tikz
While you are waiting for Tikz-specific help, here is an alternative in Metapost, wrapped up in luamplib. I believe you can use the same approach to defining a path in Tikz with the hobby package.
...
1
vote
Change the style of graph vertex
I didn't want to do too many changes to your code, so I let it like that, not using chains.
I defined endnode differently, and since your request for the normal nodes is not clear enough to me, I ...
1
vote
Accepted
Drawings inside Concentric circles using TikZ
Some comments
The figure you want to obtain has a rotational symmetry which asks for a loop based on 30, 60, ... degrees. Moreover, the points on which the 12 "triangles" are constructed ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tikz-styles × 1673tikz-pgf × 1192
tikz-arrows × 253
tikz-trees × 101
diagrams × 99
pgfplots × 83
nodes × 59
beamer × 51
graphics × 36
tikz-cd × 36
tikz-node × 32
graphs × 30
color × 27
tikz-matrix × 27
tikz-pic × 26
pgfkeys × 24
circuitikz × 21
positioning × 20
tcolorbox × 20
flow-charts × 20
arrows × 19
forest × 18
macros × 17
tables × 16
formatting × 16